* {
  box-sizing: border-box;
}

/* EMULATORJS_TOUCH_OVERLAY_CLEANUP_V1 */
.play-emulator-runtime .ejs_virtualGamepad_parent {
  pointer-events: none !important;
}

.play-emulator-runtime .ejs_virtualGamepad_left,
.play-emulator-runtime .ejs_virtualGamepad_right,
.play-emulator-runtime .ejs_virtualGamepad_top,
.play-emulator-runtime .ejs_virtualGamepad_bottom {
  pointer-events: auto !important;
  background: transparent !important;
}

.play-emulator-runtime .ejs_virtualGamepad_top,
.play-emulator-runtime .ejs_virtualGamepad_bottom {
  width: auto !important;
  min-width: 0 !important;
}

.play-emulator-runtime .ejs_virtualGamepad_button {
  border-color: rgba(226, 244, 255, .58) !important;
  background: rgba(7, 18, 27, .30) !important;
  color: rgba(238, 247, 255, .86) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.play-emulator-runtime .ejs_virtualGamepad_button.b_start,
.play-emulator-runtime .ejs_virtualGamepad_button.b_select {
  width: auto !important;
  min-width: 58px !important;
  height: 28px !important;
  line-height: 26px !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  background: rgba(7, 18, 27, .34) !important;
}

.play-emulator-runtime .ejs_virtualGamepad_button.b_speed_fast,
.play-emulator-runtime .ejs_virtualGamepad_button.b_speed_slow,
.play-emulator-runtime .ejs_virtualGamepad_button.b_speed_rewind,
.play-emulator-runtime .ejs_virtualGamepad_button[data-arcade-hidden-pill="true"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.play-emulator-runtime .ejs_dpad_main {
  opacity: .72 !important;
}

.play-emulator-runtime .ejs_dpad_bar {
  background: rgba(7, 18, 27, .34) !important;
  border: 1px solid rgba(226, 244, 255, .34) !important;
}

.play-emulator-runtime .ejs_dpad_horizontal,
.play-emulator-runtime .ejs_dpad_vertical {
  overflow: visible !important;
}

@media (max-width: 820px) {
  .play-emulator-runtime .ejs_virtualGamepad_button {
    background: rgba(7, 18, 27, .24) !important;
  }

  .play-emulator-runtime .ejs_dpad_bar {
    background: rgba(7, 18, 27, .24) !important;
  }
}

.play-page {
  margin: 0;
  min-height: 100vh;
  background: #111821;
  color: #f5f7fa;
  font-family: Arial, Helvetica, sans-serif;
}

.play-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(11, 20, 31, .98), rgba(11, 20, 31, .72) 42%, rgba(11, 20, 31, .35)),
    linear-gradient(0deg, #111821 0%, rgba(17, 24, 33, .1) 42%),
    var(--game-background) center / cover;
}

.play-hero-content {
  width: min(980px, 100%);
}

.play-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #8ea4bb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.play-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
}

.play-meta {
  margin-top: 12px;
  color: #c7d5e0;
  font-size: 16px;
}

.play-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.play-genre {
  border-radius: 999px;
  padding: 8px 12px;
  background: #1b2a3a;
  color: #dbe7f3;
  font-size: 13px;
  font-weight: 800;
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.play-button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: #223245;
  color: #dbe7f3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.play-button-primary {
  background: #66c0f4;
  color: #07111c;
}

.play-main {
  padding: 28px 42px 54px;
}

.play-emulator-panel {
  margin-bottom: 22px;
}

.play-emulator-frame {
  min-height: 420px;
  border-radius: 8px;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.play-emulator-placeholder {
  text-align: center;
  color: #dbe7f3;
}

.play-emulator-title {
  font-size: 28px;
  font-weight: 900;
}

.play-emulator-subtitle {
  margin: 8px 0 18px;
  color: #8ea4bb;
}

.play-save-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-bottom: 54px;
}

.play-save-panel,
.play-help-panel {
  background: #1a2838;
  border: 1px solid #26384c;
  border-radius: 8px;
  padding: 16px;
}

.play-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.play-panel-title {
  margin: 0;
  font-size: 20px;
}

.play-panel-subtitle {
  color: #8ea4bb;
  font-size: 13px;
}

.play-save-slots {
  display: grid;
  gap: 8px;
}

.play-save-slot {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 7px;
  background: #121b27;
  padding: 10px;
}

.play-save-slot-last {
  outline: 1px solid rgba(102, 192, 244, .35);
}

.play-save-name {
  font-weight: 900;
}

.play-save-state {
  margin-top: 4px;
  color: #8ea4bb;
  font-size: 13px;
}

.play-save-state-saved {
  color: #4ade80;
}

.play-save-state-empty {
  color: #9aa7b4;
}

.play-save-actions {
  display: flex;
  gap: 8px;
}

.play-icon-button {
  min-width: 64px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: #27425a;
  color: #dbe7f3;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.play-help-row {
  color: #c7d5e0;
  font-size: 14px;
  line-height: 1.55;
}

.play-description {
  max-width: 1100px;
}

.play-section-title {
  margin: 0 0 14px;
  font-size: 26px;
}

.play-description-text {
  margin: 0;
  color: #dbe7f3;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .play-hero {
    min-height: 360px;
    padding: 28px 18px;
  }

  .play-title {
    font-size: 34px;
  }

  .play-main {
    padding: 20px 18px 42px;
  }

  .play-save-layout {
    grid-template-columns: 1fr;
  }

  .play-panel-header,
  .play-save-slot {
    align-items: flex-start;
    flex-direction: column;
  }
}

.play-social {
  max-width: 1100px;
  margin-bottom: 54px;
}

.play-social-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.play-social-subtitle {
  margin-top: 5px;
  color: #8ea4bb;
  font-size: 14px;
}

.play-rating-summary {
  min-width: 150px;
  border-radius: 8px;
  background: #1a2838;
  border: 1px solid #26384c;
  color: #facc15;
  font-size: 18px;
  font-weight: 900;
  padding: 12px;
  text-align: center;
}

.play-rating-count {
  display: block;
  margin-top: 4px;
  color: #8ea4bb;
  font-size: 12px;
  font-weight: 700;
}

.play-comments {
  display: grid;
  gap: 10px;
}

.play-comment {
  background: #1a2838;
  border: 1px solid #26384c;
  border-radius: 8px;
  padding: 14px;
}

