/* 그린워싱 사냥꾼 「지속가능 타워를 지켜라」 — 공통 스타일 (다크 + 라임/페인트 그린) */
:root {
  --bg: #0b1210; --bg2: #121c18; --bg3: #1a2621; --line: #27382f;
  --fg: #e9f1ec; --fg2: #9db3a6; --fg3: #5f7368;
  --lime: #a3e635; --lime2: #d9f99d; --green: #22c55e; --paint: #34d399; --red: #ef4444; --red2: #ff8a8a;
  --amber: #f5a524; --blue: #4f8df5; --purple: #a855f7; --roof: #e7d8b5;
  --radius: 14px; --shadow: 0 8px 30px rgba(0,0,0,.45);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); min-height: 100%; overflow-x: hidden; }
body { font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1000px 420px at 50% -10%, rgba(163,230,53,.09), transparent 60%),
                    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.012) 2px 3px); }
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--bg3); color: var(--fg); transition: .15s; }
button:hover { filter: brightness(1.15); }
button:disabled { opacity: .4; cursor: not-allowed; filter: none; }
button.primary { background: var(--lime); color: #101800; font-weight: 800; }
button.danger { background: var(--red); color: #fff; font-weight: 800; }
button.ghost { background: transparent; border: 1px solid var(--line); }
button.big { padding: 16px 26px; font-size: 1.15rem; border-radius: 14px; }
button.sm { padding: 6px 10px; font-size: .85rem; }
input, select { font: inherit; background: var(--bg3); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus { outline: 2px solid var(--lime); border-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--fg2); } .dim { color: var(--fg3); } .lime { color: var(--lime); } .red { color: var(--red2); } .green { color: var(--green); } .paint { color: var(--paint); }
.mono { font-variant-numeric: tabular-nums; font-family: "JetBrains Mono", Consolas, monospace; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); font-size: .85rem; white-space: nowrap; }
.chip.ok { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.5); color: #86efac; }
.chip.warn { background: rgba(245,165,36,.15); border-color: rgba(245,165,36,.5); color: #ffd27a; }
.chip.bad { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.5); color: var(--red2); }
.chip.lime { background: rgba(163,230,53,.15); border-color: rgba(163,230,53,.5); color: var(--lime2); }
.tag { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--bg3); color: var(--fg2); }
.center { text-align: center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--lime); }
.stars { color: var(--amber); letter-spacing: 1px; }
.pill-env { color: #86efac; } .pill-eco { color: #fcd34d; } .pill-soc { color: #93c5fd; } .pill-gw { color: #f0abfc; } .pill-roof { color: var(--roof); }

/* ===== 카드 문구 표시 (본문 + 괄호 안 숨은 정보) ===== */
.ctext .hint { color: var(--fg3); font-size: .78em; font-weight: 400; }
.ctext .hint::before { content: "("; } .ctext .hint::after { content: ")"; }

/* ===== 타워 SVG 연출 ===== */
.tower-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tower-svg rect, .tower-svg polygon, .tower-svg polyline, .tower-svg path { transition: y .7s cubic-bezier(.2,.8,.2,1), height .7s cubic-bezier(.2,.8,.2,1), points .7s, opacity .5s; }
.tower-svg.instant rect, .tower-svg.instant polygon, .tower-svg.instant polyline { transition: none; }
.tower-svg .pillar { transform-box: fill-box; transform-origin: center bottom; }
.tower-svg .pillar.glow { filter: url(#glow); }
.tower-svg .pillar.glow-strong { filter: url(#glow) brightness(1.6); }
.tower-svg .pillar.shake { animation: pshake .55s; }
.tower-svg .pillar.critical .hp { animation: blink 1s infinite; }
.tower-svg .ring.pulse { animation: ring .8s ease-out forwards; }
.tower-svg .delta.float { animation: floatup 1.1s ease-out forwards; }
.tower-svg .roof { transform-box: fill-box; transform-origin: center; }
.tower-svg .roof.shine { animation: roofshine .8s; }
.tower-svg .roof.dust { animation: roofdust .6s; }
.tower-svg .roof.low .roof-text { fill: #7a2e2e; }
.tower-svg .particle { animation: burst 1.1s ease-out forwards; transform-box: fill-box; transform-origin: center; }
.tower-svg .particle.paint { animation-duration: 1.4s; }
.tower-svg .stain { animation: stainin .4s ease-out; }
@keyframes pshake { 0%,100%{transform:translateX(0)} 15%{transform:translateX(-7px) rotate(-.6deg)} 35%{transform:translateX(7px) rotate(.6deg)} 55%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
@keyframes ring { from { opacity: .95; transform: scale(.6); } to { opacity: 0; transform: scale(1.9); } }
@keyframes floatup { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px); } }
@keyframes roofshine { 0%,100% { filter: none; } 40% { filter: brightness(1.5) drop-shadow(0 0 18px rgba(255,255,220,.9)); } }
@keyframes roofdust { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(5px) rotate(-.8deg); } 60% { transform: translateY(3px) rotate(.6deg); } }
@keyframes burst { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
@keyframes stainin { from { opacity: 0; transform: scale(.3); } to { opacity: 1; } }
@keyframes blink { 50% { opacity: .35; } }

/* 전체 화면 플래시 (2배 효과) */
.tflash { position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: 0; display: flex; align-items: center; justify-content: center; }
.tflash.show { animation: tflash .6s ease-out forwards; }
.tflash .ftxt { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 900; color: #fff; text-shadow: 0 0 30px rgba(163,230,53,.9), 0 4px 0 rgba(0,0,0,.4); padding: 16px 40px; border-radius: 20px; background: rgba(0,0,0,.45); transform: scale(.8); animation: fpop .6s cubic-bezier(.2,1.4,.3,1) forwards; }
.tflash.show::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(163,230,53,.55), rgba(163,230,53,.15) 50%, transparent 75%); }
.tflash.win::before { background: radial-gradient(circle, rgba(255,255,255,.7), rgba(163,230,53,.3) 50%, transparent 75%); }
@keyframes tflash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fpop { to { transform: scale(1); } }

/* ===== 교사 화면 ===== */
.tbar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.tbar h1 { font-size: 1.15rem; white-space: nowrap; }
@media (max-width: 1100px) { .tbar { flex-wrap: wrap; } .tbar h1 .tag { display: none; } }
.tbar .code { font-size: 1.5rem; font-weight: 900; letter-spacing: 4px; color: var(--lime); }
.tbar .timer { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 96px; text-align: center; }
.tbar .timer.urgent { color: var(--red2); animation: blink .8s infinite; }
.tbar .stat { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.tbar .stat b { font-size: 1.25rem; } .tbar .stat span { font-size: .72rem; color: var(--fg2); }
.screen { display: none; padding: 16px 18px; }
.screen.active { display: block; }
.lobby { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .lobby { grid-template-columns: 1fr; } }
.lobby .bigcode { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 900; letter-spacing: 14px; color: var(--lime); text-align: center; line-height: 1; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.qr img, .qr canvas { display: block; }
.plist { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; }
.plist .p { padding: 4px 10px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); font-size: .9rem; animation: fpop .3s; }
.setrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow input[type=number] { width: 70px; text-align: center; }

.playgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; height: calc(100vh - 70px); }
@media (max-width: 1000px) { .playgrid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; height: auto; } }
.towerbox { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 380px; display: flex; flex-direction: column; }
.towerbox .tower-wrap { flex: 1; min-height: 0; }
.towerbox .rname { position: absolute; left: 14px; top: 10px; font-weight: 900; font-size: 1.1rem; }
.towerbox .rname small { display: block; color: var(--fg2); font-weight: 500; font-size: .8rem; }
.towerbox .goal { position: absolute; right: 14px; top: 10px; text-align: right; font-size: .8rem; color: var(--fg2); }
.feed { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; min-height: 0; }
.feed h3 { font-size: .95rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.feed .items { flex: 1; overflow: hidden; display: flex; flex-direction: column-reverse; gap: 6px; }
.fitem { border-radius: 10px; padding: 8px 10px; background: var(--bg3); border-left: 4px solid var(--fg3); font-size: .92rem; animation: fslide .35s cubic-bezier(.2,.9,.3,1.2); display: flex; flex-direction: column; gap: 2px; }
.fitem .who { font-weight: 800; }
.fitem .what { color: var(--fg2); font-size: .82rem; }
.fitem .res { font-weight: 700; }
.fitem.full { border-color: var(--green); } .fitem.partial { border-color: var(--amber); } .fitem.wrong, .fitem.timeout { border-color: var(--red); } .fitem.fooled { border-color: var(--paint); background: linear-gradient(90deg, rgba(52,211,153,.18), var(--bg3)); } .fitem.roofMiss { border-color: var(--roof); } .fitem.x2 { box-shadow: 0 0 0 2px rgba(163,230,53,.6); } .fitem.sum { border-color: var(--blue); font-style: italic; }
.fitem.pending .res { color: var(--fg3); }
@keyframes fslide { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; } }
.shot { position: fixed; z-index: 800; pointer-events: none; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #fff; background: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.shot.neg { background: var(--red); } .shot.fooled { background: var(--paint); color: #052e1e; }
.gridbox { grid-column: 1 / -1; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.gridbox h3 { font-size: .9rem; margin-bottom: 6px; display: flex; gap: 12px; align-items: center; }
.cgrid { display: grid; grid-template-columns: repeat(50, 1fr); gap: 3px; }
.cgrid .c { aspect-ratio: 1; border-radius: 3px; background: #1d2a24; position: relative; cursor: default; }
.cgrid .c.gw { outline: 1px dashed rgba(240,171,252,.35); outline-offset: -1px; }
.cgrid .c .f { position: absolute; right: 0; bottom: 0; width: 45%; height: 45%; border-radius: 50%; background: var(--paint); }
.cgrid .c:hover::after { content: attr(data-tip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: .78rem; white-space: pre-wrap; width: 260px; z-index: 50; border: 1px solid var(--line); }
.legend { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; color: var(--fg2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }

/* 결과 화면 */
.result { max-width: 1200px; margin: 0 auto; }
.result h2 { font-size: 1.7rem; margin-bottom: 12px; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rgrid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) { .rgrid, .rgrid.three { grid-template-columns: 1fr; } }
.topcard { padding: 12px 14px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--line); margin-bottom: 8px; }
.topcard .no { font-weight: 900; color: var(--lime); }
.topcard .t { font-size: 1.05rem; margin: 4px 0; }
.topcard .e { color: var(--fg2); font-size: .9rem; border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 6px; }
.topcard .bar { height: 8px; background: #0a0e16; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.topcard .bar i { display: block; height: 100%; background: var(--red); }
.topcard .bar i.paint { background: var(--paint); }
.mvp { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(163,230,53,.15), transparent); border: 1px solid rgba(163,230,53,.4); }
.mvp b { font-size: 1.4rem; }
.hpmini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hpmini .h { text-align: center; padding: 10px; border-radius: 10px; background: var(--bg3); }
.hpmini .h b { display: block; font-size: 1.6rem; }
.hpmini .h.low b { color: var(--red2); }
.verdict-big { text-align: center; padding: 24px; border-radius: 18px; margin-bottom: 16px; }
.verdict-big.win { background: linear-gradient(135deg, rgba(34,197,94,.25), rgba(163,230,53,.1)); border: 2px solid var(--green); }
.verdict-big.warn { background: linear-gradient(135deg, rgba(245,165,36,.25), rgba(239,68,68,.1)); border: 2px solid var(--amber); }
.verdict-big h2 { font-size: 2.4rem; }
.typebar { display: grid; grid-template-columns: 130px 1fr 60px; gap: 10px; align-items: center; padding: 6px 0; }
.typebar .bar { height: 14px; background: #0a0e16; border-radius: 999px; overflow: hidden; }
.typebar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--paint), #6ee7b7); }
.gradedist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gradedist .g { text-align: center; padding: 10px; border-radius: 10px; background: var(--bg3); }
.gradedist .g b { font-size: 1.5rem; display: block; }

/* 브리핑 슬라이드 */
.slide { max-width: 1100px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 36px 44px; min-height: 60vh; display: flex; flex-direction: column; gap: 18px; }
.slide .k { color: var(--lime); letter-spacing: 4px; font-weight: 700; font-size: .9rem; }
.slide h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.slide .def { font-size: 1.5rem; line-height: 1.5; }
.slide .ex { background: var(--bg3); border-radius: 14px; padding: 18px 20px; border-left: 6px solid var(--paint); font-size: 1.3rem; }
.slide .ex small { display: block; color: var(--fg2); font-size: .95rem; margin-top: 8px; }
.slide .news { color: var(--fg2); font-size: 1.1rem; }
.slide .tip { margin-top: auto; padding: 14px 18px; border-radius: 12px; background: rgba(163,230,53,.1); border: 1px solid rgba(163,230,53,.4); font-size: 1.15rem; }
.slidenav { max-width: 1100px; margin: 12px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.dots i.on { background: var(--lime); }

/* 옵션 패널 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 950; }
.modal.show { display: flex; }
.modal .box { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(520px, 92vw); box-shadow: var(--shadow); }

/* ===== 학생 화면 ===== */
.sapp { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 12px 14px 20px; }
.sbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sbar .rn { font-weight: 900; }
.sbar .score { font-weight: 900; font-size: 1.2rem; color: var(--lime); font-variant-numeric: tabular-nums; }
.sbar .prog { color: var(--fg2); font-size: .9rem; }
.combo { font-weight: 900; color: var(--amber); }
.stage { position: relative; flex: 1; min-height: 62vh; display: flex; align-items: center; justify-content: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gcard { position: absolute; width: min(92vw, 480px); min-height: 360px; background: linear-gradient(160deg, #f7f4ea, #e9e3d2); color: #1b1b1b; border-radius: 22px; padding: 26px 24px; box-shadow: 0 14px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.gcard.next { transform: scale(.94) translateY(16px); opacity: .55; }
.gcard.anim { transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.gcard .top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: #5b5b5b; }
.gcard .no { font-weight: 900; color: #2f6b3f; }
.gcard .body { font-size: 1.35rem; font-weight: 700; line-height: 1.45; flex: 1; display: flex; align-items: center; }
.gcard .body .hint { font-size: .8em; color: #7b7b7b; font-weight: 400; }
.gcard .foot { display: flex; justify-content: space-between; font-size: .82rem; color: #6b6b6b; }
.gcard .lab { position: absolute; top: 22px; padding: 8px 14px; border-radius: 10px; font-weight: 900; font-size: 1.3rem; border: 3px solid; opacity: 0; transform: rotate(-12deg); transition: opacity .1s; }
.gcard .lab.o { right: 18px; color: #16a34a; border-color: #16a34a; transform: rotate(12deg); }
.gcard .lab.x { left: 18px; color: #dc2626; border-color: #dc2626; }
.gcard.free { background: linear-gradient(160deg, #eef6ff, #dbe7f5); }
.ring { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; z-index: 5; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: var(--bg2); stroke-width: 6; }
.ring .bg { stroke: var(--line); } .ring .fg { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.ring.warn .fg { stroke: var(--red); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.swipehint { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.swipehint button { flex: 1; padding: 16px; font-size: 1.15rem; font-weight: 900; border-radius: 16px; }
.swipehint .bx { background: rgba(239,68,68,.18); border: 2px solid rgba(239,68,68,.6); color: #fecaca; }
.swipehint .bo { background: rgba(34,197,94,.18); border: 2px solid rgba(34,197,94,.6); color: #bbf7d0; }
.swipehint .mid { color: var(--fg3); font-size: .8rem; text-align: center; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg2); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 16px 16px 24px; transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.9,.3,1); z-index: 40; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
.sheet.show { transform: translateY(0); }
.sheet h3 { text-align: center; margin-bottom: 12px; }
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 0 auto; }
.pbtns button { padding: 18px 10px; font-size: 1.2rem; font-weight: 900; border-radius: 16px; border: 2px solid var(--line); background: var(--bg3); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.pbtns button small { font-weight: 500; font-size: .78rem; color: var(--fg2); }
.pbtns .env { border-color: rgba(34,197,94,.6); } .pbtns .eco { border-color: rgba(245,165,36,.6); } .pbtns .soc { border-color: rgba(79,141,245,.6); } .pbtns .gw { border-color: rgba(168,85,247,.7); background: linear-gradient(135deg, rgba(168,85,247,.2), var(--bg3)); }
.overlay { position: fixed; inset: 0; background: rgba(5,10,8,.92); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.overlay.show { display: flex; }
.rbox { width: min(520px, 100%); background: var(--bg2); border: 2px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; animation: fpop .35s cubic-bezier(.2,1.4,.3,1); }
.rbox.full { border-color: var(--green); } .rbox.partial { border-color: var(--amber); } .rbox.wrong, .rbox.timeout { border-color: var(--red); } .rbox.fooled { border-color: var(--paint); background: linear-gradient(160deg, rgba(52,211,153,.14), var(--bg2)); }
.rbox .big { font-size: 2rem; font-weight: 900; text-align: center; }
.rbox .truth { text-align: center; font-size: 1.15rem; }
.rbox .exp { background: var(--bg3); border-radius: 12px; padding: 12px 14px; font-size: 1.05rem; line-height: 1.5; }
.rbox .exp small { display: block; color: var(--fg3); font-size: .8rem; margin-bottom: 4px; }
.rbox .pts { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.rbox .pts b { font-size: 1.8rem; }
.rbox .tower { text-align: center; padding: 8px; border-radius: 10px; background: rgba(163,230,53,.08); border: 1px dashed rgba(163,230,53,.4); font-weight: 700; }
.rbox .tower.neg { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.4); }
.rbox .tower.fooled { background: rgba(52,211,153,.14); border-color: var(--paint); }
.gradecard { text-align: center; padding: 26px; border-radius: 22px; background: linear-gradient(160deg, rgba(163,230,53,.18), var(--bg2)); border: 2px solid rgba(163,230,53,.5); }
.gradecard .ic { font-size: 3.6rem; }
.gradecard h2 { font-size: 2rem; margin: 6px 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge { padding: 8px 12px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--line); font-weight: 700; }
.badge.off { opacity: .35; filter: grayscale(1); }
.review { display: flex; flex-direction: column; gap: 8px; }
.review .r { padding: 10px 12px; border-radius: 12px; background: var(--bg3); border-left: 4px solid var(--paint); }
.review .r.wrong { border-color: var(--red); }
.review .r .e { color: var(--fg2); font-size: .9rem; margin-top: 4px; }
.typepick { display: flex; flex-wrap: wrap; gap: 8px; }
.typepick button { flex: 1; min-width: 120px; }
.typepick button.on { background: var(--lime); color: #101800; font-weight: 800; }
.waitbox { text-align: center; padding: 30px 16px; }
.waitbox .ic { font-size: 3rem; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.statgrid .s { text-align: center; padding: 10px; border-radius: 10px; background: var(--bg3); }
.statgrid .s b { display: block; font-size: 1.5rem; }
