:root {
  --ink: #1c2530;
  --ink-soft: #55616e;
  --paper: #f4f0e7;
  --paper-2: #fcfaf5;
  --line: #ddd4c6;
  --gold: #c28b42;
  --gold-dark: #9a6f35;
  --gold-text: #8a6430;
  --navy: #0c1019;
  --navy-2: #1b2730;
  --green-bg: #e6efe2;
  --green: #36543d;
  --red: #a23b2a;
  --you: #dbe6e5;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --app-h: 100dvh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(circle at 12% 0%, #222b37 0%, var(--navy) 55%); min-height: 100vh; }
button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow, .clue-label, .kicker, .overline, .reportitem span { letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--gold-dark); text-transform: uppercase; }
.tiny { font-size: 12px; color: #8f8b84; line-height: 1.5; margin: 10px 0 0; }
.small { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; background: var(--gold); color: #171d21; padding: 15px 20px; border-radius: 10px; font-size: 14px; font-weight: 850; letter-spacing: 1px; min-height: 48px; }
.primary:hover { background: #d4a154; }
.primary:disabled { opacity: .55; cursor: progress; }
.primary.big { width: 100%; margin-top: 22px; font-size: 15px; }
.secondary { background: transparent; border: 1px solid #c4b8a8; border-radius: 10px; padding: 13px 18px; font-size: 14px; font-weight: 700; min-height: 48px; }
.errorbox { margin-top: 14px; background: #fbe3df; color: #8d2e20; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }

/* ---------------------------------------------------------- START */
.start { max-width: 1180px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #eeeef3; }
.mark { width: 38px; height: 38px; border: 1px solid #e7b965; color: #e7b965; display: grid; place-items: center; font-size: 22px; transform: rotate(-12deg); }
.overline { color: #e4b568; font-size: 10px; }
.brandname { font-size: 17px; font-weight: 850; letter-spacing: 1.3px; }
.brandname em { font-style: normal; color: #e4b568; }
.topright { margin-left: auto; font-size: 10px; letter-spacing: 1.7px; color: #b2b6c5; display: none; }
.startgrid { border-radius: 16px; overflow: hidden; box-shadow: 0 25px 80px #0005; }
.dossier { padding: 22px 20px; background: linear-gradient(150deg, #283640, var(--navy-2) 53%, #151f28); color: #eeeef3; }
.kicker { color: #e4b568; }
.art { height: 110px; position: relative; margin: 10px -5px 4px; overflow: hidden; background: radial-gradient(ellipse at 58% 68%, #67757c 0%, #354954 36%, transparent 73%); }
.art-sun { position: absolute; border-radius: 100%; background: #e0ac59; width: 100px; height: 100px; left: 40%; top: 6px; opacity: .7; }
.block { position: absolute; width: 60px; height: 48px; border-radius: 6px; transform: rotate(-16deg); box-shadow: inset -10px -10px 0 #0003, 0 10px 24px #0006; }
.b1 { background: #c65e49; left: 10%; bottom: 10px; } .b2 { background: #d9a94b; left: 32%; bottom: 40px; transform: rotate(14deg); }
.b3 { background: #467c8f; left: 56%; bottom: 6px; } .b4 { background: #a95a65; left: 74%; bottom: 46px; transform: rotate(30deg); }
.glass { position: absolute; top: -8px; right: 6%; font-size: 64px; color: #ffffff6b; transform: rotate(-20deg); }
.dossier h1 { font-size: 28px; line-height: 1.12; letter-spacing: -1px; margin: 8px 0 10px; }
.dossier h1 span { font-family: Georgia, serif; font-weight: 400; font-style: italic; color: #e7bd75; }
.asidecopy { font-size: 15px; line-height: 1.6; color: #c5cbd2; margin: 0; }
.setup { background: var(--paper); padding: 22px 18px 26px; }
.setup .eyebrow { margin: 6px 0 10px; }
.cases { display: grid; gap: 10px; margin-bottom: 22px; }
.casecard { text-align: left; border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 14px 16px; display: grid; gap: 3px; min-height: 56px; }
.casecard b { font-size: 16px; }
.casecard small { font-size: 13px; color: #80858b; }
.casecard .played { color: var(--green); font-weight: 700; }
.casecard[aria-checked="true"], .level[aria-checked="true"] { border-color: var(--gold); background: #fff8e9; box-shadow: inset 4px 0 var(--gold); }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.level { text-align: left; border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 12px; display: grid; gap: 4px; min-height: 64px; }
.level b { font-size: 15px; }
.level small { font-size: 12px; color: #80858b; line-height: 1.3; }
.status-line { min-height: 1em; }
.status-line.bad { color: var(--red); }
.status-line.good { color: var(--green); }

/* ---------------------------------------------------------- GAME */
.game { position: fixed; inset: 0; height: var(--app-h); display: flex; flex-direction: column; background: var(--paper); max-width: 820px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 12px 8px; background: #1b2730; color: #f2efe8; }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #ffffff30; background: transparent; font-size: 24px; line-height: 1; color: #e4b568; flex: none; }
.topinfo { min-width: 0; flex: 1; }
.toptitle { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topmeta { font-size: 11px; letter-spacing: 1.4px; color: #e4b568; font-weight: 700; text-transform: uppercase; }
.clues { flex: none; font-size: 13px; font-weight: 800; background: #ffffff14; border-radius: 999px; padding: 6px 10px; }
.clues.pulse { animation: pulse .9s ease-out; }
@keyframes pulse { 0% { background: #e4b568; color: #171d21; } 100% { background: #ffffff14; } }
.progress { display: flex; gap: 4px; padding: 0 12px 0; background: #1b2730; padding-bottom: 8px; }
.progress span { height: 4px; flex: 1; background: #ffffff22; border-radius: 4px; transition: background .3s; }
.progress span.done { background: var(--gold); }

.chat { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 12px; }
.opening { background: #e9e3d6; border-left: 4px solid var(--gold); padding: 14px 16px; border-radius: 6px; }
.opening p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; }
.opening .small { font-size: 13px; margin-top: 10px; }
.bubble { max-width: 92%; padding: 11px 14px; border-radius: 16px; line-height: 1.55; font-size: 16px; word-wrap: break-word; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 4px 0 8px; padding-left: 20px; } .bubble li { margin: 3px 0; }
.bubble.you { align-self: flex-end; background: var(--you); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.bubble.you.pending { opacity: .7; }
.bubble.host { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.speaker { display: block; color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; margin-bottom: 4px; }
.typing { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 14px; color: var(--ink-soft); }
.typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.errorbubble { align-self: stretch; background: #fbe3df; color: #8d2e20; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.errorbubble button { margin-top: 8px; border: 1px solid #8d2e20; background: #fff; color: #8d2e20; border-radius: 8px; padding: 8px 14px; font-weight: 700; min-height: 40px; }

.sim { align-self: stretch; background: var(--green-bg); border: 1px solid #b5cbb0; border-radius: 14px; padding: 14px; }
.sim .simtag { font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: var(--green); }
.sim h4 { margin: 4px 0 10px; font-size: 16px; }
.simhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.simbig { font-size: 30px; font-weight: 850; letter-spacing: -1px; }
.simbig.pos { color: var(--green); } .simbig.neg { color: var(--red); }
.simsub { font-size: 13px; color: #4a5a4c; }
.bars { margin: 12px 0 6px; display: grid; gap: 6px; font-size: 12px; }
.barrow { display: grid; grid-template-columns: 72px 1fr 54px; gap: 8px; align-items: center; }
.bartrack { position: relative; height: 12px; background: #ffffff90; border-radius: 6px; }
.bartrack .zero { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #6b7a6d; left: 50%; }
.bartrack .fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.fill.pos { background: #6d9a68; } .fill.neg { background: #c9705f; }
.barrow b { text-align: right; }
.simgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.simgrid div { background: #ffffffa0; border-radius: 8px; padding: 7px 9px; font-size: 12px; color: #4a5a4c; }
.simgrid strong { display: block; font-size: 15px; color: var(--ink); }
.teamcard { align-self: stretch; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.teamcard .member { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.teamcard .member strong { display: block; font-size: 13px; }
.teamcard .member span { font-size: 13px; color: var(--ink-soft); }
.teamcard .chip.ask { flex: none; }
.teamnote { align-self: flex-start; max-width: 92%; background: #fff7e8; border: 1px solid var(--gold); border-left: 4px solid var(--gold); border-radius: 12px; padding: 8px 12px; }
.teamnote .speaker { font-size: 10px; letter-spacing: 1.4px; font-weight: 800; color: var(--gold-dark); }
.teamnote p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.insightfound { align-self: center; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; justify-content: center; background: var(--paper-2); border: 1px solid var(--gold); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 13px; animation: pop .5s ease-out; }
.insightfound strong { color: var(--gold-dark); font-size: 12px; letter-spacing: .5px; }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .insightfound { animation: none; } }
.gauge { margin: 2px 0 12px; }
.gaugehead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.verdict { font-size: 22px; font-weight: 800; }
.verdict.zw2, .verdict.zw1 { color: var(--red); } .verdict.z0 { color: var(--ink-soft); } .verdict.zb1, .verdict.zb2 { color: var(--green); }
.gaugenote { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.gaugetrack { position: relative; height: 16px; border-radius: 8px; overflow: visible; }
.gaugetrack .zone { position: absolute; top: 0; bottom: 0; }
.zone.zw2 { background: #d58b7d; border-radius: 8px 0 0 8px; } .zone.zw1 { background: #ecc0b6; } .zone.z0 { background: #e4ded2; } .zone.zb1 { background: #b9d3b2; } .zone.zb2 { background: #7fae79; border-radius: 0 8px 8px 0; }
.gaugetrack .band { position: absolute; top: 4px; bottom: 4px; background: rgba(28, 37, 48, .28); border-radius: 4px; }
.gaugetrack .needle { position: absolute; top: -6px; width: 4px; height: 28px; margin-left: -2px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--paper-2); }
.gaugetrack .pastidea { position: absolute; top: -3px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--ink-soft); font-size: 10px; font-weight: 800; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; }
.gaugeends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 8px; letter-spacing: .5px; }
.gaugetrack .ideamark { position: absolute; top: -3px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--paper-2); border: 2px solid #8b949c; font-size: 10px; font-weight: 800; color: #6b747c; display: flex; align-items: center; justify-content: center; }
.gaugetrack .ideamark.current { top: -7px; width: 28px; height: 28px; margin-left: -14px; background: var(--gold); border: 3px solid var(--navy); color: var(--navy); font-size: 13px; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.gaugetrack.lane-above { margin-top: 26px; } .gaugetrack.lane-below { margin-bottom: 26px; }
.gaugetrack .ideamark.lane1 { top: -26px; } .gaugetrack .ideamark.lane2 { top: 22px; }
.idealegend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.idealegend li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.idealegend .num { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #8b949c; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.idealegend li.current { color: var(--ink); font-weight: 700; background: #fff6e3; border-radius: 8px; padding: 4px 6px; margin: 0 -6px; }
.idealegend li.current .num { background: var(--gold); border-color: var(--navy); color: var(--navy); }
.idealegend .verdictsmall { font-size: 11px; font-weight: 700; white-space: nowrap; }
.verdictsmall.zw2, .verdictsmall.zw1 { color: var(--red); } .verdictsmall.z0 { color: var(--ink-soft); } .verdictsmall.zb1, .verdictsmall.zb2 { color: var(--green); }
.gaugelegend { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.tradeline { font-size: 14px; line-height: 1.45; margin: 10px 0 0; color: var(--ink); }
.tradeoff { margin-top: 12px; }
.tradetitle { display: block; letter-spacing: 1.6px; font-size: 10px; font-weight: 800; color: var(--green); margin-bottom: 6px; }
.traderows { display: flex; flex-direction: column; gap: 6px; }
.traderow { display: grid; grid-template-columns: 14px 1fr 70px auto; align-items: center; gap: 8px; font-size: 13px; }
.tradesign { font-size: 11px; } .traderow.up .tradesign { color: var(--green); } .traderow.down .tradesign { color: var(--red); }
.tradebar { height: 8px; background: rgba(28, 37, 48, .08); border-radius: 4px; overflow: hidden; }
.tradefill { height: 100%; border-radius: 4px; } .traderow.up .tradefill { background: #6d9a68; } .traderow.down .tradefill { background: #c9705f; }
.tradesize { font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.tradeonce { font-size: 12px; color: var(--ink-soft); padding-left: 22px; }
.whatif { margin-top: 12px; }
.whatif input[type=range] { width: 100%; accent-color: var(--green); min-height: 32px; }
.ticks { position: relative; height: 30px; margin: 0 9px; }
.tick { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.tick::before { content: ''; display: block; width: 2px; height: 8px; margin: 0 auto 2px; background: currentColor; }
.tick.est { color: var(--ink-soft); } .tick.real { color: var(--gold-dark); font-weight: 800; }
.whatif .drift { font-size: 12px; color: var(--red); margin: 4px 0 0; }
.whatif .drift:empty, .whatif .tip:empty { display: none; }
.gauge .anchor { font-size: 11px; color: var(--ink-soft); margin: 10px 0 0; }
.realitylist { margin: 6px 0 12px; padding-left: 18px; line-height: 1.55; font-size: 14px; }
.realitylist.mine { color: var(--ink-soft); }
.whatif .tip { font-size: 13px; margin: 2px 0 0; color: #3d4b3f; line-height: 1.45; }
.sim details.numbers { margin-top: 4px; }
.sim details { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #3d4b3f; }
.sim summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.sim .note { font-size: 11px; color: #5d6b5f; margin-top: 8px; }

.composer { border-top: 1px solid var(--line); background: #efe9dd; padding: 8px 10px calc(8px + var(--safe-b)); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
/* The three action chips always fit on one row, even at 320px. */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 6px; }
.actions .chip { padding: 8px 4px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.chip { flex: none; border: 1px solid #cdbfa9; background: var(--paper-2); border-radius: 999px; padding: 8px 13px; font-size: 14px; min-height: 38px; white-space: nowrap; }
.chip.suggest { border-color: var(--gold); background: #fff8e9; }
.chip.finish[aria-disabled="true"] { opacity: .5; }
.chip.finish[aria-disabled="false"] { background: var(--gold); border-color: var(--gold); font-weight: 800; }
.inputrow { display: flex; gap: 8px; align-items: flex-end; }
.inputrow textarea { flex: 1; resize: none; border: 1px solid #c7c1b8; border-radius: 20px; padding: 10px 14px; background: #fffcf7; font-size: 16px; line-height: 1.4; max-height: 160px; outline-color: var(--gold); }
.send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); font-size: 22px; font-weight: 900; color: #171d21; }
.send:disabled { opacity: .45; }
.modeline { font-size: 11px; color: #8f8b84; margin-top: 5px; text-align: center; }
.modeline.bad { color: var(--red); }

/* ---------------------------------------------------------- SHEET */
.sheet { position: fixed; inset: 0; background: #0009; display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheetbody { background: var(--paper); width: 100%; max-width: 640px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(18px + var(--safe-b)); max-height: 92vh; overflow-y: auto; }
.sheetbody h2 { margin: 6px 0; font-size: 24px; }
.sheetbody textarea { width: 100%; border: 1px solid #c7c1b8; border-radius: 10px; padding: 12px; font-size: 16px; line-height: 1.5; background: #fffcf7; margin-top: 8px; }
.sheetactions { display: flex; gap: 10px; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.sheetactions .primary { flex: 1; }

/* ---------------------------------------------------------- ENDING */
.ending { background: var(--paper); min-height: 100vh; }
.endwrap { max-width: 720px; margin: 0 auto; padding: calc(22px + var(--safe-t)) 16px calc(30px + var(--safe-b)); }
.reveal { padding: 20px; background: #252f3c; color: #f8f2e5; border-radius: 14px; margin-top: 10px; }
.reveal .clue-label { color: #e4b568; }
.reveal h2 { font-size: 30px; margin: 8px 0; color: #e9bd76; letter-spacing: -.5px; }
.reveal p { font-size: 15px; line-height: 1.65; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.stats div { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 11px; color: var(--ink-soft); }
.stats strong { display: block; font-size: 20px; color: var(--ink); }
.sectiontitle { font-size: 19px; margin: 26px 0 10px; }
.reportitem { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.scorecard { border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); padding: 12px 14px; margin: 12px 0; }
.scorecard .overall { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scorecard .overall span { font-weight: 800; font-size: 17px; color: var(--ink); }
.scorecard .overall strong { font-size: 15px; color: var(--gold-dark); white-space: nowrap; }
.mastery { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-soft); }
.mastery strong { color: var(--gold-dark); font-size: 14px; }
.scorerow { padding: 10px 0 0; }
.scorehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scorehead span:first-child { letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--gold-dark); }
.stars { color: var(--gold-dark); font-size: 16px; letter-spacing: 2px; white-space: nowrap; }
.scorerow p { line-height: 1.55; margin: 4px 0 0; font-size: 14px; }
.reportitem p { line-height: 1.6; margin: 6px 0; font-size: 15px; }
.quote { font-style: italic; color: var(--ink-soft); }
.historytext { line-height: 1.65; font-size: 15px; }
.insightlist { display: flex; flex-wrap: wrap; gap: 8px; }
.insightlist span { border-radius: 999px; padding: 6px 12px; font-size: 13px; border: 1px solid var(--line); }
.insightlist .got { background: var(--green-bg); border-color: #b5cbb0; }
.insightlist .miss { color: #8f8b84; border-style: dashed; }
.scenariolist { display: grid; gap: 8px; }
.scenariolist div { display: flex; justify-content: space-between; gap: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.sources { display: grid; gap: 10px; }
.sources a { color: #7b602e; font-size: 14px; word-break: break-word; }
.endactions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 8px; }

/* ---------------------------------------------------------- WIDER SCREENS */
@media (min-width: 820px) {
  .start { padding: 28px 30px; }
  .topright { display: block; }
  .startgrid { display: grid; grid-template-columns: 42% 58%; min-height: 640px; }
  .dossier { padding: 34px; }
  .art { height: 220px; }
  .art-sun { width: 148px; height: 148px; top: 22px; }
  .block { width: 83px; height: 69px; }
  .glass { font-size: 90px; }
  .dossier h1 { font-size: 42px; }
  .setup { padding: 34px 40px; }
  .game { border-left: 1px solid #ffffff20; border-right: 1px solid #ffffff20; }
  .chat { padding: 20px 22px; }
  .bubble { max-width: 80%; }
  .sheet { align-items: center; }
  .sheetbody { border-radius: 18px; }
}
@media (max-width: 350px) { .actions .chip { font-size: 13px; } }
@media (prefers-reduced-motion: no-preference) {
  .bubble, .sim, .errorbubble { animation: rise .25s ease-out; }
  @keyframes rise { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Optional feedback on the report screen */
.feedbackbox { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
.feedbackbox fieldset.rating { border: 0; padding: 0; margin: 12px 0; }
.feedbackbox legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ratingrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ratingrow label { position: relative; }
.ratingrow input { position: absolute; opacity: 0; inset: 0; }
.ratingrow span { display: flex; align-items: center; justify-content: center; min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper-2); font-weight: 700; cursor: pointer; }
.ratingrow input:checked + span { background: var(--gold); border-color: var(--gold-dark); color: var(--navy); }
.ratingrow input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.ratingends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.fbcomment { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; margin: 6px 0 10px; }
.fbcomment textarea { font: inherit; font-weight: 400; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper-2); resize: vertical; }
