/* games: the games room (a grid of cards) and its seven games */

/* ---------- the grid ---------- */
.g-hello { display: flex; align-items: center; gap: 12px; margin: 0 2px 14px; }
.g-heads { display: flex; flex: none; }
.g-heads .head-pic + .head-pic { margin-left: -12px; }
.g-hello b { display: block; font-size: 20px; font-weight: 600; line-height: 1.15; }
.g-hello small { display: block; font-size: 14px; color: var(--ink2); }

.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0;
  padding: 10px 14px 14px; border-radius: 26px; background: var(--tint, #fff);
  box-shadow: 0 5px 0 rgba(74, 55, 67, .09), var(--shadow-s);
  animation: gIn .5s var(--spring) both; animation-delay: calc(var(--i) * 45ms);
  transition: transform .15s var(--spring);
}
.g-card:active { transform: scale(.95) rotate(-1deg); }
.g-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; }
.g-card.wide .g-art { width: 128px; flex: none; }
.g-card-t b { display: block; font-size: 18px; font-weight: 600; line-height: 1.15; }
.g-card.wide .g-card-t b { font-size: 21px; }
.g-card-t small { display: block; font-size: 13.5px; color: var(--ink2); line-height: 1.3; margin-top: 3px; }
.g-tag {
  position: absolute; top: 10px; right: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: var(--mint); color: #fff;
  font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 0 var(--mint-d); animation: beckon 2s ease-in-out infinite;
}
@keyframes gIn { from { transform: translateY(18px) scale(.9); opacity: 0; } }

.g-join {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 14px; padding: 10px 12px;
  border-radius: 22px; background: #fff; box-shadow: 0 0 0 3px var(--mint), 0 4px 0 var(--line); animation: gIn .5s var(--spring);
}
.g-join b { display: block; font-weight: 600; font-size: 16px; }
.g-join small { display: block; color: var(--ink2); font-size: 14px; }
.g-join-go { padding: 9px 16px; border-radius: 14px; background: var(--mint); color: #fff; font-weight: 600; box-shadow: 0 4px 0 var(--mint-d); }

/* the little pictures on the cards */
.g-art { position: relative; height: 84px; display: flex; align-items: center; justify-content: center; }
.g-art .spr { width: 64px; height: 64px; }
.g-art.one .spr { width: 72px; height: 72px; animation: bob 3s ease-in-out infinite; }
.g-art.one .spr.g-spark { position: absolute; width: 28px; height: 28px; top: 2px; right: calc(50% - 56px); animation: twinkle 2.2s ease-in-out infinite; }
.g-art.one .spr.g-crayon { position: absolute; width: 38px; height: 38px; right: calc(50% - 58px); bottom: 0; transform: rotate(24deg); animation: none; }
.g-mini {
  position: absolute; width: 54px; height: 72px; border-radius: 12px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 0 rgba(74, 55, 67, .1), var(--shadow-s);
}
.g-mini .spr { width: 40px; height: 40px; }
.g-mini.l { transform: translateX(-20px) rotate(-10deg); }
.g-mini.r { transform: translateX(20px) rotate(9deg); }
.g-card:active .g-mini.l { transform: translateX(-26px) rotate(-15deg); }
.g-card:active .g-mini.r { transform: translateX(26px) rotate(14deg); }
.g-mini { transition: transform .2s var(--spring); }
.g-art.td .g-mini.l { background: var(--sky-l); }
.g-art.td .g-mini.r { background: #fff; }
.g-mini.bk { background: var(--sky) radial-gradient(circle, rgba(255, 255, 255, .3) 0 2px, transparent 2.5px) 0 0 / 11px 11px; box-shadow: 0 3px 0 var(--sky-d); }
.g-mini-board {
  display: grid; grid-template-columns: repeat(3, 22px); gap: 4px; padding: 5px; border-radius: 12px; background: #fff;
  box-shadow: 0 3px 0 rgba(74, 55, 67, .1); transform: rotate(-4deg);
}
.g-mini-board i { width: 22px; height: 22px; border-radius: 6px; background: var(--cream); display: grid; place-items: center; }
.g-mini-board .spr { width: 17px; height: 17px; }
.g-art.rps .spr { width: 50px; height: 50px; margin: 0 -4px; }
.g-art.rps .spr:nth-child(1) { transform: rotate(-14deg) translateY(8px); }
.g-art.rps .spr:nth-child(2) { transform: translateY(-6px); }
.g-art.rps .spr:nth-child(3) { transform: rotate(14deg) translateY(8px); }
.g-art.tot { gap: 4px; }
.g-art.tot .spr { width: 50px; height: 50px; }
.g-art.tot span { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink2); box-shadow: 0 2px 0 rgba(74, 55, 67, .08); }

/* ---------- inside a game ---------- */
.g-view { animation: gView .4s var(--spring); }
@keyframes gView { from { transform: translateX(28px); opacity: 0; } }
.g-top { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; }
.g-top b { flex: 1; min-width: 0; font-size: 20px; font-weight: 600; line-height: 1.15; }
.g-back {
  width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 3px 0 var(--line); transition: transform .1s;
}
.g-back:active { transform: scale(.9); }
.g-hint { text-align: center; color: var(--ink2); font-size: 16px; line-height: 1.35; margin: 12px 4px; }
.g-gap { margin-top: 12px; }
.g-best { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--ink2); font-size: 15px; }

