/* 집현전 한글 탐험 — 한글공방 (workshop) */

/* ================================================================ */
/* 틀 / 탭                                                            */
/* ================================================================ */
.ws-root { display: flex; flex-direction: column; gap: 12px; }
.ws-intro {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 800; color: var(--ink-2);
  text-align: center; line-height: 1.35;
}
.ws-intro .emoji { font-size: 20px; }

.ws-tabs {
  display: flex; gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, .55);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.ws-tab {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 6px 10px;
  border: 3px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  font-size: 19px; font-weight: 900; line-height: 1.2;
  touch-action: manipulation;
  transition: background-color .15s, transform .1s;
}
.ws-tab:hover:not(.on) { background: var(--gold-soft); }
.ws-tab:active { transform: translateY(2px); }
.ws-tab.on {
  background: linear-gradient(180deg, #ffd35c 0%, var(--gold) 60%, #eaa81c 100%);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.ws-tab-ic { font-size: 24px; }
.grade-lower .ws-tab { min-height: 64px; font-size: 20px; }
.ws-panel { animation: jh-fade-in .25s ease both; }

/* ================================================================ */
/* 1. 내 이름 도장                                                     */
/* ================================================================ */
.ws-stamp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ws-stamp-form { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.ws-name-label { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.ws-name-sub { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.ws-name-input { width: 100%; font-size: 32px; letter-spacing: .12em; }
.ws-name-msg { min-height: 1.5em; font-size: 17px; font-weight: 800; color: var(--ink-2); }
.ws-name-msg.warn { color: #9b2320; }
.ws-name-msg.ok { color: #1d6b2e; }
.ws-stamp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ws-stamp-actions .btn { flex: 1 1 160px; }
.ws-press .emoji, .ws-save .emoji { font-size: 22px; }

.ws-stamp-paper {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 360px;
  padding: 26px 16px 20px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background-color: #fffdf6;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 70% 80%, rgba(201, 168, 110, .12), rgba(201, 168, 110, 0) 40%),
    repeating-linear-gradient(87deg, rgba(150, 110, 60, .05) 0 1px, rgba(0, 0, 0, 0) 1px 9px),
    repeating-linear-gradient(-4deg, rgba(150, 110, 60, .04) 0 1px, rgba(0, 0, 0, 0) 1px 13px);
  overflow: hidden;
}
.ws-paper-tag {
  position: absolute; top: 10px; left: 12px;
  padding: 2px 10px;
  font-size: 14px; font-weight: 800; color: var(--ink-2);
  background: var(--paper-2); border: 2px solid var(--line); border-radius: 999px;
}
.ws-stamp-box {
  width: 100%; height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.ws-stamp-box svg {
  height: 100%; width: auto; max-width: 100%;
  transform: rotate(-3deg);
  mix-blend-mode: multiply;
  overflow: visible;
}
.ws-stamp-box.empty svg { opacity: .22; filter: grayscale(.4); }
.ws-stamp-box.ws-pressing svg { animation: ws-press .55s var(--ease-pop) both; }
@keyframes ws-press {
  0% { transform: translateY(-36px) scale(1.25) rotate(-3deg); opacity: 0; }
  55% { transform: translateY(0) scale(.94) rotate(-3deg); opacity: 1; }
  78% { transform: scale(1.03) rotate(-3deg); }
  100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}
.ws-stamp-caption {
  font-family: "Batang", "바탕", serif;
  font-size: 26px; font-weight: 900; color: var(--ink);
  text-align: center;
}
.ws-stamp-caption.empty { font-family: var(--font); font-size: 18px; color: var(--ink-2); font-weight: 800; }

/* ================================================================ */
/* 2. 자모 그림                                                        */
/* ================================================================ */
.ws-draw {
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr);
  grid-template-areas:
    "pal canvas"
    "colors canvas"
    "ex tools";
  gap: 10px 16px;
  align-items: start;
}
.ws-area-canvas { align-self: stretch; display: flex; flex-direction: column; }
.ws-area-canvas .ws-canvas { flex: 1 1 auto; }
.ws-area-pal { grid-area: pal; }
.ws-area-canvas { grid-area: canvas; min-width: 0; }
.ws-area-tools { grid-area: tools; min-width: 0; }
.ws-area-colors { grid-area: colors; }
.ws-area-ex { grid-area: ex; }

.ws-sec-title { font-size: 15px; font-weight: 900; color: var(--ink-2); margin: 2px 0 4px; }
.ws-pal-grid { display: grid; grid-template-columns: repeat(7, 48px); gap: 6px; }
.ws-pal-grid + .ws-sec-title { margin-top: 8px; }
.ws-pal-btn {
  width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; line-height: 1;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(180deg, #f3cf98 0%, #e2ad6a 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--ink);
  touch-action: manipulation;
  transition: transform .08s, box-shadow .08s;
}
.ws-pal-btn.v { background: linear-gradient(180deg, #e8f5ff 0%, #b9dcf7 100%); }
.ws-pal-btn.araea { background: linear-gradient(180deg, #ffe27a 0%, var(--gold) 100%); color: #5a3300; }
.ws-pal-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ws-pal-btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 0 0 var(--ink); }

.ws-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-color {
  position: relative;
  width: 48px; height: 48px; padding: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 3px 0 var(--ink);
  touch-action: manipulation;
}
.ws-color.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); transform: scale(1.05); }
.ws-color.on::after {
  content: "✔"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.ws-ex-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ws-ex-btn { padding: 4px 4px; gap: 3px; font-size: 15px; white-space: nowrap; }
.ws-ex-btn .emoji { font-size: 20px; }

.ws-canvas {
  position: relative;
  height: 420px;
  container-type: size;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background-color: #fffcf2;
  background-image:
    radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 80% 75%, rgba(214, 180, 120, .14), rgba(214, 180, 120, 0) 45%),
    repeating-linear-gradient(83deg, rgba(150, 110, 60, .05) 0 1px, rgba(0, 0, 0, 0) 1px 11px),
    repeating-linear-gradient(-7deg, rgba(150, 110, 60, .045) 0 1px, rgba(0, 0, 0, 0) 1px 15px),
    repeating-linear-gradient(35deg, rgba(150, 110, 60, .03) 0 1px, rgba(0, 0, 0, 0) 1px 23px);
  user-select: none; -webkit-user-select: none;
}
.ws-canvas.ws-flash { animation: ws-glow 1s ease both; }
@keyframes ws-glow { 0% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(245, 184, 46, .0); } 40% { box-shadow: var(--shadow-lg), 0 0 0 8px rgba(245, 184, 46, .5); } 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(245, 184, 46, 0); } }
.ws-canvas-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 20px;
  text-align: center;
  font-size: 19px; font-weight: 800; color: #a58a6a;
  pointer-events: none;
}
.ws-canvas-empty .emoji { font-size: 26px; }
.ws-piece {
  position: absolute;
  left: 50%; top: 50%;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: calc(var(--s, 1) * 60px);
  font-size: calc(var(--s, 1) * 100cqh / 7);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  text-shadow: 0 2px 0 rgba(59, 36, 18, .18);
  touch-action: none;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  border-radius: 10px;
}
.ws-piece:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ws-piece.on { outline: 3px dashed var(--blue); outline-offset: 3px; background: rgba(43, 95, 173, .06); }
.ws-piece.ws-dragging { cursor: grabbing; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .25)); }
.ws-piece.ws-new { animation: ws-pop .35s var(--ease-pop) both; }
@keyframes ws-pop { from { scale: .2; opacity: 0; } to { scale: 1; opacity: 1; } }

.ws-tools-box { display: flex; flex-direction: column; gap: 6px; }
.ws-tool-hint { font-size: 15px; font-weight: 800; color: var(--ink-2); min-height: 1.4em; }
.ws-tool-cur { font-size: 20px; }
.ws-tools { display: flex; gap: 8px; }
.ws-tool { flex: 1 1 0; min-width: 0; padding: 4px 8px; gap: 4px; font-size: 16px; }
.ws-tool .emoji { font-size: 20px; }
.ws-tool-del:not(:disabled) { border-color: var(--red); color: #9b2320; box-shadow: 0 4px 0 var(--red); }

/* ================================================================ */
/* 3. 끝말잇기                                                         */
/* ================================================================ */
.ws-p0 { --pc: #d64541; }
.ws-p1 { --pc: #2b5fad; }
.ws-p2 { --pc: #2f9e44; }
.ws-p3 { --pc: #8e5bd6; }
.ws-pstart { --pc: var(--gold-2); }

.ws-setup { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 24px 20px; }
.ws-setup-q { font-size: 28px; font-weight: 900; }
.ws-count-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 680px; }
.btn.ws-count-btn { flex-direction: column; gap: 8px; min-height: 104px; font-size: 24px; background: var(--paper); }
.btn.ws-count-btn:hover:not(:disabled) { background: var(--gold-soft); }
.ws-count-dots { display: flex; gap: 4px; }
.ws-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pc); }
.ws-setup-goal { font-size: 20px; font-weight: 800; }
.ws-start-word { padding: 0 8px; border-radius: 8px; background: var(--gold-soft); box-shadow: inset 0 -5px 0 var(--gold); }
.ws-howto { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ws-howto li {
  padding: 6px 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 16px; font-weight: 800;
}

.ws-play { display: flex; flex-direction: column; gap: 12px; }
.ws-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ws-players { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.ws-player {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 4px 12px 4px 6px;
  background: rgba(255, 255, 255, .75);
  border: 3px solid var(--line);
  border-radius: 999px;
  font-size: 16px; font-weight: 800; color: var(--ink-2);
}
.ws-player.on { background: #fff; border-color: var(--pc); color: var(--ink); box-shadow: 0 3px 0 var(--pc); }
.ws-turn-mark { color: var(--pc); font-size: 14px; }
.ws-player-score { font-variant-numeric: tabular-nums; padding-left: 6px; border-left: 2px solid var(--line); }
.ws-pnum {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--pc); color: #fff;
  border: 2px solid var(--ink);
  font-size: 16px; font-weight: 900; line-height: 1;
}
.ws-goal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  min-height: 44px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900; font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.ws-goal-num { font-size: 22px; }
.ws-goal-of { color: var(--ink-2); }
.ws-goal-bar { width: 90px; height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.ws-goal-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #ffd766); transition: width .45s var(--ease-pop); }
.ws-goal.done { background: var(--gold-soft); border-color: var(--gold-2); }
.ws-goal.done .ws-goal-fill { background: linear-gradient(90deg, var(--green), #6cc070); }
.ws-goal-text { color: #1d6b2e; font-size: 16px; }
.ws-goal-text:empty { display: none; }
.ws-new-game { flex: 0 0 auto; }

.ws-track {
  display: flex; align-items: center;
  overflow-x: auto; overflow-y: hidden;
  min-height: 112px;
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, .55);
  border: 3px dashed var(--line);
  border-radius: 18px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.ws-card {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 16px 8px;
  background: #fff;
  border: 3px solid var(--pc);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--pc);
}
.ws-card.start { background: linear-gradient(180deg, #fff3b8, #ffd766); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ws-card.new { animation: ws-card-in .5s var(--ease-pop) both; }
@keyframes ws-card-in { from { transform: translateX(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ws-card-who { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 900; color: var(--pc); }
.ws-card.start .ws-card-who { color: #6b4300; }
.ws-card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pc); color: #fff; font-size: 11px; line-height: 1;
}
.ws-card-word { font-size: 28px; font-weight: 900; white-space: nowrap; letter-spacing: 1px; line-height: 1.25; }
.ws-card.is-last .ws-last-syl {
  padding: 0 3px;
  border-radius: 8px;
  background: var(--gold-soft);
  box-shadow: inset 0 -7px 0 var(--gold);
}
.ws-link {
  flex: 0 0 auto;
  position: relative;
  width: 30px; height: 14px;
  margin: 0 2px;
}
.ws-link::before, .ws-link::after {
  content: ""; position: absolute; top: 0;
  width: 18px; height: 14px;
  border: 3px solid var(--ink-2);
  border-radius: 999px;
  box-sizing: border-box;
}
.ws-link::before { left: 0; }
.ws-link::after { right: 0; }
.ws-link.new { animation: jh-fade-in .3s ease both; }

.ws-turn { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border-top: 8px solid var(--pc); padding: 14px 18px 12px; }
.ws-turn-head { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.ws-pass, .ws-turn-head .ws-new-game { position: absolute; top: 50%; transform: translateY(-50%); }
.ws-pass { right: 0; }
.ws-turn-head .ws-new-game { left: 0; }
.ws-pass:hover:not(:disabled), .ws-turn-head .ws-new-game:hover:not(:disabled) { transform: translateY(calc(-50% - 1px)); }
.ws-pass:active:not(:disabled), .ws-turn-head .ws-new-game:active:not(:disabled) { transform: translateY(calc(-50% + 3px)); }
.ws-who { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 24px; font-weight: 900; color: var(--pc); }
.ws-who .ws-pnum { width: 36px; height: 36px; font-size: 19px; }
.ws-need { font-size: 20px; font-weight: 800; line-height: 1.6; }
.ws-need-syl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 52px; padding: 0 6px; margin: 0 2px;
  vertical-align: middle;
  font-size: 32px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #ffe27a, var(--gold));
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
}
.ws-word-input { font-size: 28px; }
.ws-msg { min-height: 1.5em; font-size: 18px; font-weight: 800; color: var(--ink-2); }
.ws-msg.bad { color: #9b2320; }
.ws-msg.ok { color: #1d6b2e; }

.ws-vote { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; border-top: 8px solid var(--pc); }
.ws-vote-q { font-size: 22px; font-weight: 900; }
.ws-vote-word {
  padding: 6px 28px;
  font-size: 44px; font-weight: 900; letter-spacing: 2px;
  background: #fff;
  border: 3px solid var(--pc);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--pc);
  animation: jh-pop-in .35s var(--ease-pop);
  max-width: 100%; overflow-wrap: anywhere;
}
.ws-vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 540px; }
.ws-vote-btns .emoji { font-size: 28px; }
.btn.ws-yes { background: var(--green); color: #fff; border-color: #1b5e28; box-shadow: 0 5px 0 #1b5e28; }
.btn.ws-yes:hover:not(:disabled) { background: #37ad4e; box-shadow: 0 6px 0 #1b5e28; }
.btn.ws-no { background: #fff; }

/* 성공 모달 */
.ws-win { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ws-win-medal { font-family: var(--font-emoji); font-size: 72px; line-height: 1; animation: jh-piece-in .8s var(--ease-pop) both; }
.ws-win-big { font-size: 26px; font-weight: 900; }
.ws-win-chain { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.ws-win-word { padding: 4px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; font-weight: 900; font-size: 18px; }
.ws-win-word.start { background: var(--gold-soft); }
.ws-win-arrow { color: var(--ink-2); font-weight: 900; }
.ws-win-scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ws-win-score { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 4px; border: 2px solid var(--pc); border-radius: 999px; font-weight: 800; background: #fff; }
.ws-win-sub { color: var(--ink-2); font-weight: 800; }

/* ================================================================ */
/* 반응형                                                             */
/* ================================================================ */
@media (max-height: 820px) and (min-width: 761px) {
  .ws-canvas { height: 340px; }
  .ws-root[data-tab="draw"] .ws-intro, .ws-root[data-tab="chain"] .ws-intro { display: none; }
  .ws-track { min-height: 100px; padding: 10px 14px 12px; }
  .ws-vote { gap: 10px; padding: 14px 18px 12px; }
  .ws-vote-word { font-size: 38px; padding: 2px 24px; }
  .ws-stamp-paper { min-height: 330px; }
  .ws-stamp-box { height: 250px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .ws-draw { grid-template-columns: 320px minmax(0, 1fr); }
  .ws-pal-grid { grid-template-columns: repeat(6, 46px); gap: 5px; }
  .ws-pal-btn { width: 46px; height: 48px; }
  .ws-tool-label { display: none; }
}

@media (max-width: 760px) {
  .ws-stamp { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ws-stamp-paper { order: -1; min-height: 0; padding: 30px 12px 12px; gap: 6px; }
  .ws-stamp-box { height: 190px; }
  .ws-stamp-form { gap: 10px; padding: 16px; }
  .ws-stamp-actions { gap: 10px; }
  .ws-stamp-actions .btn { flex: 1 1 130px; padding: 8px 6px; gap: 4px; white-space: nowrap; }
  .ws-stamp-actions .ws-save { font-size: 16px; }
  .ws-draw {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pal" "canvas" "tools" "colors" "ex";
    grid-template-rows: none;
  }
  .ws-pal-grid { grid-template-columns: repeat(7, minmax(0, 48px)); gap: 4px; justify-content: start; }
  .ws-pal-btn { width: 100%; }
  .ws-canvas { height: 340px; }
  .ws-canvas-empty { font-size: 17px; }
  .ws-count-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-turn-head { flex-wrap: wrap; gap: 8px; }
  .ws-turn-head .ws-who { order: -1; flex: 1 1 100%; }
  .ws-pass, .ws-pass:hover:not(:disabled), .ws-pass:active:not(:disabled),
  .ws-turn-head .ws-new-game, .ws-turn-head .ws-new-game:hover:not(:disabled), .ws-turn-head .ws-new-game:active:not(:disabled) { position: static; transform: none; }
}

@media (max-width: 600px) {
  .ws-intro { font-size: 14px; }
  .ws-tabs { gap: 4px; padding: 4px; border-radius: 16px; }
  .ws-tab { flex-direction: column; gap: 2px; min-height: 60px; padding: 4px 2px; font-size: 14px; border-radius: 12px; }
  .grade-lower .ws-tab { min-height: 64px; font-size: 15px; }
  .ws-tab-ic { font-size: 20px; }
  .ws-name-label { font-size: 20px; }
  .ws-name-input { font-size: 26px; }
  .ws-stamp-caption { font-size: 22px; }
  .ws-tools { gap: 6px; }
  .ws-tool { flex-direction: column; gap: 0; font-size: 13px; padding: 4px 2px; min-height: 56px; }
  .ws-setup-q { font-size: 24px; }
  .btn.ws-count-btn { min-height: 88px; font-size: 22px; }
  .ws-setup-goal { font-size: 17px; }
  .ws-top { gap: 8px; }
  .ws-player { font-size: 14px; padding: 3px 10px 3px 4px; min-height: 40px; }
  .ws-pnum { width: 26px; height: 26px; font-size: 14px; }
  .ws-goal-bar { width: 60px; }
  .ws-track { min-height: 96px; padding: 10px; }
  .ws-card-word { font-size: 24px; }
  .ws-who { font-size: 20px; }
  .ws-need { font-size: 17px; }
  .ws-need-syl { min-width: 44px; height: 44px; font-size: 26px; }
  .ws-word-input { font-size: 22px; }
  .ws-vote-q { font-size: 19px; }
  .ws-vote-word { font-size: 34px; padding: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-stamp-box.ws-pressing svg { animation: none; }
  .ws-piece.ws-new, .ws-card.new { animation: none; }
}
