/* arcade.css — 街机页。配色/字体沿用主页(css/style.css):近黑底、浅灰字、红色强调。 */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  min-height: 100%;
  background: #0a0a0a;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

#home {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px calc(env(safe-area-inset-bottom, 0px) + 40px);
  background: linear-gradient(160deg, #141414 0%, #0a0a0a 60%);
  min-height: 100dvh;
}

.bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.bar h1 { font-size: 28px; font-weight: 800; letter-spacing: 2px; color: #e02b2b; flex: 1; text-align: center; }
.bar .back, .bar .spacer { width: 64px; }
.back { color: #bbb; text-decoration: none; font-size: 16px; padding: 8px 0; }
.back:focus-visible, .pick:focus-within, button:focus-visible { outline: 2px solid #e02b2b; outline-offset: 2px; }

.card { background: #161616; border: 1px solid #262626; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.card h2 { font-size: 14px; font-weight: 600; color: #999; letter-spacing: 1px; margin-bottom: 10px; }

.pick { display: block; border: 2px dashed #3a3a3a; border-radius: 12px; padding: 22px 16px; text-align: center; cursor: pointer; }
.pick strong { display: block; font-size: 18px; margin-bottom: 8px; }
.pick span { font-size: 13px; line-height: 1.7; color: #999; }
.pick code, .hint code { background: #222; border-radius: 4px; padding: 1px 5px; font-size: 12px; color: #ddd; }
.pick:active { border-color: #e02b2b; }

.status { min-height: 20px; margin-top: 10px; font-size: 13px; color: #d9a441; text-align: center; }

.list { list-style: none; }
.list li { display: flex; align-items: stretch; gap: 8px; border-top: 1px solid #222; }
.list li:first-child { border-top: 0; }
.item-main {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 8px 4px; background: none; border: 0; color: #eee; font-size: 16px; text-align: left;
  font-family: inherit; overflow-wrap: anywhere;
}
button.item-main { cursor: pointer; }
button.item-main:active { color: #e02b2b; }
.item-main small { color: #777; font-size: 12px; white-space: nowrap; }
.item-del { background: none; border: 0; color: #888; font-size: 13px; padding: 0 8px; min-width: 48px; cursor: pointer; font-family: inherit; }
.item-del:active { color: #e02b2b; }

.empty { color: #666; font-size: 14px; padding: 6px 4px; }
.hint { color: #666; font-size: 12px; line-height: 1.8; padding: 0 4px; }

/* 游戏中:核心占满整屏,右上角留一个退出钮(避开刘海) */
#player { position: fixed; inset: 0; background: #000; }
#game { width: 100%; height: 100%; }
#quit {
  position: fixed; z-index: 10000;
  top: calc(env(safe-area-inset-top, 0px) + 8px); right: calc(env(safe-area-inset-right, 0px) + 8px);
  min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #444;
  background: rgba(20, 20, 20, .75); color: #ddd; font-size: 13px; font-family: inherit; cursor: pointer;
}
#quit:active { background: #e02b2b; color: #fff; }
