/* Large type. One white grotesque on black. Points sit under the letter. */

body.phosphor {
  --bg: #070707;
  --bg-deep: #070707;
  --panel: transparent;
  --panel-highlight: transparent;
  --border: transparent;
  --border-dim: #2a2a2a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #f2f2f2;
  --accent-soft: transparent;
  --accent-dim: #d0d0d0;
  --warm: #f2f2f2;
  --danger: #ff2d2d;
  --danger-dim: #ff2d2d;
  --tile-face: transparent;
  --tile-edge: transparent;
  --tile-ink: #f2f2f2;
  --tile-pip: #d5d5d5;
  --amber: #f2f2f2;
  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-pixel: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --floor-sign-color: #f2f2f2;
  --floor-border-strong: transparent;
  --floor-panel-tint: transparent;
  --floor-progress-a: #f2f2f2;
  --floor-progress-b: #9a9a9a;
  --floor-turn-a: #f2f2f2;
  --floor-turn-b: #9a9a9a;
  font-family: var(--font);
  font-weight: 500;
  color: #f2f2f2;
  background: #070707;
  background-image: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  font-size: 100%;
}

.crt-vignette,
.crt-scanlines,
.crt-noise {
  display: none !important;
}

.ban-letter {
  color: #ff2d2d;
  font-weight: 700;
}

/* Letters are type, with the point underneath. */

.card {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  background-image: none;
  color: #f2f2f2;
  box-shadow: none;
  align-items: center;
  justify-content: flex-start;
}

.card:hover:not(.spent):not(.card--history):not(.card--sack-empty),
.tray-slot:hover .card,
.card--sack:active {
  transform: none;
  box-shadow: none;
}

.card-letter {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 0.85;
  color: #fff;
}

.tile-points,
.hand.sack-flap .tile-points,
.hand.sack-flap .card .tile-points,
.intro-tiles .tile-points,
.card .tile-points {
  position: static;
  right: auto;
  bottom: auto;
  order: 2;
  margin-top: 0.18em;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.34em;
  line-height: 1;
  color: #d5d5d5;
}

.card-tag {
  margin: 0.2em 0 0;
  max-width: none;
  color: #9a9a9a;
  font-size: 0.65rem;
}

.hand.sack-flap,
.hand.sack-flap.hand--nine {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem 1.1rem;
  min-height: 0;
  padding: 0.2rem 0.5rem 0.4rem;
  border: 0;
  outline: none;
  background: none;
  background-image: none;
  box-shadow: none;
}

.hand.sack-flap > .card,
.hand.sack-flap .card--sack {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  min-width: 2.4rem;
  min-height: 2.75rem;
  padding: 0;
}

.hand.sack-flap .card-letter,
.hand .card-letter {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.hand.sack-flap .card .tile-points {
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

#game-screen.is-daily .hand .card.card--sack.card--in-word {
  display: none;
}

.hand.sack-flap .card.card--sack.card--exchange-mark,
.hand.sack-flap .card.card--sack.card--exchange-mark:hover {
  background: none;
  box-shadow: none;
  outline: none;
}

.hand.sack-flap .card.card--sack.card--exchange-mark::after {
  content: none;
}

.card--exchange-mark .card-letter {
  text-decoration: underline;
  text-decoration-color: #ff2d2d;
  text-underline-offset: 0.12em;
}

.card--sack-empty {
  display: none;
}

.card--sack:focus-visible,
.word-letter:focus-visible {
  outline: 1px solid #f2f2f2;
  outline-offset: 4px;
}

/* Title */

.intro-screen {
  align-items: stretch;
  justify-content: stretch;
  padding: 1.35rem 1.5rem 1.1rem;
}

.intro-frame {
  max-width: none;
  width: 100%;
  min-height: calc(100vh - 2.45rem);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto auto auto;
  align-content: stretch;
}

#intro-heading,
.brand-title {
  margin: 0;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9a9a;
}

#intro-heading {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

#intro-date {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 0;
  color: #9a9a9a;
  font-size: 0.85rem;
}

.intro-lead {
  display: none;
}

.intro-center {
  display: contents;
}

.intro-tiles {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(5, max-content);
  gap: 0.2em 0.28em;
  margin: 0;
  font-size: clamp(3.4rem, 8.5vw, 7.4rem);
}

