/* The phone's page: the paper sheet, type, buttons (from mock/app/play.html). */
:root {
  --ink: #231B14; --cream: #FFFBF2; --sand: #F3E6CC; --terracotta: #DC3F2F; --faience: #2C6CB3;
  --ochre: #F2B53A; --sage: #3EA35F; --rose: #EC6F8C; --dim: #B9A88A; --dimtext: #6E5C44; --wood: #7A4A2A;
  --me: #2A9D8F;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* `hidden` always hides: a class giving an element its own display must not bring it back (the host's stop dialog did). */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
/* iOS enlarges the text when the phone turns sideways unless told not to; zooming the page still works. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: #F6EAD0 url(/assets/play/paper-grain.webp) center / 260px; background-blend-mode: multiply; color: var(--ink); font-family: Nunito, system-ui, sans-serif; }
.screen { position: relative; min-height: 100dvh; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.screen::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 35%, transparent 55%, rgba(122,74,42,.16)); }
.view { position: relative; flex: 1; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 12px) 18px calc(env(safe-area-inset-bottom) + 18px); max-width: 520px; width: 100%; margin: 0 auto; }
.view-inner { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.kicker { font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }
.title { font-family: 'Titan One', sans-serif; font-weight: 400; font-size: 27px; line-height: 1.08; margin: 2px 0 4px; }
.lead { font-weight: 700; font-size: 15px; line-height: 1.4; color: #4A3B2D; margin: 0; }
.small { font-weight: 700; font-size: 12.5px; line-height: 1.4; color: var(--dimtext); margin: 0; }
.error { color: var(--terracotta); min-height: 1.4em; }
.center { text-align: center; }
.grow { flex: 1; }
.col { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; }
.row > :first-child { flex: 1; } .row > :last-child { flex: 2; }
.row.even > :last-child { flex: 1.3; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink);
  font-family: 'Titan One', sans-serif; font-size: 21px; padding: 13px 16px; color: var(--cream); background: var(--terracotta); cursor: pointer; width: 100%; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ochre { background: var(--ochre); color: var(--ink); }
.btn.cream { background: var(--cream); color: var(--ink); font-size: 17px; }
.btn.small { font-size: 16px; padding: 9px 12px; box-shadow: 0 3px 0 var(--ink); border-radius: 13px; }
.btn.big { font-size: 24px; padding: 18px; }
.card { background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 12px 14px; }
.field { width: 100%; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 16px; font: 900 20px Nunito, sans-serif; color: var(--ink); }
.code-input { text-align: center; letter-spacing: .3em; font-family: 'Titan One', sans-serif; font-size: 34px; text-transform: uppercase; }
/* she or he on the nickname screen: two drawings to tap, the picked one raised in ochre */
.form-ask { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.form-ask .lead { margin: 0; }
.forms { display: flex; gap: 12px; justify-content: center; }
.form-pick { flex: 1; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 8px 6px 6px; font: 900 18px Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.form-pick img { height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.form-pick[aria-pressed="true"] { background: var(--ochre); transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
/* The waiting room and the "look at the TV" blocks. */
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 99px; padding: 4px 10px 4px 5px; font-weight: 900; font-size: 14px; }
.chip.away { opacity: .45; }
.chip .face { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--c); background: var(--sand); object-fit: cover; }
.chip .badge { background: var(--ochre); border: 2px solid var(--ink); border-radius: 99px; font-size: 10px; padding: 0 6px; }
.watch { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.tvicon { width: 120px; height: 86px; border: 4px solid var(--ink); border-radius: 14px; background: var(--sand); position: relative; box-shadow: 0 5px 0 var(--ink); }
.tvicon { display: flex; align-items: center; justify-content: center; }
.tvicon img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c); background: var(--cream); }
.tvicon::after { content: ''; position: absolute; bottom: -18px; left: 36px; width: 40px; height: 10px; background: var(--ink); border-radius: 4px; }
.pulse { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 900; font-size: 15px; }
.pulse i { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(62,163,95,.25); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 8px rgba(62,163,95,0); } }
.podium { font-family: 'Titan One', sans-serif; font-size: clamp(40px, 16vw, 84px); line-height: 1; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.chip .kick { width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sand); color: var(--ink); font: 900 15px/1 Nunito, sans-serif; padding: 0; cursor: pointer; }
.kickask { display: flex; flex-direction: column; gap: 10px; }
.kickask .row > * { flex: 1; }
.stopask { position: fixed; left: 16px; right: 16px; top: 28%; z-index: 30; }
.menusheet { position: fixed; left: 16px; right: 16px; top: 72px; z-index: 30; }
.pausecover { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; padding: 16px; background: rgba(28, 22, 16, .55); }
.pausecover > .card { width: 100%; }
.barmenu { border: 0; background: none; padding: 6px 2px 6px 8px; display: flex; gap: 3px; align-items: center; cursor: pointer; margin-left: auto; }
.clock:not([hidden]) + .barmenu { margin-left: 0; }
.barmenu i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: block; }
/* the seats of those who dropped out of a running party: tap one to play on as them */
.seats { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.seat { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 8px 14px; font: 900 20px Nunito, sans-serif; color: var(--ink); text-align: left; cursor: pointer; }
.seat:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.seat .face { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--c); background: var(--sand); object-fit: cover; flex: none; }
.seat .who { display: flex; flex-direction: column; line-height: 1.15; }
.seat .pts { font-size: 14px; opacity: .7; }
/* the party's size: the host's button that opens the sheet, everybody else's line */
.contents { display: contents; }
.setupbtn { position: relative; display: flex; flex-direction: column; gap: 1px; width: 100%; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); padding: 8px 34px 8px 14px; color: var(--ink); text-align: left; cursor: pointer; }
.setupbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.setupbtn .label { font-family: 'Titan One', sans-serif; font-size: 17px; line-height: 1.2; }
.setupbtn .sum { font-weight: 900; font-size: 13.5px; line-height: 1.3; color: var(--dimtext); }
.setupbtn::after { content: '›'; position: absolute; right: 13px; top: 50%; transform: translateY(-52%); font: 400 26px/1 'Titan One', sans-serif; }
.setupline { margin: 0; background: var(--sand); border: 2.5px solid var(--ink); border-radius: 16px; padding: 5px 14px; font-weight: 900; font-size: 13.5px; line-height: 1.3; text-align: center; }
/* the sheet: on top of the lobby, at the bottom where the thumb is; a tap beside it closes it */
.sheetcover { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); background: rgba(28, 22, 16, .45); }
.setupsheet { width: 100%; max-width: 488px; display: flex; flex-direction: column; gap: 12px; }
.sheettitle { font-family: 'Titan One', sans-serif; font-weight: 400; font-size: 22px; line-height: 1.1; margin: 0; }
.stepper { display: grid; grid-template-columns: minmax(0, 1fr) 48px 46px 48px; align-items: center; gap: 6px; }
.stepper .what { font-weight: 900; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.stepper .val { font-family: 'Titan One', sans-serif; font-weight: 400; font-size: 27px; text-align: center; font-variant-numeric: tabular-nums; }
.stepbtn { position: relative; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 14px; background: var(--ochre); box-shadow: 0 3px 0 var(--ink); padding: 0; cursor: pointer; touch-action: manipulation; }
/* the minus and the plus drawn as bars: the font's two glyphs came out in different sizes */
.stepbtn::before, .stepbtn.more::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 4px; margin: -2px 0 0 -9px; border-radius: 2px; background: var(--ink); }
.stepbtn.more::after { width: 4px; height: 18px; margin: -9px 0 0 -2px; }
.stepbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.stepbtn[disabled] { background: var(--cream); opacity: .4; pointer-events: none; }
/* The photo screen: the round lens with the live preview, the props, the drawn faces. */
.photo .col { flex: 1; gap: 10px; }
.photo .col[hidden] { display: none; }
.photo > .error:empty { display: none; }
.lens-box { display: flex; justify-content: center; align-items: flex-start; flex: none; }
.lens-wrap { position: relative; width: min(78vw, 330px); aspect-ratio: 1; margin: 2px auto 0; flex: none; }
.lens-wrap .lens { position: absolute; inset: 15%; width: 70%; height: 70%; border-radius: 50%; border: 5px solid var(--ink); background: var(--sand);
  box-shadow: 0 0 0 7px var(--cream), 0 0 0 10px var(--ink); display: block; }
