/* Telas internas (loja, regras e relatório do testador) — antes eram páginas separadas */
.pagehead { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.pagehead img { width: 76px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.pagehead h1 { margin: 0; font-size: clamp(34px, 7vw, 52px); line-height: .95; color: #fff; text-shadow: 0 4px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink), 0 0 24px rgba(125,211,252,.5); }
.pagehead small { display: block; font-family: system-ui, sans-serif; font-size: 14px; color: #dbeafe; text-shadow: 0 2px 0 var(--ink); letter-spacing: 0; }
.shop { max-width: 1020px; margin: 0 auto; padding: 16px 16px 70px; padding-top: max(16px, env(safe-area-inset-top)); }
.testbanner { border: 3px dashed #c4b5fd; border-radius: 18px; padding: 12px 16px; margin: 14px 0; background: rgba(40, 20, 110, .75); color: #f5f3ff; }
.grid-shop { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.prod { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--plate); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 12px 28px rgba(0,0,0,.5), inset 0 0 0 2px rgba(125,211,252,.45); }
.prod.soon { opacity: .65; }
.prod .ic { display: grid; place-items: center; width: 58px; height: 58px; font-size: 30px; line-height: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8cc0ff, #2a55d8 62%, #162f8c); border: 3px solid #d7e1ee; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 rgba(0,0,0,.5); }
.prod h3 { margin: 0; font-size: 26px; color: #fff; text-shadow: 0 3px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink); }
.prod p { margin: 0; color: var(--mut); font-size: 15px; flex: 1; }
.prod .price { font-family: var(--display); font-size: 30px; color: #fff; text-shadow: 0 3px 0 var(--ink); }
.prod .own { color: #a5f3fc; font-weight: 800; }
.prod button.cta { margin-top: 6px; font-size: 24px; min-height: 52px; }
.skins { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.skins button { width: 84px; padding: 4px; font-size: 12px; color: #fff; font-weight: 700; background: rgba(4,12,30,.8); border: 3px solid var(--ink); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(125,211,252,.4); cursor: pointer; }
.skins button.on { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--cyan); background: #1b3d86; }
.skins img { width: 100%; height: 66px; object-fit: contain; display: block; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.opts button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 12px; font-weight: 700; font-size: 13px; color: #fff; background: rgba(4,12,30,.85); border: 3px solid var(--ink); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(125,211,252,.4); cursor: pointer; }
.opts button.on { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--cyan); background: #1b3d86; }
.opts i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #10245c; display: inline-block; }
.palette { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.palette .sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); cursor: pointer; padding: 0; color: #fff; font-weight: 800; background: rgba(4,12,30,.85); }
.palette .sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--cyan); }
.palette .sw.custom { width: auto; height: 34px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 4px; font-size: 13px; }
.palette .sw.custom input { -webkit-appearance: none; appearance: none; inline-size: 26px; block-size: 26px; min-height: 0; border: 2px solid var(--ink); padding: 0; background: none; border-radius: 50%; cursor: pointer; overflow: hidden; }
.palette .sw.custom input::-webkit-color-swatch-wrapper { padding: 0; } .palette .sw.custom input::-webkit-color-swatch { border: none; border-radius: 50%; } .palette .sw.custom input::-moz-color-swatch { border: none; border-radius: 50%; }
.palette .preview { flex-basis: 100%; margin-top: 6px; padding: 6px 12px; border-radius: 10px; background: #0b1d45; font-family: var(--display, Bangers); font-size: 22px; letter-spacing: 1px; width: max-content; }
#pay-modal { width: min(94vw, 420px); text-align: center; } #pay-qr { display: block; margin: 8px auto; background: #fff; padding: 8px; border-radius: 14px; }
.copyrow { display: flex; gap: 8px; } .copyrow input { margin: 0; font-size: 13px; }
.pay-status { margin: 10px 0 0; font-weight: 800; color: #e0f2fe; min-height: 22px; } .pay-status.ok { color: #a5f3fc; font-size: 20px; } .pay-status.bad { color: #fda4af; }
.wallet { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wallet .pill { font-size: 14px; padding: 6px 14px; background: rgba(4,12,30,.85); border: 2px solid var(--cyan); border-radius: 99px; font-weight: 700; }
.wallet .ghost { margin: 0; }
.doc { max-width: 900px; margin: 0 auto; padding: 16px 16px 70px; padding-top: max(16px, env(safe-area-inset-top)); }
.doc h2 { font-size: 30px; }
.doc h3 { margin: 16px 0 4px; font-size: 17px; font-family: system-ui, sans-serif; font-weight: 700; letter-spacing: 0; color: #dbeafe; }
.doc p, .doc li { line-height: 1.6; }
.doc ul, .doc ol { padding-left: 22px; margin: 6px 0; }
.doc td, .doc th { white-space: normal; text-align: left; vertical-align: top; }
.doc kbd { font: 700 12px/1 ui-monospace, monospace; background: #fff; color: #10245c; border-radius: 5px; padding: 3px 7px; box-shadow: 0 2px 0 #8aa; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.toc a { padding: 6px 14px; border-radius: 99px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; background: rgba(14,32,76,.9); border: 2px solid rgba(125,211,252,.55); }
.toc a:hover { background: #1d3aa6; }
.c13t { color: #ff8d97; font-weight: 800; } .c22t { color: #ffe14d; font-weight: 800; }
.note { border-left: 5px solid var(--violet); background: rgba(60,38,150,.35); padding: 10px 14px; border-radius: 10px; margin: 10px 0; }
.updated { color: #dbeafe; font-size: 13px; }
.scroll { overflow-x: auto; }
.tw { max-width: 1000px; margin: 0 auto; padding: 16px 16px 70px; padding-top: max(16px, env(safe-area-inset-top)); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.badge2 { padding: 8px 16px; border-radius: 14px; border: 3px solid var(--ink); background: rgba(4,12,30,.9); font-weight: 800; box-shadow: inset 0 0 0 2px var(--cyan); }
.badge2.bad { box-shadow: inset 0 0 0 2px #f472b6; color: #fbcfe8; } .badge2.warn { box-shadow: inset 0 0 0 2px var(--violet); color: #ddd6fe; }
.row2 { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.row2 button, .row2 a { width: auto; margin: 0; padding: 10px 22px; font-size: 24px; text-decoration: none; }
table.chk { width: 100%; border-collapse: collapse; font-size: 14px; }
table.chk th, table.chk td { text-align: left; padding: 7px 8px; white-space: normal; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.st { font-weight: 800; white-space: nowrap; } .st.ok { color: #a5f3fc; } .st.bad { color: #f9a8d4; } .st.warn { color: #c4b5fd; }
.grp td { background: rgba(4,12,30,.85); color: var(--cyan); font-weight: 800; letter-spacing: 1px; }
pre.cov { background: rgba(4,12,30,.85); border: 2px solid rgba(125,211,252,.4); border-radius: 12px; padding: 10px; overflow-x: auto; font-size: 12.5px; }
/* botão Voltar padrão (todas as telas) */
.btn-back { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 6px 18px; font-family: var(--display); font-size: 19px; letter-spacing: .5px; color: #fff; background: linear-gradient(180deg, rgba(30,64,130,.95), rgba(14,32,76,.95)); border: 3px solid var(--ink); border-radius: 99px; box-shadow: inset 0 0 0 2px rgba(125,211,252,.5), 0 4px 0 #040d22; cursor: pointer; text-decoration: none; }
.btn-back:hover { filter: brightness(1.15); } .btn-back:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px rgba(125,211,252,.5), 0 2px 0 #040d22; }
.pagehead { flex-wrap: wrap; }
.screen-page { max-width: 1020px; margin: 0 auto; padding: 16px 16px 70px; padding-top: max(16px, env(safe-area-inset-top)); }
/* loja nova */
.wallet .ghost, .opts .ghost { width: auto; margin: 0; padding: 6px 14px; }
.qty { display: flex; flex-direction: column; gap: 8px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 46px; min-height: 42px; font-family: var(--display); font-size: 24px; color: #fff; background: rgba(4,12,30,.85); border: 3px solid var(--ink); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(125,211,252,.4); cursor: pointer; }
.stepper button.q5 { width: auto; padding: 0 12px; font-size: 18px; }
.stepper b { min-width: 40px; text-align: center; font-family: var(--display); font-size: 30px; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; } /* todos à vista, sem rolagem */
.scene-tile img { cursor: zoom-in; } .scene-tile img:hover { outline: 3px solid #ffd400; }
dialog.zoom { width: min(96vw, 1100px); padding: 10px; text-align: center; } dialog.zoom img { width: 100%; border-radius: 14px; display: block; }
dialog.zoom .zoom-cap { font-family: var(--display); font-size: 26px; margin: 8px 0; } dialog.zoom::backdrop { background: rgba(0,0,0,.75); }
.prod.wide { grid-column: 1 / -1; }
.prod.wide .wardrobe { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.autosave { min-height: 16px; font-weight: 800; color: #a5f3fc; } .autosave.bad { color: #fda4af; }
.scene-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 4px; border-radius: 12px; background: rgba(4,12,30,.85); border: 2px solid rgba(125,211,252,.35); font-size: 11px; font-weight: 700; }
.scene-tile img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; }
.scene-tile.own { border-color: #a5f3fc; } .scene-tile em { color: #a5f3fc; font-style: normal; }
.scene-tile button { min-height: 28px; font-size: 12px; font-weight: 800; color: #fff; border-radius: 8px; border: 2px solid var(--ink); background: linear-gradient(180deg,#7db4ff,#3b6cf0); cursor: pointer; }
.name-buy { display: flex; flex-direction: column; gap: 8px; } .name-buy input { margin: 0; }
.name-res .bad { color: #fda4af; font-weight: 800; } .okname { color: #a5f3fc; font-weight: 700; } .okname b { color: #fff; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
details.prio summary { cursor: pointer; font-weight: 800; color: #ffd400; }
.opts.col { flex-direction: column; align-items: stretch; }
.colorbox { margin-top: 6px; } .palette .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 2px 10px; color: #fff; font-weight: 700; font-size: 13px; border-radius: 99px; border: 3px solid var(--ink); background: rgba(4,12,30,.85); cursor: pointer; }
.palette .chip i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; background: repeating-linear-gradient(45deg,#334 0 3px,#556 3px 6px); } .palette .chip.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--cyan); }
.wardrobe { display: grid; gap: 12px; } .suit-side { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; align-items: start; } .suit-side .lbl { grid-column: 1 / -1; }
.suit-prev { width: 90px; height: 90px; background: radial-gradient(#1e3a8a, #0b1d45); border-radius: 12px; border: 2px solid rgba(125,211,252,.4); }
#pay-modal { width: min(94vw, 420px); text-align: center; }
