/* Imperium — visual pixel (cores e componentes) */
:root {
  --bg: #1D2B4C;
  --bg-deep: #16223D;
  --bar: #2C5AA0;
  --ink: #1C1C1C;
  --paper: #F4EFE1;
  --paper-shade: #C9BFA5;
  --text: #F4EFE1;
  --muted: #D7E2F5;
  --yellow: #FFC93C;
  --yellow-dark: #E09A1E;
  --green: #6CC24A;
  --green-dark: #3E8E2A;
  --green-ink: #102A06;
  --red: #D94A3D;
  --red-dark: #9E2E24;
  --shadow: #0E1628;
  --pixel: 'Press Start 2P', monospace;
  --body: 'Pixelify Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.45; }
img { image-rendering: pixelated; }
a { color: var(--yellow); }
a:hover { color: #FFE08A; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.px { font-family: var(--pixel); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border: 3px solid var(--ink); font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; color: var(--ink); background: var(--paper); box-shadow: inset -4px -4px 0 var(--paper-shade); }
.btn:active { transform: translate(2px, 2px); }
.btn-yellow { background: var(--yellow); box-shadow: inset -4px -4px 0 var(--yellow-dark); }
.btn-green { background: var(--green); color: var(--green-ink); box-shadow: inset -4px -4px 0 var(--green-dark); }
.btn-red { background: var(--red); color: #fff; box-shadow: inset -3px -3px 0 var(--red-dark); }
.btn-lift { box-shadow: inset -4px -4px 0 var(--yellow-dark), 4px 4px 0 var(--shadow); }
.btn[disabled] { background: #B8BEC7; box-shadow: none; cursor: not-allowed; color: #3A3A3A; }
/* A plataforma força cor herdada nos botões: reafirma o contraste do tema. */
button.btn:not([disabled]),
.filters button:not([disabled]),
.testbtn:not([disabled]) { color: var(--ink); }
button.btn-green:not([disabled]) { color: var(--green-ink); }
button.btn-red:not([disabled]) { color: #fff; }
.btn-sm { padding: 10px 14px; font-size: 16px; }
.hero-cta { flex-wrap: nowrap; }
.hero-cta .btn { padding: 14px 12px; font-family: var(--pixel); font-weight: 400; font-size: 11px; line-height: 1.6; white-space: nowrap; flex: none; }
@media (max-width: 700px) {
  .hero-cta { flex-wrap: wrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; padding: 12px 8px; font-size: 10px; }
}
.linkbtn { padding: 0; border: 0; background: none; color: var(--yellow); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn.dark { color: #255C99; }

/* Cabeçalho */
.top { background: var(--bar); border-bottom: 4px solid var(--ink); }
.top .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--pixel); font-size: 14px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; flex: 1 1 0%; min-width: 0; }
.nav a, .nav button { color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; }
.nav a:hover, .nav button:hover { color: var(--yellow); }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; margin-left: auto; }
.top-actions .btn { padding: 10px 12px; font-family: var(--pixel); font-weight: 400; font-size: 10px; line-height: 1.6; white-space: nowrap; }
@media (max-width: 760px) {
  .top-actions { flex-wrap: wrap; margin-left: 0; }
  .top-actions .btn { flex: 1 1 auto; }
}

/* Topo da página */
.hero { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.45; }
.hero p { margin: 0; font-size: 20px; color: var(--muted); max-width: 520px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.chip { align-self: flex-start; font-family: var(--pixel); font-size: 11px; color: var(--ink); background: var(--green); border: 3px solid var(--ink); padding: 8px 12px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 20px; font-size: 17px; color: var(--muted); }
.checks span { display: flex; align-items: center; gap: 8px; }
.checks i { width: 12px; height: 12px; background: var(--green); border: 2px solid var(--ink); display: inline-block; }
.scene { position: relative; width: 100%; max-width: 600px; aspect-ratio: 640 / 380; margin: 0 auto; container-type: inline-size; }
.scene img { position: absolute; display: block; }
.scene .full { left: 0; top: 0; width: 100%; height: 100%; }
.scene .glow { transition: opacity .9s steps(4); }

/* Câmbio */
.cambio { padding-top: 8px; padding-bottom: 64px; }
.cambio-box { background: var(--bar); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: center; }
.big-price { margin: 0; font-family: var(--pixel); font-size: clamp(28px, 4.5vw, 48px); line-height: 1.2; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); overflow-wrap: anywhere; }
.panel { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: inset -6px -6px 0 #DDD3BA; padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.line .k { color: #3A3A3A; }
.dash { border-top: 3px dashed var(--paper-shade); }
/* Barra de moedas: o preenchimento vai até a ponta quando está no máximo (--p é definido em app.js) */
input[type=range], .field input[type=range] { -webkit-appearance: none; padding: 0; border: 0; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --t: 22px; }
input[type=range]::-webkit-slider-runnable-track { height: 14px; box-sizing: border-box; border: solid var(--ink); border-width: 3px 0; background: linear-gradient(to right, var(--bar) calc(var(--t) / 2 + (100% - var(--t)) * var(--p, .23)), #fff 0); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: var(--t); height: var(--t); margin-top: -7px; border: 3px solid var(--ink); border-radius: 0; background: var(--yellow); box-shadow: inset -3px -3px 0 var(--yellow-dark); }
input[type=range]::-moz-range-track { height: 8px; border: solid var(--ink); border-width: 3px 0; background: #fff; }
input[type=range]::-moz-range-progress { height: 8px; background: var(--bar); }
input[type=range]::-moz-range-thumb { box-sizing: border-box; width: var(--t); height: var(--t); border: 3px solid var(--ink); border-radius: 0; background: var(--yellow); box-shadow: inset -3px -3px 0 var(--yellow-dark); }

/* Catálogo */
.catalog { padding-top: 16px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 26px; }
.section-title { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 24px; line-height: 1.4; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { padding: 10px 16px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: inset -3px -3px 0 var(--paper-shade); font: inherit; cursor: pointer; }
.filters button[aria-pressed=true] { background: var(--yellow); box-shadow: inset -3px -3px 0 var(--yellow-dark); font-weight: 700; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-tabs button { padding: 10px 16px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: inset -3px -3px 0 var(--paper-shade); font-family: var(--pixel); font-weight: 400; font-size: 10px; line-height: 1.6; white-space: nowrap; cursor: pointer; }
.adm-tabs .tab-n { display: inline-block; min-width: 30px; text-align: center; font-family: var(--body); font-size: 20px; font-weight: 700; line-height: 1.2; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; margin-left: 10px; vertical-align: middle; box-shadow: 2px 2px 0 var(--shadow); }
.adm-tabs button[aria-pressed=true] { background: var(--yellow); box-shadow: inset -3px -3px 0 var(--yellow-dark); font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.field input, .field textarea, .field select { padding: 12px 14px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 17px; }
.search input { width: 280px; max-width: 100%; background: var(--paper); }
.card .pic img.uploaded { image-rendering: auto; }
.badge { display: inline-block; padding: 2px 8px; background: var(--green); border: 2px solid var(--ink); font-size: 12px; font-weight: 700; }
.admgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); display: flex; flex-direction: column; }
.card .pic { height: 170px; border-bottom: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.card .tag { position: absolute; top: 10px; left: 10px; font-family: var(--pixel); font-size: 9px; padding: 6px 8px; background: var(--ink); }
.card .offer { position: absolute; top: 10px; right: 10px; font-family: var(--pixel); font-size: 9px; padding: 6px 8px; background: var(--red); color: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; font-size: 16px; color: #4A4A4A; }
.card .buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.card .buy .price { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 19px; font-weight: 700; }
button.summary { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.video-frame { border: 4px solid var(--ink); background: #101828; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 12px; }
.video-frame video { width: 100%; height: 100%; background: #000; }
.video-empty { color: #fff; text-align: center; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 16px; }
.video-empty .big { font-family: var(--pixel); font-size: 12px; color: var(--yellow); line-height: 1.6; }
.card .stock { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .01em; color: #2E7D32; }
.card .stock.low { color: var(--red-dark); }
.card .qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .qtyrow span.qtd { font-size: 14px; font-weight: 700; }
.card .stepper { display: inline-flex; align-items: center; gap: 8px; }
.card .stepper button { width: 30px; height: 30px; padding: 0; border: 3px solid var(--ink); background: var(--paper); font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: inset -2px -2px 0 var(--paper-shade); }
.card .stepper button:disabled { opacity: .4; cursor: not-allowed; }
.card .stepper .q { min-width: 22px; text-align: center; font-weight: 700; font-size: 16px; }
.coins-sold { display: flex; align-items: center; justify-content: flex-end; }
.coins-sold .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); padding: 8px 12px; font-family: var(--pixel); font-size: 11px; }
.coins-sold .flame { width: 22px; height: 22px; image-rendering: pixelated; animation: flick 1.2s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .coins-sold .flame { animation: none; } }
.card .soldband { position: absolute; left: -12px; right: -12px; top: 50%; transform: translateY(-50%) rotate(-6deg); background: var(--red); color: #fff; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); text-align: center; font-family: var(--pixel); font-size: 11px; padding: 8px 4px; letter-spacing: .06em; }
.card .prize-note { margin: 0; font-size: 15px; color: var(--ink); background: #FFF3C4; border: 2px dashed var(--ink); padding: 8px 10px; }
.card .prize-note strong { font-size: 17px; letter-spacing: .04em; }
.soldout { font-size: 15px; font-weight: 700; color: var(--red-dark); }
.empty { color: var(--muted); }

/* Como funciona */
.how { background: var(--bg-deep); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.how .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 #0B1324; }
.step[data-vip] { position: relative; }
.vip-info { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--pixel); font-weight: 400; font-size: 11px; line-height: 1; cursor: pointer; }
.step .vip-shield { width: 72px; height: 72px; align-self: center; }
.vip-status { background: var(--bg-deep); color: var(--text); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); padding: 16px 18px; margin-bottom: 22px; }
.vip-status-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vip-label { font-family: var(--pixel); font-size: 10px; color: var(--muted); }
#vip-level-name { font-family: var(--pixel); font-size: 14px; color: var(--yellow); }
.vip-points { font-size: 17px; margin: 8px 0 0; }
.vip-src { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.vip-points span { font-weight: 700; }
.vip-progress { height: 18px; border: 3px solid var(--ink); background: var(--paper-shade); }
.vip-progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s; }
.vip-progress-big i { background: var(--yellow); }
.step[data-vip="0"] .vip-progress i { background: #C98A4B; }
.step[data-vip="1"] .vip-progress i { background: #9AA5B1; }
.step[data-vip="2"] .vip-progress i { background: #E09A1E; }
.step[data-vip="3"] .vip-progress i { background: #35C4D4; }
.vip-next { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.vip-earn { margin: 12px 0 0; border: 2px dashed var(--green-dark); background: #E7F5E0; padding: 9px 12px; text-align: center; font-size: 16px; color: var(--green-ink); }
.vip-earn strong { font-size: 18px; }
button.vip-earn { width: 100%; font: inherit; cursor: pointer; }
.vip-earn[data-open]:hover { background: #D9EFD0; }
.vip-earn[data-open]:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.vip-redeem-bar { width: 100%; margin-top: 16px; font-size: 20px; }
.card .cost { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--green-dark); font-weight: 700; white-space: nowrap; }
.card .buy.rw-buy { flex-direction: column; align-items: stretch; gap: 8px; }
.card .buy.rw-buy .cost { text-align: center; }
.card .buy.rw-buy .btn { width: 100%; }
#rewards-grid { margin-top: 16px; }
.step .vip-meta { font-weight: 400; margin: 0; display: flex; justify-content: center; align-items: center; gap: 5px; color: #4A4A4A; font-size: 15px; }
.step .vip-tier-status { margin: 8px 0 0; font-size: 15px; }
.step .vip-tier-status.done { color: var(--green-dark); font-weight: 700; }
.step .n { font-family: var(--pixel); font-size: 20px; color: var(--bar); }
.step h3 { margin: 0; font-size: 21px; }
.step p { margin: 0; font-size: 17px; color: #3A3A3A; }

/* Rodapé */
.foot { padding-top: 36px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 16px; color: var(--muted); }
.foot p { margin: 0; max-width: 640px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.madeby { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding-top: 24px; border-top: 3px dashed #2E3E66; }
.madeby-label { font-family: var(--pixel); font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.madeby-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.madeby-brand img { height: 48px; width: auto; image-rendering: auto; }

/* Janelas */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 24, .78); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.overlay[hidden] { display: none; }
.dialog { width: 100%; max-width: 640px; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); }
.dialog.wide { max-width: 720px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--bar); color: var(--text); border-bottom: 4px solid var(--ink); }
.dialog-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-weight: 400; font-size: 12px; line-height: 1.5; }
.close { width: 40px; height: 40px; flex: none; padding: 0; font-size: 20px; }
.dialog-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.doc { font-size: 16px; line-height: 1.55; }
.doc h3 { margin: 6px 0 0; font-size: 19px; }
.doc p { margin: 0; }
.stepbar { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.stepbar li { flex: 1; padding: 8px 6px; text-align: center; font-size: 15px; font-weight: 700; border: 3px solid var(--ink); background: #fff; }
.stepbar li.on { background: var(--yellow); }
.stepbar li.done { background: #DDF3D2; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 3px solid var(--ink); font-weight: 700; }
.day-head { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: #4A4A4A; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bar); flex: none; }
.error { margin: 0; padding: 10px 14px; background: #FBE3E0; border: 3px solid var(--red-dark); color: #6E1D16; font-size: 16px; }
.error:empty { display: none; }
.pix { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.qr { flex: 0 0 200px; width: 200px; height: 200px; background: #fff; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 15px; color: #4A4A4A; }
.qr img { width: 100%; height: 100%; image-rendering: auto; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; padding: 10px 12px; border: 3px solid var(--ink); background: #fff; font: inherit; font-size: 15px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0; }
.status i { width: 12px; height: 12px; background: var(--yellow); border: 2px solid var(--ink); display: inline-block; }
.ok-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #DDF3D2; border: 3px solid var(--ink); }
.code { align-self: flex-start; font-family: var(--pixel); font-size: 20px; padding: 14px 18px; background: var(--ink); color: var(--yellow); margin: 0; }
.muted { color: #4A4A4A; font-size: 15px; margin: 0; }
.testbtn { align-self: flex-start; padding: 10px 14px; background: var(--paper); border: 3px dashed #6B7280; font: inherit; font-size: 15px; cursor: pointer; }

/* Chat do suporte */
.chat-note { padding: 12px 18px; background: #E6EEFB; border-bottom: 3px solid var(--ink); font-size: 15px; }
.chat { height: 300px; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg .meta { font-size: 13px; color: #4A4A4A; }
.msg .bubble { padding: 10px 14px; border: 3px solid var(--ink); background: #E6EEFB; font-size: 16px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .bubble { background: #FFE9A8; }
.chat-form { padding: 14px 18px 18px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
/* Central de suporte do lojista: lista de clientes + conversa ativa */
.sup-inbox { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; }
.sup-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.sup-item { text-align: left; border: 3px solid var(--ink); background: #fff; padding: 10px 12px; cursor: pointer; font: inherit; }
.sup-item[aria-current=true] { background: var(--yellow); }
.sup-item .sup-top { display: block; font-weight: 700; }
.sup-item .sub { display: block; font-size: 12px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-badge { display: inline-block; min-width: 22px; text-align: center; background: #C0392B; color: #fff; border-radius: 11px; font-size: 12px; padding: 0 6px; margin-left: 6px; }
.sup-chat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sup-head { font-weight: 700; }
.sup-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; border: 3px solid var(--ink); background: #fff; padding: 12px 14px; }
.sup-form { display: flex; gap: 8px; align-items: flex-end; }
.sup-form textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 3px solid var(--ink); font: inherit; resize: vertical; }
@media (max-width: 640px) { .sup-inbox { grid-template-columns: 1fr; } }

/* Página do pedido e painel */
.page { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 2px dashed var(--paper-shade); }
.timeline time { font-family: var(--pixel); font-size: 10px; color: #4A4A4A; min-width: 92px; padding-top: 4px; }
video { width: 100%; border: 3px solid var(--ink); background: #000; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scene .glow { transition: none; } }
@media (max-width: 520px) { .cambio-box { padding: 22px; } .panel { padding: 18px; } .dialog-body { padding: 18px; } .stepbar li { font-size: 13px; } }

/* Números nítidos: Press Start 2P dentro de textos em Pixelify Sans.
   --num-scale e --num-lift são calculados em numbers.js para alinhar altura e linha de base. */
.num { font-family: var(--pixel); font-weight: 400; font-size: calc(1em * var(--num-scale, .63)); line-height: 0; vertical-align: calc(1em * var(--num-lift, -.12)); letter-spacing: 0; }

/* Logo: texto alinhado ao centro da coroa (--logo-shift é calculado em numbers.js) */
.logo-text { display: inline-block; line-height: 1; transform: translateY(calc(var(--logo-shift, .1) * 1em)); }

/* Avatar do quarto: nome e balão de fala (tamanhos acompanham a largura da cena) */
.scene .nametag { position: absolute; transform: translate(-50%, -100%); padding: .25em .7em .3em; border-radius: 1.2cqw; background: rgba(14, 22, 40, .82); color: #fff; font: 700 max(2.4cqw, 9px)/1.1 var(--body); white-space: nowrap; pointer-events: none; }
.scene .bubble { position: absolute; transform: translate(-50%, -100%); padding: .35em .8em .4em; background: #fff; color: var(--ink); border: .5cqw solid var(--ink); border-radius: 1.6cqw; font: 700 max(2.6cqw, 10px)/1.15 var(--body); white-space: nowrap; pointer-events: none; }

/* Faixa promocional no topo (texto passando, sem parar) */
.promo { background: var(--red); border-bottom: 4px solid var(--ink); overflow: hidden; }
.promo-track { display: inline-flex; white-space: nowrap; animation: promo-scroll 22s linear infinite; will-change: transform; }
.promo-seq { display: inline-flex; align-items: center; }
.promo-seq > span { font-family: var(--pixel); font-weight: 400; font-size: 16px; color: #fff; text-shadow: 2px 2px 0 var(--ink); padding: 12px 0; }
.promo-sep { padding-left: 18px !important; padding-right: 18px !important; color: var(--yellow) !important; }
.promo-seq img { height: 26px; width: auto; margin-right: 12px; image-rendering: pixelated; }
@keyframes promo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .promo-track { animation: none; } }

/* Carrinho */
.cart-btn { position: relative; }
.cart-n { display: inline-block; min-width: 26px; text-align: center; padding: 3px 7px; background: var(--ink); color: var(--yellow); border-radius: 13px; font-family: var(--pixel); font-size: 11px; line-height: 1.4; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 3px solid var(--ink); color: var(--ink); }
.cart-line .k { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.cart-line strong { font-size: 16px; white-space: nowrap; }
.cart-line .stepper { display: inline-flex; align-items: center; gap: 6px; }
.cart-line .stepper button { width: 28px; height: 28px; padding: 0; border: 3px solid var(--ink); background: var(--paper); font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
.cart-line .stepper button:disabled { opacity: .4; cursor: not-allowed; }
.cart-line .stepper .q { min-width: 44px; text-align: center; font-weight: 700; font-size: 15px; }
.cart-line .rm { flex: none; width: 30px; height: 30px; padding: 0; border: 3px solid var(--ink); background: var(--red); color: #fff; font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.cart-warn { color: #9E2E24; font-size: 13px; font-weight: 700; }
#co-lines .line, #od-lines .line, #ao-lines .line { font-size: 16px; }
.scene .bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.6cqw; height: 1.6cqw; margin-left: -.8cqw; margin-top: -.9cqw; background: #fff; border: solid var(--ink); border-width: 0 .5cqw .5cqw 0; transform: rotate(45deg); }