.lens-wrap #selfOver { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lens-wrap .loader { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; gap: 8px; }
.lens-wrap.loading .loader { display: flex; }
.lens-wrap .loader i { width: 13px; height: 13px; border-radius: 50%; background: var(--ochre); border: 2.5px solid var(--ink); animation: camdot .9s ease-in-out infinite; }
.lens-wrap .loader i:nth-child(2) { background: var(--rose); animation-delay: .15s; }
.lens-wrap .loader i:nth-child(3) { background: var(--faience); animation-delay: .3s; }
@keyframes camdot { 50% { transform: translateY(-8px); } }
.lens-wrap .cnt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); font: 400 min(22vw, 92px)/1 'Titan One', sans-serif;
  color: var(--cream); -webkit-text-stroke: 3px var(--ink); text-shadow: 4px 5px 0 var(--ink); pointer-events: none; white-space: nowrap; }
.lens-wrap .cnt.snap { font-size: min(10vw, 42px); color: var(--ochre); }
.lens-wrap .flash { position: absolute; inset: 13%; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; }
.lens-wrap .flash.on { animation: selfieFlash .5s ease-out both; }
@keyframes selfieFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
.props { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 4px 0; }
.props[hidden] { display: none; }
.props button { border: 2.5px solid var(--ink); border-radius: 99px; padding: 5px 11px; font: 900 13px Nunito, sans-serif; color: var(--ink); background: var(--cream); cursor: pointer; }
.props button.on { background: var(--ochre); }
.link { display: block; margin: 2px auto; background: none; border: 0; padding: 6px; text-align: center; font: 800 13.5px Nunito, sans-serif; text-decoration: underline; color: var(--dimtext); cursor: pointer; }
.link[hidden] { display: none; }
.facefit { display: flex; justify-content: center; align-items: flex-start; }
.facepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: 4px; }
.facebtn { aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 22px; background: var(--cream); box-shadow: 0 5px 0 var(--ink); padding: 8px; cursor: pointer; }
.facebtn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.facebtn img { width: 100%; height: 100%; object-fit: contain; display: block; }
.facebtn.on { background: var(--ochre); }
.latefaces .facefit { flex: none; height: min(30vh, 240px); }

