/* Word Wheel — a painted cart wheel of letters (Bazaar) */
.ww-col { justify-content: flex-start; gap: 4px; padding: 6px 12px 8px; direction: ltr; }
.ww-sub { min-height: 26px; font-size: 0.86rem; }
html[dir="rtl"] .ww-sub, html[dir="rtl"] .ww-msg { direction: rtl; }
.ww-entry {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  width: 100%; max-width: 380px; min-height: 48px; padding: 4px 12px;
  border-radius: 14px; background: rgba(38, 8, 19, 0.6); box-shadow: inset 0 0 0 1px var(--hairline);
  font: 700 1.7rem/1 var(--font-display); letter-spacing: 0.06em; color: var(--w-cream);
}
.ww-entry.is-empty { font: 500 0.95rem/1 inherit; letter-spacing: 0; color: var(--mist-dim); }
html[dir="rtl"] .ww-entry.is-empty { direction: rtl; }
.ww-entry .is-c { color: var(--gold); }
.ww-entry.is-shake { animation: ww-shake 0.36s; }
.ww-msg { min-height: 22px; margin: 0; font-size: 0.9rem; font-weight: 700; opacity: 0; transition: opacity 0.2s; }
.ww-msg.is-on { opacity: 1; }
.ww-msg.is-good { color: var(--w-turmeric); }
.ww-msg.is-bad { color: var(--mist); }
.ww-box { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.ww-wheel { position: relative; flex: none; width: 260px; height: 260px; font-size: 30px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.ww-spin { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transition: transform 0.75s cubic-bezier(0.3, 0.1, 0.2, 1); }
.ww-art { display: block; width: 100%; height: 100%; }
.ww-key {
  position: absolute; width: 25%; height: 25%; padding: 0; border: 0; border-radius: 50%; background: none;
  font: inherit; color: var(--w-wine); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%); transition: transform 0.75s cubic-bezier(0.3, 0.1, 0.2, 1);
}
.ww-face {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #FFFFFF, var(--w-cream) 55%, #F2D9B0);
  box-shadow: 0 0 0 2px var(--w-wine), 0 3px 0 2px rgba(38, 8, 19, 0.55);
  font: 700 1em/1 var(--font-display); transition: opacity 0.22s, transform 0.1s;
}
.ww-hub { left: 50%; top: 50%; width: 28%; height: 28%; }
.ww-hub .ww-face { background: radial-gradient(circle at 35% 28%, #FFE9A8, var(--gold) 55%, var(--w-saffron)); font-size: 1.15em; }
.ww-key:active .ww-face { transform: scale(0.92); }
.ww-key.is-hit .ww-face { animation: ww-pop 0.22s; }
.ww-key:focus-visible .ww-face { outline: 3px solid var(--w-cream); outline-offset: 2px; }
.ww-wheel.is-turning .ww-rim .ww-face { opacity: 0.15; }
.ww-wheel.is-still .ww-spin, .ww-wheel.is-still .ww-key { transition: none; }
.ww-found, .ww-missed__list {
  display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 5px;
  overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; direction: ltr;
}
.ww-found { flex: none; width: 100%; max-width: 420px; height: 58px; }
.ww-word {
  padding: 3px 9px; border-radius: 999px; background: rgba(255, 244, 224, 0.1); box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 0.84rem; font-weight: 600; line-height: 1.25; color: var(--w-cream); touch-action: pan-y;
}
.ww-word.is-pan { background: var(--gold); color: var(--w-wine); box-shadow: none; }
.ww-missed { margin-top: 4px; }
.ww-missed__title { margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; color: var(--mist); text-align: center; }
.ww-missed__list { max-height: 92px; padding: 2px; }
#timeChip.is-low .fa-chip__value { color: #FF8A7A; animation: ww-pulse 1s infinite; }
html[data-world] .fa-dock .kit-dock-btn.ww-enter { background: var(--gold); color: var(--w-wine); min-width: 84px; }
html[data-world] .fa-dock .kit-dock-btn.ww-enter:active { background: var(--gold-soft); }
@media (hover: hover) { html[data-world] .fa-dock .kit-dock-btn.ww-enter:hover { background: var(--gold-soft); } }
@keyframes ww-shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } 100% { transform: none; } }
@keyframes ww-pop { 40% { transform: scale(1.14); } 100% { transform: none; } }
@keyframes ww-pulse { 50% { opacity: 0.55; } }
@media (max-height: 600px) {
  .ww-entry { min-height: 40px; font-size: 1.4rem; }
  .ww-found { height: 50px; }
  .ww-sub { min-height: 22px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .ww-col { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 14px; align-items: center; justify-items: center; }
  .ww-box { grid-column: 2; grid-row: 1 / 5; height: 100%; }
  .ww-found { height: auto; align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-spin, .ww-key { transition: none; }
  .ww-entry.is-shake, .ww-key.is-hit .ww-face, #timeChip.is-low .fa-chip__value { animation: none; }
}
@media (max-width: 350px) { body[data-game="wordwheel"] .fa-title { font-size: 0.9rem; } }
@media (max-height: 600px) { .ww-missed__list { max-height: 62px; } }