.intro-tiles .card,
.daily-sack-line .card {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  background: none;
  background-image: none;
  border: 0;
  box-shadow: none;
}

.intro-tiles .card-letter {
  font-size: 1em;
  font-weight: 700;
}

.intro-tiles .tile-points {
  font-size: 0.2em;
}

.intro-boost-label {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  max-width: none;
  justify-self: center;
  margin: 1.6rem 0 0.55rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: #9a9a9a;
  text-align: center;
}

.intro-relics {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  width: 100%;
  max-width: none;
  margin: 0 0 0.45rem;
}

.intro-relics .relic-card-btn.relic-slot-relic {
  width: max-content;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0;
}

.intro-relics .relic-card-btn,
.intro-relics .relic-card-btn.relic-slot-relic,
.relic-card-btn {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  color: #f2f2f2;
  box-shadow: none;
}

.intro-relics .relic-card-btn.relic-slot-relic:hover,
.relic-card-btn:hover {
  background: transparent;
  color: #fff;
}

.intro-relics .relic-slot-icon,
.intro-relics .relic-choice-kicker,
.relic-card-btn .relic-slot-icon,
.relic-card-btn .relic-choice-kicker {
  display: none;
}

.relic-choice-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
}

.intro-relics .relic-choice-name {
  color: #8a8a8a;
  font-weight: 500;
}

.intro-relics .relic-card-btn.is-selected .relic-choice-name {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.relic-choice-effect {
  display: none;
}

.intro-boost-detail {
  grid-column: 1 / -1;
  grid-row: 5;
  margin: 0.15rem 0 0.2rem;
  text-align: center;
  color: #f2f2f2;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
}

#btn-start-run {
  grid-column: 1 / -1;
  grid-row: 6;
  justify-self: center;
  margin: 0.2rem 0 12vh;
}

#btn-start-run:not(:disabled) {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#btn-start-run:disabled {
  color: #6e6e6e;
  text-decoration: none;
  cursor: default;
}

.intro-how {
  grid-column: 2;
  grid-row: 7;
  justify-self: end;
  align-self: end;
  max-width: none;
  margin: 0;
  text-align: right;
  color: #9a9a9a;
}

.intro-how-title,
.intro-how ol li:not(:first-child) {
  display: none;
}

.intro-how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #9a9a9a;
}

#intro-attempt {
  grid-column: 1;
  grid-row: 7;
  justify-self: start;
  align-self: end;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #9a9a9a;
  font-size: 0.85rem;
}

#intro-version,
.intro-music-row {
  display: none;
}

#intro-results,
.intro-cta-stack,
#intro-storage-note,
#intro-url-error {
  grid-column: 1 / -1;
}

.intro-music-row {
  position: static;
}

.game-screen {
  animation: none;
  opacity: 1;
}

/* Play */

#game-screen.is-daily .app {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 1.15rem 1.35rem 0.6rem;
}

#game-screen.is-daily[data-phase="playing"] .app {
  display: flex;
  flex-direction: column;
}

#game-screen.is-daily[data-phase="playing"] .word-panel,
#game-screen.is-daily[data-phase="playing"] .tab-panel--play,
#game-screen.is-daily[data-phase="playing"] .play-panel-body {
  display: contents;
}

#game-screen.is-daily[data-phase="playing"] .top {
  order: 1;
  align-items: flex-start;
  min-height: 3.7rem;
  padding-bottom: 0.45rem;
}

#game-screen.is-daily .top .brand .btn-home {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: none;
  box-shadow: none;
  color: #9a9a9a;
}

#game-screen.is-daily .btn-home-icon {
  width: 0.95rem;
  height: 0.95rem;
}

#game-screen.is-daily[data-phase="playing"] .app {
  position: relative;
}

#game-screen.is-daily[data-phase="playing"] .chamber-strip {
  position: fixed;
  top: 1.2rem;
  right: 1.35rem;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  justify-items: end;
  align-items: center;
  column-gap: 0.4rem;
  row-gap: 0.12rem;
  margin: 0;
  width: auto;
}

#game-screen.is-daily[data-phase="playing"] .chamber-strip .badge {
  grid-column: 1 / -1;
  grid-row: 1;
}

#game-screen.is-daily[data-phase="playing"] .chamber-strip .floor-sign {
  grid-row: 2;
  grid-column: 1;
}