/* Sized by the box they get rather than by the screen's width, so a short screen (landscape, Safari's bars,
   a zoomed page) shrinks the lens and the faces instead of pushing the buttons out of sight. The faces take
   whichever of three-by-two or one row of six gives them the bigger side; the 5px is the button's shadow. */
@supports (container-type: size) {
  .lens-box { container-type: size; flex: 100 1 0; min-height: 150px; max-height: 336px; }
  .lens-wrap { width: min(78vw, 330px, 100cqw - 4px, 100cqh - 6px); }
  .facefit { container-type: size; flex: 1 1 0; min-height: 64px; }
  .facepick { --cell: min((100cqw - 24px) / 3, (100cqh - 21px) / 2, 160px); grid-template-columns: repeat(3, var(--cell)); width: auto; }
  @container (min-aspect-ratio: 3 / 1) {
    .facepick { --cell: min((100cqw - 60px) / 6, 100cqh - 9px, 160px); grid-template-columns: repeat(6, var(--cell)); }
  }
}

/* A phone on its side: the lens on the left at the full height, the rest beside it, so the shoot button stays
   in sight. Rows are placed by hand: the props row comes and goes, and the spare height goes to the gap
   above the button, as it does upright. */
@media (orientation: landscape) and (max-height: 500px) {
  @supports (container-type: size) {
    .photo .photo-cam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto auto auto 1fr auto auto auto; column-gap: 18px; row-gap: 8px; }
    .photo-cam > .lens-box { grid-column: 1; grid-row: 1 / -1; max-height: none; align-items: center; }
    .photo-cam > :not(.lens-box) { grid-column: 2; }
    .photo-cam > .title { grid-row: 1; } .photo-cam > #selfHint { grid-row: 2; } .photo-cam > .props { grid-row: 3; }
    .photo-cam > .grow { grid-row: 4; } .photo-cam > .btn { grid-row: 5; } .photo-cam > .links { grid-row: 6; } .photo-cam > .privacy { grid-row: 7; }
  }
  .photo-faces > .links { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 16px; }
  .photo-faces > .links .link { margin: 0; }
}

.lens-wrap .ghost { position: absolute; inset: 24%; width: 52%; height: 52%; object-fit: contain; opacity: .28; pointer-events: none; }
/* The colour after the face: the eight shirts in a grid, mine ringed, the others' greyed under their owner's face. */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; margin: 8px 0 2px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; background: none; border: 0;
  font: 900 12.5px/1.2 Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.swatch .dot { width: 100%; max-width: 78px; aspect-ratio: 1; border-radius: 50%; background: var(--c); border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); display: flex; align-items: center; justify-content: center; }