.play-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.play-comment-author {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--arcade-accent-border, #3b536c);
  border-radius: 7px;
  background: var(--arcade-surface-strong, #223245);
  color: var(--arcade-accent, #66c0f4);
  font-weight: 900;
  text-decoration: none;
  padding: 5px 10px;
}

.play-comment-author:hover {
  border-color: var(--arcade-accent, #66c0f4);
  color: var(--arcade-text, #f5f7fa);
}

.play-comment-date {
  color: #8ea4bb;
  font-size: 12px;
}

.play-comment-body {
  color: #dbe7f3;
  line-height: 1.5;
}

.play-comment-empty {
  color: #8ea4bb;
  background: #1a2838;
  border: 1px solid #26384c;
  border-radius: 8px;
  padding: 14px;
}

@media (max-width: 700px) {
  .play-social-header {
    flex-direction: column;
  }

  .play-rating-summary {
    width: 100%;
  }
}

.play-social {
  background: #1a2838;
  border: 1px solid #26384c;
  border-radius: 8px;
  padding: 18px;
  min-height: 180px;
}

.play-social-header {
  border-bottom: 1px solid #26384c;
  padding-bottom: 14px;
}

.play-comments {
  margin-top: 14px;
}

.play-description {
  margin-top: 18px;
}

.play-meta-link {
  color: #66c0f4;
  font-weight: 800;
  text-decoration: none;
}

.play-meta-link:hover,
.play-genre:hover {
  text-decoration: underline;
}

.play-meta-link {
  color: #66c0f4;
  font-weight: 800;
  text-decoration: none;
}

.play-meta-link:hover,
.play-genre:hover {
  text-decoration: underline;
}

.play-social {
  margin-top: 30px;
}

.play-save-panel-locked {
  position: relative;
}

.play-save-login {
  border-radius: 7px;
  background: #27425a;
  color: #dbe7f3;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.play-save-slot-disabled {
  opacity: .78;
}

.play-icon-button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.play-help-panel {
  align-self: start;
}

.play-help-row {
  margin-top: 6px;
}

.play-save-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.play-panel-title {
  font-size: 19px;
}

.play-panel-subtitle {
  font-size: 12px;
}

.play-save-login {
  background: rgba(102, 192, 244, .14);
  border: 1px solid rgba(102, 192, 244, .35);
  color: #66c0f4;
  white-space: nowrap;
}

.play-save-name {
  font-size: 15px;
}

.play-save-state {
  font-size: 12px;
}

.play-icon-button {
  min-width: 66px;
  min-height: 32px;
  font-size: 12px;
}

.play-help-row {
  margin-top: 5px;
  color: #c7d5e0;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .play-save-layout {
    grid-template-columns: 1fr;
  }
}

.play-save-layout {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
}

.play-save-panel,
.play-help-panel {
  padding: 14px;
}

.play-panel-title {
  font-size: 18px;
  line-height: 1.1;
}

.play-panel-subtitle {
  font-size: 11px;
  line-height: 1.25;
}

.play-save-login {
  padding: 7px 9px;
  font-size: 11px;
}

.play-save-slot {
  min-height: 48px;
  padding: 8px 10px;
}

.play-save-name {
  font-size: 14px;
}

.play-save-state {
  font-size: 11px;
}

.play-save-actions {
  gap: 6px;
}

.play-icon-button {
  min-width: 54px;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
}

.play-help-row {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .play-save-layout {
    grid-template-columns: 1fr;
  }
}

.play-save-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
}

.play-save-panel,
.play-help-panel {
  padding: 16px;
  min-height: 260px;
}

.play-help-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.play-panel-title {
  font-size: 19px;
}

.play-panel-subtitle {
  font-size: 12px;
}

.play-help-row {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.32;
}

.play-save-slot {
  min-height: 52px;
}

.play-icon-button {
  min-width: 58px;
  min-height: 32px;
  font-size: 11px;
}

@media (max-width: 980px) {
  .play-save-layout {
    grid-template-columns: 1fr;
  }

  .play-save-panel,
  .play-help-panel {
    min-height: auto;
  }
}

.play-save-layout {
  margin-bottom: 54px;
}

.play-save-layout {
  margin-bottom: 64px;
}

.play-save-layout {
  margin-bottom: 72px;
}

.play-description {
  padding-top: 8px;
  margin-bottom: 42px;
}

.play-description .play-section-title {
  margin-bottom: 20px;
}

.play-description {
  border-top: 1px solid rgba(38, 56, 76, .7);
  padding-top: 34px;
}

.play-content-card {
  background: #1a2838;
  border: 1px solid #26384c;
  border-radius: 8px;
  padding: 18px;
}

.play-description {
  margin-top: 0;
  margin-bottom: 30px;
}

.play-save-layout {
  margin-bottom: 36px;
}

.play-content-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.play-description {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 42px;
}

.play-description {
  padding-top: 28px;
  border-top: 1px solid rgba(38, 56, 76, .45);
}

.play-save-layout {
  margin-bottom: 48px;
}

.play-description {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 42px;
  max-width: 1120px;
}

.play-description .play-section-title {
  margin-bottom: 18px;
}

.play-help-row {
  font-size: 0;
  line-height: 0;
}

.play-help-row:nth-of-type(1)::after {
  content: "💾 Save";
}

.play-help-row:nth-of-type(2)::after {
  content: "⬇️ Load";
}

.play-help-row:nth-of-type(3)::after {
  content: "🗑 Delete";
}

.play-help-row:nth-of-type(4)::after {
  content: "⭐ Last used";
}

.play-help-row:nth-of-type(5)::after {
  content: "🟢 Saved";
}

.play-help-row:nth-of-type(6)::after {
  content: "⚪ Empty";
}

.play-help-row::after {
  display: block;
  color: #c7d5e0;
  font-size: 12px;
  line-height: 1.45;
}

/* Final play page vertical rhythm */
.play-save-layout {
  margin-bottom: 88px !important;
}

.play-description {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* Final save/help horizontal spacing */
.play-save-layout {
  gap: 28px !important;
  margin-bottom: 48px !important;
}

.play-save-layout {
  margin-bottom: 48px !important;
}

/* Final save/help card sizing */
.play-save-layout {
  grid-template-columns: minmax(0, 760px) 280px !important;
  justify-content: start;
  gap: 32px !important;
  margin-bottom: 48px !important;
}

.play-save-panel {
  width: 100%;
}

.play-help-panel {
  width: 280px;
}

@media (max-width: 1100px) {
  .play-save-layout {
    grid-template-columns: 1fr !important;
  }

  .play-help-panel {
    width: 100%;
  }
}

/* Quick Help internal spacing */
.play-help-panel .play-panel-title {
  margin-bottom: 14px;
}

.play-help-panel .play-help-row:first-of-type {
  margin-top: 0;
}

.play-help-panel .play-panel-title {
  margin-bottom: 18px;
}

/* Restore desktop save/help layout */
.play-save-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin-bottom: 48px !important;
}

.play-help-panel {
  width: auto !important;
}

.play-help-panel .play-panel-title {
  margin-bottom: 18px !important;
}

@media (max-width: 760px) {
  .play-save-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Narrow Quick Help card */
.play-save-layout {
  grid-template-columns: minmax(0, 1fr) 220px !important;
}

.play-help-panel {
  max-width: 220px !important;
}

.play-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 0;
}

.play-topbar-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.play-topbar-logo {
  color: #f4f8ff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
}

.play-topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.play-topbar-link {
  color: #c6d3e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.play-topbar-link:hover,
.play-topbar-logo:hover {
  color: #9dddff;
}

.play-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-topbar-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #34506c;
  border-radius: 8px;
  background: rgba(20, 33, 49, 0.9);
  color: #9dddff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.play-topbar-download:hover {
  border-color: #67c8ff;
  color: #c8efff;
}

@media (max-width: 820px) {
  .play-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .play-topbar-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

.play-site-header {
  padding: 0 24px;
  border-bottom: 1px solid #223244;
  background: #131d29;
}

.play-site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  flex-wrap: nowrap;
}

.play-site-header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.play-site-logo {
  color: #f4f8ff;
  text-decoration: none;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.play-site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.play-site-nav-link {
  color: #c4d0dc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.play-site-logo:hover,
.play-site-nav-link:hover,
.play-site-auth-link:hover {
  color: #9dddff;
}

.play-site-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.play-site-auth-link {
  color: #c4d0dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.play-site-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #34506c;
  border-radius: 8px;
  background: #142131;
  color: #9dddff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.play-site-auth-button:hover {
  border-color: #67c8ff;
  color: #c8efff;
}

.play-back-link {
  display: none !important;
}

@media (max-width: 900px) {
  .play-site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .play-site-header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .play-site-nav {
    flex-wrap: wrap;
  }

  .play-site-auth {
    margin-left: 0;
  }
}

/* Shared play page header */
.play-site-header {
  position: relative;
  z-index: 10;
  padding: 0 24px;
  border-bottom: 1px solid #223244;
  background: #131d29;
}

.play-site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  flex-wrap: nowrap;
}

.play-site-header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.play-site-logo {
  color: #f4f8ff;
  text-decoration: none;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.play-site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.play-site-nav-link {
  color: #c4d0dc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.play-site-logo:hover,
.play-site-nav-link:hover,
.play-site-auth-link:hover {
  color: #9dddff;
}

.play-site-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.play-site-auth-link {
  color: #c4d0dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.play-site-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #34506c;
  border-radius: 8px;
  background: #142131;
  color: #9dddff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.play-site-auth-button:hover {
  border-color: #67c8ff;
  color: #c8efff;
}

.play-topbar,
.play-back-link {
  display: none !important;
}

@media (max-width: 900px) {
  .play-site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .play-site-header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .play-site-nav {
    flex-wrap: wrap;
  }

  .play-site-auth {
    margin-left: 0;
  }
}

.play-topbar,
.play-back-link,
.play-site-header {
  display: none !important;
}

body > .site-header {
  position: relative;
  z-index: 20;
}

body > .site-header .site-header-search {
  display: block;
}

.play-page > .site-header {
  position: relative;
  z-index: 30;
}

.play-page .play-topbar {
  display: none !important;
}

/* Steam-like play detail layout */
.play-hero {
  min-height: 260px;
}

.play-hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px 42px;
}

.play-hero .play-meta,
.play-hero .play-genres,
.play-hero .play-actions {
  display: none !important;
}

.play-detail-main {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
  padding-top: 28px;
}

.play-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.play-detail-grid .play-emulator-panel {
  margin: 0;
}

.play-game-info-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid #223244;
  border-radius: 8px;
  background: #101925;
}

.play-game-info-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  background: #081018;
}

.play-game-info-description {
  color: #c7d4e2;
  font-size: 14px;
  line-height: 1.5;
}

.play-game-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.play-game-info-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.play-game-info-row dt {
  color: #7f93aa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.play-game-info-row dd {
  margin: 0;
  color: #dbe6f2;
  font-size: 14px;
  font-weight: 700;
}

.play-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 26px;
  padding: 12px;
  border: 1px solid #223244;
  border-radius: 8px;
  background: #101925;
}

.play-action-bar .play-button {
  min-height: 40px;
}

.play-action-bar .play-button[data-play-action="favorite"][aria-pressed="true"] {
  border-color: #67c8ff;
  color: #c8efff;
}


.play-action-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.play-action-bar .play-report-button {
  margin-left: auto !important;
}

.play-action-bar .play-button[data-play-action="share"].play-share-copied {
  border-color: #67c8ff;
  color: #c8efff;
}

.play-controls-panel {
  margin: -12px 0 26px;
  border: 1px solid rgba(67, 135, 190, .58);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 31, 45, .96), rgba(5, 18, 28, .96));
  color: #dbe6f2;
  overflow: hidden;
}