#game-screen.is-daily[data-phase="playing"] .chamber-strip .tower-pips {
  grid-row: 2;
  grid-column: 2;
  margin: 0;
}

#game-screen.is-daily[data-phase="playing"] .chamber-panel {
  position: static;
}

#game-screen.is-daily[data-phase="playing"] .word-row {
  order: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
}

#game-screen.is-daily[data-phase="playing"] .word-line {
  width: auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

#game-screen.is-daily[data-phase="playing"] #btn-play {
  align-self: center;
  min-height: 2.5rem;
  margin: 0.15rem 0 0;
  padding: 0.35rem 0.8rem;
  font-size: 1.05rem;
}

#game-screen.is-daily[data-phase="playing"] #blank-picker {
  order: 4;
}

#game-screen.is-daily[data-phase="playing"] .hand-section {
  order: 5;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

#game-screen.is-daily[data-phase="playing"] .word-tabs {
  order: 6;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin: 0.5rem 0 0;
  border: 0;
}

#game-screen.is-daily .word-tab {
  border: 0;
  background: none;
  color: #9a9a9a;
  padding: 0.15rem 0.2rem;
}

#game-screen.is-daily .word-tab[aria-selected="true"] {
  color: #fff;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#game-screen.is-daily[data-phase="playing"] #tab-panel-log {
  order: 3;
  flex: 1;
}

#game-screen.is-daily[data-phase="playing"] .play-bottom-dock {
  order: 7;
}

#game-screen.is-daily .compose-head,
#game-screen.is-daily .word-tray,
#game-screen.is-daily .status-line,
#game-screen.is-daily #deck-stats,
#game-screen.is-daily .goal-tag,
#game-screen.is-daily .bar,
#game-screen.is-daily .enemy-head,
#game-screen.is-daily .floor-flavor {
  display: none;
}

.word-display,
.word-score-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.word-display .label,
.word-score-block .label {
  display: none;
}

.word-preview,
.word-letter,
.word-letter-char,
.card-letter {
  color: #fff;
}

.word-preview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12em;
  min-height: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.word-preview.is-empty {
  display: block;
  width: min(12rem, 36vw);
  height: 1px;
  margin: 0.4rem 0;
  background: #2a2a2a;
  font-size: 0;
}

.word-letter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.word-letter-char {
  font-weight: 700;
  line-height: 0.82;
}

.card-letter.ban-letter,
.word-letter-char.ban-letter {
  color: #ff2d2d;
}

.word-letter-point {
  margin-top: 0.16em;
  font-size: 0.2em;
  font-weight: 500;
  line-height: 1;
  color: #d5d5d5;
}

#word-score-preview {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  color: #f2f2f2;
}

#word-score-preview:empty {
  display: none;
}

.hand-head {
  justify-content: center;
  gap: 0.8rem;
}

.hand-label {
  color: #9a9a9a;
  font-size: 0.85rem;
  font-weight: 500;
}

#game-screen.is-daily[data-phase="playing"] .chamber-panel,
.chamber-panel,
.adv-panel,
.word-panel {
  margin: 0;
  padding: 0.35rem 0;
  background: none;
  background-image: none;
  border: 0;
  box-shadow: none;
}

#game-screen.is-daily[data-phase="playing"] .chamber-panel,
#game-screen.is-daily[data-phase="playing"] .goal-deck {
  display: contents;
}

#game-screen.is-daily[data-phase="playing"] .chamber-foot {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 0.15rem 0.35rem;
  width: min(100%, 34rem);
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  text-align: right;
}

#game-screen.is-daily[data-phase="playing"] .chamber-foot .limits-block,
#game-screen.is-daily[data-phase="playing"] .chamber-foot .constraints--chips,
#game-screen.is-daily[data-phase="playing"] .chamber-foot .relic-hud {
  display: contents;
}

#game-screen.is-daily[data-phase="playing"] .chamber-foot .relic-hud-text {
  text-align: right;
}

#game-screen.is-daily[data-phase="playing"] .chamber-foot .relic-hud-item::before {
  content: none;
}

#game-screen.is-daily[data-phase="playing"] .region-label {
  display: none;
}

.goal-row {
  display: contents;
}

