/* ===== UKM Karate – gaya utama ===== */
:root {
  --bg: #f6f3ee;
  --bg-2: #ffffff;
  --ink: #16120f;
  --ink-2: #5b524a;
  --line: #e2dbd1;
  --red: #c8102e;
  --red-2: #a30d25;
  --gold: #b8892b;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --shadow: 0 10px 30px rgba(22, 18, 15, 0.08);
  --radius: 14px;
  --nav-h: 68px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #100d0c;
  --bg-2: #1b1613;
  --ink: #f3ece4;
  --ink-2: #a89d92;
  --line: #2f2824;
  --red: #e0334f;
  --red-2: #c8102e;
  --gold: #d9a441;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #100d0c; --bg-2: #1b1613; --ink: #f3ece4; --ink-2: #a89d92; --line: #2f2824;
    --red: #e0334f; --red-2: #c8102e; --gold: #d9a441; --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Oswald', 'Arial Narrow', Impact, sans-serif; letter-spacing: 0.02em; line-height: 1.1; margin: 0 0 0.5em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1140px, 92vw); margin-inline: auto; }
.muted { color: var(--ink-2); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; transition: background .25s, box-shadow .25s, color .25s;
  color: #fff;
}
.nav.solid { background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav .container { display: flex; align-items: center; gap: 18px; width: min(1480px, 96vw); }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-family: 'Oswald', sans-serif; font-size: 1.25rem; letter-spacing: .06em; font-weight: 600; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.brand img.mark { width: 40px; height: 40px; border-radius: 0; background: transparent; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a { white-space: nowrap; padding: 8px 10px; border-radius: 8px; font-size: .92rem; font-weight: 500; opacity: .92; }
.nav-links a:hover { background: rgba(127,127,127,.18); }
.nav-links a.active { color: var(--red); background: rgba(200,16,46,.1); opacity: 1; }
.nav:not(.solid) .nav-links a.active { color: #fff; background: rgba(255,255,255,.2); }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: inherit; }

/* ===== Tombol & form ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem;
  background: var(--red); color: #fff; transition: transform .12s, background .2s;
}
.btn:hover { background: var(--red-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: rgba(127,127,127,.12); }
.btn.light { background: #fff; color: #16120f; }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.small { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg-2); outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-error { color: var(--red); font-size: .9rem; min-height: 1.2em; margin: 4px 0 10px; }

/* ===== Hero / landing ===== */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff;
  background-color: #1b1411; background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,8,7,.55) 0%, rgba(10,8,7,.25) 35%, rgba(10,8,7,.88) 100%),
  radial-gradient(80% 60% at 20% 100%, rgba(200,16,46,.35), transparent 70%); }
.hero-inner { position: relative; padding: calc(var(--nav-h) + 40px) 0 72px; }
.eyebrow { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); text-transform: uppercase; max-width: 14ch; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero h1 span { color: var(--red); -webkit-text-stroke: 0; }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 56ch; opacity: .92; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: 'Oswald', sans-serif; font-size: 2rem; }
.hero-stats small { opacity: .8; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: .75rem; letter-spacing: .25em; opacity: .7; }

/* ===== Section & kartu ===== */
.page { padding-top: var(--nav-h); min-height: 100svh; }
.page-head { padding: 52px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; margin: 0; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }
.section { padding: 70px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.section-title h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; margin: 0; }
.section-title h2::after { content: ''; display: block; width: 54px; height: 4px; background: var(--red); margin-top: 10px; border-radius: 4px; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card.pad { padding: 22px; }
.card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #2a1b1b, #6d1020); display: grid; place-items: center; font-size: 2.6rem; color: rgba(255,255,255,.85); background-size: cover; background-position: center; }
.card .body { padding: 18px 20px 20px; }
.card h3 { font-size: 1.3rem; margin-bottom: .35em; }
.card.link { cursor: pointer; transition: transform .18s; }
.card.link:hover { transform: translateY(-4px); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(200,16,46,.12); color: var(--red); }
.badge.acara { background: rgba(184,137,43,.18); color: var(--gold); }
.badge.ok { background: rgba(31,138,76,.15); color: var(--ok); }
.badge.warn { background: rgba(183,121,31,.16); color: var(--warn); }
.badge.no { background: rgba(200,16,46,.14); color: var(--red); }
.meta { font-size: .85rem; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; font-size: .88rem; }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { text-align: center; padding: 48px 12px; color: var(--ink-2); border: 2px dashed var(--line); border-radius: var(--radius); }
.prose { max-width: 72ch; white-space: pre-wrap; }
.prose > div { white-space: pre-wrap; }
.prose-table { white-space: normal; overflow-x: auto; margin: 16px 0; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.prose-table table { min-width: 560px; font-size: .88rem; }
.prose-table th, .prose-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-table th { background: var(--red); color: #fff; font-weight: 600; white-space: nowrap; }
.prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table tbody tr:nth-child(even) td { background: rgba(127,127,127,.07); }
.cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 0 0 24px; }

/* Jadwal */
.day-col { padding: 0; }
.day-col h3 { margin: 0; padding: 14px 20px; background: var(--ink); color: var(--bg); font-size: 1.05rem; text-transform: uppercase; }
.slot { padding: 16px 20px; border-top: 1px solid var(--line); }
.slot:first-of-type { border-top: 0; }
.slot .time { font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: var(--red); }

/* Album */
.album-grid { columns: 3 260px; column-gap: 14px; }
.album-grid figure { margin: 0 0 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--bg-2); border: 1px solid var(--line); }
.album-grid img { width: 100%; }
.album-grid figcaption { padding: 8px 12px; font-size: .85rem; color: var(--ink-2); }
.album-grid .del { position: absolute; top: 8px; right: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100; display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; max-width: 94vw; border-radius: 8px; }

/* Pengurus & prestasi */
.person { text-align: center; padding: 22px 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, var(--red), #6d1020); color: #fff; display: grid; place-items: center; font-family: 'Oswald', sans-serif; font-size: 1.5rem; }
.avatar.photo { object-fit: cover; object-position: center top; background: #1a1313; border: 2px solid var(--red); display: block; }
.person .avatar.photo { width: 96px; height: 96px; }
.medal { font-size: 2rem; }

/* ===== Footer ===== */
.footer { background: #0e0b0a; color: #cfc6bd; padding: 44px 0 26px; margin-top: 60px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; margin: 0 0 10px; font-family: 'Oswald', sans-serif; letter-spacing: .06em; }
.footer a:hover { color: #fff; }
.footer small { display: block; margin-top: 28px; opacity: .6; }

/* ===== Menu akun ===== */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; background: rgba(127,127,127,.2); border: 0; padding: 5px 12px 5px 5px; border-radius: 99px; cursor: pointer; color: inherit; font-weight: 600; font-size: .9rem; }
.acct-btn .avatar { width: 32px; height: 32px; font-size: .95rem; margin: 0; }
.dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--bg-2); }
.acct-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(380px, 94vw); max-height: min(78vh, 620px); overflow: auto;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.acct-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.acct-head .avatar { margin: 0; width: 48px; height: 48px; }
.acct-head b { display: block; }
.acct-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.acct-tabs button { background: none; border: 0; padding: 11px 4px; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; position: relative; }
.acct-tabs button.active { color: var(--red); border-bottom-color: var(--red); }
.acct-body { padding: 14px 16px 16px; }
.list-item { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.list-item:hover { background: rgba(127,127,127,.12); }
.notif { align-items: flex-start; border-bottom: 1px solid var(--line); border-radius: 0; }
.notif.unread { background: rgba(200,16,46,.07); }
.notif b { font-size: .92rem; }
.notif p { margin: 2px 0 0; font-size: .82rem; color: var(--ink-2); }
.notif small { color: var(--ink-2); font-size: .72rem; }
.theme-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { border: 2px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; background: none; cursor: pointer; font-weight: 600; font-size: .85rem; }
.theme-opt.active { border-color: var(--red); color: var(--red); }
.theme-opt span { display: block; font-size: 1.6rem; }

/* ===== Modal & toast ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal { background: var(--bg-2); border-radius: 18px; width: min(560px, 100%); padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.4); max-height: 94vh; overflow: auto; }
.modal.wide { width: min(760px, 100%); }
.modal h2 { font-size: 1.7rem; text-transform: uppercase; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: .92rem; animation: pop .25s ease; }
.toast.err { background: var(--red); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* ===== Admin ===== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding-bottom: 40px; }
.side { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; display: grid; gap: 4px; }
.side a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; }
.side a:hover { background: rgba(127,127,127,.12); }
.side a.active { background: var(--red); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px; }
.stat b { display: block; font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: var(--red); line-height: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* Reveal saat scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Responsif ===== */
@media (max-width: 1260px) {
  .burger { display: block; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg-2); color: var(--ink); flex-direction: column; align-items: stretch; padding: 12px; margin: 0; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a.active, .nav:not(.solid) .nav-links a.active { color: var(--red); background: rgba(200,16,46,.1); }
  .acct { order: 3; }
}
/* Mode burger otomatis: dipasang lewat JS (fitNav) saat menu tidak muat, mis. nama organisasi panjang / ada menu Dashboard */
.nav.compact .burger { display: block; }
.nav.compact .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg-2); color: var(--ink); flex-direction: column; align-items: stretch; padding: 12px; margin: 0; box-shadow: var(--shadow); display: none; }
.nav.compact .nav-links.open { display: flex; }
.nav.compact .nav-links a.active, .nav.compact:not(.solid) .nav-links a.active { color: var(--red); background: rgba(200,16,46,.1); }
.nav.compact .acct { order: 3; }
/* Di mode burger, nama organisasi dipotong dengan "…" bila terlalu panjang untuk layar */
.nav.compact .brand { min-width: 0; }
.nav.compact .brand #brandName { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .brand { font-size: 1rem; letter-spacing: .03em; gap: 8px; } .brand img.mark { width: 34px; height: 34px; } .nav .container { gap: 10px; } }
@media (max-width: 640px) { .hide-sm { display: none; } .acct-btn { padding-right: 5px; } }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .side a { white-space: nowrap; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* Tombol bagikan */
.share { margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.share b { display: block; margin-bottom: 10px; font-family: 'Oswald', sans-serif; letter-spacing: .05em; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row .btn { text-decoration: none; }

/* ===== Kartu prestasi: foil hologram + efek sesuai medali ===== */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; padding: 6px 4px 20px; }
.trophy { perspective: 900px; --m1: #e0415a; --m2: #b81d36; --m3: #7a1022; --glow: rgba(224, 65, 90, .35); }
.trophy.gold   { --m1: #fff1b8; --m2: #f7b500; --m3: #a86d00; --glow: rgba(255, 190, 40, .5); }
.trophy.silver { --m1: #ffffff; --m2: #b9c3d3; --m3: #6c7789; --glow: rgba(190, 208, 236, .42); }
.trophy.bronze { --m1: #f6c79c; --m2: #cd7f32; --m3: #7a431a; --glow: rgba(205, 127, 50, .48); }
.trophy-in {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff;
  border: 3px solid transparent;
  background: linear-gradient(#15100f, #15100f) padding-box, linear-gradient(135deg, var(--m1), var(--m2) 45%, var(--m3) 75%, var(--m2)) border-box;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 26px var(--glow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s ease, box-shadow .4s ease;
  transform-style: preserve-3d; will-change: transform; height: 100%;
}
.trophy:hover .trophy-in { box-shadow: 0 24px 54px rgba(0, 0, 0, .45), 0 0 50px var(--glow); }
.trophy.tilting .trophy-in { transition: transform .08s linear, box-shadow .4s ease; }

.t-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; background: #1d1716; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .6s ease; }
.trophy:hover .t-photo img { transform: scale(1.05); }
.t-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, #15100f 0%, rgba(21, 16, 15, .85) 16%, rgba(21, 16, 15, 0) 52%), linear-gradient(160deg, color-mix(in srgb, var(--m2) 22%, transparent), transparent 40%); }
.t-ph { position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px), radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--m2) 35%, #1d1716), #1d1716 70%); }
.t-ph span { font-family: 'Oswald', sans-serif; font-size: 4.4rem; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(135deg, var(--m1), var(--m2), var(--m3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.t-badge { position: absolute; top: 14px; left: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px 6px 9px; border-radius: 99px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #2a1a00;
  background: linear-gradient(135deg, var(--m1), var(--m2) 55%, var(--m3)); box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 18px var(--glow); }
.t-badge span { font-size: 1.1rem; line-height: 1; }
.trophy.silver .t-badge, .trophy.bronze .t-badge { color: #1c1208; }

.t-body { position: relative; z-index: 2; margin-top: -86px; padding: 0 18px 20px; }
.t-body h3 { margin: 0 0 8px; font-size: 1.28rem; line-height: 1.16; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.t-ath { font-weight: 700; font-size: 1rem; color: var(--m1); margin-bottom: 4px; }
.t-ev { font-size: .82rem; line-height: 1.4; color: rgba(255, 255, 255, .66); }

/* lapisan hologram + kilau */
.t-holo, .t-glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; }
.t-holo { opacity: .3; mix-blend-mode: color-dodge; -webkit-mask-image: linear-gradient(to bottom, #000 35%, rgba(0,0,0,.3) 100%); mask-image: linear-gradient(to bottom, #000 35%, rgba(0,0,0,.3) 100%); background-size: 260% 260%; background-position: var(--mx, 50%) var(--my, 50%);
  background-image: linear-gradient(115deg, transparent 14%, rgba(255, 60, 200, .38) 28%, rgba(60, 255, 230, .38) 40%, rgba(255, 240, 80, .32) 52%, rgba(130, 90, 255, .34) 64%, transparent 80%); }
.trophy:not(.tilting) .t-holo { animation: holoSweep 7s ease-in-out infinite alternate; }
.trophy.tilting .t-holo { opacity: .55; }
.t-glare { opacity: 0; mix-blend-mode: overlay; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 46%); transition: opacity .3s; }
.trophy.tilting .t-glare { opacity: 1; }
@keyframes holoSweep { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* emas: kilau berkelip + denyut cahaya */
.trophy.gold .trophy-in::before { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background:
    radial-gradient(circle 2px at 18% 22%, #fff, transparent 70%), radial-gradient(circle 3px at 78% 16%, #fff7c8, transparent 70%),
    radial-gradient(circle 2px at 64% 44%, #fff, transparent 70%), radial-gradient(circle 3px at 30% 58%, #ffe9a0, transparent 70%),
    radial-gradient(circle 2px at 86% 62%, #fff, transparent 70%), radial-gradient(circle 2px at 12% 80%, #fff7c8, transparent 70%);
  animation: twinkle 2.8s ease-in-out infinite; }
.trophy.gold .trophy-in { animation: goldPulse 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes goldPulse { 0%, 100% { box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 22px var(--glow); } 50% { box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 46px rgba(255, 200, 60, .75); } }
/* perak: garis kilap logam melintas berkala */
.trophy.silver .t-photo::before { content: ''; position: absolute; top: -10%; bottom: -10%; width: 38%; left: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: translateX(-160%) skewX(-18deg); animation: silverShine 5.5s ease-in-out infinite; }
@keyframes silverShine { 0% { transform: translateX(-160%) skewX(-18deg); } 38%, 100% { transform: translateX(380%) skewX(-18deg); } }
/* perunggu: cahaya hangat berdenyut */
.trophy.bronze .trophy-in { animation: ember 4.2s ease-in-out infinite alternate; }
@keyframes ember { from { box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 20px rgba(205,127,50,.35); } to { box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 40px rgba(240,150,60,.65); } }

@media (prefers-reduced-motion: reduce) {
  .trophy-in, .trophy.gold .trophy-in, .trophy.bronze .trophy-in, .t-holo, .trophy.gold .trophy-in::before, .trophy.silver .t-photo::before { animation: none !important; transition: none; transform: none; }
  .t-photo img { transition: none; }
}
@media (max-width: 640px) { .trophy-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; } }