.swatch:active .dot { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.swatch .face { width: 64%; height: 64%; border-radius: 50%; object-fit: cover; background: var(--cream); border: 2.5px solid var(--ink); }
.swatch .cap { max-width: 100%; min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch.mine .dot { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--ink); }
.swatch.mine .cap { color: var(--terracotta); }
.swatch.taken { cursor: default; }
/* washed out, not grey: who has which colour still reads at a glance */
.swatch.taken .dot { background: linear-gradient(rgba(246, 234, 208, .62), rgba(246, 234, 208, .62)), var(--c); border-color: rgba(35, 27, 20, .3); box-shadow: none; }
.swatch.taken .face { opacity: .8; border-color: rgba(35, 27, 20, .4); }
.swatch.taken .cap { color: var(--dimtext); }
.swatch.pending .dot { animation: swatchWait .8s ease-in-out infinite; }
.swatch.pending .cap { color: var(--dimtext); }
.swatch[disabled]:not(.taken) .dot { opacity: .6; }
@keyframes swatchWait { 50% { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--ochre); transform: scale(.94); } }
.colorpick > .error:empty { min-height: 0; }
/* the lobby's ways back: another photo or face, another colour */
.lobbylinks { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 14px; }
.lobbylinks .link { margin: 0; }
/* In the game: the bar, the four answers, the tape, the order, the map, the reveal. */
.bar { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; min-height: 46px; }
.me { display: flex; align-items: center; gap: 7px; background: var(--cream); border: 3px solid var(--ink); border-radius: 99px; padding: 4px 12px 4px 4px; font-family: 'Titan One', sans-serif; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.me img { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--me); background: var(--sand); object-fit: cover; }
.pts { background: var(--ink); color: var(--ochre); border-radius: 99px; padding: 6px 12px; font-family: 'Titan One', sans-serif; font-size: 14px; }
.clock { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: conic-gradient(var(--ochre) var(--left, 100%), var(--cream) 0); display: grid; place-items: center; box-shadow: 0 3px 0 var(--ink); }
.clockface { background: var(--cream); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: 'Titan One', sans-serif; font-size: 16px; }
.q { font-family: 'Titan One', sans-serif; font-size: 19px; line-height: 1.2; margin: 0; }
.answers { flex: 1; display: grid; grid-template-rows: repeat(4, minmax(64px, 1fr)); gap: 11px; min-height: 0; }
.ans { display: flex; align-items: center; gap: 12px; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 0 16px; font-family: 'Titan One', sans-serif; font-size: 22px; color: var(--cream); cursor: pointer; text-align: left; }
.ans .shape { width: 34px; height: 34px; flex: none; }
.a0 { background: var(--terracotta); } .a1 { background: var(--faience); } .a2 { background: var(--ochre); color: var(--ink); } .a3 { background: var(--sage); }
.answers.locked .ans:not(.mine) { opacity: .35; box-shadow: 0 2px 0 var(--ink); }
.ans.mine { outline: 5px solid var(--cream); outline-offset: -11px; }
.lockline { text-align: center; background: var(--ink); color: var(--ochre); border-radius: 99px; padding: 9px; font-family: 'Titan One', sans-serif; font-size: 15px; }
.dial { text-align: center; font-family: 'Titan One', sans-serif; font-size: 58px; line-height: 1; margin: 12px 0 4px; }
.dial small { font-size: 22px; }
.range { width: 100%; accent-color: var(--me); height: 34px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps button { font: 900 17px Nunito, sans-serif; border: 3px solid var(--ink); border-radius: 12px; background: var(--cream); padding: 10px 0; box-shadow: 0 3px 0 var(--ink); cursor: pointer; color: var(--ink); }
.olist { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.oitem { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); padding: 8px 14px; font-family: 'Titan One', sans-serif; font-size: 18px; cursor: pointer; text-align: left; color: var(--ink); }
.oitem .n { width: 40px; height: 40px; border-radius: 50%; border: 3px dashed rgba(35,27,20,.35); display: grid; place-items: center; flex: none; }
.oitem.set .n { border: 3px solid var(--ink); background: var(--me); color: var(--cream); }
.map[data-map="poland"] { aspect-ratio: 2048 / 1928; background-image: url(/assets/play/map-poland.webp); }
.map { flex: none; width: 100%; aspect-ratio: 2048 / 1811; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); background: #86B9B2 url(/assets/play/map-europe.webp) center / 100% 100% no-repeat; position: relative; overflow: hidden; touch-action: manipulation; cursor: crosshair; }
.map .pin { position: absolute; width: 26px; height: 38px; margin: -38px 0 0 -13px; pointer-events: none; }
.verdict { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.burst { width: 210px; height: 210px; display: grid; place-items: center; background: url(/assets/play/fx-starburst.webp) center / contain no-repeat; font-family: 'Titan One', sans-serif; font-size: 46px; }
.burst.grey { filter: grayscale(1) opacity(.5); }
.verdict .big { font-family: 'Titan One', sans-serif; font-size: 36px; }
.closed .answers .ans, .closed .oitem, .closed .map { pointer-events: none; }
.burst[hidden], .verdict .small[hidden] { display: none; }
/* Between questions: the minigame's pad, the gallery, the prank cards, a prank on this phone. */
.pad .mghead { display: flex; flex-direction: column; gap: 2px; }
.pad .mghead b { font-family: 'Titan One', sans-serif; font-size: 26px; font-weight: 400; }
.pad .mghead span { font-weight: 800; color: var(--dimtext); }
.stick { flex: 1; display: grid; place-items: center; touch-action: none; min-height: 240px; }
.stick .base { width: 220px; height: 220px; border-radius: 50%; background: var(--sand); border: 4px solid var(--ink); box-shadow: inset 0 6px 0 rgba(35,27,20,.12); display: grid; place-items: center; transition: transform .15s ease-out; }
.stick .base.held { transition: none; }
.stick .knob { width: 92px; height: 92px; border-radius: 50%; background: var(--me); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .06s; }
.hold { flex: 1; display: grid; place-items: center; }
.bigbtn { width: min(78vw, 300px); aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--ink); box-shadow: 0 9px 0 var(--ink); background: var(--terracotta); color: var(--cream); font: 400 34px 'Titan One', sans-serif; touch-action: none; user-select: none; }
.bigbtn.down { transform: translateY(6px); box-shadow: 0 3px 0 var(--ink); background: var(--ochre); color: var(--ink); }
.shakecue { font: 400 54px 'Titan One', sans-serif; color: var(--terracotta); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); user-select: none; animation: shakecue-idle 1.2s ease-in-out infinite; }
@keyframes shakecue-idle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.lr { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lr button { border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: var(--cream); font: 400 26px 'Titan One', sans-serif; color: var(--ink); touch-action: none; }
.lr button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); background: var(--ochre); }
.small-title { font-size: 22px; }
.aimpad { position: relative; height: 34vh; min-height: 200px; border: 4px solid var(--ink); border-radius: 22px; background: #1F2A44; box-shadow: inset 0 0 0 6px rgba(255,255,255,.06); touch-action: none; overflow: hidden; }
.aimpad .mark { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; transition: transform .08s; }
.aimpad .mark.kick { transform: scale(1.25) rotate(8deg); }
/* the shell game: the three cups by their numbers, the pick lit */
.cupspad { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.cuprow { display: flex; gap: 12px; }
.cupbtn { flex: 1; aspect-ratio: 3 / 4; border-radius: 22px; border: 5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); background: var(--cream); color: var(--ink); font: 400 64px 'Titan One', sans-serif; touch-action: manipulation; }
.cupbtn:not([disabled]):active { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); }
.cupbtn[disabled] { opacity: .5; }
.cupbtn.on { background: var(--ochre); opacity: 1; }
.watchpad { flex: 1; margin: 6px 0 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 28px; border: 5px solid var(--ink); box-shadow: 0 9px 0 var(--ink); background: var(--cream); color: var(--ink); font: inherit; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.watchpad.stopped { background: var(--ochre); transform: translateY(5px); box-shadow: 0 4px 0 var(--ink); }
.watchpad.late { opacity: .6; }
.watchhead { font-weight: 800; font-size: 18px; color: var(--dimtext); }
.watchfig { font: 400 clamp(72px, 26vw, 120px) 'Titan One', sans-serif; line-height: 1; font-variant-numeric: tabular-nums; }
.watchline { margin: 0; font-weight: 800; font-size: 18px; text-align: center; padding: 0 16px; }
/* the quick draw: the card read at arm's length (dark while it waits, so the shot's flash stands out), the flash over the whole screen */
.drawpad { flex: 1; margin: 6px 0 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 28px; border: 5px solid var(--ink); box-shadow: 0 9px 0 var(--ink); background: var(--cream); color: var(--ink); font: inherit; text-align: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.drawpad.wait { background: var(--ink); color: var(--cream); }
.drawpad.fire, .drawpad.drawn { background: var(--ochre); }
.drawpad.early { background: var(--terracotta); color: var(--cream); }
.drawpad.late { opacity: .6; }
.drawhead { font-weight: 800; font-size: 20px; }
.drawbig { font: 400 clamp(38px, 12vw, 68px) 'Titan One', sans-serif; line-height: 1.05; overflow-wrap: break-word; }
.drawpad.drawn .drawbig { font-size: clamp(72px, 26vw, 120px); font-variant-numeric: tabular-nums; }
.drawline { margin: 0; font-weight: 800; font-size: 20px; padding: 0 6px; }
.drawhead:empty, .drawline:empty { display: none; }
.drawlock { display: none; width: 82%; height: 18px; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--cream); }
.drawpad.early .drawlock { display: block; }
.drawlock i { display: block; height: 100%; background: var(--ink); transform-origin: left center; }
.drawflash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #FFFFFF; pointer-events: none; animation: drawflash .6s ease-out forwards; }
.drawflash[hidden] { display: none; }
.drawflash b { font: 400 clamp(48px, 13vw, 110px) 'Titan One', sans-serif; color: var(--ink); text-align: center; padding: 0 12px; overflow-wrap: break-word; }
@keyframes drawflash { 0%, 30% { background: #FFFFFF; } 60% { background: var(--ochre); opacity: 1; } 100% { background: var(--ochre); opacity: 0; } }
/* the maze: the clock over a paper card with the maze, the thumb stick under it while the phone gives no tilt */
.mazepad { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.mazetop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mazeclock { font: 400 30px 'Titan One', sans-serif; font-variant-numeric: tabular-nums; }
.mazeline { font-weight: 800; font-size: 17px; color: var(--dimtext); }
.mazebox { position: relative; flex: 1; min-height: 180px; }
.mazeveil { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font: 400 clamp(40px, 13vw, 60px) 'Titan One', sans-serif; color: var(--ink); pointer-events: none; }
.mazeveil:empty { display: none; }
.mazepad.shut .mazecanvas { visibility: hidden; }
.mazepad.shut .mazebox { background: #cfc8bd; border: 5px dashed var(--ink); border-radius: 22px; }
.mazepad:not(.shut) .mazebox { animation: circleopen .35s ease-out; }
.mazecanvas { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: block; background: var(--cream); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
.mazeend { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 26px; background: var(--ochre); border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 7px 0 var(--ink); white-space: nowrap; }
.mazeend b { font: 400 40px 'Titan One', sans-serif; line-height: 1.05; }
.mazeend span { font-weight: 900; font-size: 19px; }
.mazestick { display: flex; align-items: center; gap: 12px; }
.mazestick .stick { flex: none; min-height: 0; }
.mazestick .stick .base { width: 132px; height: 132px; }
.mazestick .stick .knob { width: 56px; height: 56px; }
/* the gun held like a pad: the stick under one thumb, the trigger under the other */
.gallery .aimpad { height: 24vh; min-height: 150px; }
.gunpad { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0; }
.gunpad .stick { flex: none; min-height: 0; }
.gunpad .stick .base { width: min(156px, 42vw); height: min(156px, 42vw); }
.gunpad .stick .knob { width: 66px; height: 66px; }
.firebtn { flex: none; width: min(140px, 38vw); aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); background: var(--terracotta); color: var(--cream); font: 400 min(26px, 7vw) 'Titan One', sans-serif; touch-action: none; user-select: none; }
.firebtn:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); }
.firebtn[disabled] { opacity: .45; }
.corkrow { align-items: center; gap: 8px; }
.corkrow > * { flex: none !important; }
.corks { display: inline-flex; gap: 6px; }
.corks i { width: 18px; height: 18px; border-radius: 50%; background: #C79A62; border: 2.5px solid var(--ink); }
.hand { display: flex; flex-direction: column; gap: 8px; }
.hand .cards { display: flex; gap: 10px; }
.hand .card.prank { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 900; font-size: 14px; cursor: pointer; }
.hand .card.prank img { width: 62px; }
.hand .card.prank.on { background: var(--ochre); }
.hand .faces { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hand .target { width: 30%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border: 3px solid var(--ink); border-radius: 16px; background: var(--cream); box-shadow: 0 4px 0 var(--ink); font-weight: 900; font-size: 13px; color: var(--ink); }
.hand .target img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.prankbar { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 14px; background: var(--rose); color: var(--ink); font-weight: 800; font-size: 14px; }
.prankbar b { font-family: 'Titan One', sans-serif; font-weight: 400; font-size: 17px; }
.prank-mirror { transform: scaleX(-1); }
.prank-upside { transform: rotate(180deg); }
.prank-dark { position: relative; }
.prank-dark .torch { position: absolute; inset: -6px; z-index: 5; border-radius: 18px; touch-action: none;
  background: radial-gradient(circle 80px at var(--fx, 50%) var(--fy, 40%), transparent 0 70%, rgba(10,8,20,.97) 100%); pointer-events: none; }
.prank-dark .ans, .prank-dark .oitem { position: relative; }
.pad .faces { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-content: center; }
.pad .target { width: 30%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 8px; border: 3px solid var(--ink); border-radius: 18px; background: var(--cream); box-shadow: 0 5px 0 var(--ink); font-weight: 900; color: var(--ink); }
.pad .target img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.pad .target:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); background: var(--ochre); }
.outcard { padding: 14px; border: 3px solid var(--ink); border-radius: 16px; background: var(--ink); color: var(--cream); font: 400 20px 'Titan One', sans-serif; text-align: center; }
.outcard[hidden] { display: none; }
.pad .gone { opacity: .35; pointer-events: none; }
.pad .sent { display: none; }
.pad .target[hidden] { display: none; }
.turnline { padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); font-weight: 900; text-align: center; }
.turnline.mine { background: var(--ochre); }
.turnline[hidden] { display: none; }
.pad .waiting .target { opacity: .45; pointer-events: none; }
/* Perfect circle: the paper card to draw on (square, so a circle stays a circle), the seconds left or the score under it */
.circlepad { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 10px; user-select: none; -webkit-user-select: none; }
.circlesay { margin: 0; font-weight: 800; font-size: 19px; text-align: center; }
.circlecard { position: relative; width: min(100%, 52vh); aspect-ratio: 1; border-radius: 22px; border: 5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); background: radial-gradient(circle, rgba(35,27,20,.07) 1.2px, transparent 1.6px) 0 0 / 22px 22px, var(--cream); touch-action: none; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.circlecard::before, .circlecard::after { content: ''; position: absolute; left: 50%; top: 50%; background: rgba(35,27,20,.22); border-radius: 2px; pointer-events: none; }
.circlecard::before { width: 18px; height: 3px; margin: -1.5px 0 0 -9px; }
.circlecard::after { width: 3px; height: 18px; margin: -9px 0 0 -1.5px; }
.circleline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.circleout { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.circlecap { font-weight: 800; font-size: 16px; color: var(--dimtext); }
.circlecap:empty { display: none; }
.circlefig { font: 400 clamp(44px, 14vw, 64px) 'Titan One', sans-serif; line-height: 1; font-variant-numeric: tabular-nums; }
.circlepad.done .circlefig { font-size: clamp(60px, 20vw, 88px); color: var(--terracotta); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.circlepad.late .circlecard { opacity: .6; }
.circleveil { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font: 400 clamp(40px, 13vw, 60px) 'Titan One', sans-serif; color: var(--ink); pointer-events: none; }
.circleveil:empty { display: none; }
.circlepad.shut .circlecard { background: #cfc8bd; border-style: dashed; box-shadow: none; transform: translateY(6px); }
.circlepad.shut .circlesay { visibility: hidden; }
.circlepad:not(.shut) .circlecard { animation: circleopen .35s ease-out; }
@keyframes circleopen { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.circlesay { font: 400 24px 'Titan One', sans-serif; }
/* The friends' survey (/ankieta): the game's question views without the table's bar items, the picture above the answers, the rating. */
.survey-page .bar .me, .survey-page .bar .pts, .survey-page .barmenu { display: none; }
.survey-pic { display: block; width: 100%; max-height: 24vh; object-fit: contain; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); background: #fff; margin-bottom: 10px; }
.survey-rate > * { flex: 1; }
.survey-report { min-height: 76px; resize: vertical; font: inherit; }
