/* =========================================================
   Sprite Fantasia — painel (visual do painel AK: céu noturno + folha clara)
   Mobile first: Galaxy S22 (360-412px), tablets (800-1280px), desktop.
   ========================================================= */
:root {
    --night: #14503d;
    --night-2: #ddf6ea;
    --sky: #4cc3b6;
    --sky-2: #cdf3e2;
    --sky-dark: #1f9c8f;
    --pink: #ff5d8f;
    --pink-dark: #d23b6c;
    --gold: #f2c94c;
    --mint: #22b27a;
    --mint-dark: #178a5d;
    --ink: #173d33;
    --ink-2: #3f6b5d;
    --muted: #7fae9c;
    --paper: #f8fffb;
    --paper-2: #e3f7ee;
    --line: #d4efe3;
    --warn-bg: #fff4d6;
    --warn-ink: #7a5200;
    --ok-bg: #ddf8ec;
    --ok-ink: #136b46;
    --bad-bg: #ffe3ec;
    --bad-ink: #9b1c47;

    --f-title: "M PLUS Rounded 1c", "Zen Kaku Gothic New", system-ui, sans-serif;
    --f-body: "Zen Kaku Gothic New", "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --stripe: repeating-linear-gradient(-45deg, var(--sky) 0 10px, var(--sky-2) 10px 20px);
    --ring: 0 0 0 1px var(--line);
    --shadow-card: 0 0 0 1px var(--line), 0 8px 24px -16px rgba(27, 82, 61, .4);
    --tabbar: 64px;
    --top-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
    min-height: 100vh; display: flex; flex-direction: column;
    font: 500 15px/1.5 var(--f-body); color: #fff; background: var(--night);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--sky-dark); text-decoration: none; font-weight: 700; }
a:hover { color: var(--pink-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 800; margin: 0; color: var(--ink); line-height: 1.25; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
small { font-size: .8rem; }
code, .mono { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .85em; }
[hidden] { display: none !important; }

/* ---------------- fundo ---------------- */
.pn-bg {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(76, 199, 122, .28), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(255, 93, 143, .18), transparent 60%),
        radial-gradient(700px 400px at 50% 110%, rgba(255, 213, 107, .12), transparent 60%),
        linear-gradient(180deg, #0b4a2e 0%, var(--night) 45%, #06281a 100%);
}
.pn-sparkles i {
    position: fixed; z-index: -1; width: 12px; height: 12px; background: #fff;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    filter: drop-shadow(0 0 6px var(--sky-2)); animation: twinkle 3.2s ease-in-out infinite; pointer-events: none;
}
.pn-sparkles i:nth-child(1) { top: 14%; left: 8%; }
.pn-sparkles i:nth-child(2) { top: 30%; left: 94%; animation-delay: -1s; }
.pn-sparkles i:nth-child(3) { top: 70%; left: 3%; width: 8px; height: 8px; animation-delay: -2s; }
.pn-sparkles i:nth-child(4) { top: 9%; left: 72%; width: 16px; height: 16px; background: var(--gold); animation-delay: -.5s; }
.pn-sparkles i:nth-child(5) { top: 85%; left: 96%; animation-delay: -1.6s; }
.pn-sparkles i:nth-child(6) { top: 50%; left: 50%; width: 7px; height: 7px; animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* ---------------- cabeçalho ---------------- */
.pn-top {
    position: sticky; top: 0; z-index: 60; min-height: var(--top-h);
    display: flex; align-items: center; gap: 14px;
    padding: 8px clamp(12px, 3vw, 36px); padding-top: max(8px, env(safe-area-inset-top));
    background: rgba(6, 40, 26, .62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(184, 240, 200, .12);
}
.pn-logo { display: flex; align-items: center; gap: 10px; flex: none; color: #fff !important; }
.pn-logo .gem-icon { width: 30px; height: 30px; }
.pn-logo-img { display: block; height: 46px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); transition: transform .3s var(--ease); }
.pn-logo:hover .pn-logo-img { transform: scale(1.04) rotate(-1deg); }
.pn-logo-txt { display: flex; flex-direction: column; line-height: 1; }
.pn-logo-txt small { font: 800 .52rem var(--f-title); letter-spacing: .34em; text-transform: uppercase; color: var(--sky-2); margin-left: 2px; }
.pn-logo-txt b {
    font: 800 1.35rem var(--f-title); transform: skewX(-8deg); transform-origin: left; white-space: nowrap;
    background: linear-gradient(180deg, #fff 30%, var(--sky-2) 75%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 rgba(20, 130, 78, .9));
}
.pn-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pn-nav a {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    font: 700 .9rem var(--f-title); color: rgba(255, 255, 255, .82) !important; white-space: nowrap; transition: background .2s, color .2s;
}
.pn-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.pn-nav a.on { background: #fff; color: var(--night) !important; }
.pn-nav .ico { width: 18px; height: 18px; }
.pn-lang { display: flex; padding: 3px; gap: 2px; border-radius: 999px; flex: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.pn-lang a { min-width: 34px; height: 28px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font: 800 .72rem var(--f-title); letter-spacing: .06em; color: rgba(255, 255, 255, .72) !important; }
.pn-lang a.on { background: #fff; color: var(--night) !important; }
.pn-me { display: flex; align-items: center; gap: 10px; flex: none; }
.pn-me .av {
    width: 34px; height: 34px; border-radius: 10px; transform: rotate(45deg); display: grid; place-items: center;
    background: linear-gradient(135deg, var(--sky), var(--pink)); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(76, 199, 122, .45);
}
.pn-me .av b { transform: rotate(-45deg); font: 800 .9rem var(--f-title); color: #fff; }
.pn-me span { display: flex; flex-direction: column; line-height: 1.15; margin-left: 4px; }
.pn-me small { font-size: .7rem; color: var(--sky-2); }
.pn-me b.nm { font: 800 .92rem var(--f-title); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-logout { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff !important; }
.pn-logout:hover { background: var(--pink); }
.pn-logout svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* barra inferior (celular) */
.pn-tabbar { display: none; }

/* ---------------- conteúdo ---------------- */
.pn-main { flex: 1; width: 100%; padding: 22px clamp(10px, 3vw, 36px) 36px; }
.sheet {
    position: relative; max-width: 980px; margin: 0 auto 24px; padding: 28px clamp(16px, 3.4vw, 40px) 32px;
    background: var(--paper); color: var(--ink); border-radius: 24px;
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .65); animation: rise .45s var(--ease) backwards;
}
/* no overflow:hidden here: it would turn the sheet into a scroll container and break the sticky menus */
.sheet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--stripe); border-radius: 24px 24px 0 0; }
.sheet.wide { max-width: 1380px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.pn-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 16px clamp(16px, 3vw, 36px); font-size: .78rem; color: rgba(233, 255, 243, .55); border-top: 1px solid rgba(184, 240, 200, .1); }

/* ---------------- área GM / Admin: menu lateral ---------------- */
.ws { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.ws-nav { position: sticky; top: calc(var(--top-h) + 18px); display: flex; flex-direction: column; gap: 4px; }
.ws-nav h4 { font: 800 .68rem var(--f-title); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 10px 12px 4px; }
.ws-nav h4:first-child { margin-top: 0; }
.ws-nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
    color: var(--ink-2) !important; font: 700 .92rem var(--f-title);
}
.ws-nav a:hover { background: var(--paper-2); color: var(--ink) !important; }
.ws-nav a.on { background: var(--sky-dark); color: #fff !important; box-shadow: 0 3px 0 #1a7444; }
.ws-nav .ni { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--paper-2); font-size: 15px; }
.ws-nav a.on .ni { background: rgba(255, 255, 255, .22); }
.ws-main { min-width: 0; }

/* ---------------- cabeçalho de página ---------------- */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.ph h1 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.ph h1::before { content: "✦"; color: var(--pink); font-size: .75em; }
.ph p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; max-width: 70ch; }
.ph-act { display: flex; flex-wrap: wrap; gap: 8px; }
.kicker { font: 800 .7rem var(--f-title); letter-spacing: .22em; text-transform: uppercase; color: var(--pink); }

/* ---------------- cartões / seções ---------------- */
.card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); padding: 18px; margin-bottom: 16px; color: var(--ink); }
.card > h2:first-child, .card-head h2 { margin-bottom: 4px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.card-head .sub { color: var(--muted); font-size: .82rem; }
.card.flat { box-shadow: none; background: var(--paper-2); }
.card.danger { box-shadow: 0 0 0 1px #ffc6d6, 0 8px 24px -16px rgba(210, 59, 108, .35); }
.card.danger h2 { color: var(--pink-dark); }
.muted { color: var(--ink-2); font-size: .88rem; margin: 0 0 12px; }
.hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.center { text-align: center; }
.link { font-size: .9rem; }
.ok-text { color: var(--mint-dark); }
.err-text, .bad { color: var(--pink-dark); font-weight: 700; }
.small { font-size: .78rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

/* blocos de estatística */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stats > div { padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.stats small { display: block; font: 800 .68rem var(--f-title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats b { display: block; margin-top: 2px; font: 800 1.35rem var(--f-title); color: var(--ink); }
.stats .ok b { color: var(--mint-dark); }
.stats .bad b { color: var(--pink-dark); }

/* ---------------- botões ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
    font: 800 .92rem var(--f-title); letter-spacing: .01em; text-decoration: none;
    background: var(--paper-2); color: var(--ink) !important; box-shadow: 0 3px 0 #c9eedd;
    transition: transform .12s var(--ease), filter .2s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9eedd; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary, .btn.sky {
    background: linear-gradient(180deg, #8fe3ac, var(--sky) 45%, #2fa865); color: #fff !important;
    box-shadow: 0 4px 0 var(--sky-dark), 0 10px 22px -10px rgba(76, 199, 122, .8); text-shadow: 0 1px 0 rgba(20, 160, 82, .5);
}
.btn.pink {
    background: linear-gradient(180deg, #ff8db0, var(--pink) 50%, #f04478); color: #fff !important;
    box-shadow: 0 4px 0 var(--pink-dark), 0 10px 22px -10px rgba(255, 93, 143, .8); text-shadow: 0 1px 0 rgba(140, 20, 60, .4);
}
.btn.mint { background: linear-gradient(180deg, #5fe0ad, var(--mint)); color: #fff !important; box-shadow: 0 4px 0 #23986a; }
.btn.danger { background: var(--bad-bg); color: var(--bad-ink) !important; box-shadow: 0 3px 0 #f5b9cc; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--sky-dark) !important; }
.btn.ghost:hover { background: var(--paper-2); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .82rem; }
.btn.icon { width: 40px; min-height: 40px; padding: 0; }
.btn.block { width: 100%; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }

/* ---------------- formulários ---------------- */
label { display: block; font: 700 .82rem var(--f-title); color: var(--ink-2); }
.fld { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.fld > span:first-child { font: 700 .82rem var(--f-title); color: var(--ink-2); }
.fld em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .75rem; }
input, select, textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
    font: 500 16px var(--f-body); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(76, 199, 122, .22); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--pink); flex: none; }
input[type=file] { padding: 9px; font-size: .9rem; }
input[readonly] { background: var(--paper); color: var(--ink-2); }
label.inline, .check { display: inline-flex !important; flex-direction: row; align-items: center; gap: 10px; font: 600 .9rem var(--f-body); color: var(--ink); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 14px; }
.form-grid .wide, .form-grid .full { grid-column: 1 / -1; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-row .fld { flex: 1 1 180px; }
.form-row > .btn { flex: none; }
fieldset.fs { border: 0; margin: 0 0 16px; padding: 14px; border-radius: 16px; background: var(--paper); box-shadow: var(--ring); }
fieldset.fs { min-width: 0; }
fieldset.fs > legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font: 800 .72rem var(--f-title); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-dark); }
fieldset.fs > legend ~ * { clear: both; }
details.adv { margin: 0 0 14px; border-radius: 16px; background: var(--paper); box-shadow: var(--ring); }
details.adv > summary { list-style: none; cursor: pointer; padding: 12px 14px; font: 800 .82rem var(--f-title); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: "▸"; transition: transform .2s; color: var(--sky-dark); }
details.adv[open] > summary::before { transform: rotate(90deg); }
details.adv > .adv-b { padding: 0 14px 14px; }
.search-box { position: relative; }
.search-box input { padding-left: 42px; }
.search-box::before { content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); font-size: 1.25rem; color: var(--muted); pointer-events: none; }

/* interruptor */
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 700 .88rem var(--f-title); color: var(--ink); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #cfefe0; transition: background .2s; flex: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--mint); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { box-shadow: 0 0 0 4px rgba(76, 199, 122, .35); }

/* ---------------- barra de ferramentas / filtros ---------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar > .grow { flex: 1 1 220px; }
.toolbar select, .toolbar input { min-height: 44px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chips a, .chips button {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
    background: #fff; box-shadow: var(--ring); color: var(--ink-2) !important; font: 700 .86rem var(--f-title); white-space: nowrap;
}
.chips a:hover, .chips button:hover { box-shadow: 0 0 0 2px var(--sky-2); }
.chips .on { background: var(--ink); color: #fff !important; box-shadow: none; }
.chips .n { font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.chips .on .n { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------------- tags / insígnias ---------------- */
.tag, .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 800 .72rem var(--f-title); letter-spacing: .02em; white-space: nowrap; }
.tag.ok, .badge.on { background: var(--ok-bg); color: var(--ok-ink); }
.tag.wait, .tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag.off, .tag.muted { background: var(--paper-2); color: var(--ink-2); }
.tag.test, .tag.bad, .badge.off { background: var(--bad-bg); color: var(--bad-ink); }
.tag.info { background: #e3ffe6; color: #128f33; }

/* ---------------- mensagens ---------------- */
.flash, .note { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-size: .9rem; font-weight: 700; }
.flash.error { background: var(--bad-bg); color: var(--bad-ink); }
.flash.ok, .note.success { background: var(--ok-bg); color: var(--ok-ink); }
.note { background: var(--warn-bg); color: var(--warn-ink); }
.note.info { background: #e3ffe6; color: #128f33; }
.toast {
    position: fixed; left: 50%; top: calc(var(--top-h) + 12px); z-index: 2000; transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px)); padding: 14px 44px 14px 18px; border-radius: 16px; font-weight: 700; font-size: .92rem;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); animation: toast-in .35s var(--ease);
}
.toast.ok { background: #e9fbf3; color: var(--ok-ink); box-shadow: 0 0 0 2px var(--mint), 0 18px 40px -12px rgba(0, 0, 0, .55); }
.toast.error { background: #fff0f5; color: var(--bad-ink); box-shadow: 0 0 0 2px var(--pink), 0 18px 40px -12px rgba(0, 0, 0, .55); }
.toast button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 1.2rem; color: inherit; cursor: pointer; }
.toast.out { opacity: 0; transform: translate(-50%, -8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------------- listas (linhas que viram cartões) ---------------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); flex: none; overflow: hidden; display: grid; place-items: center; }
.li-ic img { width: 44px; height: 44px; object-fit: contain; }
.li-main { flex: 1; min-width: 0; }
.li-main b { display: block; font-family: var(--f-title); overflow-wrap: anywhere; }
.li-main small { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.li-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; flex: none; text-align: right; }
.li-side form { margin: 0; }
.li.click { cursor: pointer; border-radius: 12px; }
.li.click:hover { background: var(--paper); }

/* compat: pedidos */
.order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.order:first-of-type { border-top: 0; }
.order-main { min-width: 0; }
.order-main b { display: block; font-family: var(--f-title); }
.order-main small { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; }
.order-side form { margin: 0; }
.gem-count { font: 800 1.1rem var(--f-title); color: var(--sky-dark); }
.gem-count::after { content: " ◆"; color: #8fe3ac; font-size: .7rem; }

/* ---------------- tabelas responsivas ---------------- */
.tbl-wrap { overflow-x: auto; border-radius: 16px; box-shadow: var(--ring); background: #fff; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; background: var(--paper-2); color: var(--ink-2); font: 800 .7rem var(--f-title); letter-spacing: .08em; text-transform: uppercase; padding: 11px 12px; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: #f8fffc; }
.tbl tr.on td { background: #eefff3; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl input, .tbl select { min-height: 40px; padding: 6px 10px; font-size: 15px; }
.tbl .nm b { font-family: var(--f-title); }
.tbl .nm small { display: block; color: var(--muted); }
.ic { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); display: inline-grid; place-items: center; overflow: hidden; vertical-align: middle; flex: none; }
.ic img { width: 40px; height: 40px; object-fit: contain; display: block; }

/* itens/recompensas */
.rw { display: inline-flex; align-items: center; gap: 5px; margin: 2px 6px 2px 0; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--paper-2); font-size: .82rem; color: var(--ink); vertical-align: middle; }
.rw img { width: 26px; height: 26px; border-radius: 8px; background: #fff; }
.rw.coin { padding-left: 10px; background: var(--warn-bg); color: var(--warn-ink); }
.rw b { font-family: var(--f-title); }

/* editor de lista de itens (recompensas, custo, caixas) */
.items-ed { display: flex; flex-direction: column; gap: 8px; }
.ie-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 40px; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: var(--ring); }
.ie-row .ic { width: 40px; height: 40px; }
.ie-name { min-width: 0; font: 700 .88rem var(--f-title); overflow-wrap: anywhere; }
.ie-name small { display: block; color: var(--muted); font: 500 .74rem var(--f-body); }
.ie-row input[type=number] { min-height: 40px; padding: 6px 10px; text-align: center; }
.ie-del { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bad-bg); color: var(--bad-ink); font-size: 1.05rem; cursor: pointer; }
.ie-empty { padding: 12px; border-radius: 14px; border: 2px dashed var(--line); color: var(--muted); text-align: center; font-size: .86rem; }

/* caixa de prêmios: uma linha por item */
.bag-rows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.bag-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 100px 160px 110px 100px 40px; align-items: end; gap: 10px; padding: 10px; border-radius: 14px; background: var(--paper); box-shadow: var(--ring); }
.bag-row > .ic { align-self: center; }
.bag-row > .ie-name { align-self: center; }
.bag-row .fld > span { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bag-row input, .bag-row select { min-height: 40px; padding: 6px 10px; }
.bag-row .ie-del { align-self: center; }

/* ---------------- janela de edição (<dialog>) ---------------- */
dialog.dlg { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: visible; color: var(--ink); }
dialog.dlg:not([open]) { display: none; }
dialog.dlg[open] { display: flex; align-items: center; justify-content: center; padding: 20px; }
dialog.dlg::backdrop { background: rgba(5, 30, 20, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dlg-box {
    position: relative; width: min(720px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column;
    background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
    animation: dlg-in .28s var(--ease); margin: 0;
}
.dlg.lg .dlg-box { width: min(980px, 100%); }
.dlg.sm .dlg-box { width: min(480px, 100%); }
.dlg-box::before { content: ""; height: 6px; background: var(--stripe); flex: none; }
.dlg-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px 10px; flex: none; }
.dlg-h h3 { flex: 1; min-width: 0; font-size: 1.12rem; overflow-wrap: anywhere; }
.dlg-h .ic { width: 44px; height: 44px; }
.dlg-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.dlg-x:hover { background: var(--pink); color: #fff; }
.dlg-b { padding: 6px 18px 16px; overflow: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.dlg-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; flex: none; }
.dlg-f .sp { flex: 1; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.dlg-open { overflow: hidden; }

/* busca de item */
.pick-res { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.pick-hit { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 0; background: #fff; box-shadow: var(--ring); cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%; }
.pick-hit:hover, .pick-hit:focus-visible { box-shadow: 0 0 0 2px var(--sky); outline: none; }
.pick-hit img { width: 36px; height: 36px; border-radius: 9px; background: var(--paper-2); flex: none; }
.pick-hit b { font-family: var(--f-title); color: var(--sky-dark); min-width: 56px; }
.pick-hit span { min-width: 0; overflow-wrap: anywhere; }

/* abas dentro da página */
.tabs-in { display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: var(--paper-2); scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs-in button { flex: none; border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 800 .85rem var(--f-title); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs-in button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(27, 82, 61, .15); }
.tab-pane:not(.on) { display: none; }

/* console */
.console { margin-top: 12px; max-height: 420px; overflow: auto; border-radius: 14px; padding: 10px 12px; background: #0d3824; color: #cfffe1; }
.console-row { padding: 6px 0; border-bottom: 1px dashed rgba(184, 240, 200, .18); }
.console-row:last-child { border-bottom: 0; }
.console-row .t { color: #7fc9a6; font-size: .78rem; margin-right: 6px; }
.console-row b { color: #fff; font-family: var(--f-title); }
.console-row pre { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; font-size: .8rem; color: #b8f0c8; }
.console-in { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }

/* status */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.dot.ok { background: var(--mint); box-shadow: 0 0 0 4px rgba(60, 201, 143, .2); }
.dot.bad { background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 93, 143, .2); }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.empty b { display: block; font: 800 1.05rem var(--f-title); color: var(--ink-2); margin-bottom: 4px; }

/* carregando */
.sf-loader { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(245, 255, 250, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s linear .25s; }
.sf-loader.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease .15s, visibility 0s; }
.sf-loader-spin { position: relative; width: 58px; height: 58px; }
.sf-loader-spin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 4px solid #e6fbf1; border-top-color: var(--pink); border-right-color: var(--sky); animation: spin .9s linear infinite; }
.sf-loader-spin::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* gema (CSS) */
.gem-icon { display: inline-block; width: 22px; height: 22px; flex: none; background: linear-gradient(135deg, #fff 0%, #a8ecc0 30%, #58c98a 55%, #ff8fb1 85%, #fff 100%); clip-path: polygon(50% 0, 100% 36%, 50% 100%, 0 36%); filter: drop-shadow(0 2px 3px rgba(74, 231, 131, .45)); }
.gem-icon.big { width: 46px; height: 46px; }

/* ícones simples (CSS) */
.ico { width: 22px; height: 22px; display: block; position: relative; flex: none; }
.ico-gem::before { content: ""; position: absolute; inset: 3px; background: currentColor; clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); }
.ico-list::before { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 3px; background: currentColor; border-radius: 2px; box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor; }
.ico-star::before { content: ""; position: absolute; inset: 1px; background: currentColor; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 98%, 50% 76%, 20% 98%, 30% 60%, 0 38%, 38% 35%); }
.ico-gear::before { content: "⚙"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; line-height: 1; }
.ico-shield::before { content: ""; position: absolute; inset: 2px 4px; background: currentColor; clip-path: polygon(50% 0, 100% 18%, 92% 62%, 50% 100%, 8% 62%, 0 18%); }
.ico-exit::before { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 16px; border: 3px solid currentColor; border-right: 0; border-radius: 4px 0 0 4px; }
.ico-exit::after { content: ""; position: absolute; right: 2px; top: 6px; border: 5px solid transparent; border-left: 7px solid currentColor; }

/* ---------------- login / cadastro ---------------- */
.auth { max-width: 460px; margin: 4vh auto 0; }
.auth .sheet { padding: 34px 30px 28px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 20px; }
.auth-logo b { font: 800 1.6rem var(--f-title); color: var(--ink); }
.auth-logo img { display: block; width: min(260px, 72%); height: auto; filter: drop-shadow(0 8px 16px rgba(27, 82, 61, .22)); }
.auth h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth form { display: grid; gap: 14px; margin-top: 16px; }
.auth form > label { display: grid; gap: 6px; }
.auth .btn.primary { height: 52px; font-size: 1.02rem; }
.switch { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }

/* ---------------- loja de gemas ---------------- */
.hero {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    padding: 20px 22px; margin-bottom: 16px; border-radius: 20px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 90% at 100% 0%, rgba(76, 199, 122, .38), transparent 55%), linear-gradient(160deg, #249f63, var(--night-2) 78%);
    box-shadow: 0 18px 36px -18px rgba(4, 35, 23, .9), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.hero::after { content: "✦"; position: absolute; right: 18px; bottom: -10px; font-size: 5rem; color: rgba(255, 255, 255, .06); }
.hero h1 { color: #fff; }
.eyebrow { display: block; font: 800 .74rem var(--f-title); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-2); }
.wallet { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .95); color: var(--ink); }
.wallet small { display: block; color: var(--muted); font-weight: 800; }
.wallet b { font: 800 1.5rem var(--f-title); color: var(--sky-dark); }
.paytabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 16px; border-radius: 999px; background: var(--paper-2); }
.paytabs a { padding: 10px 8px; border-radius: 999px; text-align: center; font: 800 .86rem var(--f-title); color: var(--ink-2) !important; }
.paytabs a.on { color: #fff !important; background: var(--sky-dark); box-shadow: 0 3px 0 #1a7444; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 12px; }
.testbox { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bad-bg); color: var(--bad-ink); font: 700 .88rem var(--f-body); }
.pack {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 10px 14px; cursor: pointer;
    background: #fff; border-radius: 20px; border: 2px solid transparent; font: inherit; color: var(--ink);
    box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px rgba(27, 82, 61, .5); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pack:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 20px 34px -18px rgba(35, 152, 90, .55); }
.pack:active { transform: scale(.98); }
.pack:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pack.pre { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(76, 199, 122, .28), 0 20px 34px -18px rgba(35, 152, 90, .7); }
.pack .amount { margin-top: 4px; font: 800 1.5rem/1.1 var(--f-title); color: var(--ink); }
.pack .pack-name { font-size: 1.05rem; text-align: center; }
.pack .label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.pack .bonus { margin-top: 2px; padding: 3px 10px; border-radius: 999px; font: 800 .74rem var(--f-title); color: var(--mint-dark); background: rgba(60, 201, 143, .16); }
.pack .bonus.none { visibility: hidden; }
.pack .price { margin-top: 10px; width: 100%; padding: 8px; border-radius: 999px; font: 800 .98rem var(--f-title); color: var(--sky-dark); background: #e3ffe9; }
.pack-img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(35, 152, 90, .25)); }
.ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; font: 800 .66rem var(--f-title); letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; background: linear-gradient(135deg, #3cc98f, #1f9a68); box-shadow: 0 6px 14px -6px rgba(27, 82, 61, .5); }
.fine { color: var(--muted); font-size: .8rem; text-align: center; margin: 6px 8px 0; }

/* PIX */
.pix .pix-amount { margin: 4px 0 6px; font: 800 1.6rem var(--f-title); color: var(--sky-dark); }
.pix .pix-amount small { font-size: .9rem; color: var(--muted); }
.qr { display: block; width: 220px; max-width: 70vw; aspect-ratio: 1; margin: 8px auto 14px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--ring); image-rendering: pixelated; }
.pixcode { width: 100%; resize: none; margin-bottom: 12px; border-style: dashed; background: var(--paper); color: var(--ink-2); font: 600 12px ui-monospace, Menlo, monospace; word-break: break-all; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--ink-2); font-size: .88rem; font-weight: 700; }
.waiting .dot { background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.pay-done .check { display: block; width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat; box-shadow: 0 6px 14px rgba(47, 174, 122, .35); }

/* pacotes (admin) */
.pkg-card { display: flex; flex-direction: column; gap: 10px; }
.pkg-card .top { display: flex; align-items: center; gap: 12px; }
.pkg-preview { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--paper-2); overflow: hidden; }
.pkg-preview img { width: 58px; height: 58px; object-fit: contain; }
.pkg-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.icon-gallery figure, .icon-gallery label { margin: 0; padding: 8px; border-radius: 12px; background: #fff; box-shadow: var(--ring); text-align: center; cursor: pointer; }
.icon-gallery img { width: 52px; height: 52px; object-fit: contain; }
.icon-gallery figcaption, .icon-gallery span { display: block; font-size: .64rem; color: var(--muted); overflow-wrap: anywhere; }
.icon-gallery input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-gallery input:checked + img { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.icon-gallery label:has(input:checked) { box-shadow: 0 0 0 3px var(--sky); background: #eefff3; }

/* season pass: níveis */
.li.lad { gap: 10px; align-items: flex-end; }
.li.lad .li-ic { background: var(--paper-2); align-self: center; width: 52px; }
.li.lad .li-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 4px; }
.rw-prev { display: inline; }
@media (max-width: 760px) {
    .li.lad .li-main { width: 100%; flex: 1 1 100%; }
}

/* ---------------- responsivo ---------------- */
@media (min-width: 600px) {
    .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .pn-me span { display: none; }
}
@media (max-width: 960px) {
    /* área GM vira abas roláveis no topo da folha */
    .ws { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ws-nav {
        position: sticky; top: var(--top-h); z-index: 20; flex-direction: row; overflow-x: auto; gap: 6px;
        margin: -10px -6px 4px; padding: 10px 6px; background: var(--paper); scrollbar-width: none;
    }
    .ws-nav::-webkit-scrollbar { display: none; }
    .ws-nav h4 { display: none; }
    .ws-nav a { flex: none; padding: 8px 12px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--ring); font-size: .84rem; }
    .ws-nav .ni { width: 24px; height: 24px; border-radius: 50%; font-size: 13px; }
}
@media (max-width: 960px) {
    /* celular e tablet em pé: menu do topo vira barra inferior */
    .pn-nav { display: none; }
    .pn-lang { margin-left: auto; }
    .pn-me .pn-logout { display: none; }
    body.signed { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
    .pn-tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; justify-content: center;
        height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: rgba(6, 40, 26, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(184, 240, 200, .15);
    }
    .pn-tabbar a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255, 255, 255, .62) !important; font: 800 .68rem var(--f-title); }
    .pn-tabbar a.on { color: var(--sky) !important; }
    .pn-tabbar a.on .ico { filter: drop-shadow(0 0 6px rgba(76, 199, 122, .8)); }
    body.signed .pn-foot { display: none; }
}
@media (max-width: 760px) {
    :root { --top-h: 58px; }
    .pn-logo-txt b { font-size: 1.12rem; }
    .pn-logo-img { height: 36px; }
    .pn-logo-txt small { display: none; }
    .pn-main { padding: 12px 8px 24px; }
    .sheet { padding: 22px 14px 24px; border-radius: 20px; }
    .card { padding: 14px; border-radius: 16px; }
    .ph { margin-bottom: 14px; }
    .ph-act { width: 100%; }
    .ph-act .btn { flex: 1 1 auto; }

    /* tabela -> cartões */
    .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
    .tbl.stack thead { display: none; }
    .tbl.stack tr { position: relative; padding: 12px; border-top: 1px solid var(--line); }
    .tbl.stack tr:first-child { border-top: 0; }
    .tbl.stack td { padding: 3px 0; border: 0; }
    .tbl.stack td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 92px; margin-right: 8px; font: 800 .66rem var(--f-title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
    .tbl.stack td.nm { padding-right: 56px; }
    .tbl.stack td.ic-cell { position: absolute; right: 12px; top: 12px; width: auto; padding: 0; }
    .tbl.stack td.act { text-align: left; padding-top: 8px; }
    .tbl.stack td.act .btn { width: 100%; }
    .tbl.stack td.hide-m { display: none; }
    .tbl.stack tbody tr:hover td { background: none; }

    /* janelas: painel de baixo, tela cheia */
    dialog.dlg[open] { align-items: flex-end; padding: 0; }
    .dlg-box, .dlg.lg .dlg-box, .dlg.sm .dlg-box { width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; animation: sheet-up .3s var(--ease); }
    .dlg-f .btn { flex: 1 1 auto; }
    .dlg-f .sp { display: none; }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ie-row { grid-template-columns: 36px minmax(0, 1fr) 84px 36px; gap: 8px; padding: 6px; }
    .ie-row .ic { width: 36px; height: 36px; }
    .ie-del { width: 36px; height: 36px; }
    .bag-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; }
    .bag-row > .ic { grid-column: 1; grid-row: 1; width: 36px; height: 36px; }
    .bag-row > .ie-name { grid-column: 2 / 4; grid-row: 1; }
    .bag-row > .ie-del { grid-column: 4; grid-row: 1; }
    .bag-row > .b-qty, .bag-row > .b-prob { grid-column: 1 / 3; }
    .bag-row > .b-kind, .bag-row > .b-bul { grid-column: 3 / 5; }
    .toolbar > * { flex: 1 1 auto; }
    .li { flex-wrap: wrap; }
    .li-side { width: 100%; justify-content: flex-start; padding-left: 56px; }
    .li.noic .li-side { padding-left: 0; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
@media (max-width: 330px) {
    .form-grid { grid-template-columns: 1fr; }
    .packs { gap: 10px; }
    .pack .amount { font-size: 1.25rem; }
    .wallet b { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- prêmios / cupons / voto (2026-11-30) ---------- */
.ico-gift::before { content: ""; position: absolute; left: 2px; right: 2px; top: 7px; bottom: 1px; border-radius: 3px; background: currentColor; }
.ico-gift::after { content: ""; position: absolute; left: 50%; top: 1px; width: 10px; height: 7px; transform: translateX(-50%); border: 2.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.ribbon.pop { background: linear-gradient(135deg, #ff8db0, var(--pink-dark)); }
.coupon-box { grid-column: 1 / -1; margin: 0 0 6px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--ring); }
.coupon-box.closed { padding: 10px 14px; }
.coupon-box summary { cursor: pointer; font: 800 .9rem var(--f-title); color: var(--sky-dark); }
.coupon-box .kicker { display: block; margin-bottom: 8px; }
.coupon-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.coupon-chip {
    flex: none; scroll-snap-align: start; display: grid; gap: 1px; min-width: 128px; padding: 9px 12px; border-radius: 14px; text-align: left;
    background: var(--paper); border: 2px dashed #c9f2dd; color: var(--ink); cursor: pointer; font: inherit;
}
.coupon-chip b { font: 800 .95rem var(--f-title); letter-spacing: .05em; text-transform: uppercase; }
.coupon-chip span { font: 800 .82rem var(--f-title); color: var(--mint-dark); }
.coupon-chip small { font-size: .7rem; color: var(--muted); }
.coupon-chip.on { border-style: solid; border-color: var(--mint); background: #ddf8ec; box-shadow: 0 0 0 3px rgba(60, 201, 143, .2); }
.coupon-in { display: grid; gap: 4px; margin-top: 6px; font: 700 .8rem var(--f-title); color: var(--ink-2); }
.coupon-in input { height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); font: 700 1rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; }
.coupon-in input:focus { outline: none; border-color: var(--sky); }
.claim-form { display: grid; gap: 10px; margin-top: 12px; }
.claim-form label { display: grid; gap: 4px; font: 700 .82rem var(--f-title); color: var(--ink-2); }
.claim-form select { height: 46px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 700 .95rem var(--f-body); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-btns form { margin: 0; }
@media (max-width: 960px) {
    body.staff .pn-me .pn-logout { display: inline-flex; }
    .pn-tabbar a { min-width: 0; font-size: .62rem; }
}
@media (max-width: 420px) {
    .claim-form .btn, .row-btns .btn, .row-btns form { width: 100%; }
    .row-btns form .btn { width: 100%; }
}

/* =========================================================
   Tema claro do site Sprite Fantasia (eternalgameson.com/sfantasia)
   fundo bg.webp + véu menta, verde #22b27a, teal #4cc3b6
   ========================================================= */
body { color: var(--ink); background: #eefbf4; }
.pn-bg { background: url(../image/bg.webp) center 40% / cover no-repeat; }
.pn-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(248, 255, 251, .72) 0%, rgba(240, 252, 246, .55) 40%, rgba(242, 253, 247, .9) 100%);
}
.pn-sparkles i { filter: drop-shadow(0 0 6px #8de0b8); }
.pn-sparkles i:nth-child(4) { background: #c9f2dd; }

/* cabeçalho */
.pn-top { background: rgba(255, 255, 255, .74); border-bottom: 1px solid rgba(34, 178, 122, .18); box-shadow: 0 6px 20px -16px rgba(20, 90, 65, .4); }
.pn-logo { color: var(--ink) !important; }
.pn-logo-img { filter: drop-shadow(0 3px 6px rgba(23, 138, 93, .25)); }
.pn-logo-txt small { color: var(--mint-dark); }
.pn-logo-txt b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); filter: none; }
.pn-nav a { color: rgba(23, 61, 51, .78) !important; }
.pn-nav a:hover { background: rgba(34, 178, 122, .1); color: var(--mint-dark) !important; }
.pn-nav a.on { background: var(--mint); color: #fff !important; }
.pn-lang { background: rgba(255, 255, 255, .7); border-color: rgba(34, 178, 122, .25); }
.pn-lang a { color: rgba(23, 61, 51, .6) !important; }
.pn-lang a:hover { color: var(--mint-dark) !important; }
.pn-lang a.on { background: var(--mint); color: #fff !important; }
.pn-me .av { background: linear-gradient(135deg, var(--sky), var(--mint)); box-shadow: 0 0 0 3px rgba(34, 178, 122, .3); }
.pn-me small { color: var(--mint-dark); }
.pn-logout { background: rgba(23, 61, 51, .07); color: var(--ink) !important; }
.pn-logout:hover { color: #fff !important; }
.pn-foot { color: rgba(23, 61, 51, .6); border-top-color: rgba(34, 178, 122, .15); }

/* folha e destaques */
.sheet { box-shadow: 0 24px 60px -26px rgba(20, 90, 65, .42); }
.hero {
    background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(160deg, #3fcf94, #1f9c8f 85%);
    box-shadow: 0 16px 32px -18px rgba(20, 110, 80, .6), inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.hero::after { color: rgba(255, 255, 255, .14); }
.btn.primary {
    background: linear-gradient(180deg, #6fe0b0, var(--mint) 50%, #159e6a);
    box-shadow: 0 4px 0 var(--mint-dark), 0 10px 22px -10px rgba(34, 178, 122, .7); text-shadow: 0 1px 0 rgba(10, 80, 55, .35);
}
.btn { box-shadow: 0 3px 0 #c6e9d9; }
.ws-nav a.on, .paytabs a.on { background: var(--mint); box-shadow: 0 3px 0 var(--mint-dark); }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(34, 178, 122, .18); }
.pack:hover { box-shadow: 0 0 0 1px var(--line), 0 20px 34px -18px rgba(31, 156, 143, .5); }
.pack.pre { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(34, 178, 122, .2), 0 20px 34px -18px rgba(31, 156, 143, .6); }
.pack .price { color: var(--mint-dark); background: #e3f7ee; }
.tag.info, .note.info { background: #e0f6f3; color: #17786e; }
.gem-icon { background: linear-gradient(135deg, #fff 0%, #b9eedc 30%, #4cc3b6 55%, #ffd37a 85%, #fff 100%); }
.gem-count::after { color: #4cc3b6; }
dialog.dlg::backdrop { background: rgba(15, 60, 45, .45); }
.sf-loader { background: rgba(242, 253, 247, .55); }
.sf-loader-spin::before { border-color: #e3f7ee; border-top-color: var(--mint); border-right-color: var(--sky); }

@media (max-width: 960px) {
    .pn-tabbar { background: rgba(255, 255, 255, .94); border-top: 1px solid rgba(34, 178, 122, .18); box-shadow: 0 -6px 20px -14px rgba(20, 90, 65, .35); }
    .pn-tabbar a { color: rgba(23, 61, 51, .55) !important; }
    .pn-tabbar a.on { color: var(--mint) !important; }
    .pn-tabbar a.on .ico { filter: none; }
}

/* game password page (2026-12-03) */
.pw-form { display: grid; gap: 14px; max-width: 420px; margin: 14px 0 10px; }
.pw-form > label { display: grid; gap: 6px; }
.pw-form .btn { justify-self: start; }
