/* Shared public-page presentation. Do not change canvas geometry or game inputs. */
.arcade-info .info-page { max-width: 1080px; padding-top: 38px; }
.arcade-info .info-page > h1 { max-width: 800px; letter-spacing: -.05em; word-break: keep-all; }
.arcade-info .info-page > .eyebrow { color: #ffdc91; }
.arcade-info .info-page > .lead { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid #584069; }
.arcade-info .info-section { scroll-margin-top: 145px; }
.arcade-info .info-section.panel { border-radius: 14px; border-top: 3px solid #aa86dc; }
.arcade-info .info-section h2 { font-size: clamp(20px, 3vw, 27px); letter-spacing: -.035em; }
.arcade-info .info-section p, .arcade-info .info-section li { color: #c9c1d7; }
.arcade-info .info-section a:not(.contact-button) { text-underline-offset: 4px; }
.arcade-info .info-grid { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.arcade-info .info-grid .panel { border-radius: 12px; border-top: 2px solid #80edc8; }
.arcade-info .guide-nav { background: #14101ff5; border-color: #685080; box-shadow: 0 4px 0 #080710; }
.arcade-info .guide-nav a { min-height: 40px; display: inline-flex; align-items: center; border: 1px solid #51405e; background: #231a31; }
.arcade-info .guide-nav a:hover { color: #ffdc91; border-color: #ffdc91; }
.arcade-info details { padding: 18px 16px; border: 1px solid #44354f; border-radius: 9px; background: #191423; margin-top: 9px; }
.arcade-info summary { line-height: 1.6; }
.arcade-info summary:focus-visible { outline: 3px solid #ffdc91; outline-offset: 5px; }
.arcade-info details[open] { border-color: #a785cf; }
.arcade-info .seo-actions > a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-align: center; }
.arcade-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; color: #b8aacb; font-size: 12px; }
.arcade-breadcrumb a { color: #80edc8; }
.arcade-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 32px; padding: 32px; border: 1px solid #72528b; border-radius: 18px; background: radial-gradient(ellipse at right top, #6b3b742b, transparent 65%), #1b1629; box-shadow: 0 6px 0 #080710; }
.arcade-detail-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 16px; letter-spacing: -.05em; word-break: keep-all; }
.arcade-info .arcade-detail-hero .lead { margin: 0; font-size: 16px; }
.arcade-preview-frame { padding: 10px; border: 2px solid #a884c8; border-radius: 12px 12px 6px 6px; background: #0b0b16; text-align: center; box-shadow: 5px 5px 0 #080710; }
.arcade-preview-frame img { display: block; width: 100%; height: auto; border-radius: 4px; }
.arcade-preview-frame small { display: block; margin-top: 12px; color: #80edc8; font: 700 11px ui-monospace, monospace; letter-spacing: .12em; }
.arcade-game-symbol { display: grid; place-items: center; min-height: 115px; color: #80edc8; font-size: 58px; background: radial-gradient(ellipse, #49315a, #14111f); }
.arcade-info .seo-game-grid { gap: 20px; }
.arcade-info .seo-game-card { display: flex; flex-direction: column; gap: 18px; padding: 16px; border-color: #665078; border-radius: 14px; }
.arcade-info .seo-game-card > .arcade-card-art { display: block; width: 100%; height: 150px; flex: none; overflow: hidden; border: 5px solid #0b0b16; border-radius: 8px; background: #161121; }
.arcade-card-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.arcade-card-art .arcade-game-symbol { height: 100%; }
.arcade-info .seo-game-card > div { display: flex; flex-direction: column; flex: 1; }
.arcade-info .seo-game-card h2 { font-size: 22px; }
.arcade-info .seo-game-card p { font-size: 14px; }
.arcade-info .seo-game-card div > span { margin-top: auto; padding-top: 14px; border-top: 1px dashed #58446c; color: #ffdc91; }
.arcade-rules ol { padding-left: 25px; }
.arcade-rules li { padding: 9px 0 9px 7px; border-bottom: 1px dashed #43344f; }
.arcade-rules li::marker { color: #80edc8; font-weight: 900; }

/* Lobby: game selection cabinets and a separate start console. */
.arcade-theme .room-container { padding-top: 30px; }
.arcade-theme .lobby-head { gap: 20px; padding: 24px; border: 1px solid #674a80; border-radius: 15px; background: linear-gradient(115deg, #271b36, #161321); }
.arcade-theme .lobby-head h1 { margin: 9px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.arcade-theme .lobby-head .room-code-box { flex-wrap: wrap; justify-content: center; }
.arcade-theme .game-picker { border-top: 3px solid #c2a0ff; }
.arcade-theme .game-choice-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.arcade-theme .game-choice { min-width: 0; padding: 12px 8px; justify-content: flex-start; border-radius: 10px 10px 5px 5px; box-shadow: 0 4px 0 #080710; }
.arcade-theme .game-choice .arcade-choice-art { display: grid; place-items: center; width: 100%; height: 76px; border: 3px solid #0b0b16; border-radius: 5px; background: radial-gradient(ellipse, #3b294c, #15111f); font-size: 32px; overflow: hidden; }
.arcade-choice-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.arcade-theme .game-choice b { line-height: 1.5; }
.arcade-theme .game-choice .game-choice-badges { position: static; order: -1; width: 100%; min-height: 15px; }
.arcade-theme .game-choice.selected { outline: 2px solid #80edc8; outline-offset: 2px; }
.arcade-theme .game-picker.locked .game-choice-grid { grid-template-columns: minmax(160px, 240px); }
.arcade-theme .lobby-actions { border-radius: 14px; background: linear-gradient(160deg, #21352f, #171421 48%); }
.arcade-theme .lobby-actions #lobby-guide { line-height: 1.8; }
.arcade-theme .lobby-actions button { min-height: 48px; }
.arcade-theme #room-message:empty { min-height: 0; margin-bottom: 0; }
.arcade-theme .room-entry-guide { border-radius: 10px; border-color: #8662a5; background: #281d35; }
.arcade-theme .entry-grid > .panel, .arcade-theme .public-rooms-panel { border-top: 3px solid #80edc8; }
.arcade-theme .lobby-progress { padding: 16px 5px; }
.arcade-theme .lobby-quick-chat { border-top-color: #b799e5; }

/* Account and result cabinets: preserve forms, modal focus and action IDs. */
.arcade-theme .account-panel { background: linear-gradient(155deg, #2c1f3b, #16131f 55%); }
.arcade-theme .account-view > .eyebrow { display: inline-block; padding: 6px 9px; border: 1px solid #826495; border-radius: 5px; color: #ffdc91; background: #0d0b17; letter-spacing: .1em; }
.arcade-theme .account-view > .muted { font-size: 13px; line-height: 1.75; }
.arcade-theme .account-view input:not([type="checkbox"]) { min-height: 46px; }
.arcade-theme .account-consents { padding: 14px 12px; border: 1px solid #4e3b60; border-radius: 9px; background: #100e1b; }
.arcade-theme .account-collection { line-height: 1.8; }
.arcade-theme #account-delete-form { border-top: 1px dashed #89506a; padding-top: 20px; }
.arcade-theme .result-panel { background: radial-gradient(ellipse at top, #71532438, transparent 65%), #191423; }
.arcade-theme .result-panel > .eyebrow { display: inline-block; padding: 8px 14px; border: 1px solid #a48653; background: #100d18; border-radius: 5px; }
.arcade-theme .rank-list { padding: 8px; border: 1px solid #54415e; border-radius: 10px; background: #100d18; }
.arcade-theme .rank-list li { overflow-wrap: anywhere; text-align: left; font-size: 15px; }
.arcade-theme .rank-list li::before { flex: 0 0 35px; font-family: ui-monospace, monospace; }
.arcade-theme .result-actions { flex-wrap: wrap; }
.arcade-theme .result-actions #rematch-btn { flex: 1 1 100%; min-height: 48px; font-size: 16px; }
.arcade-theme .welcome { border-top: 3px solid #c3a0ff; }
.arcade-theme .welcome .logo { color: #ffe0a4; background: #342245; border: 2px solid #b18ad5; box-shadow: 4px 4px 0 #080710; }
.arcade-theme .not-found-code { color: #ffdc91; text-shadow: 4px 4px 0 #6c416d; }
@media(max-width: 900px) {
  .arcade-detail-hero { grid-template-columns: minmax(0, 1fr) 190px; padding: 25px; gap: 22px; }
  .arcade-theme .game-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arcade-theme .lobby-head { flex-direction: column; align-items: stretch; }
}
@media(max-width: 600px) {
  .arcade-info .info-page { padding-top: 25px; }
  .arcade-detail-hero { display: flex; flex-direction: column-reverse; align-items: stretch; padding: 20px; }
  .arcade-preview-frame { max-width: 224px; align-self: center; width: 100%; }
  .arcade-info .seo-game-card > .arcade-card-art { height: 130px; }
  .arcade-info .info-section { scroll-margin-top: 20px; }
  .arcade-info .seo-actions > a { flex: 1 1 100%; }
  .arcade-theme .lobby-head { padding: 18px 12px; }
  .arcade-theme .game-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .arcade-theme .game-choice { padding: 9px 4px; }
  .arcade-theme .game-choice .arcade-choice-art { height: 58px; }
  .arcade-theme .room-code-box { gap: 8px; padding: 12px 8px; }
  .arcade-theme .room-code-box strong { font-size: 23px; }
}
@media(prefers-reduced-motion: reduce) {
  .arcade-info .seo-game-card { transition: none; }
  .arcade-info .seo-game-card:hover { transform: none; }
}