.play-controls-panel[hidden] {
  display: none !important;
}

.play-controls-head,
.play-controls-tabs,
.play-controls-body {
  padding: 14px 16px;
}

.play-controls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(67, 135, 190, .42);
  background: linear-gradient(90deg, rgba(48, 72, 92, .88), rgba(9, 78, 102, .62));
}

.play-controls-head h2 {
  margin: 0;
  font-size: 18px;
}

.play-controls-head p {
  margin: 3px 0 0;
  color: #9fb4c9;
  font-size: 13px;
  font-weight: 700;
}

.play-controls-close,
.play-controls-tabs button {
  min-height: 32px;
  border: 1px solid rgba(92, 190, 255, .42);
  border-radius: 6px;
  background: rgba(92, 190, 255, .12);
  color: #aee0ff;
  font-weight: 800;
}

.play-controls-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(67, 135, 190, .24);
}

.play-controls-tabs button {
  min-width: 96px;
  padding: 0 12px;
}

.play-controls-tabs button.is-active {
  border-color: rgba(101, 202, 255, .82);
  background: rgba(92, 190, 255, .22);
  color: #ffffff;
}

.play-controls-body {
  display: grid;
  gap: 14px;
}

.play-controls-toggle,
.play-controls-field {
  display: grid;
  gap: 8px;
  color: #c7d6e6;
  font-weight: 800;
}

.play-controls-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  width: fit-content;
}

.play-controls-toggle input {
  width: 18px;
  height: 18px;
}

.play-controls-field select {
  width: min(100%, 320px);
  min-height: 38px;
  border: 1px solid rgba(92, 190, 255, .42);
  border-radius: 6px;
  background: #071523;
  color: #dcecff;
  font-weight: 800;
}

.play-controls-map {
  display: grid;
  grid-template-columns: minmax(80px, 140px) 1fr;
  gap: 8px 16px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(4, 12, 20, .55);
}

.play-controls-map span,
.play-controls-status {
  color: #93a8bc;
  font-weight: 800;
}

.play-controls-map strong {
  color: #e7f3ff;
}

