/* ================= Sketch It =================
   An art studio: a big paper easel on a wooden stand, a pencil-cup palette, guesses arriving as sticky notes,
   and the word in chalk blanks. */
.sk { position: relative; flex: 1; margin: -1.5vh -3vw -2.5vh; padding: 1.5vh 3vw 2.5vh; min-height: 0; display: grid; overflow: hidden; font-family: var(--display);
    background: radial-gradient(ellipse 55% 60% at 35% 45%, color-mix(in srgb, var(--violet) 20%, transparent), transparent 70%); }
.sk i, .sk b, .sk em { font-style: normal; }
/* the easel: paper with a soft grid, a wooden frame, a clip */
.sk-board { position: relative; width: 100%; aspect-ratio: 1; max-height: 100%; border-radius: 1vh; background: #fbf7ee; box-shadow: 0 0 0 1.2vh #8a5a2b, 0 0 0 1.6vh #5a3a1a, 0 3vh 8vh rgba(0, 0, 0, .7), inset 0 0 6vh rgba(120, 90, 40, .18);
    background-image: linear-gradient(rgba(60, 40, 20, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 40, 20, .06) 1px, transparent 1px); background-size: 8% 8%; }
.sk-board::before { content: ""; position: absolute; left: 50%; top: -3.2vh; width: 12vh; height: 3.6vh; margin-left: -6vh; border-radius: 1vh 1vh .4vh .4vh; background: linear-gradient(180deg, #d8dde6, #7f8899); box-shadow: 0 .6vh 1vh rgba(0, 0, 0, .4); z-index: 2; }
.sk-easel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sk-easel path { stroke-linecap: round; stroke-linejoin: round; }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
.sk-blank, .sk-word { position: absolute; left: 0; right: 0; bottom: -7.4vh; text-align: center; font-weight: 900; font-size: 4.6vh; letter-spacing: .1em; color: #fff; text-shadow: 0 .4vh 0 rgba(0, 0, 0, .5), 0 0 3vh color-mix(in srgb, var(--gold) 50%, transparent); white-space: nowrap; }
.sk-blank.got, .sk-word.got { color: var(--gold); animation: sk-pop .6s cubic-bezier(.2, 1.6, .4, 1); text-transform: uppercase; }
@keyframes sk-pop { from { transform: scale(1.8); opacity: 0; } }
.sk-hint { position: absolute; left: 0; right: 0; bottom: -11.6vh; text-align: center; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.2vh; color: #e8e0ff; }
/* waiting */
.sk-wait { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 46vh; gap: 2vw; align-items: center; min-height: 0; }
.sk-wait .wt-qr { z-index: 50; }
.sk-wmain { display: grid; grid-template-columns: minmax(0, 1fr) 40vh; grid-template-areas: "sign sign" "how board" "roster board"; gap: 2vh 2.4vw; align-items: center; min-height: 0; }
.sk-sign { grid-area: sign; display: flex; align-items: center; gap: 1.4vw; justify-content: center; }
.sk-sign span { font-size: 9vh; line-height: 1; animation: sk-wiggle 2.4s ease-in-out infinite alternate; }
@keyframes sk-wiggle { from { transform: rotate(-12deg); } to { transform: rotate(10deg) translateY(-.6vh); } }
.sk-sign b { font-weight: 900; font-size: 9vh; line-height: 1; color: #fff; text-shadow: 0 .8vh 0 rgba(0, 0, 0, .5), 0 0 5vh color-mix(in srgb, var(--gold) 50%, transparent); }
.sk-wmain .sk-board { grid-area: board; width: 34vh; }
.sk-how { grid-area: how; display: grid; gap: 1vh; }
.sk-how span { padding: 1.1vh 1.4vw; border-radius: 1.6vh; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.2vh; color: #fff; background: rgba(10, 8, 30, .7); box-shadow: inset 0 0 0 .2vh rgba(255, 255, 255, .12); }
.sk-roster { grid-area: roster; padding: .9vh 2.2vw; border-radius: 99px; text-align: center; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.3vh; color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); }
/* playing */
.sk-play { position: relative; z-index: 2; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.2vh; min-height: 0; }
.sk-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2vw; }
.sk-top .wg-title span { font-size: 5.4vh; } .sk-top .wg-title b { font-size: 4.6vh; }
.sk-phase { justify-self: center; padding: 1vh 2.6vw; border-radius: 99px; font-weight: 900; font-size: 3.4vh; color: #fff; background: rgba(10, 8, 30, .75); box-shadow: 0 0 0 .3vh var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.sk-clock { display: grid; justify-items: center; width: 11vh; height: 11vh; align-content: center; border-radius: 50%; background: rgba(10, 8, 30, .8); box-shadow: 0 0 0 .4vh var(--gold); }
.sk-clock b { font-weight: 900; font-size: 5vh; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; } .sk-clock small { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 1.5vh; color: var(--gold); }
.sk-clock.low { box-shadow: 0 0 0 .4vh var(--blood), 0 0 4vh var(--blood); animation: sk-tick .5s ease-in-out infinite alternate; }
@keyframes sk-tick { to { transform: scale(1.08); } }
.sk-body { display: grid; grid-template-columns: minmax(0, 1fr) 42vh; gap: 2.4vw; min-height: 0; }
.sk-left { display: grid; place-items: start center; min-height: 0; padding: 3.6vh 0 13vh; }
.sk-left .sk-board { width: min(100%, 56vh); }
.sk-side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.4vh; min-height: 0; }
.sk-drawer { display: grid; gap: .3vh; padding: 1.4vh 1.4vw; border-radius: 1.8vh; background: rgba(10, 8, 30, .75); box-shadow: inset 0 0 0 .25vh color-mix(in srgb, var(--gold) 60%, transparent); }
.sk-drawer small { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 1.8vh; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.sk-drawer b { font-weight: 900; font-size: 4vh; color: #fff; } .sk-drawer span { font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: 1.9vh; color: #cfc4e8; }
/* guesses as sticky notes */
.sk-feed { display: grid; gap: .8vh; align-content: start; min-height: 0; overflow: hidden; }
.sk-feed div { padding: .9vh 1.2vw; border-radius: .4vh; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: 2.2vh; color: #2a2000; background: #ffe9a8; box-shadow: 0 .6vh 1.2vh rgba(0, 0, 0, .4); transform: rotate(var(--r, -1deg)); animation: sk-note .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.sk-feed div:nth-child(2n) { --r: 1.2deg; background: #ffd6d6; } .sk-feed div:nth-child(3n) { --r: -.6deg; background: #d6f0ff; }
.sk-feed div.hit { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--ecto) 80%, #fff), var(--ecto)); }
.sk-feed b { font-family: var(--display); font-weight: 900; }
@keyframes sk-note { from { transform: translateY(-2vh) rotate(var(--r, -1deg)) scale(.8); opacity: 0; } }
.sk-scores { display: grid; gap: .5vh; }
.sk-scores h4 { margin: 0 0 .3vh; font-size: 2.2vh; color: var(--gold); }
.sk-scores div { display: grid; grid-template-columns: 3vh minmax(0, 1fr) auto; gap: .6vw; align-items: center; padding: .5vh .8vw; border-radius: .9vh; font-weight: 800; font-size: 2vh; background: rgba(0, 0, 0, .45); }
.sk-scores span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; } .sk-scores em { color: var(--gold); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .sk *, .skp * { animation: none !important; } }

/* ================= phone ================= */
.skp { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.skp > * { min-width: 0; }
.skp-head { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.skp-head .ic { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem; background: linear-gradient(135deg, #8a5a2b, #5a3a1a); }
.skp-head small { display: block; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: .8rem; color: var(--muted, #a7a2b0); }
.skp-head > b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--gold); }
.skp-big { font-family: var(--display); font-weight: 900; font-size: 1.6rem; margin-bottom: .3rem; }
.skp-in { text-align: center; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ecto) 55%, transparent); }
.skp-turn { padding: .75rem .9rem; border-radius: 12px; font-weight: 900; text-align: center; background: var(--panel2, #24242b); }
.skp-turn.go { color: #140a00; background: linear-gradient(180deg, #fff6c8, var(--gold)); } .skp-turn.got { color: #fff; background: color-mix(in srgb, var(--ecto) 35%, #0b0b10); box-shadow: inset 0 0 0 2px var(--ecto); }
.skp-turn b { font-size: 1.25rem; }
.skp-list { display: grid; gap: .5rem; }
.skp-list button { min-height: 54px; border: 0; border-radius: 12px; font: inherit; font-family: var(--display); font-weight: 900; font-size: 1.15rem; color: #150c2c; background: linear-gradient(180deg, #fffdf6, #efe6d2); cursor: pointer; text-transform: capitalize; }
.skp-board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; background: #fbf7ee; box-shadow: 0 0 0 6px #8a5a2b, 0 8px 24px rgba(0, 0, 0, .5); overflow: hidden;
    background-image: linear-gradient(rgba(60, 40, 20, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 40, 20, .06) 1px, transparent 1px); background-size: 8% 8%; }
.skp-easel, .skp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.skp-board.draw { touch-action: none; }
.skp-canvas { cursor: crosshair; }
.skp-tools { display: grid; gap: .5rem; }
.skp-colors { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .4rem; }
.skp-colors button { aspect-ratio: 1; border: 3px solid transparent; border-radius: 50%; background: var(--c); cursor: pointer; }
.skp-colors button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }
.skp-widths { display: flex; gap: .5rem; align-items: center; }
.skp-widths button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--panel2, #24242b); cursor: pointer; }
.skp-widths button i { display: block; border-radius: 50%; background: #fff; }
.skp-widths button.on { box-shadow: inset 0 0 0 2px var(--gold); }
.skp-widths .skp-clear { margin-left: auto; width: auto; padding: 0 1rem; font: inherit; font-weight: 800; color: #fff; }
.skp-blank { text-align: center; font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: .12em; color: var(--gold); }
.skp-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.skp-form input { font-size: 16px; min-width: 0; }
.skp-result { display: grid; justify-items: center; gap: .3rem; padding: 1.2rem 1rem; border-radius: 16px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 30%, #1a1030), #0a0612); box-shadow: 0 0 0 3px var(--gold); }
.skp-result span { color: var(--gold); font-weight: 800; } .skp-result small { color: var(--muted, #a7a2b0); }

/* game over: the champion's card fills the easel; the side panel keeps clear of the corner buttons */
.sk-champ { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 1vh; padding: 4vh; border-radius: inherit; text-align: center; background: radial-gradient(ellipse at 50% 40%, #fffaf0, #f3e7cc); animation: sk-champ .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.sk-champ i { font-style: normal; font-size: 14vh; line-height: 1; filter: drop-shadow(0 1vh 2vh rgba(120, 80, 20, .35)); }
.sk-champ small { font-weight: 900; font-size: 2.4vh; letter-spacing: .14em; text-transform: uppercase; color: #a8741a; }
.sk-champ b { font-family: var(--display); font-weight: 900; font-size: 7vh; line-height: 1.05; color: #2a1606; max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.sk-champ span { font-weight: 800; font-size: 2.8vh; color: #5a3a1a; }
@keyframes sk-champ { from { opacity: 0; transform: scale(.9); } }
.sk-play.done .sk-word, .sk-play.done .sk-hint { visibility: hidden; }
.sk-play .sk-side { padding-bottom: 5vh; }

/* readability pass (Oct 28): the small projector text one size up so it reads from the back of the room */
.sk-scores div { font-size: 2.4vh; }
.sk-scores h4 { font-size: 2.5vh; }
