@import url('../shared/theme.css?v=20261029-visits');

.game-layout {
  display: grid;
  grid-template-columns: 170px minmax(250px, 380px) 210px;
  align-items: start;
  justify-content: center;
  gap: 22px;
}
.play-column { min-width: 0; }
#gameCanvas { aspect-ratio: 432 / 704; outline-offset: -3px; }
#gameCanvas:focus { outline: none; }
.board-wrap:focus-within { outline: 2px solid #7aa383; outline-offset: 2px; }
.score-note { color: #87967f; font-size: 14px; line-height: 1.8; margin: 21px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.score-panel .stat.compact .label { white-space: nowrap; letter-spacing: 1px; }
.pressure-kicker { color: #a08b56; letter-spacing: 1.6px; font-size: 11px; font-weight: 750; margin: 0 0 7px; }
.pressure-panel h2 { font-size: 19px; letter-spacing: -.6px; margin: 0 0 23px; }
.pressure-heading { display: flex; align-items: center; justify-content: space-between; color: #7d9273; font-size: 11px; font-weight: 750; letter-spacing: 1px; margin: 0 0 8px; }
.pressure-heading > span:last-child { font-size: 16px; line-height: .8; }
.pressure-track { height: 10px; border-radius: 8px; padding: 2px; background: #e8edde; box-shadow: inset 0 1px 3px #163e3510; }
.pressure-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8cc99b, #51a377); transition: width .25s ease; }
.pressure-track.near-full i { background: linear-gradient(90deg, #e0bd70, #d58868); }
.pressure-caption { font-size: 13px; color: #78906c; line-height: 1.7; margin: 10px 0; }
.pressure-detail { color: #9a9f82; font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.legend { border-top: 1px solid var(--line); padding-top: 3px; }
.legend > div { display: flex; gap: 9px; margin-top: 14px; color: #84917b; font-size: 12px; line-height: 1.6; }
.legend i { width: 13px; height: 13px; flex-shrink: 0; border-radius: 50%; margin-top: 3px; box-shadow: inset 2px 2px 3px #fff9, inset -2px -2px 3px #103c4a30; }
.legend b { display: block; color: #537049; font-size: 13px; margin-bottom: 2px; }
.aim-tip { color: #7c8c73; font-size: 13px; margin: 13px 0 9px; text-align: center; }
.play-controls { display: flex; justify-content: center; gap: 6px; }
.play-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; height: 38px; border: 1px solid #d6dfce; border-radius: 10px; background: #fffef8; color: #517149; font-size: 14px; font-weight: 650; white-space: nowrap; touch-action: none; user-select: none; }
.play-controls [data-aim] { padding: 0; width: 35px; flex: 0 0 35px; font-size: 20px; }
.play-controls button:hover { background: #edf3e7; }.play-controls button:active { transform: translateY(1px); }
.play-controls button:disabled { opacity: .5; cursor: default; }
.play-controls #guideButton[aria-pressed='true'] { background: #e9f2e3; border-color: #b8cfab; }
.play-controls .fire-button { background: var(--forest); color: #fffef5; border-color: var(--forest); min-width: 64px; }.play-controls .fire-button:hover { background: #28664d; }
.pause-badge { letter-spacing: normal; text-align: center; }
.pause-badge span { display: block; font-size: 11px; letter-spacing: 2px; color: #b9d0b6; }
.pause-badge strong { display: block; font-size: 29px; margin: 5px 0 20px; }
.pause-badge .primary-button { font-size: 14px; background: #faf8e9; color: var(--forest); border-color: #faf8e9; }
.pop-welcome i { border-radius: 50%; width: 56px; height: 56px; padding-top: 15px; }
.pop-welcome i::before { content: '··'; position: absolute; top: -5px; font-size: 36px; letter-spacing: 3px; margin-left: 3px; color: #234252; text-shadow: 0 -1px #fff; }
.hero-card .startup-status { font-size: 14px; margin: 14px auto 0; line-height: 1.6; }
#startButton:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
#startHelpButton:disabled { opacity: .45; cursor: default; background: none; }
html[data-pop-startup='error'] #startButton:disabled { cursor: not-allowed; }
.startup-recovery { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 16px; }
.startup-recovery a { color: var(--forest); font-size: 14px; font-weight: 650; text-underline-offset: 3px; }
.board-message { top: 47%; font-size: 14px; }
.high-contrast .pressure-caption,.high-contrast .pressure-detail,.high-contrast .aim-tip { color: #3c5d3a; }

@media (min-width: 701px) and (max-height: 900px) {
  .site-nav { height: 64px; }.game-header { margin-bottom: 15px; }
  .game-layout { grid-template-columns: 160px minmax(230px, 315px) 200px; gap: 20px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .game-layout { grid-template-columns: 140px minmax(235px, 1fr) 175px; gap: 14px; }
  .info-panel { padding: 16px; }.stat strong { font-size: 22px; }
  .play-controls button { padding-inline: 9px; }.play-controls [data-aim] { width: 31px; flex-basis: 31px; }
}
@media (max-width: 700px) {
  .site-nav { height: 55px; }.game-header { margin-bottom: 12px; }.game-header .eyebrow { font-size: 10px; }.game-header h1 { font-size: 28px; }.subtitle { font-size: 13px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 440px; margin: auto; }
  .score-panel { grid-row: 1; display: grid; grid-template-columns: 1.4fr 1.4fr .7fr .9fr; gap: 8px; padding: 9px 13px; }
  .stat,.stat.compact { width: auto; margin: 0; padding: 0; border: 0; display: block; }.stat strong,.stat.compact strong { font-size: 18px; line-height: 1.35; margin-top: 2px; }.stat small,.score-note { display: none; }.stat .label { font-size: 9px; letter-spacing: .7px; }
  .pressure-panel { grid-row: 2; padding: 9px 13px; display: grid; grid-template-columns: 112px 1fr; column-gap: 10px; align-items: center; }
  .pressure-heading { margin: 0; font-size: 10px; }.pressure-heading > span:last-child { margin-left: 4px; font-size: 14px; }
  .pressure-track { height: 9px; }.pressure-caption { display: none; }
  .pressure-kicker,.pressure-panel h2,.pressure-detail,.legend { display: none; }
  .play-column { grid-row: 3; width: min(100%, calc(max(340px, 100dvh - 185px) * .614)); justify-self: center; }
  .board-wrap { width: 100%; }.aim-tip { display: none; }.play-controls { margin-top: 10px; }
  .play-controls { gap: 5px; }.play-controls button { height: 35px; padding: 0 9px; font-size: 13px; }.play-controls [data-aim] { width: 30px; flex-basis: 30px; font-size: 18px; }
  .play-controls .fire-button { min-width: 55px; }.play-controls #swapButton span { display: none; }
  .app-shell > footer { padding-top: 8px; }.preview-hint { display: none; }.app-shell > footer .text-button { font-size: 13px; padding-inline: 8px; }
  .pop-welcome i { width: 47px; height: 47px; }.pop-welcome i::before { top: -8px; }
}
@media (max-width: 350px) { .play-controls button { padding-inline: 7px; }.play-controls [data-aim] { width: 28px; flex-basis: 28px; }.score-panel { column-gap: 5px; }.stat strong { font-size: 16px; } }