.g-panel {
  text-align: center; padding: 22px 18px 16px; background: #fff; border-radius: 28px;
  box-shadow: 0 4px 0 var(--line), var(--shadow-s); animation: popBig .5s var(--spring) both;
}
.g-panel > .spr { animation: bob 2.6s ease-in-out infinite; }
.g-panel .waiting { text-align: left; }
.g-setup h2 { margin: 12px 0 4px; }
.g-setup .lead { margin-bottom: 18px; }
.g-setup .btn.ghost { margin-top: 4px; }
.g-setup-pics { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.g-setup-pics .spr { margin-bottom: 18px; animation: bob 2.6s ease-in-out infinite; }

/* "Now <name>": the phone changes hands */
.g-cover {
  text-align: center; padding: 30px 18px 18px; border-radius: 30px; background: #FFF0F4;
  box-shadow: 0 4px 0 var(--line), var(--shadow-s); animation: popBig .5s var(--spring) both;
}
.g-cover.b { background: #EEF6FD; }
.g-cover > .head-pic { animation: bob 2.4s ease-in-out infinite; border-width: 4px; }
.g-cover h2 { font-size: 30px; margin: 14px 0 6px; }
.g-cover .lead { margin: 0 8px 20px; }

/* the two of you */
.g-vs { display: flex; align-items: center; gap: 8px; }
.g-side {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 22px;
  background: rgba(255, 255, 255, .55); transition: background .25s, box-shadow .25s, transform .35s var(--spring);
}
.g-side.b { flex-direction: row-reverse; text-align: right; padding: 6px 6px 6px 10px; }
.g-side-t { min-width: 0; }
.g-side b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-side small { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.g-side.b small { justify-content: flex-end; }
.g-side.on { background: #fff; box-shadow: 0 0 0 3px var(--pink), 0 4px 0 var(--line); transform: scale(1.03); }
.g-side.b.on { box-shadow: 0 0 0 3px var(--sky), 0 4px 0 var(--line); }
.g-side.on .head-pic { animation: hop 1.1s ease-in-out infinite; }
.g-vs-mid { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.g-vs-mid b { font-size: 22px; font-weight: 600; }
.g-vs-mid small { font-size: 12px; color: var(--ink2); }

/* the end of a game */
.g-done {
  text-align: center; padding: 18px 16px 16px; margin-top: 14px; background: #fff; border-radius: 28px;
  box-shadow: 0 4px 0 var(--line), var(--shadow-s); animation: popBig .55s var(--spring) both;
}
.g-done h2 { margin: 8px 0 4px; }
.g-done .lead { margin: 0 0 14px; }
.g-done-pics { display: flex; align-items: center; justify-content: center; gap: 6px; }
.g-done-pics > .head-pic, .g-done-pics > .spr { animation: gHop .9s var(--spring) both; }
.g-done-pics > :nth-child(2) { animation-delay: .1s; }
.g-done-pics > :nth-child(3) { animation-delay: .2s; }
.g-done.wrong .g-done-pics { animation: shake .5s ease .2s; }
@keyframes gHop { 0% { transform: scale(.3) translateY(20px); opacity: 0; } 60% { transform: scale(1.08) translateY(-6px); opacity: 1; } }
.g-turn { display: flex; align-items: center; gap: 10px; margin: 0 2px 14px; }
.g-turn > .head-pic { animation: gHop .6s var(--spring) both; }
.g-turn b { display: block; font-size: 20px; font-weight: 600; line-height: 1.15; }
.g-turn small { display: block; font-size: 15px; color: var(--ink2); }

/* ---------- truth or dare ---------- */
.g-flip { height: 270px; margin-bottom: 18px; perspective: 1200px; animation: cardIn .5s var(--spring) both; }
.g-flip-in { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .75s var(--spring); }
.g-flip-in.on { transform: rotateY(180deg); }
.g-face {
  position: absolute; inset: 0; border-radius: 28px; padding: 20px 22px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 6px 0 rgba(74, 55, 67, .1), var(--shadow-s);
}
.g-face.back {
  color: #fff; background: var(--lilac) radial-gradient(circle, rgba(255, 255, 255, .22) 0 3px, transparent 3.5px) 0 0 / 22px 22px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .25), 0 6px 0 #9C84DA, var(--shadow-s);
}
.g-face.back b { font-size: 28px; font-weight: 600; text-shadow: 0 2px 0 rgba(110, 82, 194, .35); }
.g-td-pics { display: flex; gap: 10px; }
.g-td-pics .spr { width: 76px; height: 76px; animation: bob 2.8s ease-in-out infinite; }
.g-td-pics .spr + .spr { animation-delay: .5s; }
.g-face.front { transform: rotateY(180deg); background: var(--sky-l); }
.g-td-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 6px; border-radius: 999px; background: #fff; font-size: 16px; font-weight: 600; color: #3A7FB3; box-shadow: 0 2px 0 rgba(74, 55, 67, .06); }
.g-face.dare .g-td-tag { color: var(--pink-d); }
.g-face.front.dare { background: var(--pink-l); }
.g-td-text { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.3; }
.g-td-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-td-btn {
  min-height: 116px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 22px; font-weight: 600; color: #fff; transition: transform .08s, box-shadow .08s;
}
.g-td-btn .spr { width: 54px; height: 54px; }
.g-td-btn.truth { background: var(--sky); box-shadow: 0 6px 0 var(--sky-d); }
.g-td-btn.dare { background: var(--pink); box-shadow: 0 6px 0 var(--pink-d); }
.g-td-btn:active { transform: translateY(5px); }
.g-td-btn.truth:active { box-shadow: 0 1px 0 var(--sky-d); }
.g-td-btn.dare:active { box-shadow: 0 1px 0 var(--pink-d); }
.g-td .btn.ghost { margin-top: 4px; }
.g-finish { margin-top: 10px !important; }

/* ---------- tic-tac-toe ---------- */
.g-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 340px; margin: 0 auto; padding: 12px;
  background: #fff; border-radius: 30px; box-shadow: 0 5px 0 var(--line), var(--shadow-s);
}
.g-ttt .g-vs + .g-board { margin-top: 16px; }
.g-cell {
  aspect-ratio: 1; border-radius: 20px; background: var(--cream); display: grid; place-items: center;
  box-shadow: inset 0 -4px 0 rgba(74, 55, 67, .06); transition: transform .12s, background .25s;
}
.g-cell:active { transform: scale(.92); }
.g-board.over .g-cell:active, .g-board.wait .g-cell:active { transform: none; }
.g-cell .spr { width: 66%; height: 66%; animation: gPlace .5s var(--spring); }
.g-cell.win { background: var(--butter-l); box-shadow: inset 0 0 0 3px var(--butter); }
.g-cell.win .spr { animation: gPlace .5s var(--spring), gWin 1.1s ease-in-out .4s infinite; }
.g-cell.dim .spr { opacity: .35; filter: grayscale(.4); }
@keyframes gPlace { from { transform: scale(0) rotate(-40deg); } }
@keyframes gWin { 50% { transform: scale(1.14) rotate(7deg); } }

/* ---------- memory match ---------- */
.g-mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; }
.g-mc { aspect-ratio: 1; perspective: 700px; transition: transform .12s; }
.g-mc:active { transform: scale(.93); }
.g-mc-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s var(--spring); }
.g-mc.up .g-mc-in { transform: rotateY(180deg); }
.g-mc-f { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.g-mc-f.bk {
  background: var(--sky) radial-gradient(circle, rgba(255, 255, 255, .28) 0 2px, transparent 2.5px) 0 0 / 12px 12px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25), 0 4px 0 var(--sky-d);
}
.g-mc-f.fr { background: #fff; transform: rotateY(180deg); box-shadow: 0 4px 0 var(--line); }
.g-mc-f.fr .spr { width: 72%; height: 72%; }
.g-mc.got .g-mc-f.fr { background: var(--mint-l); box-shadow: inset 0 0 0 3px var(--mint), 0 4px 0 #C4EAD7; }
.g-mc.got .g-mc-f.fr .spr { animation: gGot .7s var(--spring); }
.g-mc.miss .g-mc-f.fr { box-shadow: inset 0 0 0 3px var(--pink), 0 4px 0 var(--line); }
.g-mc.miss { animation: shake .45s ease .4s; }
@keyframes gGot { 0% { transform: scale(1); } 40% { transform: scale(1.3) rotate(-8deg); } 100% { transform: scale(1); } }

/* ---------- rock paper scissors ---------- */
.g-pips { display: inline-flex; gap: 4px; }
.g-pips i { width: 12px; height: 12px; border-radius: 50%; background: var(--sand); box-shadow: inset 0 0 0 2px var(--line); transition: background .3s; }
.g-pips i.on { background: var(--butter); box-shadow: inset 0 0 0 2px #E3B544; animation: bump .5s var(--spring); }
.g-hands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-hand {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 4px 12px; border-radius: 24px; background: #fff;
  box-shadow: 0 5px 0 var(--line); animation: gIn .5s var(--spring) both; animation-delay: calc(var(--i) * 60ms); transition: transform .12s;
}
.g-hand .spr { width: 66px; height: 66px; }
.g-hand b { font-size: 16px; font-weight: 600; }
.g-hand:active { transform: scale(.92) rotate(-3deg); }
.g-mine { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; color: var(--ink2); font-size: 16px; }
.g-reveal { margin-top: 16px; }
.g-arena {
  display: flex; justify-content: space-around; align-items: flex-end; padding: 26px 8px 14px; border-radius: 30px;
  background: #fff; box-shadow: 0 5px 0 var(--line), var(--shadow-s);
}
.g-fist { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .3s; }
.g-fist b { font-size: 18px; font-weight: 600; }
.g-pump, .g-pop { display: block; }
.g-fist-pic { width: 100px; height: 100px; }
.g-fist.b .g-fist-pic { transform: scaleX(-1); }
.shake .g-fist.a .g-pump { animation: gPumpL .38s ease-in-out 3; }
.shake .g-fist.b .g-pump { animation: gPumpR .38s ease-in-out 3; }
.show .g-pop { animation: gPlace .55s var(--spring); }
.g-fist.won .g-fist-pic { filter: drop-shadow(0 0 14px rgba(255, 196, 60, .95)); }
.g-fist.won b { color: var(--pink-d); }
.g-fist.lost { opacity: .5; }
@keyframes gPumpL { 50% { transform: translateY(-30px) rotate(-14deg); } }
@keyframes gPumpR { 50% { transform: translateY(-30px) rotate(14deg); } }
.g-round { text-align: center; animation: popBig .45s var(--spring) both; }
.g-round h2 { margin: 16px 0 14px; }

/* ---------- how well do you know me ---------- */
.g-steps { display: flex; justify-content: center; gap: 6px; margin: 0 0 14px; }
.g-steps i { width: 10px; height: 10px; border-radius: 5px; background: var(--line); transition: width .3s var(--spring), background .3s; }
.g-steps i.on { background: var(--pink); }
.g-steps i.now { width: 26px; background: var(--pink); }
.g-bubble-row { display: flex; align-items: flex-end; gap: 10px; }
.g-bubble {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 22px 22px 22px 6px; background: #fff; font-size: 21px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 4px 0 var(--line), var(--shadow-s); transform-origin: 0 100%; animation: gBubble .45s var(--spring) both;
}
@keyframes gBubble { from { transform: scale(.6) translateY(10px); opacity: 0; } }
.g-km .both { margin-top: 14px; }
.g-said-top { gap: 6px; margin-bottom: 6px; }
.g-km .said-text { font-size: 17px; font-weight: 500; }
.g-marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-mk {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; border-radius: 22px;
  background: #fff; font-size: 17px; font-weight: 600; box-shadow: 0 5px 0 var(--line); transition: transform .08s, box-shadow .08s;
}
.g-mk.r { background: #F1FBF6; box-shadow: 0 5px 0 #BFE8D3; }
.g-mk.c { background: #FFF9E6; box-shadow: 0 5px 0 #F3DC9A; }
.g-mk.w { background: #FFF2F4; box-shadow: 0 5px 0 #F7CDD8; }
.g-mk:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.g-score {
  width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; background: var(--lilac-l); display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: inset 0 -6px 0 rgba(110, 82, 194, .12); animation: gHop .8s var(--spring) both;
}
.g-score b { font-size: 46px; font-weight: 600; line-height: 1; color: #6E52C2; }
.g-score small { font-size: 13px; color: var(--ink2); }
.g-km-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.g-km-row { padding: 10px 12px; border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line); animation: gIn .45s var(--spring) both; animation-delay: calc(.3s + var(--i) * 60ms); }
.g-km-row p { margin: 0 0 6px; font-size: 14px; color: var(--ink2); }
.g-km-ab { display: flex; align-items: center; gap: 8px; }
.g-km-ab > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- this or that ---------- */
.g-prog { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.g-prog b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.g-count { flex: none; font-size: 14px; font-weight: 600; color: var(--ink2); }
.g-tot-pair { display: flex; flex-direction: column; align-items: stretch; animation: gSlide .45s var(--spring) both; }
@keyframes gSlide { from { transform: translateX(50px) rotate(3deg); opacity: 0; } }
.g-tot-opt {
  min-height: 140px; padding: 16px; border-radius: 28px; font-size: 27px; font-weight: 600; line-height: 1.2; color: var(--ink);
  transition: transform .3s var(--spring), opacity .25s, box-shadow .25s;
}
.g-tot-opt.l { background: var(--pink-l); box-shadow: 0 5px 0 #F5C3D2; }
.g-tot-opt.r { background: var(--sky-l); box-shadow: 0 5px 0 #BFDDF3; }
.g-tot-opt:active { transform: scale(.97); }
.g-tot-opt.chosen { transform: scale(1.04) rotate(-1.5deg); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--pink), var(--shadow); }
.g-tot-opt.r.chosen { transform: scale(1.04) rotate(1.5deg); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--sky), var(--shadow); }
.g-tot-opt.gone { transform: scale(.9); opacity: .35; }
.g-or {
  position: relative; z-index: 1; align-self: center; width: 54px; height: 54px; margin: -14px 0; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 600; color: var(--ink2); box-shadow: 0 3px 0 var(--line), var(--shadow-s);
}
.g-tot-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.g-tot-row { display: flex; gap: 6px; padding: 6px; border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line); animation: gIn .45s var(--spring) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.g-tot-row.same { background: var(--mint-l); box-shadow: 0 3px 0 #C4EAD7; }
.g-tot-c {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 40px; padding: 6px 8px 6px 12px;
  border-radius: 14px; font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--ink3);
}
.g-tot-c.on { background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 rgba(74, 55, 67, .06); }
.g-tot-c .hs { display: flex; flex: none; }
.g-tot-c .hs .head-pic + .head-pic { margin-left: -8px; }

/* ---------- doodle guess ---------- */
.g-word { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font-size: 19px; font-weight: 500; color: var(--ink2); }
.g-word b { padding: 4px 16px; border-radius: 14px; background: var(--butter-l); color: var(--ink); font-size: 26px; font-weight: 600; box-shadow: 0 3px 0 #F3DC9A; animation: popBig .5s var(--spring) both; }
.g-timer { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.g-timer b { min-width: 42px; font-size: 18px; font-weight: 600; }
.g-timer.hurry b { color: var(--pink-d); }
.g-timer.hurry .spr { animation: wiggle .5s ease-in-out infinite; }
.g-canvas {
  display: block; width: 100%; max-width: min(100%, calc(100vh - 380px)); aspect-ratio: 1; margin: 0 auto; border-radius: 24px;
  background: #fff; box-shadow: 0 4px 0 var(--line), var(--shadow-s); touch-action: none; cursor: crosshair;
}
.g-pad { position: relative; }
.g-pad-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  color: var(--ink3); font-size: 17px; font-weight: 500;
}
.g-tools { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.g-tools .swatches { flex: 1; flex-wrap: nowrap; gap: 8px; padding-left: 4px; }
.g-tool { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--line); transition: transform .1s, opacity .2s; }
.g-tool:active { transform: scale(.9); }
.g-tool[disabled] { opacity: .35; pointer-events: none; }
.g-dd-img {
  display: grid; place-items: center; width: 100%; max-width: min(100%, calc(100vh - 430px)); aspect-ratio: 1; margin: 0 auto; overflow: hidden;
  border-radius: 24px; background: #fff; box-shadow: 0 4px 0 var(--line), var(--shadow-s); animation: popBig .5s var(--spring) both;
}
.g-dd-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.g-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-opt {
  min-height: 62px; padding: 8px 10px; border-radius: 20px; background: #fff; font-size: 19px; font-weight: 600; line-height: 1.15;
  box-shadow: 0 4px 0 var(--line); animation: gIn .45s var(--spring) both; animation-delay: calc(var(--i) * 60ms); transition: transform .1s;
}
.g-opt:active { transform: scale(.95); }
.g-guess .waiting { margin-top: 14px; }