.play-controls-status {
  margin: 12px 0 0;
}

.play-controls-detect-gamepad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(92, 190, 255, .5);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 73, 104, .94), rgba(10, 44, 66, .94));
  color: #b8e6ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.play-controls-detect-gamepad:hover {
  border-color: rgba(116, 211, 255, .8);
  color: #fff;
}

body.play-touch-disabled .arcade-touch-controls {
  display: none !important;
}

@media (max-width: 960px) {
  .play-detail-grid {
    grid-template-columns: 1fr;
  }

  .play-game-info-panel {
    order: -1;
  }
}

/* PLAY_TOUCH_DISABLED_FINAL_V1 */
body.play-touch-disabled .arcade-touch-controls,
body.play-controls-visible.play-touch-disabled .arcade-touch-controls,
body.play-controls-hidden.play-touch-disabled .arcade-touch-controls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* PLAY_HEADER_DESKTOP_NO_WRAP_V1 */
@media (min-width: 821px) {
  .play-page > .site-header .site-header-inner {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    min-height: 72px !important;
  }

  .play-page > .site-header .site-header-main {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  .play-page > .site-header .site-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }

  .play-page > .site-header .site-header-search {
    display: block !important;
    flex: 0 1 320px !important;
    width: 320px !important;
    min-width: 220px !important;
    max-width: 340px !important;
  }

  .play-page > .site-header .site-header-auth {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 10px !important;
    white-space: nowrap !important;
  }
}

.play-game-info-description {
  display: none !important;
}

.play-game-info-link {
  color: #67c8ff;
  text-decoration: none;
}

.play-game-info-link:hover {
  color: #c8efff;
  text-decoration: underline;
}

.play-game-info-panel {
  min-height: 420px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.play-game-info-cover {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
}

.play-game-info-list {
  align-self: end;
  padding-top: 12px;
  border-top: 1px solid #223244;
}

.play-detail-main {
  position: relative;
}

.play-detail-grid {
  position: relative;
}

.play-emulator-frame {
  border: 1px solid #1f3044;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(103, 200, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #05080d 0%, #020407 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 18px 50px rgba(0,0,0,0.28);
}

.play-emulator-placeholder {
  color: #dbe6f2;
}

.play-emulator-title {
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(103, 200, 255, 0.18);
}

.play-game-info-panel {
  position: relative;
  overflow: hidden;
  border-color: #2b4058;
  background:
    linear-gradient(180deg, rgba(20, 33, 49, 0.96), rgba(12, 20, 31, 0.98)),
    #101925;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.play-game-info-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(103,200,255,0.12), transparent 38%);
}

.play-game-info-cover {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.28);
}

.play-game-info-list {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(103, 200, 255, 0.16);
}

.play-game-info-row {
  grid-template-columns: 86px minmax(0, 1fr);
}

.play-game-info-row dt {
  color: #8ea2b8;
}

.play-game-info-row dd {
  color: #e3edf7;
}

.play-action-bar {
  border-color: #2b4058;
  background:
    linear-gradient(180deg, rgba(20, 33, 49, 0.92), rgba(14, 23, 35, 0.92)),
    #101925;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.play-action-bar .play-button {
  border-color: #2c435c;
  background: #1a2b3f;
  color: #dbe6f2;
}

.play-action-bar .play-button:hover {
  border-color: #67c8ff;
  color: #c8efff;
  transform: translateY(-1px);
}

/* Clean game info card reset */
.play-game-info-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 420px !important;
  padding: 14px !important;
  overflow: hidden !important;
  border: 1px solid #2b4058 !important;
  border-radius: 8px !important;
  background: #101925 !important;
  box-shadow: none !important;
}

.play-game-info-panel::before {
  display: none !important;
}

.play-game-info-cover {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 300px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #081018 !important;
  box-shadow: none !important;
}

.play-game-info-list {
  flex: 0 0 auto !important;
  display: grid !important;
  gap: 10px !important;
  margin: 14px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #223244 !important;
  align-self: stretch !important;
}

