/* title font, served with the game (SIL Open Font License, fonts/OFL.txt); no Google Fonts request */
@font-face { font-family: "Press Start 2P"; src: url("../fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }
:root {
  --ts: 1;                /* text scale: bigger on phones (set by touch.js) */
  --ink: #2b2234;
  --paper: #fbf5ea;
  --paper-2: #f1e6d2;
  --accent: #e0703a;      /* Aegean sunset orange */
  --accent-2: #2f7f9e;    /* sea blue */
  --muted: #7a6c80;
  --night: #1b1622;
  --ui-font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;   /* the audit-report standard */
  --sheet-font: Calibri, Carlito, Arial, sans-serif;                              /* Excel workpapers */
  --code-font: Consolas, "Cascadia Mono", "Courier New", monospace;
  --title-font: "Press Start 2P", ui-monospace, monospace;                        /* the game logo only */
  --head-font: var(--ui-font);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); overflow: hidden; }
body { display: grid; place-items: center; font-family: var(--ui-font); font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

#stage {
  position: relative;
  width: min(100vw, 177.78vh);
  height: min(100vh, 56.25vw);
  container-type: size;
  overflow: hidden;
  background: var(--night);
}
#game { position: absolute; inset: 0; }
#game canvas { image-rendering: pixelated; }
.hidden { display: none !important; }

/* ---------- HUD ---------- */
#hud { position: absolute; top: 2cqh; left: 1.5cqw; pointer-events: none; }
.hud-card {
  display: flex; gap: 1.2cqw; align-items: baseline;
  background: rgba(251,245,234,.92); border: .35cqh solid var(--ink); border-radius: .8cqh;
  padding: .8cqh 1.2cqw; font-size: calc(2.4cqh * var(--ts, 1)); box-shadow: 0 .5cqh 0 rgba(0,0,0,.35);
}
#hud-name { font-weight: 700; }
#hud-place { color: var(--accent-2); }
#hud-time { color: var(--muted); }
#keys {
  position: absolute; bottom: 1.5cqh; right: 1.5cqw; font-size: calc(1.9cqh * var(--ts, 1)); color: #f1e6d2;
  background: rgba(27,22,34,.7); padding: .6cqh 1cqw; border-radius: .6cqh; pointer-events: none;
}

/* ---------- Dialogue ---------- */
#dialog {
  position: absolute; left: 50%; bottom: 3cqh; transform: translateX(-50%);
  width: min(70cqw, 120cqh); min-height: 17cqh;
  background: var(--paper); border: .5cqh solid var(--ink); border-radius: 1cqh;
  box-shadow: 0 .8cqh 0 rgba(0,0,0,.4); padding: 2.2cqh 2cqw 2cqh;
  font-size: calc(3cqh * var(--ts, 1)); line-height: 1.35;
}
#dialog.top { bottom: auto; top: 11cqh; }
#dialog-name {
  position: absolute; top: -2.6cqh; left: 1.5cqw; background: var(--accent); color: #fff;
  border: .5cqh solid var(--ink); border-radius: .8cqh; padding: .2cqh 1cqw; font-weight: 700; font-size: calc(2.5cqh * var(--ts, 1));
}
#dialog-name:empty { display: none; }
#dialog-more { position: absolute; right: 1.5cqw; bottom: .8cqh; font-size: calc(2cqh * var(--ts, 1)); color: var(--muted); animation: bob 1s infinite; }
@keyframes bob { 50% { transform: translateY(.4cqh); } }

