.words-page .menu-letters{font:64px/1.2 Andika,sans-serif;letter-spacing:.02em;gap:12px}.menu-letters>span{padding:4px 9px;border:2px solid var(--ink);border-radius:12px}.words-page .sounds-welcome{min-height:240px}.words-page .sounds-welcome>img{width:210px;height:210px}
#zeki-guide{width:104px;height:84px;position:relative;margin-top:-56px;pointer-events:none;flex-shrink:0}#zeki-guide img{width:100%;height:100%;object-fit:contain}.words-page .speaking{filter:brightness(1.08)}#word-task{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%;margin-top:12px}#word-actions{display:flex;justify-content:center;gap:20px;min-height:64px;margin-top:20px}.words-page .game-field{min-height:550px;padding-bottom:24px}.words-page .game-field.busy button:not(#leave-game):not(#repeat-audio){cursor:progress}.words-page button,.words-page img{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.words-page .letter{font:190px/1 Andika,sans-serif;letter-spacing:0;text-transform:none;width:156px;height:200px;min-width:96px;min-height:96px;display:grid;place-items:center;border:2px solid color-mix(in srgb,var(--ink) 45%,transparent);border-radius:16px;background:var(--paper);color:var(--ink);padding:0;cursor:pointer;position:relative;flex-shrink:0}.letter-row,.word-choice{display:flex;gap:8px;justify-content:center;align-items:center}.word-choice{border:0;background:transparent;padding:4px;cursor:pointer;border-radius:16px;color:var(--ink)}.word-options{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;width:100%}.words-page .letter.current{border:4px solid var(--ink);background:var(--soft)}.words-page .letter.heard,.word-choice.correct .letter,.words-page .letter.placed{background:var(--bright);border-color:var(--ink)}.letter-dot{position:absolute;bottom:-16px;width:12px;height:12px;border-radius:50%;background:var(--ink)}.current .letter-dot{animation:next-dot 1s ease-in-out infinite}.words-page .word-target{width:108px;height:108px;min-width:96px;min-height:96px}.words-page .picture-row{gap:20px}.words-page .picture{border-radius:16px}.word-illustration{max-width:180px;max-height:150px;object-fit:contain}
.slide-track{width:min(590px,100%);height:130px;position:relative;margin:12px 0 0;touch-action:none}.slide-track::before{content:"";position:absolute;height:5px;left:44px;right:44px;top:70px;background:var(--ink);border-radius:4px}.track-arrow{position:absolute;right:30px;top:54px;width:32px;height:32px;stroke:var(--ink);fill:none;stroke-width:3}.slider-zeki{position:absolute;left:0;top:16px;width:96px;height:96px;background:var(--white);border:2px solid var(--ink);border-radius:50%;padding:4px;cursor:grab;touch-action:none;color:var(--ink);z-index:2}.slider-zeki:active{cursor:grabbing}.slider-zeki img{width:100%;height:100%;object-fit:contain;pointer-events:none}.slide-track.locked{opacity:.4}.slide-track.locked .slider-zeki{cursor:default}.words-page .reveal-picture{min-height:96px}.words-page .tile-bank{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;width:100%;padding-top:14px}.tile-bank .letter{touch-action:none}.tile-bank .letter.selected{outline:4px solid var(--ink);outline-offset:4px}.tile-bank .letter.used{visibility:hidden;pointer-events:none}.letter.empty{background:transparent;border-style:dashed}.letter.drop-target{background:var(--soft);outline:4px solid var(--ink);outline-offset:4px}.letter.dragging{z-index:8;box-shadow:0 8px 20px #0003;pointer-events:none}.letter.returning{animation:return-tile .25s ease-out}.tile-bank.arrive .letter{animation:bring-tile .35s ease-out both}.words-page .correct{border-color:var(--ink)}#zeki-guide.cheer{animation:zeki-cheer .6s ease-in-out}
@keyframes next-dot{50%{transform:scale(1.45)}}@keyframes bring-tile{from{transform:translateY(-12px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes return-tile{50%{transform:translateY(-8px)}}@keyframes zeki-cheer{40%{transform:translateY(-14px) rotate(-8deg)}70%{transform:rotate(8deg)}}
@media(max-width:700px){.words-page .letter{font-size:112px;width:96px;height:124px}.words-page .letter-row,.words-page .word-choice{gap:5px}.words-page .word-options{gap:12px}.words-page .word-choice{padding:3px}.words-page .sounds-welcome>img{width:140px;height:180px}.words-page .menu-letters{font-size:35px;gap:3px}.menu-letters>span{padding:3px}.words-page .sound-games strong{font-size:25px}.words-page .picture-row{gap:6px}.words-page .tile-bank{gap:12px}.words-page .game-field{padding-left:8px;padding-right:8px}#word-task{gap:16px}#zeki-guide{width:86px;height:74px;margin-top:-48px}.slide-track{height:124px}.words-page .sound-parent-heading p{font-size:15px}}
@media(prefers-reduced-motion:reduce){.words-page *{animation:none!important;transition:none!important}.words-page .current .letter-dot{outline:3px solid var(--ink);outline-offset:3px}}

.words-page .glyph{display:block;transform:translateY(-.20em);pointer-events:none}

.words-page .word-choice{border:2px solid color-mix(in srgb,var(--ink) 45%,transparent);padding:0 6px;gap:0;background:var(--paper)}.words-page .word-choice .letter{border:0;background:transparent}.words-page .word-choice.correct{background:var(--bright);border-color:var(--ink)}

@media(min-width:701px){.words-page .sound-games>button>span:not(.game-art):not(.game-arrow){max-width:calc(100% - 44px)}}

@media(min-width:960px){.words-page .sound-games{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:959px){.words-page .sound-games{grid-template-columns:repeat(2,minmax(0,1fr))}}
.swap-example{display:none}
[data-game="swap"] #start-game:not([hidden]) + .swap-example{display:flex;align-items:center;gap:.36em;font:36px Andika,sans-serif;margin:8px 0 24px}
.swap-example-key{position:relative;border:2px solid var(--ink);border-radius:12px;padding:0 .34em;background:var(--bright)}
.swap-example-key svg{position:absolute;width:25px;right:-9px;bottom:-14px;fill:var(--white);stroke:var(--ink);stroke-width:5;animation:swap-tap 2s ease-out 2}
@keyframes swap-tap{0%,80%,100%{transform:translate(4px,7px)}45%,62%{transform:translate(0,0)}}
.swap-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(22px,5vw,72px);width:min(850px,100%);padding:8px 0}
.swap-art,.swap-work,.swap-options{display:flex;align-items:center;justify-content:center}
.swap-work{flex-direction:column;text-align:center}
.swap-scene{display:grid;place-items:center;background:transparent;color:var(--ink);border:0;border-radius:20px;width:100%;height:clamp(180px,22vw,260px);padding:0;cursor:pointer;font:inherit}
.swap-scene img{max-width:100%;width:100%;height:100%;min-height:0;object-fit:contain}
.swap-scene.story-pair{grid-template-columns:minmax(0,.72fr) auto minmax(0,1fr);height:auto;column-gap:5px;font-size:21px}
.story-pair img{aspect-ratio:1.1;object-fit:cover;border-radius:12px;height:auto}
.scene-caption{grid-column:1/-1;font-size:18px;margin-top:8px}
.swap-word{display:flex;align-items:baseline;font:clamp(80px,9vw,124px)/1.15 Andika,sans-serif;letter-spacing:.015em}
.swap-letter{font:inherit;letter-spacing:inherit;color:inherit;cursor:pointer;border:0;border-bottom:6px solid var(--ink);background:var(--bright);border-radius:.12em .12em 0 0;padding:0 .055em}
.swap-cue{font-size:20px;line-height:1.4;margin:14px 0;max-width:25ch}
.swap-options{gap:16px}
.words-page .swap-options .letter{width:96px;height:96px;font-size:74px;border-color:var(--ink)}
.words-page [data-game="swap"].busy .swap-scene:disabled{opacity:1}
[data-game="swap"] #word-actions:empty{display:none}
@media(max-width:700px){
 .swap-board{grid-template-columns:1fr;gap:8px;padding:0}
 .swap-scene{width:min(300px,100%);height:142px}
 .swap-word{font-size:78px}
 .swap-cue{font-size:17px;margin:10px 0}
 .words-page .swap-options .letter{font-size:66px}
}
@media(max-height:700px) and (max-width:700px){
 .words-page:has(#word-play:not([hidden]) [data-game="swap"]) .sounds-header{padding-block:0}
 .words-page:has(#word-play:not([hidden]) [data-game="swap"]) .sound-parent-heading{padding-block:8px}
 .words-page [data-game="swap"].game-field{min-height:0;padding-bottom:10px}
 [data-game="swap"] .swap-scene{height:103px}
 [data-game="swap"] .story-pair{height:auto;width:min(235px,100%)}
 [data-game="swap"] .swap-word{font-size:66px}
 [data-game="swap"] #word-actions{margin-top:4px}
}
@media(max-height:500px) and (min-width:701px){
 .words-page:has(#word-play:not([hidden]) [data-game="swap"]) .sounds-header{padding-block:0}
 .words-page:has(#word-play:not([hidden]) [data-game="swap"]) .sounds-header>a,
 .words-page:has(#word-play:not([hidden]) [data-game="swap"]) .sounds-design summary{min-height:44px}
 .words-page:has(#word-play:not([hidden]) [data-game="swap"]) .sound-parent-heading{padding-block:4px;gap:8px}
 .words-page:has(#word-play:not([hidden]) [data-game="swap"]) .sound-parent-heading h1{font-size:25px}
 .words-page [data-game="swap"].game-field{min-height:0;padding:6px 14px}
 [data-game="swap"] #zeki-guide{height:50px;margin-top:-56px}
 [data-game="swap"] .swap-board{padding:0;width:min(560px,100%);gap:18px}
 [data-game="swap"] .swap-scene{height:150px}
 [data-game="swap"] .story-pair{height:auto}
 [data-game="swap"] .swap-word{font-size:62px}
 [data-game="swap"] .swap-cue{font-size:15px;margin:4px 0}
 [data-game="swap"] .swap-options .letter{font-size:55px;height:72px;min-height:72px}
 [data-game="swap"] #word-actions{margin-top:0}
 [data-game="swap"] #start-game{height:140px}
}


.word-twins-entry {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
  padding: 16px clamp(14px, 3vw, 30px);
  margin: 0 0 25px;
  border: 1px solid var(--ink);
  border-radius: 16px 16px 40px 16px;
  background: color-mix(in srgb, var(--soft) 30%, var(--white));
  color: var(--ink);
  text-decoration: none;
}
.word-twins-entry:hover .twins-entry-copy strong { text-decoration: underline; }
.twins-entry-example { display: flex; gap: 5px; font-size: clamp(19px, 2.4vw, 31px); }
.twins-entry-example > span {
  padding: 4px 11px 8px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px 6px 12px 6px;
}
.twins-entry-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.twins-entry-copy strong { font: 600 clamp(24px, 3.4vw, 36px)/1.1 var(--display); }
.twins-entry-copy > span { font-size: 17px; }
.twins-entry-arrow { font-size: 28px; }
@media (max-width: 500px) {
  .twins-entry-example { flex-direction: column; text-align: center; }
  .twins-entry-example > span { padding-inline: 7px; }
  .twins-entry-copy > span { font-size: 15px; }
}
