
.arcade_page { width: min(1040px, calc(100% - 2rem)); margin: 1.5rem auto 7rem; color: #f4f7fb; }
.arcade_title h1 { font-size: 32px; font-weight: normal; line-height: 1.1; }
.arcade_title { margin-bottom: 0; }
.arcade_panel { margin-top: 1rem; padding: 0.85rem; background: var(--skin-panel-dark); border: 3px solid var(--skin-ink); box-shadow: 4px 4px 0 #000; }
.arcade_heading { margin: 0.2rem 0 0.75rem; font-size: 20px; font-weight: normal; line-height: 1.2; }
.arcade_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.65rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.arcade_card { min-width: 0; }
.arcade_card_link { display: flex; align-items: center; gap: 0.7rem; height: 100%; padding: 0.6rem; color: inherit; background: #4a5462; border: 3px solid #1a1c22; box-shadow: 3px 3px 0 #000; }
.arcade_card_link:hover, .arcade_card_link:focus-visible { background: #5c697a; border-color: #78beff; outline: none; }
.arcade_card_icon { display: grid; flex: 0 0 64px; place-items: center; width: 64px; height: 64px; overflow: hidden; background: #333941; border: 3px solid #1a1c22; }
.arcade_card_icon img { width: 100%; height: 100%; object-fit: cover; }
.arcade_card_text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.arcade_card_title { overflow: hidden; font-size: 16px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.arcade_card_dev { overflow: hidden; font-size: 13px; color: #d5dce6; white-space: nowrap; text-overflow: ellipsis; }
.arcade_card_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 12px; color: #d5dce6; }
.arcade_badge { display: inline-block; padding: 0.1rem 0.35rem; font-size: 12px; line-height: 1.3; color: #1a1c22; background: #a4d14e; border: 2px solid #1a1c22; }
a.arcade_badge:hover, a.arcade_badge:focus-visible { background: #78beff; }
.arcade_search { display: flex; gap: 0.5rem; margin-top: 1rem; }
.arcade_search_input { flex: 1; min-width: 0; padding: 0.4rem 0.55rem; font: inherit; font-size: 16px; color: #1a1c22; background: #f4f6fa; border: 3px solid #1a1c22; border-radius: 0; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45); }
.arcade_search_input:focus { outline: 3px solid #78beff; outline-offset: 0; }
.arcade_search .news_text_button, .arcade_sorts .news_text_button, .arcade_pager .news_text_button { margin-top: 0; }
.arcade_sorts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.arcade_sort[aria-current="page"] { background: #78beff; }
.arcade_pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.arcade_more { display: flex; justify-content: center; }
.arcade_sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arcade_menu > summary { list-style: none; cursor: pointer; }
.arcade_menu > summary::-webkit-details-marker { display: none; }
.arcade_menu[open] > summary, .menu_trigger[aria-current="page"] { color: #f4f6fa; background: #1a1c22; }
.arcade_back { margin-bottom: 0.75rem; }
.desk_window.is-stacked.desk_window_play.arcade_window { width: min(100%, 860px, calc((82vh - 40px) * 16 / 9)); max-width: none; margin-inline: auto; }
.desk_window.is-stacked.desk_window_play.arcade_window .desk_window_body { aspect-ratio: 16 / 9; height: auto; max-height: none; }
.desk_window.is-stacked.desk_window_play.arcade_window.is-portrait { width: min(100%, 440px, calc((86vh - 40px) * 9 / 16)); }
.desk_window.is-stacked.desk_window_play.arcade_window.is-portrait .desk_window_body { aspect-ratio: 9 / 16; }
.desk_window_title .desk_window_title_text { font-size: 16px; }
.arcade_info { max-width: 860px; margin-inline: auto; }
.arcade_by { font-size: 18px; }
.arcade_stats { margin-top: 0.35rem; font-size: 13px; color: #d5dce6; }
.arcade_description { margin-top: 0.75rem; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.arcade_tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; padding: 0; list-style: none; }
.arcade_shots { display: flex; gap: 0.5rem; margin-top: 0.85rem; overflow-x: auto; }
.arcade_shots img { flex: 0 0 auto; max-height: 220px; border: 3px solid #1a1c22; image-rendering: auto; }
/* Play button: icon, Play, title and maker, one tap target. */
.arcade_start { gap: 0.55rem; color: #f4f6fa; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); }
.arcade_start_icon { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; border: 3px solid #1a1c22; background: #1a1c22; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); }
.arcade_start_play { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.4rem 0.55rem 0.9rem; color: #1a1a1a; text-shadow: none; background: #a6e04a; border: 3px solid #1a1c22; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); font-family: "StrayPixel", monospace; font-size: 28px; line-height: 1; -webkit-font-smoothing: none; }
.arcade_start_play .webplayer-play-icon { width: 40px; height: 40px; filter: none; }
.arcade_start:hover .arcade_start_play, .arcade_start:focus-visible .arcade_start_play { background: #c4f070; }
.arcade_start_title { font-family: "StrayPixel", monospace; font-size: 18px; line-height: 1.3; -webkit-font-smoothing: none; }
.arcade_start_by { font-size: 13px; color: #e2e7ef; }
.arcade_home_hint[hidden] { display: none; }
.arcade_home_hint { width: fit-content; max-width: min(100%, 860px); box-sizing: border-box; margin: -0.25rem auto 0.75rem; padding: 0.3rem 0.6rem; font-size: 12px; color: #e2e7ef; text-align: center; background: rgba(15, 17, 22, 0.75); }
.arcade_home_hint_close { margin-left: 0.4rem; padding: 0 0.35rem; color: inherit; background: none; border: 1px solid currentColor; cursor: pointer; }
/* Short landscape phones: keep the whole player window, and its Play button, above the fold. */
@media (orientation: landscape) and (max-height: 540px) {
  .arcade_back { margin-bottom: 0.4rem; }
  .desk_window.is-stacked.desk_window_play.arcade_window { width: min(100%, 860px, calc((100svh - 150px) * 16 / 9)); }
  .desk_window.is-stacked.desk_window_play.arcade_window.is-portrait { width: min(100%, 440px, calc((100svh - 150px) * 9 / 16)); }
  .arcade_start { gap: 0.3rem; }
  .arcade_start_icon { width: 48px; height: 48px; }
  .arcade_start_play { font-size: 22px; }
  .arcade_start_play .webplayer-play-icon { width: 28px; height: 28px; }
}
/* Immersive player (touch screens): Play covers the whole visual viewport, fullscreen
   where the browser allows it. Inside the safe area; nothing scrolls behind it. */
.webplayer-shell.is-immersive { position: fixed; inset: 0; z-index: 10000; width: 100vw; height: 100vh; height: 100dvh; box-sizing: border-box; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: #000; }
.webplayer-shell.is-immersive .webplayer-frame { background: #000; }
html.arcade-immersive, html.arcade-immersive body { overflow: hidden; overscroll-behavior: none; touch-action: none; }
html.arcade-immersive .menu_bar, html.arcade-immersive footer { visibility: hidden; }
.arcade_player_close { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 6px); left: calc(env(safe-area-inset-left, 0px) + 6px); width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; color: #f4f6fa; font-size: 22px; line-height: 1; background: rgba(0, 0, 0, 0.45); border: 0; border-radius: 6px; opacity: 0.7; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.arcade_player_close:hover, .arcade_player_close:focus-visible { opacity: 1; }
.arcade_rotate { display: none; position: absolute; inset: 0; z-index: 2; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; color: #f4f6fa; text-align: center; background: #0b0d12; font-family: "StrayPixel", monospace; font-size: 18px; }
.arcade_rotate_phone { width: 44px; height: 72px; border: 4px solid #f4f6fa; border-radius: 8px; animation: arcade-rotate 1.6s steps(4, end) infinite; }
.arcade_rotate_hint { font-family: inherit; font-size: 12px; color: #c9d1dc; }
@keyframes arcade-rotate { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
.webplayer-shell[data-orientation="portrait"] .arcade_rotate_phone { animation-name: arcade-rotate-back; }
@keyframes arcade-rotate-back { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }
@media (pointer: coarse) and (orientation: portrait) { .webplayer-shell.is-immersive[data-orientation="landscape"] .arcade_rotate { display: flex; } }
@media (pointer: coarse) and (orientation: landscape) { .webplayer-shell.is-immersive[data-orientation="portrait"] .arcade_rotate { display: flex; } }
.arcade_app_only { cursor: default; }
.arcade_store { margin-top: 0.25rem; }
.arcade_gone { max-width: 640px; margin: 3rem auto 0; text-align: center; }
.arcade_gone .news_text_button { margin-top: 0.5rem; }
@media (max-width: 640px) {
  .arcade_page { width: calc(100% - 1.25rem); margin-top: 1rem; }
  .arcade_grid { grid-template-columns: 1fr; }
}
