/* Desktop/readability layer for the shared website + app leaderboard. Mobile keeps the compact arcade layout. */
.board-app{grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto}
#liveBoardStatus{color:#b8c2c7!important;font-size:10px!important;line-height:1.35!important}
.development-credit{display:flex;justify-content:center;align-items:center;padding:10px 0 4px;min-height:62px}
.development-credit-link{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;text-decoration:none;cursor:pointer;outline:none}
.development-credit-link:focus-visible{box-shadow:0 0 0 3px #f0b93e,0 0 0 6px rgba(240,185,62,.25)}
.development-credit-link:hover img{transform:translateY(-1px);box-shadow:0 12px 30px rgba(0,0,0,.24)}
.development-credit img{display:block;width:210px;max-width:55vw;height:auto;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);transition:transform .16s ease,box-shadow .16s ease}
.initial-form button.saved{background:#70d68b;color:#071722;box-shadow:0 0 0 2px rgba(112,214,139,.18)}
.score-row.empty{min-height:64px}
.score-row.empty .initials{white-space:normal;line-height:1.25}

@media(min-width:900px){
  html,body{height:auto;min-height:100%;overflow:auto}
  body{min-height:100dvh}
  .board-app{
    width:min(1180px,calc(100% - 48px));
    min-height:100dvh;height:auto;
    padding:18px 22px 20px;
    gap:12px;
    grid-template-rows:auto auto auto auto minmax(390px,1fr) auto auto;
  }
  .board-top{grid-template-columns:50px 1fr 34px;gap:12px}
  .back{width:46px;height:46px;border-radius:14px;font-size:32px}
  .kicker,.label{font-size:11px;letter-spacing:.13em}
  .board-top h1{font-size:clamp(38px,3.2vw,52px);letter-spacing:.065em;text-shadow:4px 4px 0 #7a2e1f}
  .arcade-light{width:19px;height:19px}

  .identity-card{padding:15px 16px;grid-template-columns:minmax(0,.9fr) minmax(480px,1.35fr);gap:18px;border-radius:18px}
  .help{margin-top:5px;font-size:13px;line-height:1.4}
  .identity-controls{gap:10px}
  .identity-controls label span{font-size:10px}
  .identity-controls select,.board-filter select{height:48px;border-radius:11px;padding:0 12px;font-size:13px}
  .initial-form{gap:8px}
  .initial-form input{width:96px;height:48px;border-radius:11px;font-size:25px}
  .initial-form button{height:48px;min-width:82px;padding:0 16px;border-radius:11px;font-size:12px;cursor:pointer}

  .board-filter{padding:13px 16px;grid-template-columns:minmax(220px,.8fr) minmax(520px,1.6fr);gap:16px;border-radius:18px}
  .board-filter span{font-size:10px}
  .board-filter strong{margin-top:4px;font-size:15px}
  .board-selects{grid-template-columns:minmax(190px,.8fr) minmax(300px,1.4fr);gap:9px}

  .score-card{border-radius:18px}
  .score-card>div{padding:14px 16px}
  .score-card span{font-size:10px}
  .score-card strong{margin-top:5px;font-size:30px}
  .score-card small{margin-top:4px;font-size:12px;line-height:1.35}

  .leaderboard{padding:16px;border-radius:20px}
  .leader-head h2{margin-top:4px;font-size:28px}
  .season{padding:6px 10px;font-size:10px}
  #liveBoardStatus{margin-top:6px!important;font-size:12px!important;color:#c2cdd2!important}
  .columns,.score-row{grid-template-columns:72px minmax(0,1fr) 92px 92px;gap:10px}
  .columns{margin-top:12px;padding:0 10px 7px;font-size:9px}
  .score-rows{gap:6px}
  .score-row{min-height:48px;padding:7px 10px;border-radius:11px}
  .score-row.empty{min-height:96px}
  .rank{font-size:14px}
  .initials{font-size:17px}
  .initials small{font-size:9px}
  .treasures,.points{font-size:14px}
  .board-note{padding:0 10px;font-size:10px;line-height:1.45}
  .development-credit{padding:12px 0 2px;min-height:98px}
  .development-credit img{width:270px;max-width:34vw;border-radius:14px}
}

@media(min-width:1400px){
  .board-app{width:min(1240px,calc(100% - 72px))}
}

@media(max-width:560px){
  .development-credit{padding:7px 0 2px;min-height:48px}
  .development-credit img{width:170px;max-width:54vw;border-radius:10px}
  #liveBoardStatus{font-size:9px!important}
}

@media(max-height:690px) and (max-width:899px){
  .development-credit{display:none}
}
