.word-snake-shell { margin: 0; padding: 0; overflow: hidden; background: #69b9ee url('../images/games/word-snake/background-desktop.png') center / cover no-repeat; color: white; font-family: 'Arial Rounded MT Bold', 'Trebuchet MS', Arial, sans-serif; }
.word-snake-shell::before, .word-snake-shell::after { content: none; }
.word-snake-shell { min-height: 100vh; min-height: 100dvh; }
.word-snake-shell *, .word-snake-shell *::before, .word-snake-shell *::after { box-sizing: border-box; }
.word-snake-shell [hidden] { display: none !important; }
.word-snake-shell .app.full-game { width: 100%; max-width: none; min-height: 0; height: 100vh; height: 100dvh; padding: 0; margin: 0; }
.word-snake-stage { position: relative; width: 100%; height: 100%; isolation: isolate; }
#gameScreen[data-matchmaking="1"] .word-snake-stage::after { content: ''; position: absolute; inset: 0; background: #071733b0; z-index: 30; pointer-events: auto; }
#gameScreen[data-matchmaking="1"] ~ #pvpHint { top: 42%; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); max-width: 90vw; padding: 16px 22px; min-height: 48px; font-size: 18px; white-space: normal; overflow: visible; text-align: center; opacity: 1 !important; }
#gameScreen[data-matchmaking="1"] ~ #pvpCancelBtn { z-index: 9999; }
.word-snake-back { position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); width: clamp(88px, 10vw, 164px); height: clamp(46px, 6vw, 78px); display: flex; align-items: center; justify-content: center; padding-left: 24px; background: url('../images/games/word-snake/hud-back.png') center / 100% 100% no-repeat; color: white; text-decoration: none; font-size: clamp(14px, 1.8vw, 25px); font-weight: 900; text-shadow: 0 2px 2px #082447; z-index: 3; }
.word-snake-back span { position: absolute; left: 40%; right: 8%; top: 50%; transform: translateY(-50%); text-align: center; }
.word-snake-logo { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(29vw, 490px); height: 18%; object-fit: contain; }
.word-snake-stats { position: absolute; right: 1%; top: 1.5%; display: flex; gap: 4px; width: 32%; height: 9%; direction: ltr; z-index: 2; }
.word-snake-stat { background-position: center; background-repeat: no-repeat; background-size: 100% 100%; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-shadow: 0 2px 2px #102442; font-size: clamp(11px, 1.2vw, 20px); font-weight: bold; }
.word-snake-stat > * { width: 62%; text-align: center; overflow-wrap: anywhere; }
.word-snake-stat strong { font-size: clamp(19px, 2vw, 32px); line-height: 1.1; }
.stat-score { background-image: url('../images/games/word-snake/hud-score.png'); }
.stat-length { background-image: url('../images/games/word-snake/hud-length.png'); }
.stat-lives { background-image: url('../images/games/word-snake/hud-lives.png'); }
.word-snake-owl { position: absolute; left: 0; top: 25%; width: 19%; height: 45%; object-fit: contain; pointer-events: none; }
.word-snake-board-wrap { position: absolute; top: 14%; left: 19%; width: 62%; height: 72%; display: flex; align-items: center; justify-content: center; }
#wordSnakeBoard { display: block; touch-action: none; outline: none; }
#wordSnakeBoard:focus-visible { filter: drop-shadow(0 0 4px white); }
.word-snake-shield { position: absolute; width: 11%; aspect-ratio: 1; right: 12%; top: 15%; background: url('../images/games/word-snake/effect-shield.png') center / contain no-repeat; pointer-events: none; }
.word-snake-combo { position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); width: 35%; height: 8%; border: 2px solid #c0f6ff; border-radius: 999px; background: linear-gradient(#2168a4, #071c40); box-shadow: inset 0 2px 6px white, 0 3px 12px #3c75ae; display: flex; align-items: center; gap: 3%; padding: 0 2% 0 5%; }
.word-snake-combo::before { content: ''; position: absolute; left: 0; bottom: 0; height: 140%; width: 17%; background: url('../images/games/word-snake/hud-combo-bar.png') left / auto 100% no-repeat; }
#wordSnakeCombo { white-space: nowrap; color: #fff1b3; font-size: clamp(12px, 1.4vw, 24px); font-weight: 900; text-shadow: 0 2px 2px #642e13; }
#wordSnakeProgress { width: 100%; min-width: 20px; height: 22px; border: 2px solid #799dbb; border-radius: 99px; overflow: hidden; background: #071c37; }
#wordSnakeProgress::-webkit-progress-bar { background: #071c37; }
#wordSnakeProgress::-webkit-progress-value { background: linear-gradient(90deg, #ff991b, #ffef50); box-shadow: 0 0 10px #ffdc36; border-radius: 99px; }
#wordSnakeProgress::-moz-progress-bar { background: linear-gradient(90deg, #ff991b, #ffef50); }
.word-snake-hint { position: absolute; bottom: 0; left: 20%; width: 60%; margin: 0; text-align: center; font-weight: bold; font-size: 12px; color: #102e52; }
.word-snake-overlay, .word-snake-loading { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: #07173399; }
.word-snake-question-panel { position: relative; height: min(90dvh, 750px); aspect-ratio: 1122 / 1402; background: url('../images/games/word-snake/question-panel.png') center / 100% 100% no-repeat; color: #58270e; filter: drop-shadow(0 12px 25px #05163890); }
#wordSnakeWord { position: absolute; top: 18.5%; left: 14%; width: 72%; height: 11%; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; overflow-wrap: anywhere; font-size: clamp(22px, 4.5dvh, 40px); font-weight: 900; color: white; text-shadow: 0 3px 2px #652c12; line-height: 1.05; }
#wordSnakeWord.long-word { font-size: clamp(18px, 3.2dvh, 29px); }
.word-snake-tts { position: absolute; top: 32%; left: 41%; width: 18%; height: 14%; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.word-snake-tts:focus-visible { outline: 3px solid #0e629e; outline-offset: 3px; }
.word-snake-choices { position: absolute; top: 47%; left: 18%; width: 64%; height: 37%; display: grid; grid-template-rows: repeat(3, 1fr); gap: 3%; }
.word-snake-choice { background: #fff0; color: #58270e; border: 0; border-radius: 999px; font: inherit; font-size: clamp(21px, 3.8dvh, 36px); font-weight: 900; text-align: center; cursor: pointer; min-height: 44px; padding: 4px 12px; overflow-wrap: anywhere; line-height: 1.05; }
.word-snake-choice:focus-visible { outline: 3px solid #2284bd; outline-offset: -2px; }
.word-snake-choice.is-correct { background: linear-gradient(#ccffa7, #92ed71); box-shadow: 0 0 0 3px #37af31, 0 0 24px #a8ff58; }
.word-snake-choice.is-wrong { background: #ffb2a0b0; box-shadow: 0 0 0 3px #c54727; }
.word-snake-choice:disabled { opacity: 1; cursor: default; }
.word-snake-feedback { position: absolute; top: 85%; left: 16%; width: 68%; margin: 0; text-align: center; font-size: clamp(12px, 2dvh, 18px); font-weight: bold; line-height: 1.15; }
.word-snake-loading p { background: #fff7df; color: #472a14; padding: 24px; border-radius: 24px; font-weight: bold; }
html .word-snake-shell #pvpSearchBtn, html .word-snake-shell #pvpCancelBtn { z-index: 10; bottom: 12px; right: 12px; left: auto; }
@media (max-aspect-ratio: 4/5) {
  .word-snake-shell { background-image: url('../images/games/word-snake/background-mobile.png'); }
  .word-snake-back { width: 90px; height: 46px; font-size: 15px; top: max(6px, env(safe-area-inset-top)); left: 6px; }
  .word-snake-logo { top: 46px; width: 58%; height: clamp(48px, 8dvh, 68px); }
  .word-snake-stats { top: calc(50px + 8dvh); right: 4%; width: 92%; height: 44px; gap: 5px; }
  .word-snake-stat { font-size: 12px; }
  .word-snake-stat strong { font-size: 22px; }
  .word-snake-owl { top: 50px; left: 4%; width: 18%; height: clamp(48px, 8dvh, 66px); }
  .word-snake-board-wrap { top: calc(98px + 8dvh); left: 1%; width: 98%; height: calc(84dvh - 98px - env(safe-area-inset-bottom, 0px)); }
  .word-snake-combo { width: 76%; height: clamp(32px, 4.5dvh, 38px); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); padding: 0 4% 0 12%; }
  #wordSnakeCombo { font-size: 15px; }
  #wordSnakeProgress { height: 15px; }
  .word-snake-hint { bottom: calc(3px + env(safe-area-inset-bottom, 0px)); left: 3%; width: 94%; font-size: 11px; }
  .word-snake-question-panel { width: min(98vw, 70dvh); height: auto; }
  #wordSnakeWord { font-size: clamp(22px, 7vw, 32px); }
  #wordSnakeWord.long-word { font-size: clamp(17px, 5vw, 24px); }
  .word-snake-choice { font-size: clamp(20px, 6vw, 28px); }
  .word-snake-feedback { font-size: 12px; }
  html .word-snake-shell #pvpSearchBtn, html .word-snake-shell #pvpCancelBtn { top: max(6px, env(safe-area-inset-top)); bottom: auto; right: 6px; left: auto; min-width: 0; width: 135px; min-height: 44px; padding: 7px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .word-snake-question-panel { filter: none; } }
