/* Wordweave: scoped to the existing Playsible navigation and page palette. */
.wordweave-body {
  --ww-ink: #292538;
  --ww-muted: #716a80;
  --ww-purple: #7053c1;
  --ww-deep: #573aa5;
  --ww-line: #e6dfed;
  --ww-paper: #fffdf9;
  --ww-green: #357b61;
  background: #f7f5fb;
  color: var(--ww-ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  min-height: 100vh;
}
.ww-shell {
  width: min(1160px, calc(100% - 64px));
  margin: 40px auto 72px;
}
.ww-lobby-shell {
  margin-top: 28px;
}
.ww-lobby-shell .ww-heading {
  margin-bottom: 20px;
}
.ww-heading,
.ww-brand,
.ww-heading-actions,
.ww-section-heading,
.ww-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ww-heading {
  justify-content: space-between;
  margin-bottom: 30px;
}
.ww-brand {
  gap: 16px;
}
.ww-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--ww-ink);
  color: white;
  font:
    italic 700 44px Georgia,
    serif;
  box-shadow: 0 4px 0 #d9d0ec;
  text-decoration: none;
}
.ww-mark:hover {
  color: white;
  background: var(--ww-deep);
}
.ww-brand h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 750;
}
.ww-eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ww-muted);
  margin: 0 0 6px;
}
.ww-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid var(--ww-line);
  background: #fff;
  border-radius: 30px;
  padding: 7px 11px;
  color: var(--ww-muted);
}
.ww-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 17px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  color: var(--ww-ink);
}
.ww-primary {
  color: #fff;
  background: var(--ww-purple);
  box-shadow: 0 3px 0 var(--ww-deep);
}
.ww-primary:hover {
  background: var(--ww-deep);
  color: white;
}
.ww-light {
  border-color: var(--ww-line);
  background: white;
}
.ww-light:hover {
  background: #f2edf9;
  color: var(--ww-deep);
}
.ww-button:disabled,
.ww-card:disabled {
  cursor: default;
  opacity: 0.48;
  box-shadow: none;
}
.ww-icon-button {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--ww-line);
  background: white;
  color: var(--ww-ink);
  border-radius: 10px;
  font-size: 22px;
  text-decoration: none;
}
.ww-shell button:focus-visible,
.ww-shell a:focus-visible,
.ww-shell input:focus-visible,
.ww-shell select:focus-visible,
.ww-shell summary:focus-visible {
  outline: 3px solid #9a7ee6;
  outline-offset: 4px;
}
.ww-lobby-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--ww-paper);
  border: 1px solid var(--ww-line);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  overflow: hidden;
}
.ww-hero-copy h2 {
  font-size: clamp(28px, 2.8vw, 34px);
  font-weight: 780;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 8px 0 10px;
}
.ww-hero-copy h2 em {
  font-style: normal;
  color: var(--ww-purple);
}
.ww-hero-copy > p:not(.ww-eyebrow) {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ww-muted);
  max-width: 440px;
  margin: 0;
}
.ww-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.ww-footnote {
  font-size: 12px;
  color: var(--ww-muted);
  line-height: 1.7;
  margin: 12px 0 0;
}
.ww-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ww-green);
  border-radius: 50%;
  margin-right: 8px;
}
.ww-example {
  position: relative;
  padding: 20px 16px;
  background: #eeebf7;
  border-radius: 16px;
  border: 1px solid #e3dcf1;
}
.ww-example-label {
  font:
    italic 18px Georgia,
    serif;
  color: #6b588d;
  margin: 0 0 16px;
  text-align: center;
}
.ww-example-chain {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
}
.ww-example-card {
  background: #fff;
  border: 1px solid #d8cee7;
  border-radius: 9px;
  box-shadow: 0 3px 0 #d6cce6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 12px 8px;
  min-width: 52px;
  text-align: center;
}
.ww-example-card:nth-of-type(4n + 1) {
  color: #6145a8;
}
.ww-example-arrow {
  font-size: 18px;
  color: #9482b2;
}
.ww-example-phrases {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.ww-example-phrases span {
  font-size: 11px;
  border: 1px dashed #c8bddb;
  border-radius: 8px;
  padding: 5px 9px;
  color: #70578d;
}
.ww-section-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}
.ww-section-heading h2 {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.6px;
  margin: 0;
}
.ww-section-heading h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 700;
}
.ww-room-section {
  margin-bottom: 36px;
}
.ww-room-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 19px 24px;
  border: 1px solid var(--ww-line);
  border-radius: 14px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--ww-muted);
  text-decoration: none;
}
.ww-room-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ww-room-name strong {
  color: var(--ww-ink);
  font-size: 14px;
  display: block;
}
.ww-room-name small {
  font-size: 12px;
  display: block;
  margin-top: 3px;
}
.ww-avatar {
  display: grid;
  place-items: center;
  border-radius: 13px;
  width: 40px;
  height: 40px;
  background: #eee8f8;
  color: var(--ww-deep);
  font-weight: 750;
}
.ww-empty {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 32px;
  background: #f0edf6;
  border: 1px dashed #d8cee7;
  border-radius: 16px;
}
.ww-empty-symbol {
  font:
    36px Georgia,
    serif;
  color: #9c89ba;
}
.ww-empty h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.ww-empty p {
  font-size: 13px;
  color: var(--ww-muted);
  margin: 0;
}
.ww-empty > .ww-button {
  margin-left: auto;
  flex-shrink: 0;
}
.ww-how {
  padding: 34px 0;
  border-top: 1px solid var(--ww-line);
}
.ww-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin: 26px 0;
}
.ww-step {
  display: block;
  font-size: 11px;
  color: var(--ww-purple);
  margin-bottom: 16px;
  font-weight: 800;
}
.ww-how-grid h3 {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.ww-how-grid p {
  font-size: 13px;
  color: var(--ww-muted);
  line-height: 1.8;
}
.ww-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--ww-line);
  border-radius: 22px;
  color: var(--ww-ink);
  background: var(--ww-paper);
  box-shadow: 0 20px 80px #29253833;
}
.ww-dialog::backdrop {
  background: #29253877;
  backdrop-filter: blur(3px);
}
.ww-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  font-size: 12px;
  font-weight: 650;
}
.ww-field select,
.ww-inline-form input {
  background: white;
  border: 1px solid var(--ww-line);
  border-radius: 10px;
  padding: 11px;
  color: var(--ww-ink);
  font-size: 13px;
  min-width: 0;
}
.ww-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  margin: 24px 0;
}
.ww-toggle input {
  accent-color: var(--ww-purple);
  width: 20px;
  height: 20px;
}
.ww-toggle small {
  display: block;
  font-size: 11px;
  color: var(--ww-muted);
  line-height: 1.6;
  margin-top: 4px;
}
.ww-feedback {
  font-size: 13px;
  color: var(--ww-deep);
  line-height: 1.6;
  min-height: 0;
}
.ww-feedback:empty {
  display: none;
}
.ww-notice {
  background: #eee8f8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.ww-game-shell {
  max-width: 1240px;
}
.ww-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.ww-main-column {
  display: grid;
  gap: 22px;
}
.ww-panel {
  background: var(--ww-paper);
  border: 1px solid var(--ww-line);
  border-radius: 20px;
  padding: 28px;
  min-width: 0;
}
.ww-sidebar {
  display: grid;
  gap: 18px;
}
.ww-sidebar .ww-panel {
  padding: 22px;
}
.ww-sidebar h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.ww-progress {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--ww-muted);
}
.ww-progress span {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2px;
}
.ww-progress strong {
  color: var(--ww-ink);
  font-size: 25px;
}
.ww-progress span:nth-child(2) strong {
  color: var(--ww-purple);
}
.ww-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 20px;
}
.ww-chain-arrow {
  color: #b2a3c8;
  font-size: 18px;
}
.ww-chain-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  border: 1px solid var(--ww-line);
  border-radius: 10px;
  background: white;
  min-width: 69px;
  min-height: 56px;
  justify-content: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ww-ink);
}
.ww-chain-card small {
  font-size: 9px;
  font-weight: 500;
  color: var(--ww-muted);
}
.ww-chain-card.is-tail {
  background: var(--ww-purple);
  color: white;
  border-color: var(--ww-purple);
}
.ww-chain-card.is-tail small {
  color: #e6ddfb;
}
.ww-chain-card.is-confirmed {
  border-color: #81b9a1;
  background: #f0f8f3;
}
.ww-chain-card.is-rewind {
  outline: 2px dashed #b49bdc;
}
.ww-chain-card.is-selectable {
  cursor: pointer;
}
.ww-controls {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ww-line);
}
.ww-controls .ww-button {
  font-size: 11px;
  padding: 9px 12px;
  gap: 5px;
  min-height: 40px;
}
.ww-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 20px;
}
.ww-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #d9cde8;
  border-radius: 12px;
  box-shadow: 0 4px 0 #e3d9ee;
  min-height: 85px;
  padding: 14px 10px;
  cursor: pointer;
  color: var(--ww-ink);
}
.ww-card strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
}
.ww-card small {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--ww-muted);
}
.ww-card:hover:not(:disabled) {
  background: #f3eefb;
  border-color: #a58acb;
}
.ww-card.is-nominated {
  background: #eee8fb;
  border-color: var(--ww-purple);
}
.ww-card.is-supported {
  outline: 2px solid var(--ww-purple);
  outline-offset: 2px;
}
.ww-card.is-unavailable {
  background: #eeedef;
  color: #6f6976;
  border-color: #d7d4da;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.ww-card .ww-vote-count {
  color: var(--ww-deep);
  font-size: 12px;
  font-weight: 750;
}
.ww-voters {
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ww-chain-card small {
  max-width: 150px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ww-card.in-chain {
  background: #f0edea;
  box-shadow: none;
  border-style: dashed;
  opacity: 0.55;
}
.ww-branch-status {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ww-green);
}
.ww-branch-status.is-stuck {
  background: #f5eddb;
  border-radius: 12px;
  padding: 14px;
  color: #806635;
}
.ww-requests {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.ww-request {
  border: 1px solid #d9c9ed;
  border-radius: 12px;
  padding: 14px;
  background: #f5effc;
  font-size: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ww-request p {
  flex: 1;
  margin: 0;
  min-width: 180px;
  line-height: 1.7;
}
.ww-request .ww-button {
  padding: 7px 11px;
  min-height: 36px;
  font-size: 11px;
}
.ww-hint-result {
  padding: 16px;
  background: #eef5ef;
  color: var(--ww-green);
  border-radius: 12px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
}
.ww-hint-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--ww-line);
  border-radius: 12px;
  margin-top: 12px;
  background: white;
  padding: 16px;
  text-align: left;
}
.ww-hint-option strong {
  font-size: 13px;
  color: var(--ww-deep);
}
.ww-hint-option span {
  font-size: 12px;
  color: var(--ww-muted);
  line-height: 1.6;
}
.ww-dialog > p {
  font-size: 13px;
  color: var(--ww-muted);
  line-height: 1.7;
}
.ww-team {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.ww-teammate {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.ww-teammate > div {
  flex: 1;
  min-width: 0;
}
.ww-teammate strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ww-teammate small {
  display: block;
  font-size: 10px;
  color: var(--ww-muted);
  margin-top: 3px;
}
.ww-teammate .ww-avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
  border-radius: 10px;
}
.ww-connection {
  width: 6px;
  height: 6px;
  background: #76aa8c;
  border-radius: 50%;
}
.ww-connection.offline {
  background: #c19d5d;
}
.ww-kick {
  border: 0;
  background: none;
  color: var(--ww-muted);
  font-size: 15px;
}
.ww-settings,
.ww-nickname-form {
  margin-top: 22px;
  border-top: 1px solid var(--ww-line);
  padding-top: 16px;
}
.ww-nickname-form label {
  font-size: 11px;
  color: var(--ww-muted);
  margin-bottom: 8px;
}
.ww-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ww-inline-form input {
  flex: 1;
  width: 100%;
}
.ww-settings summary,
.ww-rules-panel summary {
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  min-height: 28px;
}
.ww-settings .ww-field {
  margin: 14px 0;
}
.ww-settings .ww-button {
  font-size: 11px;
  padding: 9px 12px;
  margin-top: 8px;
}
.ww-rules-panel p {
  font-size: 12px;
  color: var(--ww-muted);
  line-height: 1.8;
  margin-top: 14px;
}
.ww-chat-messages {
  height: 175px;
  overflow-y: auto;
  font-size: 12px;
  margin: 16px -8px;
  padding: 0 8px;
  overflow-wrap: anywhere;
}
.ww-chat-panel .chat-message {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.ww-chat-panel .chat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.ww-chat-panel .chat-message-user {
  font-size: 10px;
  font-weight: 700;
}
.ww-chat-panel .chat-message-time {
  font-size: 9px;
  color: var(--ww-muted);
  margin-left: 7px;
}
.ww-chat-panel .chat-message-msg {
  font-size: 11px;
  line-height: 1.7;
}
.ww-chat-panel .joined-message {
  font-size: 10px;
  color: var(--ww-muted);
  margin-bottom: 10px;
}
.ww-result h2,
#ww-waiting h2 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 16px 0;
}
.ww-result > p,
#ww-waiting > p:not(.ww-eyebrow) {
  font-size: 14px;
  color: var(--ww-muted);
  line-height: 1.8;
}
.ww-result details {
  font-size: 12px;
  line-height: 1.8;
  padding: 18px 0;
}
.ww-wait-example {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 32px 0;
}
.ww-wait-example span:nth-child(odd) {
  border: 1px solid var(--ww-line);
  border-radius: 10px;
  padding: 15px;
  background: white;
  font-weight: 750;
}
.ww-wait-example span:nth-child(even) {
  color: #a28abd;
  font-size: 23px;
}
.ww-shell [hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  .ww-shell {
    width: calc(100% - 36px);
    margin-top: 26px;
  }
  .ww-lobby-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    padding: 22px;
    gap: 20px;
  }
  .ww-example {
    padding: 18px 12px;
  }
  .ww-example-chain {
    gap: 4px;
  }
  .ww-example-card {
    min-width: 40px;
    padding: 10px 6px;
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .ww-example-arrow {
    font-size: 16px;
  }
  .ww-example-phrases span {
    font-size: 10px;
    padding: 4px 6px;
  }
  .ww-play-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 16px;
  }
  .ww-panel {
    padding: 23px;
  }
  .ww-progress {
    gap: 12px;
  }
  .ww-heading-actions {
    gap: 8px;
  }
  .ww-heading-actions .ww-pill {
    display: none;
  }
  .ww-rack {
    gap: 10px;
  }
  .ww-card strong {
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .ww-shell {
    width: calc(100% - 28px);
    margin-top: 22px;
  }
  .ww-heading {
    margin-bottom: 24px;
    gap: 14px;
  }
  .ww-brand h1 {
    font-size: 24px;
  }
  .ww-brand .ww-eyebrow {
    font-size: 8px;
    letter-spacing: 0.9px;
  }
  .ww-mark {
    width: 44px;
    height: 44px;
    font-size: 34px;
    border-radius: 13px;
  }
  .ww-heading > .ww-pill {
    font-size: 9px;
    padding: 6px 8px;
  }
  .ww-lobby-shell .ww-heading,
  .ww-lobby-shell .ww-brand {
    gap: 10px;
  }
  .ww-lobby-shell .ww-brand .ww-eyebrow {
    display: none;
  }
  .ww-lobby-shell .ww-heading > .ww-pill {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .ww-lobby-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 0;
    margin-bottom: 20px;
  }
  .ww-hero-copy .ww-eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .ww-hero-copy h2 {
    font-size: 28px;
  }
  .ww-hero-actions .ww-button {
    font-size: 12px;
    padding: 10px 12px;
    gap: 10px;
  }
  .ww-example {
    display: none;
  }
  .ww-how-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ww-step {
    margin-bottom: 7px;
  }
  .ww-empty {
    flex-wrap: wrap;
    padding: 24px;
    gap: 12px;
  }
  .ww-empty > .ww-button {
    margin-left: 0;
  }
  .ww-empty-symbol {
    display: none;
  }
  .ww-room-row {
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }
  .ww-room-name {
    flex: 1;
  }
  .ww-room-row > span {
    font-size: 11px;
  }
  .ww-room-row .ww-button {
    min-width: 100%;
    box-shadow: none;
  }
  .ww-play-layout {
    grid-template-columns: 1fr;
  }
  .ww-sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .ww-chat-panel {
    grid-column: 1/-1;
  }
  .ww-team-panel {
    grid-column: 1/-1;
  }
  .ww-team {
    grid-template-columns: 1fr 1fr;
  }
  .ww-panel {
    padding: 20px;
  }
  .ww-heading-actions .ww-button {
    font-size: 10px;
    padding: 9px 12px;
    gap: 5px;
  }
  .ww-heading-actions .ww-icon-button {
    min-width: 30px;
    height: 30px;
  }
  .ww-game-shell .ww-heading .ww-brand {
    gap: 9px;
  }
  .ww-game-shell .ww-heading .ww-eyebrow {
    display: none;
  }
  .ww-game-shell .ww-brand h1 {
    font-size: 22px;
  }
  .ww-rack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .ww-card {
    min-height: 75px;
    padding: 12px 6px;
  }
  .ww-card strong {
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  .ww-progress {
    gap: 11px;
  }
  .ww-progress strong {
    font-size: 22px;
  }
  .ww-chain {
    gap: 6px;
  }
  .ww-chain-card {
    font-size: 11px;
    min-width: 57px;
    padding: 7px 8px;
  }
  .ww-chain-arrow {
    font-size: 14px;
  }
  .ww-hand-panel .ww-section-heading h2 {
    font-size: 20px;
  }
  .ww-hand-panel .ww-pill {
    font-size: 9px;
    padding: 6px 8px;
  }
  .ww-controls .ww-button {
    flex: 1;
    white-space: nowrap;
  }
  .ww-section-heading .ww-pill {
    font-size: 9px;
  }
  .ww-result h2,
  #ww-waiting h2 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ww-shell * {
    transition: none !important;
    animation: none !important;
  }
}
.ww-hero-copy h2 {
  text-align: left;
}
/* Keep the whole chain and shared pool together above the fold. */
.ww-game-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 16px auto 32px;
}
.ww-game-shell .ww-heading {
  margin-bottom: 14px;
}
.ww-game-shell .ww-mark {
  width: 36px;
  height: 36px;
  font-size: 28px;
  border-radius: 11px;
}
.ww-game-shell .ww-brand {
  gap: 10px;
}
.ww-game-shell .ww-brand h1 {
  font-size: 21px;
}
.ww-game-shell .ww-heading-actions .ww-button {
  min-height: 34px;
  padding: 6px 12px;
}
.ww-game-shell .ww-heading-actions #ww-finish {
  font-size: 12px;
  min-height: 36px;
  padding: 6px 12px;
}
.ww-game-shell .ww-play-layout {
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 16px;
}
.ww-board-panel {
  padding: 18px;
}
.ww-board-heading {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}
.ww-board-heading h2 {
  text-align: left;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}
