/* Turbo-35 Memories, from the Claude Design handoff (31 Oct 2026): ruled paper, ink outlines, hard shadows, big type. */
:root {
  --ink: #1F1A3D; --paper: #FFF8EC; --rule: #D9E6F7; --card: #FFFFFF; --tomato: #D63A12; --fail: #FFE3D8;
  --sun: #FFC93C; --sun-tint: #FFF1C2; --blue: #1F55C8; --sky: #DCE8FF; --leaf: #1E7A44; --mint: #DDF5E4;
  --grape: #6B3FD6; --gum: #FF8FB8; --gum-tint: #FFE0EC; --chat: #25D366;
  --head: Fredoka, system-ui, sans-serif; --body: "Atkinson Hyperlegible", system-ui, sans-serif; --doodle: "Caveat Brush", cursive;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 20px; line-height: 1.5;
  background-color: var(--paper); background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 41px); }
.wrap { container-type: inline-size; max-width: 1200px; margin: 0 auto; padding: 20px clamp(20px, 4cqi, 56px) 48px; display: flex; flex-direction: column; gap: clamp(28px, 4cqi, 48px); overflow: hidden; }
.hidden { display: none !important; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 56px; font-family: var(--head); font-weight: 700; font-size: 24px; }
.star { position: relative; width: 48px; height: 48px; flex: none; transform: rotate(-10deg); }
.star > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 17px; }
.cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 5cqi, 72px); align-items: flex-start; }
.intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: relative; }
.questions { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.badge { position: absolute; right: 0; top: -8px; padding: 8px 14px; background: var(--grape); color: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(6deg); font-family: var(--doodle); font-size: 26px; }
h1 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
.hello { margin-top: 48px; font-size: clamp(60px, 9cqi, 112px); }
.lead { margin: 0; font-size: clamp(22px, 2cqi, 26px); line-height: 1.5; max-width: 34ch; }
.doodle { font-family: var(--doodle); font-size: 30px; color: var(--tomato); transform: rotate(-4deg); display: inline-block; }
.tally { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 10px 22px 10px 12px; box-shadow: 4px 4px 0 var(--ink); font-family: var(--head); font-weight: 600; font-size: 26px; }
.dot { width: 28px; height: 28px; border-radius: 999px; border: 3px dashed var(--ink); background: #fff; }
.dot.on { background: var(--leaf); border-style: solid; }
.note { display: flex; flex-direction: column; gap: 10px; background: var(--sun-tint); border: 3px solid var(--ink); border-radius: 20px; padding: 18px 20px; transform: rotate(-0.6deg); }
.note b.t { font-family: var(--head); font-weight: 600; font-size: 22px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 24px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--head); font-weight: 600; font-size: 26px; cursor: pointer; text-decoration: none; background: var(--tomato); color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.grape { background: var(--grape); } .btn.leaf { background: var(--leaf); } .btn.white { background: #fff; color: var(--ink); width: auto; min-height: 64px; }
.btn.chat { background: var(--chat); color: var(--ink); width: auto; min-height: 64px; }
.btn svg { flex: none; }
.link { background: none; border: 0; padding: 6px 4px; min-height: 48px; color: var(--blue); font-family: var(--body); font-weight: 700; font-size: 20px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cardwrap { position: relative; padding: 18px 6px 8px 0; }
.tape { position: absolute; top: 2px; left: 50%; width: 128px; height: 34px; margin-left: -64px; background: rgba(255, 201, 60, .82); transform: rotate(-3deg); z-index: 2;
  clip-path: polygon(0 12%, 4% 0, 96% 0, 100% 14%, 97% 32%, 100% 50%, 97% 68%, 100% 86%, 96% 100%, 4% 100%, 0 88%, 3% 70%, 0 50%, 3% 30%); }
.qcard { position: relative; background: var(--card); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 20px; }
.qcard.done { background: var(--mint); }
.qhead { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.num { width: 52px; height: 52px; flex: none; border-radius: 999px; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 26px; transform: rotate(-6deg); }
h2 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 30px; line-height: 1.2; }
.hint { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.asking { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--sun-tint); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 14px; }
.ini { width: 48px; height: 48px; border-radius: 999px; background: var(--blue); color: #fff; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; }
.uprow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--head); }
.uprow b { font-weight: 600; font-size: 24px; } .uprow span { font-weight: 700; font-size: 36px; }
.bar { height: 40px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.bar > div { height: 100%; width: 0; background-color: var(--tomato); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 12px, transparent 12px 24px); border-right: 3px solid var(--ink); transition: width .25s ease; }
.info { display: flex; gap: 12px; align-items: flex-start; background: var(--sky); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 16px; font-size: 20px; line-height: 1.45; }
.failbox { display: flex; gap: 14px; align-items: flex-start; background: var(--fail); border: 3px solid var(--tomato); border-radius: 16px; padding: 16px; }
.failbox b { font-family: var(--head); font-weight: 600; font-size: 24px; display: block; }
.doneline { display: flex; align-items: center; gap: 16px; }
.tick { width: 64px; height: 64px; flex: none; border-radius: 999px; background: var(--leaf); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.doneline b { font-family: var(--head); font-weight: 700; font-size: 28px; display: block; }
.sticker { position: absolute; top: -26px; right: -14px; width: 112px; height: 112px; transform: rotate(10deg); }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--doodle); font-size: 27px; line-height: .9; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 8px; border-top: 3px dashed var(--ink); }
footer a { color: var(--blue); font-weight: 700; min-height: 48px; display: inline-flex; align-items: center; }
/* Pick a classmate */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 14px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-family: var(--head); font-weight: 600; font-size: 22px; cursor: pointer; }
.kicker { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.pickh { font-size: clamp(44px, 6cqi, 72px); line-height: 1.05; }
.faces { flex: 1.5 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 24px 10px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; min-height: 150px; background: none; border: none; cursor: pointer; font-family: var(--body); color: var(--ink); }
.face .av { position: relative; width: 96px; height: 96px; border-radius: 999px; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 34px; }
.face[aria-pressed="true"] .av { box-shadow: 0 0 0 6px var(--sun), 0 0 0 9px var(--ink); }
.face .nm { font-size: 20px; font-weight: 700; padding: 2px 10px; border-radius: 8px; border: 2px solid transparent; }
.face[aria-pressed="true"] .nm { background: var(--sun-tint); border-color: var(--ink); }
.face .sel { position: absolute; right: -10px; top: -10px; width: 40px; height: 40px; border-radius: 999px; background: var(--leaf); border: 3px solid var(--ink); display: none; align-items: center; justify-content: center; }
.face[aria-pressed="true"] .sel { display: flex; }
.waiting { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 24px; background: #fff; border: 3px dashed var(--ink); border-radius: 24px; }
.waiting b { font-family: var(--head); font-weight: 600; font-size: 26px; }
/* All done */
.party { position: fixed; inset: 0; background: var(--sun); display: flex; align-items: center; justify-content: center; overflow: auto; z-index: 5; }
.party main { position: relative; z-index: 1; max-width: 880px; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.party h1 { font-size: clamp(52px, 8.5vw, 104px); }
.bit { position: absolute; border: 2px solid var(--ink); pointer-events: none; z-index: 0; opacity: .9; }
@keyframes drop { from { transform: translateY(-110vh) rotate(0); } to { transform: translateY(0) rotate(var(--r)); } }
.bit.fall { animation: drop 1.5s cubic-bezier(.2,.7,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .bit.fall { animation: none; } }
/* Link problem */
.problem { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.problem main { position: relative; max-width: 720px; width: 100%; background: #fff; border: 3px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 48px 28px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.problem h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.08; }
/* Organiser */
.org h1 { font-size: clamp(40px, 6cqi, 64px); }
.panel { background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-size: 26px; }
.org label { font-size: 18px; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.org input, .org select, .org textarea { font: inherit; font-size: 20px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.small { font-size: 18px; color: var(--ink); opacity: .8; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 48px; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 20px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.people { display: flex; flex-direction: column; gap: 14px; }
.person { background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.person .who { flex: 1 1 200px; min-width: 0; } .person .who b { font-family: var(--head); font-weight: 600; font-size: 24px; display: block; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 14px; border-radius: 999px; border: 3px solid var(--ink); font-weight: 700; font-size: 18px; white-space: nowrap; }
.pill.notsent { background: #fff; border-style: dashed; } .pill.sent { background: var(--sky); } .pill.opened { background: var(--sun-tint); }
.pill.one { background: var(--sun); } .pill.done { background: var(--leaf); color: #fff; }
.person .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.sm { min-height: 52px; font-size: 20px; padding: 8px 18px; width: auto; box-shadow: 3px 3px 0 var(--ink); }
/* T-shirt size */
.shirt { display: flex; flex-direction: column; gap: 12px; background: var(--gum-tint); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); padding: 16px 18px; transform: rotate(.4deg); }
.shirt.set { background: var(--mint); }
.shirt-head { display: flex; align-items: center; gap: 10px; } .shirt-head b { font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.2; } .shirt-head svg { flex: none; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 60px; min-height: 56px; padding: 6px 12px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; font-family: var(--head); font-weight: 600; font-size: 22px; cursor: pointer; }
.size[aria-pressed="true"] { background: var(--leaf); color: #fff; }
.shirt-note { margin: 0; font-size: 18px; }
.person select.mini { width: auto; min-height: 48px; padding: 6px 10px; font-size: 18px; }
/* Organiser: the collapsible "Add people" panel (no Claude Design guidance for this; drawn in the same ink-and-shadow style) */
.fold { padding: 0; gap: 0; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 22px; cursor: pointer; border-radius: 21px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.fold > summary h2 { flex: 1; }
.fold .plus { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 3px solid var(--ink); background: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1; transform: rotate(-6deg); }
.fold .chev { width: 14px; height: 14px; flex: none; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); margin: 0 6px 6px 0; transition: transform .15s ease; }
.fold[open] .chev { transform: rotate(-135deg); margin: 6px 6px 0 0; }
.fold[open] > summary { border-bottom: 3px dashed var(--ink); border-radius: 21px 21px 0 0; }
.fold > .cols { padding: 22px; }
.fold .sub { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.2; }
.btnrow { display: flex; gap: 12px; } .btnrow .btn:first-child { flex: 1; } .btnrow .btn.white { min-height: 72px; }
.org ::placeholder { color: var(--ink); opacity: .38; }
.hintline { opacity: .6; }
.msg { margin: 0; font-size: 18px; } .msg:empty { display: none; }
.msg.ok { background: var(--mint); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.msg.err { background: var(--fail); border: 3px solid var(--tomato); border-radius: 14px; padding: 10px 14px; }
@media (prefers-reduced-motion: reduce) { .fold .chev { transition: none; } }
/* Recording with the webcam on a computer */
.rec { position: fixed; inset: 0; z-index: 6; overflow: auto; background-color: var(--paper); background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 41px); display: flex; justify-content: center; }
.rec main { width: 100%; max-width: 900px; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 18px; }
.rec-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rec-time { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: baseline; gap: 10px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); padding: 6px 18px 6px 14px; font-family: var(--head); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.rec-time i { align-self: center; width: 16px; height: 16px; border-radius: 999px; background: var(--tomato); animation: blink 1s steps(2, start) infinite; }
.rec-time span { font-weight: 600; font-size: 18px; }
@keyframes blink { to { visibility: hidden; } }
.rec-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.rec-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--ink); }
.rec-frame video.mirror { transform: scaleX(-1); }
.rec-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; font-size: 20px; line-height: 1.45; }
.rec-wait b { display: block; font-family: var(--head); font-weight: 600; font-size: 26px; }
.rec-acts { display: flex; flex-wrap: wrap; gap: 12px; } .rec-acts .btn { flex: 1 1 260px; width: auto; }
.recdot { width: 22px; height: 22px; border-radius: 999px; background: #fff; border: 3px solid var(--ink); }
.recsq { width: 20px; height: 20px; border-radius: 4px; background: #fff; border: 3px solid var(--ink); }
@media (prefers-reduced-motion: reduce) { .rec-time i { animation: none; } }
/* While recording: the question over the video, and a green frame (time to spare) turning orange (wrap up) */
.rec-q { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: 16px 20px 40px; color: #fff; font-family: var(--head); font-weight: 600; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; text-shadow: 0 2px 6px rgba(0,0,0,.5);
  background: linear-gradient(180deg, rgba(31,26,61,.85), rgba(31,26,61,.55) 60%, transparent); pointer-events: none; }
.rec-frame.review .rec-q { display: none; }
.rec-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 21px; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .3s ease; }
.rec-frame.good::after { box-shadow: inset 0 0 0 8px #2BB463; }
.rec-frame.late::after { box-shadow: inset 0 0 0 8px #F28C1E; }
.rec-frame.good .rec-time { background: #DDF5E4; } .rec-frame.late .rec-time { background: #FFE2C2; }
@media (prefers-reduced-motion: reduce) { .rec-frame::after { transition: none; } }
/* Organiser: someone remembered */
.person.memory { background: #F4F0FF; border-style: dashed; box-shadow: none; }
.pill.memory { background: #fff; border-color: var(--grape); color: var(--grape); }
.face .nm { display: flex; flex-direction: column; align-items: center; max-width: 100%; line-height: 1.2; text-align: center; }
.face .nm small { font-size: 16px; font-weight: 700; opacity: .7; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.face .nm > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
