@font-face { font-family: "Nunito"; src: url("/fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #15263d;
  --ink-2: #33455f;
  --muted: #61718c;
  --faint: #8896ad;
  --line: #e5ecf5;
  --line-2: #edf2f9;
  --card: #ffffff;
  --bg: #eaf3fc;
  --bg-2: #f4f9ff;
  --sky: #2f9bf0;
  --sky-2: #57b4ff;
  --sky-ink: #0b3a63;
  --green: #34c77b;
  --green-2: #58d98f;
  --gold: #f5a623;
  --danger: #ef5a6a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 26px rgba(28, 74, 138, 0.08);
  --shadow-lg: 0 18px 44px rgba(28, 74, 138, 0.14);
  --ring: 0 0 0 4px rgba(47, 155, 240, 0.16);
  --r-common: #9aa6b6;
  --r-uncommon: #35c06a;
  --r-rare: #2f7fe6;
  --r-epic: #9a4ee6;
  --r-legendary: #e8a213;
  --r-mythic: #e64d59;
  --r-godly: #e8720f;
  --r-omnipotent: #10b3ac;
  --r-celestial: #e05bb0;
  --r-universal: #2fa8c6;
  --r-multiversal: #e0348c;
  --r-divine: #c9a11a;
  --r-glitched: #43b62f;
  --r-eternal: #e02d2d;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 82% -8%, rgba(87, 180, 255, 0.22), transparent 60%),
    radial-gradient(900px 460px at 8% 4%, rgba(52, 199, 123, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex: none; stroke-width: 2.4; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(244, 249, 255, 0.75); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(28, 74, 138, 0.06); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { border-radius: 12px; box-shadow: var(--shadow); }
.brand b { color: var(--sky); }
.links { display: flex; gap: 4px; margin-left: 6px; }
.links a { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; color: var(--ink-2); font-weight: 800; font-size: 14.5px; transition: background 0.15s, color 0.15s, transform 0.08s; }
.links a:hover { color: var(--sky-ink); background: #ffffff; box-shadow: var(--shadow); }
.links a:active { transform: translateY(1px); }
.links svg { width: 17px; height: 17px; }
.navauth { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 13px; font-weight: 800; font-size: 14.5px; border: none; cursor: pointer; transition: transform 0.09s, box-shadow 0.16s, filter 0.16s; white-space: nowrap; font-family: inherit; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(180deg, var(--sky-2), var(--sky)); color: #fff; box-shadow: 0 8px 18px rgba(47, 155, 240, 0.32); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(47, 155, 240, 0.42); }
.btn-green { background: linear-gradient(180deg, var(--green-2), var(--green)); color: #fff; box-shadow: 0 8px 18px rgba(52, 199, 123, 0.32); }
.btn-green:hover { filter: brightness(1.04); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #d3deec, var(--shadow-lg); }
.btn-danger { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(239, 90, 106, 0.35); }
.btn-danger:hover { background: #fff5f6; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: 14px; }
.iconbtn { display: inline-flex; padding: 9px; border-radius: 11px; color: var(--muted); }
.iconbtn:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.usermenu { display: flex; align-items: center; gap: 9px; padding: 5px 7px 5px 5px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.avatar { border-radius: 50%; background: var(--line-2); object-fit: cover; }
.uname { font-weight: 800; font-size: 14px; }
.urole { font-size: 11px; color: #fff; background: linear-gradient(180deg, var(--sky-2), var(--sky)); padding: 3px 9px; border-radius: 20px; font-weight: 800; }

main { padding: 40px 0 70px; min-height: 62vh; }

.hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 36px; align-items: center; padding: 24px 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--sky-ink); font-weight: 800; font-size: 13px; background: rgba(47, 155, 240, 0.12); padding: 7px 14px; border-radius: 30px; }
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { font-size: 52px; line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 14px; font-weight: 900; }
.hero h1 .grad { background: linear-gradient(120deg, var(--sky), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy p { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 0 24px; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .halo { position: absolute; inset: 6% 12%; background: radial-gradient(circle, rgba(47, 155, 240, 0.35), transparent 70%); filter: blur(24px); }
.hero-art img { position: relative; width: 100%; max-width: 260px; border-radius: 34px; background: #fff; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

.stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.stat-ic { display: inline-flex; padding: 9px; border-radius: 12px; background: rgba(47, 155, 240, 0.12); color: var(--sky); }
.stat-ic.g { background: rgba(52, 199, 123, 0.14); color: var(--green); }
.stat-ic.y { background: rgba(245, 166, 35, 0.16); color: var(--gold); }
.stat strong { display: block; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.stat em { font-style: normal; color: var(--faint); font-size: 12.5px; font-weight: 700; }

.shout { display: flex; align-items: center; gap: 13px; background: #fff; border-radius: 16px; padding: 15px 20px; margin: 6px 0 30px; box-shadow: var(--shadow); border-left: 4px solid var(--green); }
.shout svg { color: var(--green); }
.shout p { margin: 0; color: var(--ink-2); font-weight: 700; }

.section { margin-top: 46px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.025em; margin: 0; font-weight: 900; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.seeall { display: inline-flex; align-items: center; gap: 6px; color: var(--sky); font-weight: 800; font-size: 14.5px; }
.seeall:hover { color: var(--sky-ink); }
.seeall svg { width: 16px; height: 16px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-size: 38px; letter-spacing: -0.03em; margin: 0 0 4px; font-weight: 900; }
.page-head p { color: var(--muted); margin: 0; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }

.pcard { position: relative; background: var(--card); border-radius: var(--radius); padding: 16px 15px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow); transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s; overflow: hidden; }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rc); }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard-top { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.rank { font-size: 11.5px; color: var(--faint); font-weight: 800; }
.exist { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--sky-ink); background: rgba(47, 155, 240, 0.1); padding: 2px 8px; border-radius: 20px; }
.exist svg { width: 12px; height: 12px; stroke-width: 2.6; }
.pcard-img { width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; margin: 12px 0 12px; filter: drop-shadow(0 8px 14px rgba(28, 74, 138, 0.18)); transition: transform 0.16s; }
.pcard:hover .pcard-img { transform: scale(1.06) rotate(-2deg); }
.pcard-img img { width: 104px; height: 104px; object-fit: contain; }
.pcard h3 { font-size: 16px; margin: 0 0 9px; letter-spacing: -0.01em; font-weight: 800; }
.rchip { font-size: 11px; font-weight: 800; color: color-mix(in srgb, var(--rc) 62%, var(--ink)); background: color-mix(in srgb, var(--rc) 14%, #fff); padding: 4px 11px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.pstats { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); font-weight: 800; }
.pstats .pval { display: inline-flex; align-items: center; gap: 5px; color: #b7791f; }
.pstats .coinic { display: inline-flex; }
.pstats .coinic svg { width: 15px; height: 15px; color: #eaa50c; stroke-width: 2.2; }
.pcard[hidden] { display: none !important; }

.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.searchbox { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 14px; padding: 0 15px; height: 46px; min-width: 250px; color: var(--faint); box-shadow: var(--shadow); transition: box-shadow 0.16s; }
.searchbox:focus-within { box-shadow: var(--shadow), var(--ring); }
.searchbox input { background: none; border: none; outline: none; color: var(--ink); font-size: 15px; width: 100%; height: 100%; font-family: inherit; font-weight: 700; }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { background: #fff; color: var(--ink-2); padding: 8px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.1s, color 0.14s; font-family: inherit; }
.fchip:hover { transform: translateY(-1px); }
.fchip.active { color: #fff; background: linear-gradient(180deg, var(--sky-2), var(--sky)); }
.fchip[style].active { color: #fff; background: var(--rc); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-weight: 700; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.postcard { position: relative; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform 0.14s, box-shadow 0.16s; }
.postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.postcard h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; font-weight: 800; }
.excerpt { color: var(--muted); margin: 0 0 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.postmeta { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; font-weight: 700; }
.postmeta.big { font-size: 14px; margin: 14px 0 22px; color: var(--muted); }
.rolepill { color: #fff; background: linear-gradient(180deg, var(--sky-2), var(--sky)); padding: 3px 9px; border-radius: 20px; font-weight: 800; font-size: 12px; }
.draft { display: inline-block; font-size: 11px; font-weight: 800; color: var(--gold); background: rgba(245, 166, 35, 0.14); padding: 3px 9px; border-radius: 20px; margin-bottom: 8px; }

.post { max-width: 780px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 34px 40px 42px; box-shadow: var(--shadow); }
.back { color: var(--muted); font-weight: 800; font-size: 14px; }
.post h1 { font-size: 38px; letter-spacing: -0.03em; margin: 14px 0 6px; line-height: 1.08; font-weight: 900; }
.postctl { display: flex; gap: 10px; margin-bottom: 26px; }
.content { font-size: 17px; line-height: 1.75; color: var(--ink-2); font-weight: 600; }
.content h2 { font-size: 25px; margin: 32px 0 12px; letter-spacing: -0.02em; font-weight: 900; color: var(--ink); }
.content h3 { font-size: 20px; margin: 26px 0 10px; font-weight: 800; color: var(--ink); }
.content p { margin: 0 0 18px; }
.content a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.content img { max-width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.content ul, .content ol { padding-left: 22px; margin: 0 0 18px; }
.content li { margin: 6px 0; }
.content blockquote { margin: 0 0 18px; padding: 6px 18px; border-left: 4px solid var(--sky); color: var(--muted); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.content code { background: var(--line-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.content pre { background: #0f1b2d; color: #d6e2f2; padding: 16px; border-radius: 14px; overflow-x: auto; }
.content pre code { background: none; padding: 0; color: inherit; }
.content hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

.editor { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; background: #fff; border-radius: 22px; padding: 30px 34px; box-shadow: var(--shadow); }
.editor label { display: flex; flex-direction: column; gap: 7px; font-weight: 800; font-size: 14px; }
.editor .hint { color: var(--faint); font-weight: 600; font-size: 12.5px; }
.editor input, .editor textarea { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-size: 15px; font-family: inherit; font-weight: 600; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.editor input:focus, .editor textarea:focus { border-color: var(--sky); box-shadow: var(--ring); }
.editor textarea { resize: vertical; line-height: 1.6; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.checkline { flex-direction: row !important; align-items: center; gap: 9px !important; }
.checkline input { width: 18px; height: 18px; accent-color: var(--sky); }
.editor-actions { display: flex; align-items: center; gap: 12px; }
.editmsg { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.editmsg.err { color: var(--danger); }
.editmsg.ok { color: var(--green); }

.empty-box { text-align: center; max-width: 480px; margin: 44px auto; background: #fff; border-radius: 22px; padding: 48px 34px; box-shadow: var(--shadow); }
.empty-box svg { width: 44px; height: 44px; color: var(--sky); margin-bottom: 14px; }
.empty-box h3 { margin: 0 0 8px; font-size: 23px; font-weight: 900; }
.empty-box p { color: var(--muted); margin: 0 0 22px; font-weight: 600; }

.reward-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.wheel-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wheel { position: relative; width: 260px; height: 260px; border-radius: 50%; box-shadow: var(--shadow-lg), inset 0 0 0 8px #fff; transition: transform 4.2s cubic-bezier(0.16, 0.84, 0.28, 1); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 20px solid var(--sky); z-index: 3; filter: drop-shadow(0 3px 3px rgba(0,0,0,0.2)); }
.wheel-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; z-index: 2; color: var(--sky); }
.reward-result { min-height: 24px; font-weight: 800; color: var(--green); }
.reward-list { display: flex; flex-direction: column; gap: 12px; }
.reward-row { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.reward-row img { width: 44px; height: 44px; object-fit: contain; }

.exist { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--sky-ink); background: rgba(47, 155, 240, 0.12); padding: 2px 9px 2px 3px; border-radius: 20px; }
.pexist { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--sky-ink); background: rgba(47, 155, 240, 0.1); padding: 4px 13px 4px 4px; border-radius: 20px; }
.ebadge { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(180deg, var(--sky-2), var(--sky)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 2px 5px rgba(47, 155, 240, 0.35); flex: none; color: #fff; }
.exist .ebadge { width: 19px; height: 19px; }
.pexist .ebadge { width: 23px; height: 23px; }
.ebadge svg { width: 64%; height: 64%; stroke-width: 2.4; }

.login-banner { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.login-banner > svg { width: 26px; height: 26px; color: var(--sky); }
.login-banner strong { display: block; font-size: 16px; }
.login-banner span { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.login-banner .btn { margin-left: auto; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.game { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); transition: box-shadow 0.16s, transform 0.14s; overflow: hidden; }
.game::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gc, var(--sky)); }
.game:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.game-head { display: flex; gap: 13px; align-items: flex-start; }
.game-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 78%, #fff), var(--gc)); box-shadow: 0 7px 16px color-mix(in srgb, var(--gc) 42%, transparent); }
.game-ic svg { width: 23px; height: 23px; }
.game-head h3 { margin: 2px 0 3px; font-size: 18px; font-weight: 900; letter-spacing: -0.01em; }
.game-head p { margin: 0; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.game-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 176px; margin-top: 16px; padding: 16px; background: var(--bg-2); border-radius: 16px; }
.game-prizes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 14px 0 2px; }
.pz-label { font-size: 11px; color: var(--faint); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 2px; }
.pz { font-size: 10.5px; font-weight: 800; color: color-mix(in srgb, var(--rc) 60%, var(--ink)); background: color-mix(in srgb, var(--rc) 15%, #fff); padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.game-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.game-actions .btn { min-width: 100px; justify-content: center; }
.game-hint { color: var(--faint); font-weight: 700; font-size: 13px; }
.game-result { min-height: 20px; margin-top: 12px; text-align: center; font-weight: 800; font-size: 13.5px; color: var(--muted); }
.game-result.win { color: var(--green); }

.mini-wheel-wrap { position: relative; width: 150px; height: 150px; }
.mini-pointer { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid var(--sky); z-index: 3; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); }
.mini-wheel { width: 150px; height: 150px; border-radius: 50%; box-shadow: var(--shadow-lg), inset 0 0 0 6px #fff; transition: transform 4.2s cubic-bezier(0.16, 0.84, 0.28, 1); }
.mini-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; z-index: 2; color: var(--sky); }
.mini-hub svg { width: 18px; height: 18px; }

.coin { width: 108px; height: 108px; border-radius: 50%; background: linear-gradient(145deg, #ffe08a, var(--gold)); box-shadow: var(--shadow-lg), inset 0 -6px 12px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; color: #7a4d00; font-weight: 900; font-size: 26px; transition: transform 0.2s; }
.coin.flipping { animation: coinflip 0.7s ease-in-out; }
@keyframes coinflip { 0% { transform: rotateY(0); } 100% { transform: rotateY(1440deg); } }
.coin.heads { background: linear-gradient(145deg, #ffe08a, var(--gold)); }
.coin.tails { background: linear-gradient(145deg, #cfe0f5, #8fb4dd); color: #234; }

.die { width: 100px; height: 100px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--line); display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; color: var(--sky); }

.mcards { display: flex; gap: 12px; }
.mcard { width: 84px; height: 118px; border: none; border-radius: 14px; background: linear-gradient(160deg, var(--sky-2), var(--sky)); color: #fff; font-weight: 900; font-size: 22px; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.14s, box-shadow 0.16s; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.mcard:hover:not(:disabled) { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mcard span { font-size: 13px; }
.mcard.flipped { background: #fff; color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 2px var(--line); }
.mcard.flipped span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.mcard.picked { box-shadow: 0 0 0 3px var(--green), var(--shadow-lg); }

.hilo { display: flex; align-items: center; gap: 16px; }
.hilo-pivot, .hilo-target { width: 92px; height: 92px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow); font-weight: 900; }
.hilo-pivot { background: var(--bg-2); }
.hilo-pivot em { font-style: normal; font-size: 11px; color: var(--faint); font-weight: 800; text-transform: uppercase; }
.hilo-pivot b { font-size: 34px; color: var(--ink-2); }
.hilo-target { background: #fff; font-size: 34px; color: var(--sky); box-shadow: var(--shadow), inset 0 0 0 2px var(--line); }
.hilo-target.hi { color: var(--green); }
.hilo-target.lo { color: var(--danger); }

.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.xcard { position: relative; display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); transition: transform 0.14s, box-shadow 0.16s; overflow: hidden; }
.xcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--xc, var(--sky)); }
.xcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.xthumb-wrap { flex: none; width: 92px; height: 92px; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--xc) 22%, #fff), color-mix(in srgb, var(--xc) 8%, #fff)); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; }
.xthumb { width: 92px; height: 92px; object-fit: cover; }
.xbody { min-width: 0; }
.xtop { margin-bottom: 4px; }
.xbadge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 20px; }
.xbadge.live { color: var(--green); background: rgba(52, 199, 123, 0.15); }
.xbadge.soon { color: var(--gold); background: rgba(245, 166, 35, 0.16); }
.xcard h3 { margin: 2px 0 4px; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.xcard p { margin: 0 0 10px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.xplay { display: inline-flex; align-items: center; gap: 6px; color: var(--xc, var(--sky)); font-weight: 800; font-size: 14px; }
.xplay svg { width: 15px; height: 15px; }

.game-head { position: relative; }
.daily-badge { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--bg-2); padding: 4px 9px; border-radius: 20px; }
.daily-badge svg { width: 12px; height: 12px; }
.daily-badge.free { color: var(--green); background: rgba(52, 199, 123, 0.13); }
.game-prizes .tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; color: var(--ink-2); background: var(--bg-2); }
.game-prizes .tag svg { width: 14px; height: 14px; }
.game-prizes .tag.luck { color: #1f8f4d; background: rgba(52, 199, 123, 0.13); }
.game-prizes .tag.coins { color: #b7791f; background: rgba(245, 166, 35, 0.15); }
.game-prizes .tag.planes { color: var(--sky-ink); background: rgba(47, 155, 240, 0.12); }
.game-prizes .tag.free { color: var(--sky-ink); background: rgba(47, 155, 240, 0.1); }

.reward-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.reward-chips:empty { display: none; }
.rchip-win { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink); background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 6px 12px 6px 6px; border-radius: 20px; animation: pop-in 0.3s cubic-bezier(0.22, 1.4, 0.4, 1); }
.rchip-win svg { width: 20px; height: 20px; }
.rchip-win.type-coins svg { color: #eaa50c; }
.rchip-win.type-luck svg { color: var(--green); }
.rchip-win.type-speed svg { color: var(--sky); }
.rchip-win.type-plane svg { color: var(--sky); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

.rg { display: inline-flex; align-items: center; justify-content: center; }
.rg svg { width: 100%; height: 100%; }
.rg.coins { color: #eaa50c; }
.rg.luck { color: var(--green); }
.rg.speed { color: var(--sky); }

.crate { width: 108px; height: 108px; border-radius: 22px; background: linear-gradient(160deg, #ffb85c, var(--gold)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.crate svg { width: 52px; height: 52px; }
.crate.shaking { animation: shake 0.6s ease-in-out; }
.crate.open { background: linear-gradient(160deg, #ffd77a, #ffb028); transform: scale(1.05); }
@keyframes shake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } }
.qflip { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.qflip .qcoin { display: inline-flex; width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(145deg, #ffe08a, var(--gold)); color: #8a5a00; align-items: center; justify-content: center; box-shadow: var(--shadow-lg), inset 0 -5px 10px rgba(0,0,0,0.14); }
.qflip .qcoin svg { width: 54px; height: 54px; stroke-width: 2.2; }
.qflip.spin { animation: coinflip 0.7s ease-in-out; }
.taptarget { width: 108px; height: 108px; border: none; border-radius: 50%; background: linear-gradient(160deg, #c68bff, var(--epic, #af5aff)); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; transition: transform 0.12s; font-family: inherit; }
.taptarget svg { width: 54px; height: 54px; }
.taptarget.hit { animation: pulse 0.4s ease; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(0.88); } 100% { transform: scale(1); } }

.history { display: flex; flex-direction: column; gap: 12px; }
.hrow { background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.hrow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hgame { font-weight: 900; font-size: 15px; }
.htime { color: var(--faint); font-size: 12.5px; font-weight: 700; }
.hitems { display: flex; flex-wrap: wrap; gap: 8px; }
.rw-item { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border-radius: 12px; padding: 6px 12px 6px 6px; font-weight: 800; font-size: 13px; }
.rw-icon { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; }
.rw-item .rw-ic { width: 26px; height: 26px; object-fit: contain; }
.rw-item .rw-icon svg { width: 22px; height: 22px; color: var(--sky); }
.rw-item.type-luck { color: #1f8f4d; }
.rw-item.type-luck .rw-icon svg { color: var(--green); }
.rw-item.type-coins { color: #b7791f; }
.rw-item.type-coins .rw-icon svg { color: #eaa50c; }
.rw-item.type-speed .rw-icon svg { color: var(--sky); }

.postcard.has-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.postimg { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.postimg img { width: 100%; height: 100%; object-fit: cover; }
.postcard.has-img .postcard-body { padding: 20px 22px 22px; }
.postcard-body { display: block; }
.pinned { display: inline-block; font-size: 11px; font-weight: 800; color: var(--sky-ink); background: rgba(47, 155, 240, 0.14); padding: 3px 9px; border-radius: 20px; margin-bottom: 8px; }

.footer-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 700; }
.footer-links a:hover { color: var(--ink); }
.doc .content h2 { font-size: 21px; margin: 26px 0 8px; }
.doc .content p { font-size: 15.5px; line-height: 1.7; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 46px; color: var(--faint); font-size: 13.5px; font-weight: 700; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { font-size: 40px; }
  .reward-hero { grid-template-columns: 1fr; }
  .links a span { display: none; }
  .uname, .urole { display: none; }
  .navauth .btn span { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .page-head { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 34px; }
}