#game-screen.is-daily[data-phase="playing"] .goal-row {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  gap: 1rem;
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--quota {
  order: 0;
  display: block;
  width: auto;
  flex: 1;
  margin: 0;
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--quota::after {
  content: none;
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--quota .goal-numbers {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--quota .goal-hint {
  margin: 0.28rem 0 0;
  font-size: 0.85rem;
  color: #9a9a9a;
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--quota .goal-hint:empty {
  display: none;
}

#game-screen.is-daily .goal-panel {
  display: inline-flex;
  align-items: baseline;
}

#game-screen.is-daily .goal-panel--turns::after {
  content: none;
}

#game-screen.is-daily .constraint-chip:not(:last-child)::after {
  content: "·";
  margin-left: 0.4rem;
  color: #6e6e6e;
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--turns {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.45em;
  height: 2.45em;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--turns .goal-hint,
#game-screen.is-daily[data-phase="playing"] .goal-panel--turns .bar {
  display: none;
}

#game-screen.is-daily[data-phase="playing"] .goal-panel--turns .goal-numbers {
  position: relative;
  z-index: 1;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.turn-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.turn-ring-track,
.turn-ring-arc {
  fill: none;
  stroke-width: 1.5;
}

.turn-ring-track {
  stroke: #2a2a2a;
}

.turn-ring-arc {
  stroke: #f2f2f2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s ease;
}

#game-screen.is-daily .spell-log-pips {
  display: inline-flex;
  margin: 0 0.15rem 0 0;
  gap: 0.16rem;
}

#game-screen.is-daily .spell-grimoire-title,
#game-screen.is-daily .spell-history-empty {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #9a9a9a;
}

#game-screen.is-daily .spell-log-word,
#game-screen.is-daily .spell-log-score {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #f2f2f2;
}

#game-screen.is-daily .spell-log-row {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0.28rem 0;
}

#game-screen.is-daily .spell-log-tiles {
  display: none;
}

#game-screen.is-daily .limits-block,
#game-screen.is-daily .spell-grimoire,
#game-screen.is-daily[data-phase="playing"] .play-bottom-dock {
  margin-top: 0;
  padding-top: 0;
  border: 0;
  background: none;
}

#game-screen.is-daily .floor-sign,
#game-screen.is-daily .badge,
#game-screen.is-daily .constraint-chip {
  font-size: 0.85rem;
  font-weight: 500;
}

.floor-sign {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #9a9a9a;
}

.floor-sign--clear {
  color: #f2f2f2;
}

.tower-pip {
  width: 8px;
  height: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #d0d0d0;
}

.tower-pip.is-cleared,
.tower-pip.is-current {
  background: #f2f2f2;
  box-shadow: none;
}

.tower-pip.is-act-start {
  margin-left: 0.35rem;
}

.badge {
  border: 0;
  background: none;
  padding: 0;
  color: #9a9a9a;
  font-size: 0.85rem;
}

.goal-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
}

.goal-panel {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.goal-numbers {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #9a9a9a;
  margin: 0;
}

.constraints--chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.constraint-chip,
.constraint-chip--ban,
.constraint-chip--length,
.constraint-chip--score-muted,
.constraint-chip--baseline {
  padding: 0;
  border: 0;
  background: none;
  color: #9a9a9a;
  font-size: 0.85rem;
}

.constraint-chip--ban {
  color: #f2f2f2;
}

.message {
  min-height: 0;
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  color: #9a9a9a;
}

.message:empty {
  display: none;
}

.message.err {
  color: #ff2d2d;
}

#game-screen.is-daily .btn-swap-glyphs,
#game-screen.is-daily .actions button {
  min-width: 0;
}

#game-screen.is-daily[data-phase="playing"] .hand-head {
  justify-content: center;
}

#game-screen.is-daily[data-phase="playing"] .word-tabs {
  justify-content: flex-start;
}

#game-screen.is-daily button,
#game-screen.is-daily .actions .primary,
#game-screen.is-daily .actions button,
.intro-screen button,
button.primary,
button.danger,
.btn-soft,
.restart-dock .btn-restart-run--dock {
  min-height: 0;
  padding: 0.2rem 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: #9a9a9a;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
}

#game-screen.is-daily .actions #btn-play,
#btn-outcome-primary,
#game-screen.is-daily button.primary {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

