:root{
  color-scheme:light;
  --ink:#18374a;
  --paper:#eaf3f2;
  --yellow:#f5d36e;
  --coral:#ef9fa6;
  --mint:#87c5b4;
  --line:#9bb5bd}
  *{
    box-sizing:border-box}
    body{
      margin:0;
      background:#d3e5e8;
      color:var(--ink);
      font-family:'Avenir Next',Avenir,'Trebuchet MS',sans-serif;
      font-size:15px}
      button,a,select{
        -webkit-tap-highlight-color:transparent}
        button,select{
          font:inherit;
          color:inherit}
          button{
            cursor:pointer;
            border:1.5px solid var(--ink);
            background:var(--paper);
            padding:11px 15px;
            border-radius:5px;
            font-weight:700;
            touch-action:manipulation}
            button:hover:not(:disabled){
              background:#fff}
              button:active:not(:disabled){
                transform:translateY(1px)}
                button:disabled{
                  cursor:default;
                  opacity:.45}
                  button:focus-visible,a:focus-visible,select:focus-visible{
                    outline:3px solid #ac3e5a;
                    outline-offset:4px}
                    a{
                      color:inherit;
                      text-underline-offset:4px;
                      font-weight:600}
                      .station{
                        max-width:1180px;
                        margin:0 auto;
                        padding:22px 32px}
                        .masthead{
                          display:flex;
                          justify-content:space-between;
                          align-items:center;
                          font-size:12px}
                          .masthead>span{
                            opacity:.8}
                            .text-button{
                              border:0;
                              background:none;
                              padding:7px 0;
                              font-size:12px;
                              text-decoration:underline;
                              text-underline-offset:4px}
                              .title-row{
                                display:flex;
                                align-items:baseline;
                                justify-content:space-between;
                                gap:16px;
                                margin:18px 0 20px}
                                h1{
                                  font-family:Rockwell,'Courier New',serif;
                                  letter-spacing:-3px;
                                  font-weight:900;
                                  font-size:clamp(36px,5vw,58px);
                                  line-height:1;
                                  margin:0}
                                  .title-dot{
                                    color:#a63957}
                                    .title-row p{
                                      font-size:15px;
                                      margin:0}
                                      .game-layout{
                                        display:grid;
                                        grid-template-columns:minmax(0,1.4fr) minmax(290px,.85fr);
                                        border:2px solid var(--ink);
                                        border-radius:10px;
                                        overflow:hidden;
                                        background:var(--paper);
                                        box-shadow:6px 7px 0 #adc6cc}
                                        .playfield{
                                          position:relative;
                                          min-width:0;
                                          display:flex;
                                          flex-direction:column;
                                          background:#afccd9;
                                          border-right:2px solid var(--ink)}
                                          .site-heading,.scene-caption{
                                            display:flex;
                                            justify-content:space-between;
                                            gap:10px;
                                            padding:10px 16px;
                                            font-size:11px;
                                            background:#18374a;
                                            color:#eff8f8}
                                            .site-heading{
                                              min-height:34px}
                                              .scene-caption{
                                                background:#b9d1da;
                                                color:#18374a;
                                                font-size:10px;
                                                border-top:1px solid #8eaebc}
                                                canvas{
                                                  display:block;
                                                  width:100%;
                                                  height:auto;
                                                  max-height:600px;
                                                  aspect-ratio:4/5;
                                                  object-fit:contain}
                                                  .site-desk{
                                                    display:flex;
                                                    flex-direction:column;
                                                    padding:26px 25px 20px;
                                                    gap:22px}
                                                    .scoreboard{
                                                      display:grid;
                                                      grid-template-columns:1fr 1fr;
                                                      gap:12px}
                                                      .scoreboard>div>span,.tenant>span{
                                                        display:block;
                                                        font-size:12px}
                                                        .scoreboard strong{
                                                          display:block;
                                                          font-size:43px;
                                                          line-height:1.2;
                                                          letter-spacing:-2px}
                                                          .scoreboard strong span{
                                                            font-size:17px;
                                                            letter-spacing:0;
                                                            font-weight:500}
                                                            .shift-line{
                                                              display:flex;
                                                              gap:10px;
                                                              align-items:center;
                                                              border-top:1px solid var(--line);
                                                              border-bottom:1px solid var(--line);
                                                              padding:12px 0;
                                                              font-size:12px}
                                                              .shift-line strong{
                                                                font-variant-numeric:tabular-nums;
                                                                font-size:21px;
                                                                margin-left:auto}
                                                                .shift-line button{
                                                                  padding:7px 12px;
                                                                  font-size:12px}
                                                                  .tenant{
                                                                    border-left:5px solid var(--coral);
                                                                    padding-left:14px}
                                                                    .tenant strong{
                                                                      display:block;
                                                                      font-size:25px;
                                                                      margin:6px 0}
                                                                      .balance>div:first-child{
                                                                        display:flex;
                                                                        flex-wrap:wrap;
                                                                        gap:5px;
                                                                        justify-content:space-between;
                                                                        font-size:11px}
                                                                        .balance strong{
                                                                          font-size:12px}
                                                                          .balance-track{
                                                                            height:7px;
                                                                            background:#c4d8db;
                                                                            margin:10px 0;
                                                                            border-radius:5px;
                                                                            overflow:hidden}
                                                                            .balance-track span{
                                                                              display:block;
                                                                              height:100%;
                                                                              width:0;
                                                                              background:#256a5c}
                                                                              .balance p{
                                                                                font-size:12px;
                                                                                line-height:1.5;
                                                                                margin:0}
                                                                                .feedback{
                                                                                  background:#dbe9e9;
                                                                                  padding:11px 13px;
                                                                                  margin:0;
                                                                                  font-size:13px;
                                                                                  line-height:1.4;
                                                                                  min-height:59px;
                                                                                  border-radius:4px}
                                                                                  .drop-controls{
                                                                                    display:grid;
                                                                                    grid-template-columns:44px 1fr 44px;
                                                                                    gap:7px;
                                                                                    margin-top:auto}
                                                                                    .drop-controls button{
                                                                                      padding:13px 4px}
                                                                                      .primary{
                                                                                        background:var(--yellow);
                                                                                        box-shadow:0 3px 0 var(--ink)}
                                                                                        .primary:hover:not(:disabled){
                                                                                          background:#ffe394}
                                                                                          kbd{
                                                                                            font-family:inherit;
                                                                                            font-size:10px;
                                                                                            border:1px solid #7c682a;
                                                                                            border-radius:3px;
                                                                                            padding:2px 4px;
                                                                                            margin-left:4px;
                                                                                            font-weight:500}
                                                                                            .pace-label{
                                                                                              display:flex;
                                                                                              align-items:center;
                                                                                              justify-content:space-between;
                                                                                              font-size:12px;
                                                                                              gap:12px}
                                                                                              .pace-label select{
                                                                                                padding:7px 10px;
                                                                                                background:transparent;
                                                                                                border:1px solid var(--line);
                                                                                                border-radius:4px}
                                                                                                .small{
                                                                                                  font-size:12px;
                                                                                                  line-height:1.5}
                                                                                                  .control-note{
                                                                                                    margin:-10px 0 0}
                                                                                                    footer{
                                                                                                      display:flex;
                                                                                                      justify-content:space-between;
                                                                                                      font-size:10px;
                                                                                                      margin-top:16px;
                                                                                                      gap:16px}
                                                                                                      .overlay{
                                                                                                        position:absolute;
                                                                                                        inset:34px 0 31px;
                                                                                                        display:flex;
                                                                                                        align-items:center;
                                                                                                        justify-content:center;
                                                                                                        padding:24px;
                                                                                                        background:rgba(24,55,74,.18)}
                                                                                                        .overlay[hidden],[hidden]{
                                                                                                          display:none!important}
                                                                                                          .overlay-paper{
                                                                                                            background:#f0f6ec;
                                                                                                            border:2px solid var(--ink);
                                                                                                            border-radius:4px;
                                                                                                            box-shadow:6px 7px 0 #18374a44;
                                                                                                            max-width:350px;
                                                                                                            padding:25px;
                                                                                                            text-align:center}
                                                                                                            .ticket{
                                                                                                              display:block;
                                                                                                              font-size:12px;
                                                                                                              padding-bottom:14px;
                                                                                                              border-bottom:1px dashed #839a96}
                                                                                                              h2{
                                                                                                                font-family:Rockwell,'Courier New',serif;
                                                                                                                font-weight:700;
                                                                                                                letter-spacing:-1px;
                                                                                                                font-size:29px;
                                                                                                                line-height:1.05;
                                                                                                                margin:19px 0 15px}
                                                                                                                .overlay-paper p{
                                                                                                                  line-height:1.5;
                                                                                                                  font-size:14px}
                                                                                                                  .overlay-paper button{
                                                                                                                    display:block;
                                                                                                                    width:100%;
                                                                                                                    margin:16px 0}
                                                                                                                    .key-hint{
                                                                                                                      display:block;
                                                                                                                      font-size:10px}
                                                                                                                      .result-score{
                                                                                                                        font-weight:700;
                                                                                                                        font-size:20px!important}
                                                                                                                        .result-paper{
                                                                                                                          padding:19px 23px}
                                                                                                                          .result-paper h2{
                                                                                                                            font-size:26px}
                                                                                                                            dialog{
                                                                                                                              border:2px solid var(--ink);
                                                                                                                              border-radius:8px;
                                                                                                                              max-width:520px;
                                                                                                                              width:calc(100% - 32px);
                                                                                                                              background:var(--paper);
                                                                                                                              color:var(--ink);
                                                                                                                              padding:24px}
                                                                                                                              dialog::backdrop{
                                                                                                                                background:#18374a99}
                                                                                                                                dialog h2{
                                                                                                                                  margin-top:0}
                                                                                                                                  dialog li,dialog p{
                                                                                                                                    font-size:14px;
                                                                                                                                    line-height:1.55}
                                                                                                                                    dialog li{
                                                                                                                                      padding-bottom:9px}
                                                                                                                                      dialog ol{
                                                                                                                                        padding-left:21px}
                                                                                                                                        dialog button{
                                                                                                                                          width:100%}
                                                                                                                                          @media(max-width:760px){
                                                                                                                                            .station{
                                                                                                                                              padding:12px 12px 20px;
                                                                                                                                              max-width:520px}
                                                                                                                                              .title-row{
                                                                                                                                                display:block;
                                                                                                                                                margin:16px 0}
                                                                                                                                                .title-row p{
                                                                                                                                                  font-size:12px;
                                                                                                                                                  margin-top:7px}
                                                                                                                                                  h1{
                                                                                                                                                    font-size:39px;
                                                                                                                                                    letter-spacing:-2px}
                                                                                                                                                    .masthead>span{
                                                                                                                                                      display:none}
                                                                                                                                                      .game-layout{
                                                                                                                                                        display:flex;
                                                                                                                                                        flex-direction:column;
                                                                                                                                                        box-shadow:3px 4px 0 #adc6cc}
                                                                                                                                                        .playfield{
                                                                                                                                                          border-right:0;
                                                                                                                                                          border-bottom:2px solid var(--ink)}
                                                                                                                                                          canvas{
                                                                                                                                                            max-height:440px}
                                                                                                                                                            .site-heading{
                                                                                                                                                              padding:8px 10px;
                                                                                                                                                              font-size:9px;
                                                                                                                                                              min-height:28px}
                                                                                                                                                              .scene-caption{
                                                                                                                                                                padding:6px 10px;
                                                                                                                                                                font-size:8px}
                                                                                                                                                                .site-desk{
                                                                                                                                                                  padding:15px;
                                                                                                                                                                  gap:13px}
                                                                                                                                                                  .scoreboard{
                                                                                                                                                                    width:55%;
                                                                                                                                                                    gap:9px}
                                                                                                                                                                    .scoreboard strong{
                                                                                                                                                                      font-size:30px;
                                                                                                                                                                      letter-spacing:-1px}
                                                                                                                                                                      .scoreboard>div>span{
                                                                                                                                                                        font-size:10px}
                                                                                                                                                                        .scoreboard strong span{
                                                                                                                                                                          font-size:12px}
                                                                                                                                                                          .shift-line{
                                                                                                                                                                            position:absolute;
                                                                                                                                                                            right:16px;
                                                                                                                                                                            top:15px;
                                                                                                                                                                            width:38%;
                                                                                                                                                                            padding:0;
                                                                                                                                                                            border:0;
                                                                                                                                                                            flex-wrap:wrap;
                                                                                                                                                                            gap:4px;
                                                                                                                                                                            font-size:9px}
                                                                                                                                                                            .shift-line>span{
                                                                                                                                                                              width:100%}
                                                                                                                                                                              .shift-line strong{
                                                                                                                                                                                font-size:20px;
                                                                                                                                                                                margin-left:0}
                                                                                                                                                                                .shift-line button{
                                                                                                                                                                                  margin-left:auto;
                                                                                                                                                                                  padding:5px 8px;
                                                                                                                                                                                  font-size:11px}
                                                                                                                                                                                  .site-desk{
                                                                                                                                                                                    position:relative}
                                                                                                                                                                                    .tenant{
                                                                                                                                                                                      display:flex;
                                                                                                                                                                                      gap:10px;
                                                                                                                                                                                      flex-wrap:wrap;
                                                                                                                                                                                      align-items:center;
                                                                                                                                                                                      padding-left:8px}
                                                                                                                                                                                      .tenant strong{
                                                                                                                                                                                        font-size:18px;
                                                                                                                                                                                        margin:0}
                                                                                                                                                                                        .tenant>span:last-child{
                                                                                                                                                                                          font-size:10px}
                                                                                                                                                                                          .tenant>span:first-child{
                                                                                                                                                                                            font-size:10px}
                                                                                                                                                                                            .balance p{
                                                                                                                                                                                              font-size:11px}
                                                                                                                                                                                              .feedback{
                                                                                                                                                                                                font-size:12px;
                                                                                                                                                                                                min-height:0}
                                                                                                                                                                                                .drop-controls{
                                                                                                                                                                                                  order:0}
                                                                                                                                                                                                  .control-note{
                                                                                                                                                                                                    font-size:10px;
                                                                                                                                                                                                    margin:0}
                                                                                                                                                                                                    .overlay{
                                                                                                                                                                                                      inset:28px 0 24px;
                                                                                                                                                                                                      padding:14px}
                                                                                                                                                                                                      .overlay-paper{
                                                                                                                                                                                                        padding:16px 20px;
                                                                                                                                                                                                        max-width:290px}
                                                                                                                                                                                                        .overlay-paper h2{
                                                                                                                                                                                                          font-size:25px;
                                                                                                                                                                                                          margin:13px 0}
                                                                                                                                                                                                          .overlay-paper p{
                                                                                                                                                                                                            font-size:12px;
                                                                                                                                                                                                            margin:9px 0}
                                                                                                                                                                                                            .overlay-paper button{
                                                                                                                                                                                                              margin:12px 0}
                                                                                                                                                                                                              .ticket{
                                                                                                                                                                                                                font-size:10px;
                                                                                                                                                                                                                padding-bottom:10px}
                                                                                                                                                                                                                footer{
                                                                                                                                                                                                                  font-size:9px;
                                                                                                                                                                                                                  flex-direction:column;
                                                                                                                                                                                                                  gap:5px}
                                                                                                                                                                                                                  .result-paper h2{
                                                                                                                                                                                                                    font-size:22px}
                                                                                                                                                                                                                    .result-paper{
                                                                                                                                                                                                                      padding:12px 18px}
                                                                                                                                                                                                                      .result-score{
                                                                                                                                                                                                                        font-size:16px!important}
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      @media(prefers-reduced-motion:reduce){
                                                                                                                                                                                                                        *{
                                                                                                                                                                                                                          scroll-behavior:auto!important;
                                                                                                                                                                                                                          transition:none!important;
                                                                                                                                                                                                                          animation:none!important}
                                                                                                                                                                                                                        }
                                                                                                                                                                                                                        @media(max-width:760px){
                                                                                                                                                                                                                          .drop-controls{
                                                                                                                                                                                                                            order:-2;
                                                                                                                                                                                                                            margin-top:0}
                                                                                                                                                                                                                            .scoreboard{
                                                                                                                                                                                                                              order:-1}
                                                                                                                                                                                                                              .shift-line{
                                                                                                                                                                                                                                top:80px}
                                                                                                                                                                                                                              }

/* Small action feedback; the board remains the focus. */
.sound-switch { font: inherit; font-size: 13px; min-height: 40px; padding: 6px 10px; white-space: nowrap; cursor: pointer; }
.sound-switch[aria-pressed=true] { box-shadow: inset 0 0 0 2px currentColor; }
.sound-switch:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media(max-width: 600px) { .masthead { flex-wrap: wrap; gap: 8px; } }
