/* ───────────── ✦ YEON ✦ web portal ───────────── */
@font-face { font-family: "Pixeloid"; src: url("/static/fonts/PixeloidSans-nR3g1.ttf") format("truetype"); font-display: swap; }

:root {
  --cream: #FFF9E8; --cream-2: #FFF3CF; --lemon: #FFE66D; --lemon-deep: #F6C945; --amber: #E8A317;
  --peach: #FFC9B5; --pink: #FFB7D5; --berry: #D6457A; --mint: #BDF0DC; --mint-deep: #3FB58C; --sky: #BFE3FF; --lilac: #D9C8FF;
  --ink: #3B2F2F; --ink-soft: #7A6A60; --ink-faint: #B3A598;
  --glass: rgba(255,255,255,.66); --glass-strong: rgba(255,255,255,.86); --line: rgba(246,201,69,.35);
  --shadow: 0 10px 30px -10px rgba(214,150,40,.35), 0 2px 6px rgba(120,80,20,.05);
  --shadow-lg: 0 24px 60px -18px rgba(214,100,120,.35), 0 4px 12px rgba(120,80,20,.06);
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.55; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--lemon); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.px { font-family: "Pixeloid", var(--font-body); letter-spacing: .04em; }

/* ── animated backdrop ── */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(1200px 700px at 12% -10%, #FFF1A8 0%, transparent 60%), radial-gradient(900px 600px at 100% 10%, #FFD6E6 0%, transparent 55%),
              radial-gradient(900px 700px at 50% 110%, #CFF3E5 0%, transparent 55%), var(--cream); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.blob.b1 { width: 420px; height: 420px; background: #FFE66D; top: -120px; left: -80px; }
.blob.b2 { width: 360px; height: 360px; background: #FFB7D5; top: 30%; right: -100px; animation-duration: 28s; animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; background: #BFE3FF; bottom: -140px; left: 25%; animation-duration: 32s; animation-delay: -12s; opacity: .45; }
.blob.b4 { width: 260px; height: 260px; background: #D9C8FF; top: 55%; left: -90px; animation-duration: 26s; opacity: .4; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.15); } }
#fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
#confetti { position: fixed; inset: 0; z-index: 200; pointer-events: none; }

/* ── nav ── */
.nav-wrap { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.nav { max-width: 1180px; margin: 14px auto 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 18px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1.5px solid rgba(255,255,255,.9); border-radius: 999px; box-shadow: var(--shadow); animation: dropIn .8s var(--ease) both; }
@keyframes dropIn { from { transform: translateY(-40px); opacity: 0; } }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo .sun { display: inline-block; animation: spin 14s linear infinite; filter: drop-shadow(0 2px 6px rgba(246,201,69,.8)); }
.logo b { background: linear-gradient(90deg, #E8A317, #D6457A); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 2px; margin-left: 10px; flex: 1; }
.nav-links a { position: relative; padding: 9px 11px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-soft); transition: .25s var(--ease); display: flex; gap: 6px; align-items: center; }
.nav-links a:hover { color: var(--ink); background: rgba(255,230,109,.45); transform: translateY(-2px); }
.nav-links a.on { color: var(--ink); background: linear-gradient(135deg, var(--lemon), #FFD3A5); box-shadow: 0 6px 14px -6px rgba(232,163,23,.7); }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user img { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.nav-user .coin-pill { display: none; }
.burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

main { max-width: 1180px; margin: 0 auto; padding: 34px 20px 90px; }
.page-head { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); }
.page-head h1 em { font-style: normal; background: linear-gradient(90deg, #F6A800, #FF6FA5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--ink-soft); margin-top: 6px; font-weight: 600; }
.eyebrow { font-family: "Pixeloid", var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 8px; }

/* ── reveal ── */
.rv { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }

/* ── glass panels ── */
.panel { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1.5px solid rgba(255,255,255,.95);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); position: relative; }
.panel h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.panel h2 small { font-family: var(--font-body); font-size: 13px; font-weight: 800; color: var(--amber); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ── hero ── */
.hero { position: relative; overflow: hidden; border-radius: 36px; padding: 34px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, #FFF0A8 0%, #FFD6E6 55%, #D9F4FF 100%); background-size: 200% 200%; animation: sheen 14s ease infinite;
  border: 2px solid #fff; box-shadow: var(--shadow-lg); margin-bottom: 26px; }
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero::before, .hero::after { content: "🍋"; position: absolute; font-size: 90px; opacity: .16; transform: rotate(-18deg); pointer-events: none; }
.hero::before { right: 6%; top: -14px; animation: float 7s ease-in-out infinite; }
.hero::after { content: "🌸"; right: 22%; bottom: -20px; font-size: 70px; animation: float 9s ease-in-out -3s infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-18deg); } 50% { transform: translateY(-14px) rotate(-8deg); } }
.avatar-ring { position: relative; width: 112px; height: 112px; border-radius: 50%; padding: 5px; flex: none;
  background: conic-gradient(from 0deg, #FFE66D, #FFB7D5, #BFE3FF, #BDF0DC, #FFE66D); animation: spin 8s linear infinite; }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; object-fit: cover; animation: spin 8s linear infinite reverse; }
.hero h1 { font-size: clamp(28px, 4.4vw, 42px); }
.hero .sub { color: #8A5A5A; font-weight: 700; margin-top: 4px; }
.hero .bio { margin-top: 10px; max-width: 520px; color: var(--ink-soft); font-weight: 600; font-style: italic; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.85); border: 1.5px solid #fff; box-shadow: 0 3px 10px -4px rgba(0,0,0,.12); }
.badge.lemon { background: var(--lemon); } .badge.pink { background: var(--pink); } .badge.mint { background: var(--mint); } .badge.sky { background: var(--sky); } .badge.red { background: #FFC4C4; }

/* ── stat tiles ── */
.stat { padding: 20px 22px; border-radius: var(--r-md); background: var(--glass-strong); border: 1.5px solid #fff; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .3s; }
.stat:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.stat::after { content: attr(data-emoji); position: absolute; right: 12px; bottom: -8px; font-size: 62px; opacity: .17; transition: .4s var(--ease); }
.stat:hover::after { transform: scale(1.2) rotate(-12deg); opacity: .28; }
.stat label { font-family: "Pixeloid", var(--font-body); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.stat .v { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.stat .v small { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.stat.y { background: linear-gradient(160deg, #FFF6C0, #fff); } .stat.p { background: linear-gradient(160deg, #FFE3EF, #fff); }
.stat.m { background: linear-gradient(160deg, #DDF8EE, #fff); } .stat.s { background: linear-gradient(160deg, #DDF0FF, #fff); } .stat.l { background: linear-gradient(160deg, #EEE5FF, #fff); }

/* ── buttons ── */
.btn { --c1: var(--lemon); --c2: #FFC857; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 999px;
  font-weight: 900; font-size: 14px; cursor: pointer; color: var(--ink); background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 18px -8px rgba(232,163,23,.9), inset 0 -3px 0 rgba(0,0,0,.07), inset 0 2px 0 rgba(255,255,255,.7); transition: transform .25s var(--ease), box-shadow .25s, filter .2s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-3px) scale(1.04); filter: saturate(1.15); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::before { transform: translateX(120%); transition: transform .7s; }
.btn.pink { --c1: #FFC2DC; --c2: #FF8FBF; box-shadow: 0 8px 18px -8px rgba(214,69,122,.7), inset 0 -3px 0 rgba(0,0,0,.07), inset 0 2px 0 rgba(255,255,255,.6); }
.btn.mint { --c1: #C9F5E3; --c2: #8BE0BF; box-shadow: 0 8px 18px -8px rgba(63,181,140,.7), inset 0 -3px 0 rgba(0,0,0,.06), inset 0 2px 0 rgba(255,255,255,.6); }
.btn.ghost { background: rgba(255,255,255,.8); box-shadow: 0 4px 12px -6px rgba(0,0,0,.2); border: 1.5px solid var(--line); }
.btn.danger { --c1: #FFB4B4; --c2: #FF7C8A; }
.btn.sm { padding: 7px 14px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn.loading { pointer-events: none; opacity: .7; } .btn.loading::after { content: ""; width: 14px; height: 14px; border: 2.5px solid rgba(0,0,0,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }

/* ── forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 900; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.input, select.input { background: rgba(255,255,255,.9); border: 2px solid transparent; outline: 0; border-radius: 14px; padding: 11px 15px; font-weight: 700; box-shadow: inset 0 2px 6px rgba(120,80,20,.08), 0 0 0 1.5px var(--line); transition: .25s; min-width: 0; }
.input:focus { box-shadow: 0 0 0 3px #FFE66D, 0 8px 20px -10px rgba(232,163,23,.8); transform: translateY(-1px); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.filters .field { flex: 1 1 150px; } .filters .field.grow { flex: 3 1 240px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 15px; border-radius: 999px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.8); border: 1.5px solid var(--line); transition: .25s var(--ease); cursor: pointer; }
.chip:hover { transform: translateY(-2px) rotate(-1deg); background: var(--lemon); }
.chip.on { background: linear-gradient(135deg, var(--lemon), #FFC8A8); border-color: transparent; box-shadow: 0 6px 14px -6px rgba(232,163,23,.8); }

/* ── photocards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px; perspective: 1200px; }
.pc { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: block; border-radius: 18px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out, box-shadow .3s; box-shadow: 0 12px 24px -12px rgba(90,50,20,.5); }
.pc.tilting { transition: transform .06s linear; }
.pc-frame { position: relative; border-radius: 18px; padding: 6px; background: linear-gradient(145deg, #fff, #FFF0B8); overflow: hidden; aspect-ratio: 2/3; }
.pc-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; background: var(--cream-2); }
.pc-frame::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.75), transparent 46%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s; }
.pc:hover .pc-frame::after { opacity: 1; }
.pc:hover { box-shadow: 0 30px 50px -18px rgba(214,69,122,.5); z-index: 3; }
.pc-info { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
  transform: translateZ(30px) translateY(6px); opacity: 0; transition: .3s var(--ease); }
.pc:hover .pc-info { opacity: 1; transform: translateZ(30px); }
.pc-info b { display: block; font-family: var(--font-display); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-info span { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.pc-count { position: absolute; top: -8px; right: -8px; z-index: 4; background: var(--berry); color: #fff; font-weight: 900; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 2.5px solid #fff; transform: translateZ(40px); box-shadow: 0 4px 10px rgba(214,69,122,.5); }
.pc-code { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: "Pixeloid", var(--font-body); font-size: 10px; padding: 3px 7px; border-radius: 8px; background: rgba(255,255,255,.85); }
.pc-stars { position: absolute; top: 36px; left: 12px; z-index: 2; font-size: 11px; letter-spacing: -2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.pc.r1 .pc-frame { background: linear-gradient(145deg, #fff, #EDE6D6); }
.pc.r2 .pc-frame { background: linear-gradient(145deg, #fff, #BDF0DC); }
.pc.r3 .pc-frame { background: linear-gradient(145deg, #fff, #BFE3FF); box-shadow: inset 0 0 0 2px rgba(120,190,255,.5); }
.pc.r4 .pc-frame { background: linear-gradient(145deg, #FFD6E6, #D9C8FF); box-shadow: inset 0 0 0 2px rgba(214,150,255,.6); }
.pc.r5 .pc-frame { background: linear-gradient(145deg, #FFF0A8, #FFB7D5, #BFE3FF); box-shadow: inset 0 0 0 2px rgba(255,200,60,.8); }
.pc.r4, .pc.r5 { box-shadow: 0 12px 30px -10px rgba(214,100,255,.55); }
.pc.r5 { animation: glowpulse 3.4s ease-in-out infinite; }
@keyframes glowpulse { 50% { box-shadow: 0 16px 40px -8px rgba(255,190,40,.85); } }
.pc.r4 .pc-frame::before, .pc.r5 .pc-frame::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 18px; opacity: .45; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 20%, rgba(255,120,200,.6) 35%, rgba(120,220,255,.6) 50%, rgba(255,240,120,.6) 65%, transparent 80%); background-size: 250% 250%; background-position: var(--mx) var(--my); }
.empty { text-align: center; padding: 54px 20px; border: 2.5px dashed var(--lemon-deep); border-radius: var(--r-lg); background: rgba(255,255,255,.5); color: var(--ink-soft); font-weight: 700; }
.empty .big { font-size: 56px; display: block; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(6deg); } }

/* ── card detail ── */
.detail { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; justify-items: center; } }
.detail .pc { width: min(100%, 360px); }
.detail .pc-frame { padding: 10px; border-radius: 26px; } .detail .pc-frame img { border-radius: 18px; }
.facts { display: grid; gap: 10px; margin: 18px 0 22px; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-radius: 16px; background: rgba(255,255,255,.8); border: 1.5px solid #fff; font-weight: 800; box-shadow: 0 4px 12px -8px rgba(0,0,0,.2); }
.fact span:first-child { color: var(--ink-soft); font-weight: 700; }

/* ── progress & rings ── */
.bar { height: 12px; border-radius: 999px; background: rgba(0,0,0,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; width: 0; background: linear-gradient(90deg, #FFD83D, #FF9ECB, #FFD83D); background-size: 200% 100%; animation: flow 3s linear infinite; transition: width 1.4s cubic-bezier(.2,.9,.2,1); }
@keyframes flow { to { background-position: -200% 0; } }

.oven { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.8); border: 1.5px solid #fff; margin-bottom: 10px; }
.oven .dish { font-size: 30px; } .oven .nm { font-weight: 900; } .oven .tm { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.oven .tm b { font-family: "Pixeloid", var(--font-body); color: var(--berry); }
.oven.ready { background: linear-gradient(135deg, #DDF8EE, #fff); animation: readyPulse 1.8s ease-in-out infinite; }
@keyframes readyPulse { 50% { box-shadow: 0 0 0 6px rgba(63,181,140,.18); } }
.oven.empty-slot { border-style: dashed; border-color: var(--line); background: rgba(255,255,255,.4); color: var(--ink-faint); font-weight: 800; }
.ring { --p: 0; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 26px;
  background: conic-gradient(var(--mint-deep) calc(var(--p) * 1%), rgba(0,0,0,.08) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring span { position: relative; }

/* ── kitchen ── */
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.recipe { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.82); border: 1.5px solid #fff; box-shadow: var(--shadow); transition: .35s var(--ease); display: flex; flex-direction: column; gap: 10px; }
.recipe:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.recipe h3 { font-size: 17px; } .recipe .meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.reqs { display: flex; flex-wrap: wrap; gap: 6px; }
.req { font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: #FFF6C0; } .req.lack { background: #FFD6D6; color: #B02A3C; }
.recipe .row { display: flex; gap: 8px; margin-top: auto; }
.pantry { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ing { padding: 12px 8px; text-align: center; border-radius: 16px; background: rgba(255,255,255,.8); border: 1.5px solid #fff; transition: .3s var(--ease); }
.ing:hover { transform: translateY(-4px) scale(1.05); } .ing .e { font-size: 26px; display: block; } .ing b { font-family: var(--font-display); font-size: 20px; } .ing small { display: block; font-size: 10px; font-weight: 800; color: var(--ink-soft); text-transform: capitalize; }
.qty { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--line); }
.qty button { width: 26px; height: 26px; border: 0; background: none; font-weight: 900; cursor: pointer; border-radius: 50%; } .qty button:hover { background: var(--lemon); }
.qty span { min-width: 20px; text-align: center; font-weight: 900; font-size: 13px; }

/* ── leaderboard ── */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 26px; }
.pod { text-align: center; padding: 22px 12px 18px; border-radius: 26px 26px 14px 14px; background: var(--glass-strong); border: 1.5px solid #fff; box-shadow: var(--shadow); position: relative; transition: .4s var(--ease); }
.pod:hover { transform: translateY(-8px); }
.pod img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.pod .medal { font-size: 34px; display: block; animation: bob 3.4s ease-in-out infinite; }
.pod.first { padding-top: 34px; background: linear-gradient(170deg, #FFF3B0, #fff); box-shadow: 0 20px 44px -16px rgba(246,168,0,.7); } .pod.first img { width: 92px; height: 92px; }
.pod.second { background: linear-gradient(170deg, #E9EEF5, #fff); } .pod.third { background: linear-gradient(170deg, #FFE2CF, #fff); }
.pod b { display: block; font-family: var(--font-display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pod .n { font-weight: 900; color: var(--berry); }
.rank { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 18px; background: rgba(255,255,255,.75); border: 1.5px solid #fff; margin-bottom: 8px; transition: .3s var(--ease); }
.rank:hover { transform: translateX(8px); background: #fff; }
.rank .pos { width: 34px; font-family: "Pixeloid", var(--font-body); color: var(--ink-faint); } .rank img { width: 38px; height: 38px; border-radius: 50%; }
.rank .nm { flex: 1; font-weight: 900; } .rank .ct { font-weight: 900; color: var(--amber); }
.rank.me { background: linear-gradient(90deg, #FFF3B0, #fff); outline: 2px solid var(--lemon-deep); }

/* ── tables (admin) ── */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 0 14px; }
.tbl td { padding: 11px 14px; background: rgba(255,255,255,.8); font-weight: 700; vertical-align: middle; }
.tbl td:first-child { border-radius: 14px 0 0 14px; } .tbl td:last-child { border-radius: 0 14px 14px 0; }
.tbl tr { transition: .25s; } .tbl tbody tr:hover td { background: #fff; }
.who { display: flex; align-items: center; gap: 10px; } .who img { width: 32px; height: 32px; border-radius: 50%; }
.thumb { width: 38px; height: 54px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,.15); }
.scroll-x { overflow-x: auto; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--mint-deep); box-shadow: 0 0 0 0 rgba(63,181,140,.6); animation: ping 2s infinite; } .status-dot.off { background: #E5484D; animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(63,181,140,0); } 100% { box-shadow: 0 0 0 0 rgba(63,181,140,0); } }
.grant-row { display: grid; grid-template-columns: 1fr 90px; gap: 10px; margin-bottom: 10px; }
.notice { padding: 12px 16px; border-radius: 14px; background: #FFF0C2; border: 1.5px solid var(--lemon-deep); font-weight: 700; font-size: 14px; }

/* ── timers page ── */
.cd { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.8); border: 1.5px solid #fff; box-shadow: var(--shadow); transition: .35s var(--ease); }
.cd:hover { transform: translateY(-5px); } .cd .em { font-size: 32px; } .cd .nm { font-weight: 900; } .cd .st { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.cd.ready .st { color: var(--mint-deep); } .cd .bar { margin-top: 8px; } .cd > div:nth-child(2) { flex: 1; }

/* ── login ── */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(440px, 100%); text-align: center; padding: 46px 34px; border-radius: 40px; background: var(--glass-strong); backdrop-filter: blur(20px); border: 2px solid #fff; box-shadow: var(--shadow-lg); animation: pop 1s var(--ease) both; position: relative; }
@keyframes pop { from { transform: scale(.8) translateY(40px); opacity: 0; } }
.login .big { font-size: 74px; display: inline-block; animation: wiggle 3.5s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(246,201,69,.8)); }
@keyframes wiggle { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(10deg) scale(1.1); } }
.login h1 { font-size: 40px; margin: 10px 0 6px; } .login p { color: var(--ink-soft); font-weight: 700; margin-bottom: 26px; }
.btn.discord { --c1: #8EA1FF; --c2: #5865F2; color: #fff; padding: 15px 30px; font-size: 16px; box-shadow: 0 12px 26px -10px rgba(88,101,242,.8), inset 0 2px 0 rgba(255,255,255,.35); }
.err { background: #FFD6D6; color: #9A2335; padding: 10px 14px; border-radius: 14px; font-weight: 800; margin-bottom: 18px; font-size: 14px; }

/* ── error ── */
.err-page { text-align: center; padding: 70px 0; } .err-page .code { font-family: var(--font-display); font-size: clamp(90px, 20vw, 170px); font-weight: 700; line-height: 1; background: linear-gradient(90deg, #F6A800, #FF6FA5, #8EC5FF); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bob 4s ease-in-out infinite; }

/* ── toasts ── */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { pointer-events: auto; padding: 13px 22px; border-radius: 999px; font-weight: 900; background: #fff; box-shadow: var(--shadow-lg); border: 2px solid var(--lemon); animation: toastIn .55s var(--ease) both; max-width: 520px; text-align: center; }
.toast.err { border-color: #FF8FA0; } .toast.ok { border-color: var(--mint-deep); } .toast.out { animation: toastOut .35s ease forwards; }
@keyframes toastIn { from { transform: translateY(60px) scale(.8); opacity: 0; } } @keyframes toastOut { to { transform: translateY(30px); opacity: 0; } }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 34px; align-items: center; font-weight: 900; }
.foot { text-align: center; color: var(--ink-faint); font-weight: 800; font-size: 13px; padding: 20px; }
.row-flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt { margin-top: 22px; } .mb { margin-bottom: 22px; } .muted { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 860px) {
  .burger { display: block; margin-left: auto; }
  .nav { border-radius: 28px; flex-wrap: wrap; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; margin: 8px 0 0; order: 5; } .nav.open .nav-links { display: flex; animation: dropIn .4s var(--ease); }
  .nav-user { order: 2; } .podium { grid-template-columns: 1fr; } .pod.first { order: -1; }
  .hero { padding: 24px; } .tbl { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } .rv { opacity: 1; transform: none; } #fx { display: none; } }
@media (max-width: 560px) { .grid.g3 { grid-template-columns: 1fr 1fr; } .stat { padding: 16px; } .stat .v { font-size: 26px; } main { padding-top: 22px; } }

/* ── drop ── */
.drop-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); gap: 28px; justify-content: center; perspective: 1400px; margin-top: 10px; }
.drop-timer { max-width: 520px; margin: 0 auto 26px; display: flex; gap: 14px; align-items: center; } .drop-timer .bar { flex: 1; } .drop-timer .bar i { width: 100%; transition: width 1s linear; animation: none; background: linear-gradient(90deg, #FF9ECB, #FFD83D); }
.flip { position: relative; aspect-ratio: 2/3; cursor: pointer; transform-style: preserve-3d; transition: transform .9s var(--ease); animation: dealIn .8s var(--ease) both; animation-delay: calc(var(--i) * 140ms); }
@keyframes dealIn { from { opacity: 0; transform: translateY(-60px) rotate(-12deg) scale(.7); } }
.flip.open { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; }
.flip .back { display: grid; place-items: center; font-size: 76px; background: repeating-linear-gradient(45deg, #FFF0A8 0 14px, #FFE066 14px 28px); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.flip .back::after { content: "🍋"; animation: bob 2.6s ease-in-out infinite; }
.flip .front { transform: rotateY(180deg); }
.flip .front .pc { height: 100%; } .flip .front .pc-frame { height: 100%; aspect-ratio: auto; }
.flip.open:not(.done):hover { transform: rotateY(180deg) translateZ(30px) scale(1.04); }
.flip .front .pc-info { opacity: 1; transform: none; }
.flip.dim { filter: grayscale(.8) brightness(.9); opacity: .55; pointer-events: none; }
.flip.won .front .pc { animation: glowpulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 5px #FFE66D, 0 20px 50px -10px rgba(255,190,40,.9); }
.flip .claimtag { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%) rotateY(180deg); z-index: 6; white-space: nowrap; }
.flip.rare-3 .front .pc { box-shadow: 0 0 40px 6px rgba(120,190,255,.7); } .flip.rare-4 .front .pc, .flip.rare-5 .front .pc { box-shadow: 0 0 55px 10px rgba(255,150,230,.8); }

/* ── fusion picker ── */
.fuse-bar { position: sticky; top: 92px; z-index: 20; padding: 16px 20px; }
.pick { border: 0; background: none; cursor: pointer; padding: 0; text-align: left; transition: transform .25s var(--ease), box-shadow .3s; }
.pick:hover { transform: translateY(-5px) rotate(-1deg); }
.pick .tick { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-deep); color: #fff; font-weight: 900; transform: scale(0); transition: transform .35s var(--ease); z-index: 5; box-shadow: 0 4px 10px rgba(63,181,140,.6); }
.pick.sel { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 0 4px var(--mint-deep), 0 22px 40px -14px rgba(63,181,140,.7); } .pick.sel .tick { transform: scale(1); }
.pick.sel .pc-frame img { filter: saturate(1.15) brightness(1.05); }

/* ── fusion animation ── */
.fuse-ov { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(59,34,60,.86), rgba(20,10,30,.95)); opacity: 0; transition: opacity .5s; overflow: hidden; }
.fuse-ov.show { opacity: 1; }
.fuse-stage { position: relative; width: 0; height: 0; }
.orbit { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: transform 1.9s cubic-bezier(.55,0,.25,1); }
.fz { position: absolute; left: 0; top: 0; width: 84px; height: 124px; border-radius: 12px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 22px rgba(255,230,109,.8); background: #fff; opacity: 0; transition: transform 1.9s cubic-bezier(.55,0,.25,1), opacity .5s, filter 1.9s; }
.fz img { width: 100%; height: 100%; object-fit: cover; }
.fz.in { opacity: 1; }
.core { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--lemon) 35%, rgba(255,150,200,.0) 70%); transform: scale(0); opacity: 0; }
.core.grow { animation: coreGrow 1.5s ease-in forwards; }
@keyframes coreGrow { 0% { transform: scale(.1); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(2.6); opacity: 1; } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flashGo .9s ease-out forwards; } @keyframes flashGo { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.rays { position: absolute; left: -400px; top: -400px; width: 800px; height: 800px; border-radius: 50%; opacity: 0; background: repeating-conic-gradient(from 0deg, rgba(255,230,109,.55) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 5%, transparent 68%); mask: radial-gradient(circle, #000 5%, transparent 68%); }
.rays.go { animation: raysGo 6s linear infinite, raysIn 1s ease-out forwards; } @keyframes raysGo { to { transform: rotate(360deg); } } @keyframes raysIn { to { opacity: 1; } }
.result { position: absolute; left: 50%; top: 50%; width: min(260px, 62vw); aspect-ratio: 2/3; transform: translate(-50%, -50%) rotateY(90deg) scale(.4); opacity: 0; transition: transform 1s var(--ease), opacity .4s; perspective: 1000px; }
.result.go { transform: translate(-50%, -52%) rotateY(0) scale(1); opacity: 1; }
.result .pc { height: 100%; } .result .pc-frame { height: 100%; aspect-ratio: auto; } .result .pc-info { opacity: 1; transform: none; }
.fuse-text { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; color: #fff; font-family: var(--font-display); }
.fuse-text h2 { font-size: clamp(24px, 5vw, 38px); text-shadow: 0 4px 20px rgba(255,200,60,.9); opacity: 0; transform: translateY(20px); transition: .7s var(--ease); } .fuse-text h2.go { opacity: 1; transform: none; }
.fuse-text .st { font-size: 34px; letter-spacing: 6px; min-height: 44px; } .fuse-text .st span { display: inline-block; animation: starPop .6s var(--ease) both; } @keyframes starPop { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.fuse-text .btn { margin-top: 14px; }
.fuse-shake { animation: shake .5s linear infinite; } @keyframes shake { 25% { transform: translate(3px, -2px) rotate(.4deg); } 75% { transform: translate(-3px, 2px) rotate(-.4deg); } }
.drop-timer[hidden] { display: none; }