.ww-board-panel .ww-progress {
  gap: 12px;
  flex-shrink: 0;
}
.ww-board-panel .ww-progress strong {
  font-size: 20px;
}
.ww-chain-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.ww-board-panel h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}
#ww-backtrack-instruction {
  color: var(--ww-muted);
  font-size: 11px;
}
.ww-game-shell #ww-chain {
  margin: 8px 0;
  gap: 5px;
  max-height: none;
  overflow: visible;
}
.ww-game-shell #ww-chain:has(> .ww-chain-card:only-child) {
  display: flex;
}
#ww-chain .ww-chain-card {
  min-width: 0;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}
#ww-chain .ww-chain-card > small {
  display: none;
}
#ww-chain .ww-chain-card .ww-voters {
  display: block;
  font-size: 9px;
  max-width: 90px;
}
#ww-chain .ww-chain-arrow {
  font-size: 12px;
}
.ww-board-panel .ww-branch-status,
.ww-board-panel #ww-selection {
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.4;
}
.ww-board-panel .ww-branch-status:empty,
.ww-board-panel #ww-selection:empty {
  display: none;
}
.ww-board-panel .ww-branch-status.is-stuck {
  padding: 8px;
}
.ww-pool-section {
  border-top: 1px solid var(--ww-line);
  padding-top: 12px;
  margin-top: 12px;
}
.ww-pool-heading {
  gap: 10px;
  margin-bottom: 0;
}
.ww-after {
  color: var(--ww-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ww-after #ww-tail {
  font-size: 13px;
  color: var(--ww-deep);
}
.ww-vote-clock {
  margin-left: auto;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f0edf4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ww-vote-clock.is-ticking {
  color: #51338a;
  background: #e9defb;
  font-weight: 750;
  outline: 1px solid #b49cdd;
}
#ww-vote-rule {
  font-size: 11px;
  margin: 5px 0 0;
  line-height: 1.4;
}
.ww-game-shell .ww-rack {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.ww-game-shell .ww-card {
  min-height: 74px;
  padding: 8px 6px;
  gap: 3px;
  border-radius: 9px;
}
.ww-game-shell .ww-card strong {
  font-size: 16px;
  letter-spacing: 0.4px;
}
.ww-game-shell .ww-card small {
  font-size: 8px;
  letter-spacing: 0;
}
.ww-game-shell .ww-card .ww-vote-count {
  font-size: 11px;
}
.ww-game-shell .ww-card .ww-voters {
  font-size: 10px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
}
.ww-game-shell .ww-card.is-unavailable {
  background: #e9e7ec;
  color: #77717f;
  border: 1px solid #d5d1db;
  opacity: 1;
}
.ww-game-shell .ww-card.in-chain {
  background: #4e485a;
  border: 1px solid #4e485a;
  color: #ded9e7;
  opacity: 1;
  box-shadow: none;
}
.ww-game-shell .ww-card.in-chain strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.ww-game-shell .ww-card.in-chain small {
  color: #f4f0fb;
}
.ww-pool-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--ww-muted);
}
.ww-pool-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ww-pool-legend span::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid #b7a6d0;
  border-radius: 2px;
  background: white;
}
.ww-pool-legend .ww-legend-unavailable::before {
  background: #e9e7ec;
  border-color: #c4bfcc;
}
.ww-pool-legend .ww-legend-used::before {
  background: #4e485a;
  border-color: #4e485a;
}
.ww-game-shell .ww-controls {
  margin-top: 12px;
  padding-top: 12px;
}
.ww-board-panel .ww-requests:empty {
  display: none;
}
@media (max-width: 850px) {
  .ww-game-shell .ww-play-layout {
    grid-template-columns: 1fr;
  }
  .ww-game-shell .ww-sidebar {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .ww-game-shell {
    width: calc(100% - 20px);
    margin-top: 10px;
  }
  .ww-game-shell .ww-heading {
    margin-bottom: 10px;
  }
  .ww-game-shell.is-playing .ww-brand h1 {
    display: none;
  }
  .ww-board-panel {
    padding: 12px;
  }
  .ww-board-heading h2 {
    font-size: 16px;
  }
  .ww-board-panel .ww-progress {
    gap: 9px;
    font-size: 9px;
  }
  .ww-board-panel .ww-progress strong {
    font-size: 17px;
  }
  .ww-chain-heading {
    margin-top: 10px;
  }
  #ww-backtrack-instruction {
    font-size: 9px;
  }
  #ww-chain .ww-chain-card {
    padding: 5px 4px;
    min-height: 27px;
    font-size: 11px;
  }
  .ww-game-shell #ww-chain {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 5px;
  }
  #ww-chain .ww-chain-arrow {
    display: none;
  }
  .ww-pool-section {
    padding-top: 10px;
    margin-top: 10px;
  }
  .ww-pool-heading {
    gap: 7px;
  }
  .ww-pool-heading h3 {
    font-size: 13px;
  }
  .ww-after {
    font-size: 9px;
  }
  .ww-after #ww-tail {
    font-size: 12px;
  }
  .ww-vote-clock {
    font-size: 9px;
    padding: 4px 5px;
  }
  #ww-vote-rule {
    font-size: 10px;
  }
  .ww-game-shell .ww-rack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0;
  }
  .ww-game-shell .ww-card {
    min-height: 66px;
    padding: 7px 4px;
    gap: 2px;
  }
  .ww-game-shell .ww-card strong {
    font-size: 12px;
    letter-spacing: 0;
  }
  .ww-game-shell .ww-card .ww-vote-count {
    font-size: 10px;
  }
  .ww-game-shell .ww-card .ww-voters {
    font-size: 9px;
  }
  .ww-pool-legend {
    gap: 9px;
    font-size: 9px;
  }
  .ww-game-shell .ww-controls {
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
  }
  .ww-game-shell .ww-controls .ww-button {
    flex: 1;
    font-size: 10px;
    padding: 7px 6px;
    min-height: 36px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .ww-game-shell .ww-card {
    min-height: 58px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .ww-game-shell #ww-chain .ww-chain-card {
    min-height: 25px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}
