.game-shell,
.game-shell .game-stage,
.arcade-tag-dialog,
.forge-confirm,
#topbar:has(.arcade-score-link) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
.game-shell :is(input, textarea) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.game-shell :is(input, select, textarea) {
  font-size: max(16px, 1em);
}
@media (hover: none) {
  .game-shell :is(button, a),
  #topbar:has(.arcade-score-link) a {
    -webkit-tap-highlight-color: transparent;
  }
}
.arcade-score-link, .arcade-score-nav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  min-height: 42px;
  border: 1px solid #746288;
  border-radius: 6px;
  color: #e6d8ff;
  background: #201933;
}
.arcade-score-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.arcade-score-nav [aria-current='page'] { border-color: #e9c986; color: #ffe7ae; }
.arcade-score-page { min-height: 100vh; }
.arcade-score-board {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 24px);
  border: 1px solid #746288;
  border-radius: 10px;
  background: radial-gradient(ellipse at top, #282140, #151124 72%);
}
.arcade-score-board h1, .arcade-tag-dialog h2 { color: #ffe7ae; }
.arcade-score-board h1 {
  margin: 8px 0 12px;
  font: bold clamp(1.55rem, 5vw, 2.75rem)/1.1 ui-monospace, monospace;
}
.arcade-score-board table { width: 100%; border-collapse: collapse; background: #19152a; }
.arcade-score-board th, .arcade-score-board td { padding: 8px; text-align: left; border-bottom: 1px solid #514460; }
.arcade-score-board td:nth-child(2) { color: #9af1ef; }
.arcade-score-board td { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.arcade-score-board caption { margin: 0 0 5px; color: #ffe7ae; font: bold 1rem ui-monospace, monospace; }
.arcade-score-board tr:nth-child(-n+10) td:first-child { color: #ffe7ae; }
.arcade-result { padding: 10px 14px; border: 1px solid #746288; border-radius: 6px; background: #201933; }
.arcade-result p { margin: 0 0 4px; }
.arcade-tag-dialog {
  width: min(380px, calc(100% - 36px));
  border: 1px solid #c4a673;
  border-radius: 10px;
  background: #201933;
  color: #f9efdb;
  text-align: center;
}
.arcade-tag-dialog::backdrop { background: #090711cc; }
.arcade-tag-dialog form { display: grid; justify-items: center; gap: 8px; }
.arcade-tag-dialog input {
  width: 9ch;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #947ab0;
  border-radius: 5px;
  background: #110d20;
  color: #a6f5f1;
  font: bold 1.45rem ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.arcade-tag-dialog [data-error] { margin: 0; color: #ffb9bf; }
#arcade-guest-note { margin: 0; color: #e4d8e9; font-size: .9rem; }
.arcade-tag-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.arcade-tag-actions button { min-height: 44px; }
@media (max-width: 480px) {
  #topbar:has(.arcade-score-link) { gap: 6px; padding-block: 4px; }
  #topbar:has(.arcade-score-link) .game-return-link,
  #topbar .arcade-score-link { padding: 6px; font-size: .78rem; min-height: 44px; white-space: nowrap; }
  #topbar:has(.arcade-score-link) #score { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .arcade-score-board th, .arcade-score-board td { padding: 6px 4px; }
}
@media (max-width: 360px) {
  #topbar:has(.arcade-score-link) #score { display: none; }
}