/* ---------- Place card ---------- */
#placecard {
  position: absolute; top: 12cqh; left: 50%; transform: translateX(-50%); text-align: center;
  color: #fff; text-shadow: 0 .4cqh 0 var(--ink); pointer-events: none; animation: card 3.2s forwards;
  background: rgba(27,22,34,.72); padding: 1.6cqh 2.4cqw; border-radius: 1cqh;
}
#placecard-title { font-family: var(--head-font); font-weight: 800; font-size: calc(4cqh * var(--ts, 1)); }
#placecard-sub { font-size: calc(2.8cqh * var(--ts, 1)); margin-top: 1.2cqh; }
@keyframes card { 0% { opacity: 0; transform: translate(-50%, -1cqh); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ---------- Laptop ---------- */
#laptop { position: absolute; inset: 0; background: rgba(27,22,34,.6); display: grid; place-items: center; }
.lt-body { width: 92cqw; }
.lt-screen {
  position: relative; height: 84cqh; background: #3a6f86;
  background-image: radial-gradient(circle at 80% 26%, #f3b26b 0 6cqh, transparent 6.2cqh),
    linear-gradient(180deg, #f7c89a 0%, #e98b5a 45%, #2f7f9e 46%, #1f5a72 100%);
  border: 1.4cqh solid #232028; border-radius: 1.6cqh 1.6cqh 0 0; overflow: hidden;
}
.lt-top { display: flex; justify-content: space-between; gap: 2cqw; background: rgba(27,22,34,.85); color: #fbf5ea; font-size: calc(2.1cqh * var(--ts, 1)); padding: .5cqh 1cqw; }
#lt-status { margin-left: auto; opacity: .75; }
.lt-desktop { display: grid; grid-template-columns: 9cqw; gap: 1.6cqh; padding: 2cqh 1.2cqw; width: 11.5cqw; }
.lt-icon { all: unset; cursor: pointer; display: grid; justify-items: center; gap: .5cqh; color: #fff; font-size: calc(1.9cqh * var(--ts, 1)); text-shadow: 0 .25cqh 0 rgba(0,0,0,.6); text-align: center; border-radius: .8cqh; padding: .4cqh 0; }
.lt-icon:hover, .lt-icon:focus-visible { background: rgba(255,255,255,.18); }
.lt-icon i { position: relative; width: 5.6cqh; height: 5.6cqh; border-radius: 1cqh; border: .35cqh solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: calc(2.8cqh * var(--ts, 1)); background: var(--paper); }
.badge { position: absolute; top: -1cqh; right: -1.2cqh; background: #c9475a; color: #fff; font-size: calc(1.7cqh * var(--ts, 1)); font-style: normal; border: .3cqh solid var(--ink); border-radius: 1cqh; padding: 0 .6cqh; }
.lt-base { height: 3.6cqh; background: linear-gradient(#cfc7d6, #8f879a); border-radius: 0 0 2cqh 2cqh; margin: 0 -2.5cqw; display: grid; place-items: center; }
.lt-off { all: unset; cursor: pointer; font-size: calc(1.8cqh * var(--ts, 1)); color: var(--ink); padding: 0 1cqw; }
.lt-off:hover { text-decoration: underline; }
#lt-toast { position: absolute; left: 50%; bottom: 3cqh; transform: translate(-50%, 2cqh); opacity: 0; transition: .25s; background: var(--ink); color: var(--paper); padding: 1cqh 1.6cqw; border-radius: .8cqh; font-size: calc(2.3cqh * var(--ts, 1)); pointer-events: none; }
#lt-toast.on { opacity: 1; transform: translate(-50%, 0); }

.win { position: absolute; top: 5.5cqh; left: 13cqw; right: 2cqw; bottom: 2cqh; background: var(--paper); border: .4cqh solid var(--ink); border-radius: .9cqh;
  box-shadow: 0 .8cqh 0 rgba(0,0,0,.35); display: flex; flex-direction: column; font-size: calc(2.3cqh * var(--ts, 1)); overflow: hidden; }
.win-bar { display: flex; justify-content: space-between; align-items: center; background: var(--accent-2); color: #fff; font-weight: 700; padding: .5cqh .5cqw .5cqh 1.2cqw; border-bottom: .4cqh solid var(--ink); }
.win-x { all: unset; cursor: pointer; width: 3.6cqh; height: 3.6cqh; display: grid; place-items: center; border-radius: .6cqh; background: rgba(0,0,0,.2); }
.win-x:hover { background: #c9475a; }
.win-body { flex: 1; overflow: auto; padding: 1.6cqh 1.4cqw; line-height: 1.4; }
.win-body p { margin: 0 0 1.2cqh; }
.win-body h5 { font-size: calc(2.3cqh * var(--ts, 1)); margin: 1.8cqh 0 .8cqh; color: var(--accent-2); }
.muted { color: var(--muted); }

/* inbox */
.inbox { display: grid; grid-template-columns: 26cqw 1fr; gap: 1.2cqw; height: 100%; }
.win.wide .win-body:has(.inbox) { padding: 0; }
.mail-list { border-right: .3cqh solid var(--paper-2); overflow: auto; }
.mail { all: unset; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .2cqh .6cqw; padding: 1.2cqh 1cqw; border-bottom: .2cqh solid var(--paper-2); width: calc(100% - 2cqw); }
.mail:hover { background: #f4ead8; }
.mail.on { background: #e5f0f4; box-shadow: inset .5cqh 0 0 var(--accent-2); }
.mail.unread .mail-from::before { content: "● "; color: #c9475a; }
.mail.unread .mail-from, .mail.unread .mail-subj { font-weight: 700; }
.mail-from { font-size: calc(2.1cqh * var(--ts, 1)); } .mail-time { font-size: calc(1.8cqh * var(--ts, 1)); color: var(--muted); }
.mail-subj { grid-column: 1 / -1; font-size: calc(2cqh * var(--ts, 1)); color: #4d4255; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-read { overflow: auto; padding: 1.6cqh 1.4cqw 1.6cqh 0; }
.mail-read h4 { margin: 0 0 .6cqh; font-size: calc(2.8cqh * var(--ts, 1)); }
.mail-meta { color: var(--muted); font-size: calc(2cqh * var(--ts, 1)); margin-bottom: 1.6cqh; }
.atts { display: flex; gap: .8cqw; flex-wrap: wrap; margin-top: 1cqh; }
.chip, .file { all: unset; cursor: pointer; background: #fff; border: .3cqh solid var(--ink); border-radius: .8cqh; padding: .7cqh 1cqw; font-size: calc(2.1cqh * var(--ts, 1)); box-shadow: 0 .4cqh 0 var(--ink); }
.chip:hover, .file:hover { background: #fff3e6; }
.filelist { display: grid; gap: 1cqh; }
.file { display: flex; justify-content: space-between; }

/* tables */
table.plain { border-collapse: collapse; width: 100%; font-size: calc(2.1cqh * var(--ts, 1)); }
table.plain th, table.plain td { text-align: left; padding: .7cqh .8cqw; border-bottom: .2cqh solid var(--paper-2); }
table.plain th { background: var(--paper-2); }
.wps tr.go { cursor: pointer; } .wps tr.go:hover td { background: #fff3e6; }
.wps tr.off td { color: #a89cab; }
.st { font-size: calc(1.8cqh * var(--ts, 1)); padding: .2cqh .7cqw; border-radius: .6cqh; border: .25cqh solid currentColor; white-space: nowrap; }
.st.new { color: var(--accent); } .st.prog { color: var(--accent-2); } .st.done { color: #3f7d3a; } .st.grey { color: #a89cab; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8cqw; margin-bottom: 1.4cqh; }
.cal-day h5 { margin: 0 0 .8cqh; }
.cal-ev { background: #e5f0f4; border-left: .5cqh solid var(--accent-2); padding: .6cqh .6cqw; margin-bottom: .8cqh; font-size: calc(1.9cqh * var(--ts, 1)); border-radius: .4cqh; }

/* workpaper */
.win.wide .win-body:has(.wp) { padding: 0; display: flex; }
.wp { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.wp-head { display: flex; justify-content: space-between; align-items: center; padding: 1cqh 1.4cqw; font-size: calc(2cqh * var(--ts, 1)); color: var(--muted); }
.tabs { display: flex; gap: .4cqw; padding: 0 1.4cqw; border-bottom: .35cqh solid var(--ink); }
.tab { all: unset; cursor: pointer; padding: .8cqh 1.1cqw; font-size: calc(2.1cqh * var(--ts, 1)); font-weight: 700; border: .35cqh solid transparent; border-bottom: none; border-radius: .8cqh .8cqh 0 0; margin-bottom: -.35cqh; color: var(--muted); }
.tab.on { background: #fff; border-color: var(--ink); color: var(--ink); }
.tab:disabled { opacity: .35; cursor: default; }
.wp-body { flex: 1; overflow: auto; padding: 1.6cqh 1.4cqw; background: #fff; }
.wp-nav { display: flex; justify-content: flex-end; gap: 1cqw; margin-top: 2cqh; }
.btn-s { font-family: var(--ui-font); font-size: calc(2.2cqh * var(--ts, 1)); font-weight: 700; padding: .8cqh 1.4cqw; cursor: pointer; background: var(--paper); color: var(--ink);
  border: .35cqh solid var(--ink); border-radius: .8cqh; box-shadow: 0 .45cqh 0 var(--ink); }
.btn-s.primary { background: var(--accent); color: #fff; }
.btn-s:disabled { opacity: .4; cursor: default; }
.btn-s:active:not(:disabled) { transform: translateY(.4cqh); box-shadow: 0 .05cqh 0 var(--ink); }
.ctrl-text { font-size: calc(2.6cqh * var(--ts, 1)); background: var(--paper); border-left: .7cqh solid var(--accent); padding: 1.4cqh 1.4cqw; border-radius: .4cqh; }
.attrs { margin-top: 1.4cqh; border-collapse: collapse; font-size: calc(2.1cqh * var(--ts, 1)); }
.attrs th { text-align: left; color: var(--muted); font-weight: 400; padding: .3cqh 1.4cqw .3cqh 0; }
.explain { margin-top: 1.4cqh; background: #fff8e6; border: .25cqh dashed #e0b45a; border-radius: .6cqh; padding: .8cqh 1cqw; }
.explain summary { cursor: pointer; font-weight: 700; }
.explain p { margin: .8cqh 0 0; }
.checks { margin: 0; padding-left: 2.2cqw; } .checks li { margin-bottom: .5cqh; }

/* spreadsheet */
.sheet-file { font-size: calc(2.1cqh * var(--ts, 1)); margin-bottom: 1cqh; }
.sheet-grid { overflow: auto; border: .3cqh solid #b8b0bf; }
table.xl { border-collapse: collapse; width: 100%; font-size: calc(2.2cqh * var(--ts, 1)); font-family: var(--sheet-font); }
table.xl th { background: #e9e5ee; color: #6d6475; font-weight: 400; padding: .2cqh .4cqw; border: .15cqh solid #cfc8d6; }
table.xl td { padding: .55cqh .6cqw; border: .15cqh solid #e3dee8; white-space: nowrap; }
table.xl tr.row td:nth-last-child(2) { white-space: normal; min-width: 16cqw; }
table.xl tr.hdr td { background: #2f7f9e; color: #fff; font-weight: 700; }
table.xl td.rn, table.xl th.rn { background: #e9e5ee; color: #8a8191; text-align: center; width: 3cqw; }
table.xl td.fl, table.xl th.fl { width: 3cqw; text-align: center; border-color: transparent; background: #fff; }
table.xl tr.row td.fl { opacity: 0; }
table.xl tr.row { cursor: pointer; }
table.xl tr.row:hover td:not(.rn):not(.fl) { background: #fff3e6; }
table.xl tr.row.flag td:not(.rn):not(.fl) { background: #fbd9d3; color: #8a2335; }
table.xl tr.row.flag td.fl { opacity: 1; }
table.xl tr.row.locked { cursor: default; }
.sheet-tabs { display: flex; gap: .2cqw; border: .3cqh solid #b8b0bf; border-top: none; background: #e9e5ee; padding-left: 3cqw; }
.sheet-tab { all: unset; cursor: pointer; padding: .5cqh 1.2cqw; font-size: calc(1.9cqh * var(--ts, 1)); color: #6d6475; }
.sheet-tab.on { background: #fff; color: #2f7f9e; font-weight: 700; box-shadow: inset 0 -.4cqh 0 #2f7f9e; }
.sheet-foot { display: flex; justify-content: space-between; margin-top: 1cqh; font-size: calc(2cqh * var(--ts, 1)); }
#flag-count { font-weight: 700; color: #8a2335; }

/* conclusion + finding */
.flaglist { margin: 0; padding-left: 1cqw; list-style: none; font-size: calc(2.1cqh * var(--ts, 1)); } .flaglist li { margin-bottom: .4cqh; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.card { all: unset; cursor: pointer; display: grid; gap: .6cqh; align-content: start; padding: 1.4cqh 1.2cqw; border: .35cqh solid var(--ink); border-radius: .9cqh; background: var(--paper); box-shadow: 0 .45cqh 0 var(--ink); font-size: calc(2.1cqh * var(--ts, 1)); }
.card b { font-size: calc(2.5cqh * var(--ts, 1)); }
.card:hover { background: #fff3e6; }
.card.on { background: #e5f0f4; outline: .5cqh solid var(--accent-2); outline-offset: .2cqh; }
.ctx { list-style: none; margin: 0; padding: 0; display: grid; gap: .6cqh; }
.ctx li { display: grid; grid-template-columns: 13cqw 1fr; gap: 1cqw; font-size: calc(2.1cqh * var(--ts, 1)); }
.ctx li.up { color: #a33a3a; } .ctx li.down { color: #3f7d3a; }
.ctx li span { color: var(--ink); }
.ratings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.rate { all: unset; cursor: pointer; display: grid; gap: .3cqh; padding: 1cqh 1.2cqw; border: .35cqh solid var(--ink); border-radius: .9cqh; box-shadow: 0 .45cqh 0 var(--ink); font-size: calc(2cqh * var(--ts, 1)); background: var(--paper); }
.rate b { font-size: calc(2.5cqh * var(--ts, 1)); }
.rate.low b { color: #3f7d3a; } .rate.medium b { color: #c07a12; } .rate.high b { color: #b0303f; }
.rate.on { background: #e5f0f4; outline: .5cqh solid var(--accent-2); outline-offset: .2cqh; }

/* review notes */
.review-head { display: flex; justify-content: space-between; align-items: center; background: #fff8c9; border: .3cqh solid #d8c45a; border-radius: .6cqh; padding: 1cqh 1.2cqw; font-size: calc(2.3cqh * var(--ts, 1)); }
.stars { font-size: calc(3.4cqh * var(--ts, 1)); color: #e0a12a; letter-spacing: .3cqh; }
.notes { list-style: none; margin: 1.4cqh 0; padding: 0; display: grid; gap: 1cqh; }
.notes li { display: grid; grid-template-columns: 3.6cqh 1fr; gap: .8cqw; font-size: calc(2.2cqh * var(--ts, 1)); }
.notes li > i { font-style: normal; width: 3.2cqh; height: 3.2cqh; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; }
.notes li.ok > i { background: #3f7d3a; } .notes li.bad > i { background: #b0303f; } .notes li.meh > i { background: #c07a12; }
.review-foot { display: flex; justify-content: space-between; gap: 2cqw; font-size: calc(2.3cqh * var(--ts, 1)); border-top: .3cqh dashed var(--paper-2); padding-top: 1.2cqh; }
.review-foot span:first-child { font-style: italic; }
.reps { font-weight: 700; color: var(--accent-2); white-space: nowrap; }

/* ---------- Screens (title, creator) ---------- */
.screen {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 78% 26%, #f6c177 0 9cqh, transparent 9.3cqh),
    linear-gradient(180deg, #f9d7a8 0%, #ef9a63 42%, #d9674a 55%, #2f7f9e 56%, #1d566e 100%);
}
.title-inner, .cr-inner { text-align: center; }
.title-badge { display: inline-block; font-size: calc(2.2cqh * var(--ts, 1)); letter-spacing: .3cqh; background: var(--ink); color: var(--paper); padding: .6cqh 1.2cqw; border-radius: .6cqh; }
h1 { font-family: var(--title-font); font-size: calc(11cqh * var(--ts, 1)); line-height: 1.1; margin: 3cqh 0 2cqh; color: var(--paper); text-shadow: .9cqh .9cqh 0 var(--ink); }
.title-tag { font-size: calc(3.4cqh * var(--ts, 1)); color: var(--paper); text-shadow: 0 .3cqh 0 var(--ink); margin: 0 0 4cqh; }
.title-buttons { display: flex; gap: 1.5cqw; justify-content: center; }
.title-foot { margin-top: 5cqh; font-size: calc(2cqh * var(--ts, 1)); color: #dbeef5; }
.btn {
  font-family: var(--ui-font); font-size: calc(3cqh * var(--ts, 1)); font-weight: 700; padding: 1.2cqh 2.4cqw; cursor: pointer;
  background: var(--paper); color: var(--ink); border: .5cqh solid var(--ink); border-radius: 1cqh;
  box-shadow: 0 .7cqh 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-.2cqh); }
.btn:active { transform: translateY(.6cqh); box-shadow: 0 .1cqh 0 var(--ink); }
.btn.primary { background: var(--accent); color: #fff; }
.btn:focus-visible, .sw:focus-visible, input:focus-visible { outline: .5cqh solid #fff; outline-offset: .4cqh; }

.cr-inner { background: var(--paper); border: .6cqh solid var(--ink); border-radius: 1.6cqh; box-shadow: 0 1.2cqh 0 rgba(27,22,34,.6); padding: 3cqh 3cqw; width: 76cqw; }
.cr-inner h2 { font-family: var(--head-font); font-weight: 800; font-size: calc(4.4cqh * var(--ts, 1)); margin: 0 0 1.2cqh; }
.cr-sub { margin: 0 0 2.5cqh; color: var(--muted); font-size: calc(2.6cqh * var(--ts, 1)); }
.cr-grid { display: grid; grid-template-columns: 34cqw 1fr; gap: 3cqw; align-items: center; text-align: left; }
.cr-preview { background: #d9cbb2; border: .5cqh solid var(--ink); border-radius: 1cqh; display: grid; place-items: center; padding: 3cqh 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 3.9cqh, rgba(0,0,0,.06) 3.9cqh 4cqh), repeating-linear-gradient(90deg, transparent 0 3.9cqh, rgba(0,0,0,.06) 3.9cqh 4cqh); }
#cr-canvas { width: 30cqw; height: 9cqw; image-rendering: pixelated; }
.cr-label { font-size: calc(2.4cqh * var(--ts, 1)); font-weight: 700; margin: 1.2cqh 0 .6cqh; }
#cr-name { font-family: var(--ui-font); font-size: calc(3cqh * var(--ts, 1)); width: 100%; padding: .8cqh 1cqw; border: .4cqh solid var(--ink); border-radius: .8cqh; background: #fff; }
.cr-row { display: flex; gap: .7cqw; flex-wrap: wrap; }
.sw { width: 4.6cqh; height: 4.6cqh; border-radius: .8cqh; border: .4cqh solid var(--ink); cursor: pointer; padding: 0; }
.sw.on { outline: .5cqh solid var(--accent); outline-offset: .3cqh; }
.sw.txt { width: auto; padding: 0 1cqw; font-family: var(--ui-font); font-size: calc(2.2cqh * var(--ts, 1)); background: #fff; }
.cr-buttons { display: flex; gap: 1.5cqw; justify-content: center; margin-top: 3cqh; }

.fade { position: absolute; inset: 0; background: #000; pointer-events: none; opacity: 0; transition: opacity .35s; }
.fade.on { opacity: 1; }
button, input { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

/* ---------- Act 0: CV builder, jobs, profile ---------- */
.cvb { display: grid; grid-template-columns: 1fr 30cqw; gap: 1.6cqw; }
.cv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqh .8cqw; }
.cv-card { padding: 1cqh 1cqw; }
.cv-card b { font-size: calc(2.2cqh * var(--ts, 1)); }
.card:disabled { opacity: .55; cursor: default; }
.cv-count { margin-right: auto; align-self: center; }
.paper { background: #fff; border: .3cqh solid #d8d0c2; box-shadow: 0 .6cqh 1.2cqh rgba(0,0,0,.12); padding: 2cqh 1.6cqw; font-size: calc(1.9cqh * var(--ts, 1)); transform: rotate(.4deg); }
.paper h3 { margin: 0; font-family: var(--head-font); font-size: calc(2.8cqh * var(--ts, 1)); }
.paper h6 { margin: 1.4cqh 0 .5cqh; font-size: calc(1.9cqh * var(--ts, 1)); color: var(--accent-2); text-transform: uppercase; letter-spacing: .2cqh; }
.paper ul { margin: 0; padding-left: 1.6cqw; } .paper li { margin-bottom: .4cqh; }
.bars { display: grid; gap: .6cqh; }
.bar { display: grid; grid-template-columns: 9cqw 1fr 2cqw; align-items: center; gap: .6cqw; font-size: calc(1.9cqh * var(--ts, 1)); }
.bar i { display: flex; gap: .25cqw; }
.bar b, .bar u { flex: 1; height: 1.4cqh; border-radius: .3cqh; border: .2cqh solid var(--ink); }
.bar b { background: var(--accent); } .bar u { background: #efe8dc; text-decoration: none; }
.bar em { font-style: normal; font-weight: 700; text-align: right; }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.job { border: .35cqh solid var(--ink); border-radius: .9cqh; padding: 1.4cqh 1.1cqw; background: #fff; display: flex; flex-direction: column; gap: .6cqh; font-size: calc(2cqh * var(--ts, 1)); }
.job-head b { display: block; font-size: calc(2.5cqh * var(--ts, 1)); } .job-head span { color: var(--muted); }
.job p { margin: 0; } .job ul { margin: 0 0 auto; padding-left: 1.4cqw; color: #4d4255; }
.job .btn-s { margin-top: 1cqh; }
.chip.go { background: var(--accent); color: #fff; }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.profile h5:first-child { margin-top: 0; }
.plainlist { list-style: none; padding: 0; margin: 0; } .plainlist li { margin-bottom: .5cqh; }

/* ---------- Interview ---------- */
#interview { position: absolute; inset: 0; background: rgba(27,22,34,.7); display: grid; place-items: center; }
.iv-wrap { width: 86cqw; height: 88cqh; background: linear-gradient(180deg, #8fa7c0 0%, #b9cde0 55%, #7c8aa6 55.2%, #6b7a8e 100%); border: .6cqh solid var(--ink); border-radius: 1.4cqh; box-shadow: 0 1.2cqh 0 rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.iv-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 55%; background: repeating-linear-gradient(90deg, transparent 0 14cqw, rgba(255,255,255,.35) 14cqw 14.4cqw); pointer-events: none; }
.iv-top { position: relative; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--paper); font-size: calc(2.2cqh * var(--ts, 1)); padding: .8cqh 1.4cqw; }
.iv-progress { display: flex; gap: .5cqw; } .iv-progress i { width: 2.2cqh; height: 2.2cqh; border-radius: 50%; border: .3cqh solid var(--paper); }
.iv-progress i.done { background: var(--paper); } .iv-progress i.now { background: var(--accent); }
.iv-stage { position: relative; flex: 1; display: grid; grid-template-columns: 16cqw 1fr 16cqw; align-items: end; gap: 2cqw; padding: 2cqh 3cqw 0; }
.iv-stage figure { margin: 0; display: grid; justify-items: center; transition: transform .2s; }
.iv-stage canvas { width: 12cqw; height: 18cqw; image-rendering: pixelated; filter: drop-shadow(0 .6cqh 0 rgba(0,0,0,.25)); }
.iv-stage figure.talk { animation: talk .5s ease-in-out infinite alternate; }
@keyframes talk { to { transform: translateY(-.8cqh); } }
.iv-stage figcaption { background: var(--paper); border: .35cqh solid var(--ink); border-radius: .7cqh; padding: .3cqh 1cqw; font-weight: 700; font-size: calc(2.1cqh * var(--ts, 1)); text-align: center; margin-top: .6cqh; }
.iv-stage figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: calc(1.7cqh * var(--ts, 1)); }
.iv-bubble { align-self: center; background: #fff; border: .5cqh solid var(--ink); border-radius: 1.6cqh; padding: 2cqh 2cqw; font-size: calc(3.1cqh * var(--ts, 1)); line-height: 1.35; box-shadow: 0 .8cqh 0 rgba(0,0,0,.25); }
.iv-bubble b { color: var(--accent); font-size: calc(2.3cqh * var(--ts, 1)); }
.iv-bubble p { margin: .6cqh 0 0; }
.iv-answers { position: relative; background: var(--paper); border-top: .5cqh solid var(--ink); padding: 1.6cqh 2cqw; display: grid; gap: 1cqh; min-height: 30cqh; align-content: start; }
.iv-a { all: unset; cursor: pointer; display: grid; grid-template-columns: 3.6cqh 1fr; gap: 1cqw; align-items: start; padding: 1cqh 1cqw; border: .35cqh solid var(--ink); border-radius: .8cqh; background: #fff; font-size: calc(2.3cqh * var(--ts, 1)); box-shadow: 0 .4cqh 0 var(--ink); }
.iv-a:hover { background: #fff3e6; }
.iv-a b { width: 3.2cqh; height: 3.2cqh; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: .5cqh; }
.iv-cv { display: block; font-style: normal; font-size: calc(1.8cqh * var(--ts, 1)); color: var(--accent-2); margin-top: .4cqh; }
.iv-cv::before { content: "★ "; }
.iv-you { font-size: calc(2.5cqh * var(--ts, 1)); } .iv-you b { color: var(--accent-2); }
.iv-next { justify-self: end; }

/* ---------- Step 4: fieldwork ---------- */
#hud-energy { display: inline-flex; align-items: center; gap: .5cqw; }
#hud-energy b { color: #c07a12; }
#hud-energy i { display: block; width: 9cqw; height: 1.6cqh; border: .3cqh solid var(--ink); border-radius: .4cqh; background: #efe8dc; overflow: hidden; }
#hud-energy u { display: block; height: 100%; background: #5b9a4a; transition: width .4s; }
#hud-energy em { font-style: normal; font-weight: 700; min-width: 2.4cqw; font-size: calc(2cqh * var(--ts, 1)); }
#hud-energy.low u { background: #e0a12a; } #hud-energy.empty u { background: #c9475a; }
#hud-energy.empty { animation: blink 1s infinite; } @keyframes blink { 50% { opacity: .55; } }

#notices { position: absolute; top: 2cqh; right: 1.5cqw; display: grid; gap: .8cqh; justify-items: end; pointer-events: none; z-index: 5; }
.notice { background: rgba(251,245,234,.96); border: .35cqh solid var(--ink); border-radius: .8cqh; padding: .7cqh 1cqw; font-size: calc(2.1cqh * var(--ts, 1)); max-width: 40cqw;
  box-shadow: 0 .45cqh 0 rgba(0,0,0,.35); animation: nin .25s ease-out; transition: opacity .4s, transform .4s; }
.notice.n-mail { border-color: var(--accent-2); } .notice.n-good { border-color: #3f7d3a; } .notice.n-bad { border-color: #b0303f; }
#stage:has(#dialog.top:not(.hidden)) #notices { top: auto; bottom: 7cqh; }
.notice.out { opacity: 0; transform: translateX(2cqw); }
@keyframes nin { from { opacity: 0; transform: translateX(3cqw); } }

#dialog-opts { display: grid; gap: .6cqh; margin-top: 1.2cqh; }
#dialog-opts:empty { display: none; }
.opt { all: unset; cursor: pointer; display: grid; grid-template-columns: 3cqh 1fr; gap: .8cqw; align-items: center; font-size: calc(2.4cqh * var(--ts, 1)); padding: .5cqh .8cqw; border-radius: .6cqh; border: .3cqh solid transparent; }
.opt > b { width: 2.8cqh; height: 2.8cqh; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: .4cqh; font-size: calc(1.8cqh * var(--ts, 1)); }
.opt span b { color: var(--accent-2); }
.opt i { color: var(--muted); font-style: normal; font-size: calc(2cqh * var(--ts, 1)); }
.opt:hover { background: #fff8ef; }
.opt.on { background: #fff3e6; border-color: var(--accent); }

#daycard { position: absolute; inset: 0; background: rgba(27,22,34,.82); display: grid; place-items: center; z-index: 8; }
.dc-inner { width: 78cqw; max-height: 90cqh; overflow: auto; background: var(--paper); border: .6cqh solid var(--ink); border-radius: 1.4cqh; box-shadow: 0 1.2cqh 0 rgba(0,0,0,.45); padding: 2.6cqh 2.6cqw; font-size: calc(2.3cqh * var(--ts, 1)); }
.dc-top { font-size: calc(2cqh * var(--ts, 1)); color: var(--muted); letter-spacing: .2cqh; text-transform: uppercase; }
.dc-inner h2 { font-family: var(--head-font); font-weight: 800; font-size: calc(4cqh * var(--ts, 1)); margin: .6cqh 0 1.6cqh; }
.dc-inner h5 { font-size: calc(2.3cqh * var(--ts, 1)); margin: 1.4cqh 0 .6cqh; color: var(--accent-2); }
.dc-inner ul { margin: 0; padding-left: 1.6cqw; } .dc-inner li { margin-bottom: .4cqh; }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.dc-line { font-style: italic; margin: 2cqh 0 0; padding-top: 1.4cqh; border-top: .3cqh dashed var(--paper-2); }
.dc-nav { display: flex; justify-content: flex-end; margin-top: 2cqh; }
.dc-table td.ok { color: #3f7d3a; font-weight: 700; } .dc-table td.bad, .dc-inner .bad { color: #b0303f; font-weight: 700; } .dc-table td.meh { color: #c07a12; font-weight: 700; }

.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; margin-top: 1cqh; }
.ev-asked { background: #fff8e6; border: .25cqh dashed #e0b45a; border-radius: .6cqh; padding: 1cqh 1.2cqw; }
.ev-got { background: #fff; border: .3cqh solid #b8b0bf; border-radius: .6cqh; padding: 1cqh 1.2cqw; }
.ev-asked h5, .ev-got h5 { margin-top: 0; }
.cal-day.today h5 { color: var(--accent); } .cal-day.today h5::after { content: " · today"; }
.chat-log { display: grid; gap: .8cqh; margin-bottom: 1.4cqh; }
.msg { max-width: 80%; background: #e9e5ee; border-radius: 1cqh; padding: .7cqh 1cqw; font-size: calc(2.1cqh * var(--ts, 1)); justify-self: start; }
.msg.me { justify-self: end; background: #d7ecf3; }
.msg i { display: block; font-style: normal; font-size: calc(1.6cqh * var(--ts, 1)); color: var(--muted); text-align: right; }

/* ---------- Step 5: puzzles, events, partner review ---------- */
.card.trait { box-shadow: 0 .45cqh 0 var(--ink), 0 0 0 .5cqh #f0d27a; }
.card.trait b::after { content: "  🏅 Evidence First"; font-size: calc(1.8cqh * var(--ts, 1)); color: #c07a12; }
.report h2 { font-size: calc(3cqh * var(--ts, 1)); }
.dc-table td.stars-s { color: #e0a12a; white-space: nowrap; letter-spacing: .2cqh; }
.rep-grid { display: grid; grid-template-columns: 20cqw 1fr 1fr; gap: 2cqw; margin-top: 1.4cqh; align-items: start; }
#daycard:has(.report) .dc-inner { width: 92cqw; padding: 2cqh 2cqw; font-size: calc(2cqh * var(--ts, 1)); }
.report h2 { margin: .6cqh 0 1.2cqh; }
.report table.plain td, .report table.plain th { padding: .45cqh .7cqw; font-size: calc(1.9cqh * var(--ts, 1)); }
.report .attrs { font-size: calc(1.9cqh * var(--ts, 1)); } .report .attrs th { padding-top: .1cqh; padding-bottom: .1cqh; }
.report h5 { margin-top: 0; }
.report .dc-nav { margin-top: 1cqh; }
.quote { font-style: italic; margin: .6cqh 0; }
.grade { display: grid; gap: 1cqh; text-align: center; padding: 1.6cqh 1cqw; border: .4cqh solid var(--ink); border-radius: 1cqh; background: #fff8c9; }
.grade b { font-family: var(--head-font); font-size: calc(3cqh * var(--ts, 1)); line-height: 1.2; }
.grade.g-exceeds b { color: #3f7d3a; } .grade.g-meets b { color: var(--accent-2); } .grade.g-below b { color: #b0303f; }
.cards.plan { grid-template-columns: 1fr 1fr; margin-top: 2cqh; }

/* ---------- Step 6: pause menu, polish ---------- */
#pause { position: absolute; inset: 0; background: rgba(27,22,34,.78); display: grid; place-items: center; z-index: 9; }
.pause-inner { width: 56cqw; background: var(--paper); border: .6cqh solid var(--ink); border-radius: 1.4cqh; box-shadow: 0 1.2cqh 0 rgba(0,0,0,.45); padding: 3cqh 3cqw; text-align: center; }
.pause-inner h2 { font-family: var(--head-font); font-weight: 800; font-size: calc(4.4cqh * var(--ts, 1)); margin: 0 0 2.4cqh; }
.pause-buttons { display: grid; gap: 1.4cqh; justify-items: center; }
.pause-buttons .btn { width: 34cqw; font-size: calc(2.6cqh * var(--ts, 1)); }
.pause-keys { margin: 2.6cqh auto 1cqh; text-align: left; font-size: calc(2.2cqh * var(--ts, 1)); }
#btn-continue small { display: block; font-size: calc(1.9cqh * var(--ts, 1)); font-weight: 400; opacity: .75; margin-top: .3cqh; }

/* ---------- Hustle ---------- */
#hud-hustle { font-weight: 700; color: #7a5ea8; }
.lt-icon.on i { outline: .4cqh solid #5ad17a; }
.chip.mini { font-size: calc(1.7cqh * var(--ts, 1)); padding: .2cqh .6cqw; margin-top: .4cqh; box-shadow: 0 .25cqh 0 var(--ink); }
.wps .late { color: #b0303f; font-weight: 700; }
.rollfwd { display: flex; gap: 1.2cqw; align-items: center; justify-content: space-between; margin-top: 1.6cqh; padding: 1cqh 1.2cqw; border: .3cqh dashed #7a5ea8; border-radius: .6cqh; background: #f3eefa; font-size: calc(2cqh * var(--ts, 1)); }
.ts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8cqw; }
.ts .card { padding: .8cqh .8cqw; } .ts .card b { font-size: calc(2cqh * var(--ts, 1)); } .ts .card span { font-size: calc(1.7cqh * var(--ts, 1)); }
.hu-title { display: grid; gap: .6cqh; background: #f3eefa; border: .4cqh solid #7a5ea8; border-radius: 1cqh; padding: 1.4cqh 1.6cqw; margin-bottom: 1.4cqh; }
.hu-title b { font-family: var(--head-font); font-size: calc(3.2cqh * var(--ts, 1)); color: #7a5ea8; }
.badges { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .6cqh; }
.badges li { display: grid; grid-template-columns: 3.4cqh auto 1fr; gap: .8cqw; align-items: baseline; }
.badges li i { font-style: normal; } .badges li span { color: var(--muted); font-size: calc(1.9cqh * var(--ts, 1)); }

/* ---------- Co-op ---------- */
.co-inner #co-name, #co-room { font-family: var(--ui-font); font-size: calc(3cqh * var(--ts, 1)); width: 100%; padding: .8cqh 1cqw; border: .4cqh solid var(--ink); border-radius: .8cqh; background: #fff; }
#co-room { width: 22cqw; text-transform: uppercase; margin-right: 1cqw; }
#co-panel { margin-top: 2cqh; font-size: calc(2.4cqh * var(--ts, 1)); min-height: 10cqh; }
.co-code { font-family: var(--code-font); font-weight: 700; font-size: calc(6cqh * var(--ts, 1)); letter-spacing: .5cqh; color: var(--accent); margin: 1cqh 0 2cqh; }
#co-panel .bad { color: #b0303f; }
#wait { position: absolute; inset: 0; background: rgba(27,22,34,.45); display: grid; place-items: center; z-index: 7; }
#wait-text { background: var(--paper); border: .5cqh solid var(--ink); border-radius: 1cqh; padding: 2cqh 3cqw; font-size: calc(3cqh * var(--ts, 1)); box-shadow: 0 .8cqh 0 rgba(0,0,0,.4); }
.lock { font-size: calc(2.6cqh * var(--ts, 1)); padding: 3cqh 2cqw; text-align: center; }

/* ---------- How to play ---------- */
#help { position: absolute; inset: 0; background: rgba(27,22,34,.82); display: grid; place-items: center; z-index: 10; }
.help-inner { width: 86cqw; max-height: 92cqh; overflow: auto; background: var(--paper); border: .6cqh solid var(--ink); border-radius: 1.4cqh; box-shadow: 0 1.2cqh 0 rgba(0,0,0,.45); padding: 2.4cqh 2.6cqw; font-size: calc(2.2cqh * var(--ts, 1)); line-height: 1.4; }
.help-inner h2 { font-weight: 800; font-size: calc(4cqh * var(--ts, 1)); margin: 0 0 1cqh; }
.help-inner h5 { font-size: calc(2.4cqh * var(--ts, 1)); margin: 1.4cqh 0 .5cqh; color: var(--accent-2); }
.help-inner p { margin: 0; } .help-inner ol, .help-inner ul { margin: 0; padding-left: 1.8cqw; } .help-inner li { margin-bottom: .4cqh; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.title-buttons { flex-wrap: wrap; max-width: 80cqw; margin: 0 auto; }

table.xl tr.row.hint td:not(.fl) { background: #fff6c8; }
table.xl tr.row.hint td.rn { color: #c07a12; }

/* fire alarm flash */
#flash { position: absolute; inset: 0; pointer-events: none; background: #e8475a; opacity: 0; z-index: 6; }
#flash.on { animation: alarm 0.7s ease-in-out 5; }
@keyframes alarm { 50% { opacity: .35; } }

/* phishing */
.fake-btn { display: inline-block; background: #1f6fd1; color: #fff; font-weight: 700; padding: .8cqh 1.6cqw; border-radius: .4cqh; }
.phish-ok { color: #3f7d3a; font-weight: 700; } .phish-bad { color: #b0303f; font-weight: 700; }

/* the work laptop has 8 icons now: tighter desktop */
.lt-desktop { gap: .7cqh; padding-top: 1.4cqh; }
.lt-icon { padding: .1cqh 0; gap: .3cqh; font-size: calc(1.8cqh * var(--ts, 1)); }
.lt-icon i { width: 4.8cqh; height: 4.8cqh; font-size: calc(2.4cqh * var(--ts, 1)); }

.ts.eve { grid-template-columns: repeat(5, 1fr); margin-top: .4cqh; }
.ts.eve .card span { font-size: calc(1.6cqh * var(--ts, 1)); }
hr.sep { border: none; border-top: .3cqh dashed var(--paper-2); margin: 2cqh 0; }

/* ---------- Phones and tablets (touch) ---------- */
#touch { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
#touch.off { display: none; }
#stick { position: absolute; left: 3cqw; bottom: 5cqh; width: 26cqh; height: 26cqh; border-radius: 50%; background: rgba(251,245,234,.18); border: .5cqh solid rgba(251,245,234,.45); pointer-events: auto; touch-action: none; }
#stick-knob { position: absolute; left: 50%; top: 50%; width: 11cqh; height: 11cqh; margin: -5.5cqh 0 0 -5.5cqh; border-radius: 50%; background: rgba(251,245,234,.85); border: .5cqh solid var(--ink); }
#tbtns { position: absolute; right: 3cqw; bottom: 5cqh; display: grid; grid-template-columns: auto auto; gap: 2cqh; align-items: end; pointer-events: auto; }
#tbtns button { font-family: var(--ui-font); font-weight: 800; color: var(--ink); background: rgba(251,245,234,.9); border: .5cqh solid var(--ink); border-radius: 50%; box-shadow: 0 .6cqh 0 var(--ink); touch-action: manipulation; }
#t-use { grid-row: span 2; width: 18cqh; height: 18cqh; font-size: 6cqh; background: var(--accent) !important; color: #fff !important; }
#t-call, #t-menu { width: 11cqh; height: 11cqh; font-size: 4.5cqh; }
#rotate { position: fixed; inset: 0; z-index: 50; background: var(--night); color: var(--paper); display: grid; place-items: center; text-align: center; font-size: 22px; }
#rotate div { font-size: 64px; } #rotate p { font-size: 20px; margin: 12px 24px; }
body.touch #keys { display: none !important; }
body.touch #dialog { width: 92cqw; }
body.touch .win { left: 12cqw; right: 1cqw; top: 4.5cqh; bottom: 1cqh; }
body.touch .lt-body { width: 98cqw; }
body.touch .lt-screen { height: 90cqh; }
body.touch, body.touch #stage { touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.touch input { -webkit-user-select: text; user-select: text; }
body.touch .win-body, body.touch .mail-list, body.touch .mail-read, body.touch .wp-body, body.touch .sheet-grid, body.touch .dc-inner, body.touch .help-inner, body.touch .cr-inner, body.touch .pause-inner { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
button { touch-action: manipulation; }

.touch-keys { display: none; margin: 2cqh auto 1cqh; text-align: left; }
body.touch .pause-keys { display: none; }
body.touch .touch-keys { display: table; }

body.touch #dialog { padding-top: 3.6cqh; }

/* phones: size to the VISIBLE screen (dvh excludes the browser's address bar), and keep clear of the home indicator */
@supports (height: 100dvh) {
  html, body { height: 100dvh; }
  #stage { width: min(100vw, 177.78dvh); height: min(100dvh, 56.25vw); }
}
body.touch #stick { bottom: calc(6cqh + env(safe-area-inset-bottom, 0px)); left: calc(3cqw + env(safe-area-inset-left, 0px)); }
body.touch #tbtns { bottom: calc(6cqh + env(safe-area-inset-bottom, 0px)); right: calc(3cqw + env(safe-area-inset-right, 0px)); gap: 1.6cqh; }
body.touch #t-use { width: 16cqh; height: 16cqh; font-size: 5.5cqh; }
body.touch #t-call, body.touch #t-menu { width: 10cqh; height: 10cqh; font-size: 4cqh; }

/* ---------- co-op interactions ---------- */
.lt-base { display: flex; justify-content: center; gap: 4cqw; }
#alibi { position: absolute; left: 50%; top: 14cqh; transform: translateX(-50%); z-index: 12; background: var(--paper); border: .5cqh solid #b0303f; border-radius: 1cqh; padding: 1.2cqh 1.6cqw; display: grid; gap: 1cqh; justify-items: center; font-size: calc(2.4cqh * var(--ts, 1)); box-shadow: 0 .8cqh 0 rgba(0,0,0,.4); }
#alibi button { font-family: var(--ui-font); font-weight: 800; font-size: calc(2.6cqh * var(--ts, 1)); background: #3f7d3a; color: #fff; border: .4cqh solid var(--ink); border-radius: .8cqh; padding: .8cqh 1.6cqw; cursor: pointer; }
#alibi i { display: block; height: .6cqh; width: 100%; background: #b0303f; transform-origin: left; }
#alibi.run i { animation: alibi 8s linear forwards; } @keyframes alibi { to { transform: scaleX(0); } }
.peer-note { margin-top: 1.4cqh; padding: 1cqh 1.2cqw; border: .3cqh dashed var(--accent-2); border-radius: .6cqh; background: #eef6f9; }
.peer-reqs { margin-bottom: 1.2cqh; }
.co-pr { display: block; margin: 1cqh 0; font-size: calc(2.2cqh * var(--ts, 1)); }

/* phones: the laptop icons and the interview must fit the short screen (17 Nov iPhone screenshots) */
body.touch .lt-desktop { gap: .9cqh; padding-top: .8cqh; overflow-y: auto; max-height: 100%; box-sizing: border-box; }
body.touch .lt-icon { gap: .2cqh; padding: 0; font-size: calc(1.6cqh * var(--ts, 1)); line-height: 1.1; }
body.touch .lt-icon i { width: 4.9cqh; height: 4.9cqh; font-size: calc(1.8cqh * var(--ts, 1)); }
body.touch .iv-wrap { width: 94cqw; height: 96cqh; }
body.touch .iv-top { font-size: calc(1.9cqh * var(--ts, 1)); padding: .5cqh 1.4cqw; }
body.touch .iv-stage { flex: none; padding: 1cqh 3cqw 0; grid-template-columns: 11cqw 1fr 11cqw; }
body.touch .iv-stage canvas { width: 8cqw; height: 12cqw; }
body.touch .iv-stage figcaption { font-size: calc(1.7cqh * var(--ts, 1)); padding: .2cqh .6cqw; }
body.touch .iv-stage figcaption small { font-size: calc(1.25cqh * var(--ts, 1)); }
body.touch .iv-bubble { font-size: calc(2.6cqh * var(--ts, 1)); padding: 1.2cqh 1.6cqw; }
body.touch .iv-bubble b { font-size: calc(1.7cqh * var(--ts, 1)); }
body.touch .iv-answers { flex: 1; min-height: 0; overflow-y: auto; padding: 1cqh 1.6cqw; gap: .8cqh; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
body.touch .iv-a { font-size: calc(2.35cqh * var(--ts, 1)); padding: .7cqh 1cqw; grid-template-columns: 3.6cqh 1fr; }
body.touch .iv-a b { width: 3.2cqh; height: 3.2cqh; }
body.touch .iv-cv { font-size: calc(1.4cqh * var(--ts, 1)); }
body.touch .iv-you { font-size: calc(2.4cqh * var(--ts, 1)); }
body.touch .iv-a { line-height: 1.25; }

/* ---------- v1.4: title scene, achievements, tips, daily challenges, pause menu ---------- */
#title { background: #2b2a4c; overflow: hidden; }
#title-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; object-fit: cover; }
#title .title-inner { position: relative; }
#title h1 { animation: floaty 3.2s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2cqh); } }
@media (prefers-reduced-motion: reduce) { #title h1 { animation: none; } }
#title .title-tag { text-shadow: 0 .3cqh 0 var(--ink), 0 0 1.2cqh rgba(27,22,34,.6); }
#title .title-foot { color: #fdf6e9; text-shadow: 0 .2cqh 0 var(--ink); }
.title-small { display: flex; gap: 1.2cqw; justify-content: center; margin-top: 2cqh; }
.title-small .btn-s { font-size: calc(2cqh * var(--ts, 1)); background: rgba(253,246,233,.92); }
#achv { position: absolute; inset: 0; background: rgba(27,22,34,.82); display: grid; place-items: center; z-index: 11; }
.ach-sum { color: var(--muted); margin: 0 0 1.4cqh !important; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19cqw, 1fr)); gap: 1cqh 1cqw; }
.ach { display: grid; grid-template-columns: 4.4cqh 1fr; grid-template-rows: auto auto; column-gap: .8cqw; align-items: center; padding: .8cqh .8cqw; border: .3cqh solid var(--ink); border-radius: .8cqh; background: #fff; }
.ach i { grid-row: span 2; font-style: normal; font-size: calc(3.4cqh * var(--ts, 1)); text-align: center; }
.ach b { font-size: calc(2cqh * var(--ts, 1)); } .ach span { font-size: calc(1.6cqh * var(--ts, 1)); color: var(--muted); }
.ach.locked { background: #ece6db; opacity: .7; filter: grayscale(1); }
#tip { position: absolute; right: 1.6cqw; bottom: 2cqh; z-index: 6; max-width: 34cqw; }
.tip-card { background: #fffbe6; border: .4cqh solid var(--ink); border-radius: 1cqh; padding: 1.2cqh 1.2cqw; box-shadow: 0 .6cqh 0 rgba(0,0,0,.35); font-size: calc(1.9cqh * var(--ts, 1)); animation: tipIn .25s ease-out; }
.tip-card > b { display: block; font-size: calc(2.2cqh * var(--ts, 1)); margin-bottom: .6cqh; }
.tip-card p { margin: 0 0 .6cqh; } .tip-btns { display: flex; gap: .8cqw; justify-content: flex-end; }
@keyframes tipIn { from { transform: translateY(1.5cqh); opacity: 0; } }
body.touch #tip { max-width: 46cqw; }
ul.daily { list-style: none; padding: 0 !important; margin: .4cqh 0 0; text-align: left; }
ul.daily li { padding: .3cqh 0; } ul.daily li.ok { color: #3f7d3a; } ul.daily li i { color: var(--muted); font-style: normal; }
.dc-daily { background: #f4ecdd; border-radius: .8cqh; padding: .8cqh 1.2cqw; margin: .8cqh 0 1.2cqh; }
.dc-daily h5 { margin: 0; }
.pause-inner { width: 64cqw; max-height: 94cqh; overflow: auto; }
.pause-buttons { grid-template-columns: 1fr 1fr; }
.pause-buttons .btn { width: 100%; }
.pause-buttons #pause-resume { grid-column: span 2; }
#pause-daily { text-align: left; margin: 1.4cqh 0 0; } #pause-daily h5 { margin: 0; font-size: calc(2.2cqh * var(--ts, 1)); }
body.touch .pause-inner { width: 86cqw; }
#title .title-foot { display: inline-block; background: rgba(27,22,34,.72); padding: .4cqh 1.2cqw; border-radius: .6cqh; }