button:active:not(:disabled),
button.primary:hover:not(:disabled),
button.danger:hover:not(:disabled),
.btn-soft:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  background: transparent;
  border-color: transparent;
  color: #fff;
}

#game-screen.is-daily[data-phase="playing"] ~ .restart-dock {
  position: static;
  padding: 0.15rem 0 0.8rem;
}

.restart-dock .btn-restart-run--dock,
#btn-restart-run,
#btn-restart-confirm {
  width: auto;
  max-width: none;
  color: #ff2d2d;
  font-weight: 600;
}

#blank-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.55rem;
  margin: 0.4rem 0 0.2rem;
}

#blank-picker button {
  font-weight: 700;
  font-size: 1.2rem;
  color: #f2f2f2;
}

#blank-picker button.is-on {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Next chamber */

.chamber-card {
  gap: 0.35rem;
  background: #070707;
}

.chamber-card-kicker {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #9a9a9a;
}

.chamber-card-title {
  font-family: var(--font);
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #fff;
}

.chamber-card-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.35rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: #b0b0b0;
  white-space: normal;
}

.chamber-card-continue {
  margin: 1.5rem 0 0;
  color: #9a9a9a;
  font-size: 0.9rem;
}

/* Result */

.battle-outcome-overlay {
  background: #070707;
}

.battle-outcome-backdrop {
  background: #070707;
  backdrop-filter: none;
}

.battle-outcome-card {
  max-width: none;
  width: min(100%, 64rem);
  padding: 1.25rem 1.4rem 1rem;
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.battle-outcome-eyebrow,
.battle-outcome-title {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0;
  color: #9a9a9a;
}

.battle-outcome-title {
  font-size: 0.95rem;
}

.battle-outcome-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.6rem 0 0.8rem;
}

.battle-outcome-hero[hidden] {
  display: none;
}

.battle-outcome-hero-word {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #fff;
}

.battle-outcome-hero-score {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #f2f2f2;
}

.battle-outcome-body {
  margin: 0 auto 1rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #b5b5b5;
  text-align: center;
}

.battle-outcome-stats {
  border: 0;
  background: none;
  padding: 0;
  color: #9a9a9a;
}

.battle-outcome-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

#reward-heading {
  font-family: var(--font);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

#reward-text,
.reward-kicker {
  text-align: center;
}

.daily-sack-line {
  justify-content: center;
}

#game-screen.is-daily .relic-hud {
  justify-content: center;
}

#game-screen.is-daily .relic-hud-item {
  border: 0;
  background: none;
  padding: 0;
  max-width: 100%;
}

#game-screen.is-daily .relic-hud-item .relic-slot-icon {
  display: none;
}

#game-screen.is-daily[data-phase="playing"] .hand-section .relic-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 28rem);
  margin: 0.45rem 0 0;
  text-align: center;
}

#game-screen.is-daily .relic-hud-name,
#game-screen.is-daily .relic-hud-desc {
  display: block;
  text-align: center;
  line-height: 1.35;
}

#game-screen.is-daily .relic-hud-name {
  color: #f2f2f2;
  font-weight: 600;
}

#game-screen.is-daily .relic-hud-desc {
  color: #9a9a9a;
  font-weight: 500;
}