.play-game-info-row {
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.play-game-info-row dt {
  color: #8ea2b8 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.play-game-info-row dd {
  margin: 0 !important;
  color: #dbe6f2 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Equalize emulator and info panel */
.play-detail-grid {
  align-items: stretch !important;
}

.play-emulator-panel,
.play-emulator-frame,
.play-game-info-panel {
  height: 420px !important;
  min-height: 420px !important;
}

.play-emulator-frame {
  height: 100% !important;
}

.play-game-info-panel {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 14px !important;
}

.play-game-info-cover {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.play-game-info-list {
  margin: 0 !important;
  padding-top: 12px !important;
}

@media (max-width: 960px) {
  .play-emulator-panel,
  .play-emulator-frame,
  .play-game-info-panel {
    height: auto !important;
    min-height: 0 !important;
  }

  .play-game-info-cover {
    height: auto !important;
    min-height: 260px !important;
  }
}


/* exact play page layout: emulator + narrow cover panel */
.play-detail-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.play-emulator-panel,
.play-emulator-frame,
.play-game-info-panel {
  height: 420px !important;
  min-height: 420px !important;
}

.play-emulator-frame {
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.play-emulator-runtime,
.play-emulator-runtime #game {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px !important;
  background: #000 !important;
}

.play-emulator-runtime iframe,
.play-emulator-runtime canvas,
.play-emulator-runtime #game > div {
  width: 100% !important;
  height: 100% !important;
}

.play-game-info-panel {
  width: 240px !important;
  max-width: 240px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

.play-game-info-cover {
  width: 100% !important;
  height: 275px !important;
  max-height: 275px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #050b12 !important;
  border-radius: 6px !important;
  flex: 0 0 auto !important;
}

.play-game-info-list {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(103, 178, 230, 0.18) !important;
  font-size: 13px !important;
}

.play-game-info-row {
  grid-template-columns: 74px minmax(0, 1fr) !important;
  gap: 8px !important;
}

@media (max-width: 900px) {
  .play-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .play-game-info-panel {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
  }
}


/* compact play action buttons */
.play-action-bar {
  gap: 8px !important;
  padding: 12px !important;
  align-items: center !important;
}

.play-action-bar .play-button {
  min-height: 32px !important;
  padding: 7px 14px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(91, 192, 246, 0.42) !important;
  background: rgba(31, 55, 78, 0.72) !important;
  color: #a9e0ff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.play-action-bar .play-button:hover,
.play-action-bar .play-button:focus-visible {
  background: rgba(42, 77, 109, 0.9) !important;
  border-color: rgba(91, 192, 246, 0.78) !important;
  color: #d9f3ff !important;
}

.play-action-bar .play-button-active,
.play-action-bar .play-button[aria-pressed="true"] {
  background: rgba(91, 192, 246, 0.18) !important;
  border-color: #5bc0f6 !important;
  color: #76d4ff !important;
}


/* hide old launch placeholder when EmulatorJS runtime is active */
.play-emulator-runtime ~ .play-emulator-placeholder,
.play-emulator-frame .play-emulator-placeholder {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.play-emulator-placeholder,
.play-emulator-title,
.play-emulator-subtitle,
.play-emulator-frame a.play-button-primary[href*="rom"] {
  display: none !important;
}


/* cloud save slot indicators */
.play-save-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.play-save-indicators {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.play-save-marker {
  display: inline-block;
  flex: 0 0 auto;
}

.play-save-marker-saved {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #28d75f;
  box-shadow: 0 0 0 2px rgba(40, 215, 95, 0.12);
}

.play-save-marker-empty {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d9e0e8;
  opacity: 0.75;
}

.play-save-marker-last {
  color: #ffd24a;
  font-size: 13px;
  line-height: 1;
}

.play-save-actions .play-button span {
  display: inline-block;
  margin-right: 5px;
}

.play-save-slot-saved .play-save-state {
  color: #b9c8d8;
}

.play-save-slot-last-used .play-save-name {
  color: #f5f8fc;
}

.play-save-slot-selected {
  outline: 1px solid rgba(103, 200, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(103, 200, 255, 0.2);
}

/* PLAY_MOBILE_STABILITY_V1 */
@media (max-width: 1024px) {
  .play-page > .site-header .site-header-inner {
    width: min(100%, calc(100vw - 24px)) !important;
    min-height: 56px !important;
    gap: 14px !important;
    padding: 0 12px !important;
  }

  .play-page > .site-header .site-logo {
    font-size: 27px !important;
    line-height: 1 !important;
  }

  .play-page > .site-header .site-nav {
    gap: 14px !important;
  }

  .play-page > .site-header .site-header-search {
    max-width: 280px !important;
  }

  .play-hero {
    min-height: 210px !important;
  }

  .play-hero-content {
    width: min(100%, calc(100vw - 32px)) !important;
    padding: 40px 16px 30px !important;
  }

  .play-detail-main {
    width: min(100%, calc(100vw - 32px)) !important;
    padding-top: 18px !important;
  }

  .play-detail-grid {
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 14px !important;
  }

  .play-emulator-panel,
  .play-emulator-frame,
  .play-game-info-panel {
    height: 360px !important;
    min-height: 360px !important;
  }

  .play-emulator-runtime,
  .play-emulator-runtime #game {
    min-height: 360px !important;
  }

  .play-game-info-panel {
    width: 220px !important;
    max-width: 220px !important;
  }

  .play-game-info-cover {
    height: 245px !important;
    max-height: 245px !important;
  }

  .play-save-layout {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 16px !important;
  }
}

@media (max-width: 820px) {
  .play-page > .site-header {
    position: sticky !important;
    top: 0 !important;
  }

  .play-page > .site-header .site-header-inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
    min-height: 64px !important;
    padding: 8px 10px !important;
  }

  .play-page > .site-header .site-header-main {
    width: 100% !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .play-page > .site-header .site-header-search {
    display: none !important;
  }

  .play-page > .site-header .site-header-auth {
    justify-content: center !important;
  }

  .play-hero {
    min-height: 150px !important;
  }

  .play-hero-content {
    padding: 28px 14px 22px !important;
  }

  .play-title {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  .play-detail-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .play-emulator-panel {
    order: 1 !important;
  }

  .play-game-info-panel {
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
  }

  .play-game-info-cover {
    width: 150px !important;
    height: 200px !important;
    max-height: 200px !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .play-game-info-list {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
  }

  .play-emulator-panel,
  .play-emulator-frame {
    height: auto !important;
    min-height: 0 !important;
  }

  .play-emulator-frame {
    aspect-ratio: 4 / 3 !important;
  }

  .play-emulator-runtime,
  .play-emulator-runtime #game {
    height: 100% !important;
    min-height: 0 !important;
  }

  .play-action-bar {
    margin: 12px 0 18px !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .play-action-bar .play-button {
    width: 100% !important;
    min-height: 36px !important;
    padding: 8px 8px !important;
  }

  .play-save-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 560px) {
  .play-page > .site-header .site-header-inner {
    align-items: center !important;
  }

  .play-page > .site-header .site-logo {
    font-size: 24px !important;
  }

  .play-page > .site-header .site-nav {
    width: 100% !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
  }

  .play-page > .site-header .site-nav::-webkit-scrollbar {
    display: none !important;
  }

  .play-detail-main {
    width: min(100%, calc(100vw - 24px)) !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .play-hero {
    min-height: 118px !important;
  }

  .play-hero-content {
    width: min(100%, calc(100vw - 24px)) !important;
    padding: 20px 12px 18px !important;
  }

  .play-title {
    font-size: 28px !important;
  }

  .play-game-info-panel {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  .play-game-info-cover {
    width: 96px !important;
    height: 128px !important;
    max-height: 128px !important;
  }

  .play-game-info-row {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  .play-game-info-row dt,
  .play-game-info-row dd {
    font-size: 12px !important;
  }

  .play-emulator-frame {
    aspect-ratio: 4 / 3 !important;
    border-radius: 7px !important;
  }

  .play-action-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .play-panel-header {
    display: grid !important;
    gap: 10px !important;
  }

  .play-save-login {
    justify-self: start !important;
  }

  .play-save-slot {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .play-save-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .play-icon-button {
    min-height: 34px !important;
    padding: 7px 6px !important;
    font-size: 11px !important;
  }
}


/* MOBILE_LANDSCAPE_PLAY_FIX_V1 */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .play-detail-main {
    width: min(100%, 720px) !important;
    margin: 0 auto !important;
    padding-inline: 16px !important;
  }

  .play-detail-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .play-emulator-panel {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .play-game-info-panel {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .play-action-bar,
  .play-save-layout {
    width: min(100%, 720px) !important;
    margin-inline: auto !important;
  }
}


/* PLAY_EMULATOR_FULLSCREEN_FALLBACK_V1 */
body.play-emulator-fullscreen-fallback {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

html.play-emulator-fullscreen-fallback {
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.play-emulator-fullscreen-fallback .site-header,
body.play-emulator-fullscreen-fallback .play-hero,
body.play-emulator-fullscreen-fallback .play-game-info-panel,
body.play-emulator-fullscreen-fallback .play-action-bar,
body.play-emulator-fullscreen-fallback .play-save-layout,
body.play-emulator-fullscreen-fallback .play-description,
body.play-emulator-fullscreen-fallback .play-social {
  display: none !important;
}

body.play-emulator-fullscreen-fallback .play-detail-main,
body.play-emulator-fullscreen-fallback .play-detail-grid,
body.play-emulator-fullscreen-fallback .play-emulator-panel {
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.play-emulator-fullscreen-fallback .play-emulator-frame,
body.play-emulator-fullscreen-fallback .play-emulator-runtime,
body.play-emulator-fullscreen-fallback #game {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
}

body.play-emulator-fullscreen-fallback #game canvas {
  max-width: 100vw !important;
  max-height: 100dvh !important;
}

#game .arcade-resume-overlay-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ARCADE_CUSTOM_TOUCH_DPAD_V1 */
.play-emulator-runtime {
  position: relative;
}

.arcade-touch-dpad {
  position: absolute;
  left: clamp(16px, 6vw, 54px);
  bottom: clamp(34px, 10vh, 110px);
  z-index: 100000;
  display: none;
  width: 132px;
  height: 132px;
  pointer-events: auto;
  touch-action: none;
}

@media (hover: none), (pointer: coarse) {
  .arcade-touch-dpad {
    display: block;
  }
}

.arcade-touch-dpad-button {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(226, 244, 255, .34);
  border-radius: 6px;
  background: rgba(7, 18, 27, .18);
  color: transparent;
  opacity: .72;
  box-shadow: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.arcade-touch-dpad-button::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  margin: auto;
  opacity: .58;
}

.arcade-touch-dpad-up {
  top: 0;
  left: 39px;
}

.arcade-touch-dpad-down {
  bottom: 0;
  left: 39px;
}

.arcade-touch-dpad-left {
  top: 39px;
  left: 0;
}

.arcade-touch-dpad-right {
  top: 39px;
  right: 0;
}

.arcade-touch-dpad-up::before {
  border-right: 9px solid transparent;
  border-bottom: 11px solid #eef8ff;
  border-left: 9px solid transparent;
}

.arcade-touch-dpad-down::before {
  border-top: 11px solid #eef8ff;
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
}

.arcade-touch-dpad-left::before {
  border-top: 9px solid transparent;
  border-right: 11px solid #eef8ff;
  border-bottom: 9px solid transparent;
}

.arcade-touch-dpad-right::before {
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 11px solid #eef8ff;
}

.arcade-touch-dpad-button.is-pressed {
  background: rgba(92, 190, 255, .2);
  opacity: .94;
}

#game .ejs_dpad_main,
#game .ejs_dpad_bar,
#game .ejs_dpad_horizontal,
#game .ejs_dpad_vertical {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ARCADE_FULL_CUSTOM_TOUCH_CONTROLS_V2 */
.play-emulator-runtime {
  position: relative;
}

#game .ejs_virtualGamepad_parent,
#game .ejs_virtualGamepad_button,
#game [class*="ejs_virtualGamepad"],
#game .ejs_dpad_main,
#game .ejs_dpad_bar,
#game .ejs_dpad_horizontal,
#game .ejs_dpad_vertical,
#game [class*="ejs_dpad"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.arcade-touch-controls {
  position: absolute;
  inset: 0;
  z-index: 100000;
  display: none;
  pointer-events: none;
  touch-action: none;
}

@media (hover: none), (pointer: coarse) {
  .arcade-touch-controls {
    display: block;
  }
}

body.play-controls-visible .arcade-touch-controls {
  display: block !important;
}

body.play-controls-hidden .arcade-touch-controls {
  display: none !important;
}

.play-rom-load-error {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #dcecff;
  text-align: center;
  font-weight: 800;
}

.play-rom-load-error button {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(92, 190, 255, .5);
  border-radius: 6px;
  background: rgba(92, 190, 255, .15);
  color: #9bd9ff;
  font-weight: 800;
}

.arcade-touch-dpad {
  position: absolute;
  left: clamp(16px, 5vw, 64px);
  bottom: clamp(34px, 8vh, 96px);
  width: 132px;
  height: 132px;
  display: block;
  pointer-events: auto;
  touch-action: none;
}

.arcade-touch-dpad-button,
.arcade-touch-face-button,
.arcade-touch-menu-button {
  border: 1px solid rgba(226, 244, 255, .42);
  background: rgba(7, 18, 27, .16);
  color: rgba(238, 247, 255, .9);
  box-shadow: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.arcade-touch-dpad-button {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 6px;
  color: transparent;
  opacity: .68;
}

.arcade-touch-dpad-button::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  margin: auto;
  opacity: .68;
}

.arcade-touch-dpad-up {
  top: 0;
  left: 39px;
}

.arcade-touch-dpad-down {
  bottom: 0;
  left: 39px;
}

.arcade-touch-dpad-left {
  top: 39px;
  left: 0;
}

.arcade-touch-dpad-right {
  top: 39px;
  right: 0;
}

.arcade-touch-dpad-up::before {
  border-right: 9px solid transparent;
  border-bottom: 11px solid #eef8ff;
  border-left: 9px solid transparent;
}

.arcade-touch-dpad-down::before {
  border-top: 11px solid #eef8ff;
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
}

.arcade-touch-dpad-left::before {
  border-top: 9px solid transparent;
  border-right: 11px solid #eef8ff;
  border-bottom: 9px solid transparent;
}

.arcade-touch-dpad-right::before {
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 11px solid #eef8ff;
}

.arcade-touch-face-buttons {
  position: absolute;
  right: clamp(16px, 5vw, 64px);
  bottom: clamp(58px, 10vh, 118px);
  display: flex;
  gap: 16px;
  align-items: center;
  pointer-events: auto;
}

.arcade-touch-face-button {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  opacity: .78;
}

.arcade-touch-menu-buttons {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 64px);
  display: flex;
  gap: 10px;
  pointer-events: auto;
  transform: translateX(-50%);
}

.arcade-touch-menu-button {
  min-width: 72px;
  height: 34px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 16px;
}

.arcade-touch-dpad-button.is-pressed,
.arcade-touch-face-button.is-pressed,
.arcade-touch-menu-button.is-pressed {
  background: rgba(92, 190, 255, .24);
  border-color: rgba(238, 247, 255, .72);
  opacity: .96;
}

@media (orientation: landscape) and (hover: none), (orientation: landscape) and (pointer: coarse) {
  .arcade-touch-dpad {
    left: clamp(12px, 4vw, 42px);
    bottom: clamp(18px, 7vh, 58px);
    transform: scale(.9);
    transform-origin: bottom left;
  }

  .arcade-touch-face-buttons {
    right: clamp(12px, 4vw, 42px);
    bottom: clamp(38px, 9vh, 84px);
    gap: 12px;
    transform: scale(.9);
    transform-origin: bottom right;
  }

  .arcade-touch-menu-buttons {
    bottom: clamp(14px, 4vh, 42px);
    transform: translateX(-50%) scale(.86);
  }
}

/* PLAY_MOBILE_CONTROLS_POLISH_V1 */
@media (hover: none), (pointer: coarse) {
  .play-emulator-frame {
    overflow: hidden !important;
  }

  .arcade-touch-dpad {
    left: clamp(12px, 4vw, 34px) !important;
    bottom: clamp(18px, 5.5vh, 56px) !important;
    width: 112px !important;
    height: 112px !important;
    transform: none !important;
  }

  .arcade-touch-dpad-button {
    width: 46px !important;
    height: 46px !important;
    border-radius: 7px !important;
    opacity: .42 !important;
    background: rgba(7, 18, 27, .1) !important;
  }

  .arcade-touch-dpad-up,
  .arcade-touch-dpad-down {
    left: 33px !important;
  }

  .arcade-touch-dpad-left,
  .arcade-touch-dpad-right {
    top: 33px !important;
  }

  .arcade-touch-face-buttons {
    right: clamp(12px, 4vw, 36px) !important;
    bottom: clamp(24px, 6vh, 66px) !important;
    gap: 12px !important;
    transform: none !important;
  }

  .arcade-touch-face-button {
    width: 62px !important;
    height: 62px !important;
    font-size: 28px !important;
    opacity: .48 !important;
    background: rgba(7, 18, 27, .1) !important;
  }

  .arcade-touch-menu-buttons {
    bottom: clamp(14px, 4vh, 42px) !important;
    gap: 8px !important;
    transform: translateX(-50%) !important;
  }

  .arcade-touch-menu-button {
    min-width: 58px !important;
    height: 28px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
    opacity: .5 !important;
    background: rgba(7, 18, 27, .12) !important;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .arcade-touch-dpad {
    bottom: clamp(44px, 12vh, 120px) !important;
  }

  .arcade-touch-face-buttons {
    bottom: clamp(58px, 13vh, 132px) !important;
  }

  .arcade-touch-menu-buttons {
    bottom: clamp(26px, 8vh, 78px) !important;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .play-detail-main {
    width: min(100%, 980px) !important;
    padding-inline: clamp(12px, 3vw, 28px) !important;
  }

  .play-detail-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.2fr) !important;
    gap: clamp(14px, 4vw, 48px) !important;
    align-items: start !important;
  }

  .play-emulator-panel {
    order: 2 !important;
  }

  .play-game-info-panel {
    order: 1 !important;
  }

  .play-action-bar,
  .play-save-layout {
    width: min(100%, 980px) !important;
  }

  .arcade-touch-dpad {
    left: clamp(12px, 3vw, 28px) !important;
    bottom: clamp(12px, 4vh, 32px) !important;
    width: 104px !important;
    height: 104px !important;
  }

  .arcade-touch-dpad-button {
    width: 42px !important;
    height: 42px !important;
  }

  .arcade-touch-dpad-up,
  .arcade-touch-dpad-down {
    left: 31px !important;
  }

  .arcade-touch-dpad-left,
  .arcade-touch-dpad-right {
    top: 31px !important;
  }

  .arcade-touch-face-buttons {
    right: clamp(12px, 3vw, 30px) !important;
    bottom: clamp(22px, 5vh, 44px) !important;
  }

  .arcade-touch-face-button {
    width: 56px !important;
    height: 56px !important;
    font-size: 25px !important;
  }

  .arcade-touch-menu-buttons {
    bottom: clamp(10px, 3vh, 26px) !important;
  }
}

body.play-emulator-fullscreen-fallback .arcade-touch-dpad {
  left: max(12px, env(safe-area-inset-left)) !important;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 34px)) !important;
}

body.play-emulator-fullscreen-fallback .arcade-touch-face-buttons {
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 54px)) !important;
}

body.play-emulator-fullscreen-fallback .arcade-touch-menu-buttons {
  bottom: max(12px, calc(env(safe-area-inset-bottom) + 18px)) !important;
}

/* PLAY_DPAD_VISIBLE_CROSS_AND_LANDSCAPE_FIX_V2 */
@media (hover: none), (pointer: coarse) {
  .arcade-touch-dpad {
    width: 140px !important;
    height: 140px !important;
    border: 1px solid rgba(226, 244, 255, .28) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(90deg, transparent 0 32%, rgba(226, 244, 255, .14) 32% 68%, transparent 68% 100%),
      linear-gradient(0deg, transparent 0 32%, rgba(226, 244, 255, .14) 32% 68%, transparent 68% 100%),
      rgba(7, 18, 27, .12) !important;
    opacity: .72 !important;
  }

  .arcade-touch-dpad::before {
    inset: 42% !important;
    border-radius: 999px !important;
    background: rgba(226, 244, 255, .16) !important;
    border: 1px solid rgba(226, 244, 255, .2) !important;
  }

  .arcade-touch-dpad-button {
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    background: transparent !important;
    opacity: .8 !important;
  }

  .arcade-touch-dpad-up,
  .arcade-touch-dpad-down {
    left: 48px !important;
  }

  .arcade-touch-dpad-left,
  .arcade-touch-dpad-right {
    top: 48px !important;
  }

  .arcade-touch-dpad-up {
    top: 6px !important;
  }

  .arcade-touch-dpad-down {
    bottom: 6px !important;
  }

  .arcade-touch-dpad-left {
    left: 6px !important;
  }

  .arcade-touch-dpad-right {
    right: 6px !important;
  }

  .arcade-touch-dpad.is-up .arcade-touch-dpad-up,
  .arcade-touch-dpad.is-down .arcade-touch-dpad-down,
  .arcade-touch-dpad.is-left .arcade-touch-dpad-left,
  .arcade-touch-dpad.is-right .arcade-touch-dpad-right {
    background: rgba(92, 190, 255, .18) !important;
    border-radius: 10px !important;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .play-detail-main {
    width: min(100%, 760px) !important;
    margin: 0 auto !important;
    padding-inline: 14px !important;
  }

  .play-detail-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .play-emulator-panel {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .play-game-info-panel {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .play-action-bar,
  .play-save-layout {
    width: min(100%, 760px) !important;
    margin-inline: auto !important;
  }

  .arcade-touch-dpad {
    left: clamp(10px, 3vw, 22px) !important;
    bottom: clamp(10px, 4vh, 28px) !important;
    width: 122px !important;
    height: 122px !important;
  }

  .arcade-touch-dpad-up,
  .arcade-touch-dpad-down {
    left: 41px !important;
  }

  .arcade-touch-dpad-left,
  .arcade-touch-dpad-right {
    top: 41px !important;
  }
}

/* PLAY_DIAGONAL_DPAD_V1 */
.arcade-touch-dpad {
  -webkit-user-select: none !important;
  user-select: none !important;
}

.arcade-touch-dpad::before {
  content: '';
  position: absolute;
  inset: 26%;
  border: 1px solid rgba(226, 244, 255, .22);
  border-radius: 8px;
  background: rgba(7, 18, 27, .08);
  pointer-events: none;
}

.arcade-touch-dpad.is-up .arcade-touch-dpad-up,
.arcade-touch-dpad.is-down .arcade-touch-dpad-down,
.arcade-touch-dpad.is-left .arcade-touch-dpad-left,
.arcade-touch-dpad.is-right .arcade-touch-dpad-right {
  background: rgba(92, 190, 255, .24) !important;
  border-color: rgba(238, 247, 255, .7) !important;
  opacity: .78 !important;
}

/* PLAY_MOBILE_CANONICAL_LAYOUT_V3 */
@media (hover: none), (pointer: coarse) {
  .play-detail-main {
    width: min(100%, 980px) !important;
    margin-inline: auto !important;
  }

  .play-detail-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .play-emulator-panel,
  .play-game-info-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .play-emulator-panel {
    order: 1 !important;
  }

  .play-game-info-panel {
    order: 2 !important;
  }

  .play-emulator-frame {
    overflow: hidden !important;
  }

  .arcade-touch-controls {
    pointer-events: none !important;
  }

  .arcade-touch-dpad,
  .arcade-touch-face-buttons,
  .arcade-touch-menu-buttons {
    pointer-events: auto !important;
  }

  .arcade-touch-dpad {
    left: clamp(12px, 4vw, 28px) !important;
    bottom: clamp(18px, 7vh, 70px) !important;
    width: 126px !important;
    height: 126px !important;
    border: 1px solid rgba(226, 244, 255, .28) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(90deg, transparent 0 34%, rgba(226, 244, 255, .12) 34% 66%, transparent 66% 100%),
      linear-gradient(0deg, transparent 0 34%, rgba(226, 244, 255, .12) 34% 66%, transparent 66% 100%),
      rgba(7, 18, 27, .08) !important;
    opacity: .62 !important;
    transform: none !important;
  }

  .arcade-touch-dpad::before {
    inset: 39% !important;
    border-radius: 999px !important;
    background: rgba(226, 244, 255, .11) !important;
    border: 1px solid rgba(226, 244, 255, .18) !important;
  }

  .arcade-touch-dpad-button {
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    opacity: .72 !important;
  }

  .arcade-touch-dpad-up,
  .arcade-touch-dpad-down {
    left: 44px !important;
  }

  .arcade-touch-dpad-left,
  .arcade-touch-dpad-right {
    top: 44px !important;
  }

  .arcade-touch-dpad-up {
    top: 8px !important;
  }

  .arcade-touch-dpad-down {
    bottom: 8px !important;
  }

  .arcade-touch-dpad-left {
    left: 8px !important;
  }

  .arcade-touch-dpad-right {
    right: 8px !important;
  }

  .arcade-touch-dpad.is-up .arcade-touch-dpad-up,
  .arcade-touch-dpad.is-down .arcade-touch-dpad-down,
  .arcade-touch-dpad.is-left .arcade-touch-dpad-left,
  .arcade-touch-dpad.is-right .arcade-touch-dpad-right {
    background: rgba(92, 190, 255, .18) !important;
    border-color: transparent !important;
    opacity: .9 !important;
  }

  .arcade-touch-face-buttons {
    right: clamp(12px, 4vw, 30px) !important;
    bottom: clamp(34px, 8vh, 76px) !important;
    gap: 14px !important;
    transform: none !important;
  }

  .arcade-touch-face-button {
    width: 64px !important;
    height: 64px !important;
    font-size: 30px !important;
    opacity: .56 !important;
    background: rgba(7, 18, 27, .1) !important;
  }

  .arcade-touch-menu-buttons {
    left: 50% !important;
    bottom: clamp(14px, 4.5vh, 38px) !important;
    gap: 8px !important;
    transform: translateX(-50%) !important;
  }

  .arcade-touch-menu-button {
    min-width: 62px !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    opacity: .52 !important;
    background: rgba(7, 18, 27, .12) !important;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .play-detail-main {
    width: min(100%, 760px) !important;
    padding-inline: 14px !important;
  }

  .play-action-bar,
  .play-save-layout {
    width: min(100%, 760px) !important;
    margin-inline: auto !important;
  }

  .arcade-touch-dpad {
    width: 112px !important;
    height: 112px !important;
    left: clamp(10px, 3vw, 18px) !important;
    bottom: clamp(10px, 4vh, 24px) !important;
  }

  .arcade-touch-dpad-button {
    width: 34px !important;
    height: 34px !important;
  }

  .arcade-touch-dpad-up,
  .arcade-touch-dpad-down {
    left: 39px !important;
  }

  .arcade-touch-dpad-left,
  .arcade-touch-dpad-right {
    top: 39px !important;
  }

  .arcade-touch-dpad-up {
    top: 8px !important;
  }

  .arcade-touch-dpad-down {
    bottom: 8px !important;
  }

  .arcade-touch-dpad-left {
    left: 8px !important;
  }

  .arcade-touch-dpad-right {
    right: 8px !important;
  }

  .arcade-touch-face-buttons {
    right: clamp(10px, 3vw, 22px) !important;
    bottom: clamp(18px, 5vh, 34px) !important;
    gap: 12px !important;
  }

  .arcade-touch-face-button {
    width: 58px !important;
    height: 58px !important;
    font-size: 27px !important;
  }

  .arcade-touch-menu-buttons {
    bottom: clamp(8px, 3vh, 20px) !important;
  }
}

/* PLAY_TOUCH_DISABLED_FINAL_AFTER_MOBILE_V1 */
body.play-touch-disabled .arcade-touch-controls,
body.play-controls-visible.play-touch-disabled .arcade-touch-controls,
body.play-controls-hidden.play-touch-disabled .arcade-touch-controls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* REVIEW_WRAP_FIX_20260713 */
.play-comment-body {
  white-space: pre-wrap;
}


.play-walkthrough-modal[hidden] {
  display: none;
}

.play-walkthrough-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.play-walkthrough-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.play-walkthrough-dialog {
  position: relative;
  width: min(720px, 100%);
  border: 1px solid var(--theme-border, rgba(85, 190, 255, 0.42));
  border-radius: 10px;
  background: var(--theme-panel, #101b27);
  color: var(--theme-text, #f4f8ff);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.play-walkthrough-head,
.play-walkthrough-body {
  padding: 20px;
}

.play-walkthrough-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--theme-border, rgba(85, 190, 255, 0.28));
}

.play-walkthrough-head h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 4vw, 36px);
}

.play-walkthrough-kicker {
  color: var(--theme-accent, #64c8ff);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-walkthrough-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.play-walkthrough-body p {
  flex-basis: 100%;
  margin: 0 0 4px;
  color: var(--theme-muted, #b6c7d9);
}

.play-walkthrough-video {
  flex-basis: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--theme-border, rgba(85, 190, 255, 0.28));
  border-radius: 8px;
  background: #000;
}