#game-screen.is-daily .relic-hud-text {
  color: #b5b5b5;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .intro-screen {
    padding: 0.9rem 0.85rem 0.7rem;
  }

  .intro-frame {
    grid-template-rows: auto 1fr auto;
  }

  .intro-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    min-height: 0;
  }

  .intro-how,
  #intro-attempt {
    grid-row: 3;
  }

  .intro-tiles {
    align-self: center;
  }

  .intro-boost-label {
    margin-top: 1.15rem;
  }

  #btn-start-run {
    margin-bottom: 0;
  }

  .intro-tiles {
    font-size: clamp(2.65rem, 13.2vw, 3.5rem);
    column-gap: 0.22em;
    row-gap: 0.16em;
  }

  .intro-tiles .tile-points {
    font-size: 0.22em;
  }

  .intro-relics {
    flex-wrap: nowrap;
    gap: 0.15rem 0.55rem;
    margin-bottom: 0.35rem;
  }

  .relic-choice-name {
    font-size: 0.92rem;
  }

  .intro-how {
    grid-column: 1 / -1;
    justify-self: end;
    white-space: nowrap;
  }

  .intro-how,
  #intro-attempt {
    font-size: 0.8rem;
  }

  #game-screen.is-daily[data-phase="playing"] {
    min-height: 0;
  }

  #game-screen.is-daily .app {
    min-height: calc(100vh - 2.4rem);
    padding: 0.75rem 0.9rem 0.15rem;
  }

  #game-screen.is-daily[data-phase="playing"] .top {
    min-height: 3.35rem;
    padding-bottom: 0.35rem;
  }

  #game-screen.is-daily[data-phase="playing"] .chamber-strip {
    top: 0.85rem;
    right: 0.85rem;
    gap: 0.28rem;
  }

  #game-screen.is-daily .floor-sign,
  #game-screen.is-daily .badge,
  #game-screen.is-daily .constraint-chip {
    font-size: 0.85rem;
    font-weight: 500;
  }

  #game-screen.is-daily[data-phase="playing"] .word-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.2rem;
  }

  #game-screen.is-daily[data-phase="playing"] .word-line {
    flex-direction: row;
    gap: 0.55rem;
  }

  .word-display,
  .word-score-block {
    max-width: none;
    justify-content: center;
  }

  .word-preview {
    max-width: 100%;
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .word-preview[data-len="5"] {
    font-size: clamp(2.5rem, 12.5vw, 3.4rem);
  }

  .word-preview[data-len="6"],
  .word-preview[data-len="7"],
  .word-preview[data-len="8"],
  .word-preview[data-len="9"] {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .word-letter-point {
    font-size: max(0.7rem, 0.2em);
  }

  #word-score-preview {
    font-size: 1rem;
  }

  .hand.sack-flap {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
    justify-content: center;
    gap: 0.45rem 0.75rem;
    padding: 0.15rem 0.15rem 0.35rem;
  }

  .hand.sack-flap > .card,
  .hand.sack-flap.hand--nine > .card:nth-child(6) {
    width: auto;
    height: auto;
    aspect-ratio: auto;
    grid-column: auto;
    min-width: 2.1rem;
    min-height: 2.75rem;
  }

  .hand.sack-flap .card-letter,
  .hand .card-letter {
    font-size: 1.85rem;
  }

  .hand.sack-flap .card .tile-points {
    font-size: 0.8rem;
    margin-top: 0.2rem;
  }

  #game-screen.is-daily[data-phase="playing"] .chamber-panel {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.2rem;
    padding-top: 0.45rem;
  }

  #game-screen.is-daily .goal-deck,
  #game-screen.is-daily .constraints--chips,
  #game-screen.is-daily .limits-block,
  #game-screen.is-daily .relic-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 0.2rem 0.15rem;
  }

  #game-screen.is-daily .goal-numbers,
  #game-screen.is-daily .constraint-chip,
  #game-screen.is-daily .relic-hud-text {
    font-size: 0.85rem;
  }

  .word-tabs,
  .actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.15rem 0.28rem;
  }

  #game-screen.is-daily[data-phase="playing"] .actions button,
  #game-screen.is-daily[data-phase="playing"] .word-tab {
    min-height: 2.5rem;
    padding: 0.1rem 0;
    font-size: 0.78rem;
  }

  #game-screen.is-daily[data-phase="playing"] ~ .restart-dock {
    padding: 0 0.9rem 0.4rem;
    text-align: left;
  }

  .battle-outcome-hero {
    flex-direction: column;
    gap: 0.2rem;
  }

  .battle-outcome-body {
    font-size: 0.95rem;
    padding: 0 0.25rem;
  }
}

@media (min-width: 900px) {
  #game-screen.is-daily[data-phase="playing"] .play-bottom-dock {
    position: absolute;
    right: 1.35rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  #game-screen.is-daily[data-phase="playing"] ~ .restart-dock {
    position: fixed;
    left: auto;
    right: 1.35rem;
    bottom: 0.4rem;
    z-index: 4;
    justify-content: flex-end;
    width: auto;
    padding: 0;
  }

  #game-screen.is-daily[data-phase="playing"] .word-tabs {
    position: static;
    justify-content: flex-start;
    align-self: start;
    margin: 0 0 0.45rem;
  }

  #game-screen.is-daily[data-phase="playing"] .actions {
    justify-content: flex-end;
  }
}
