@media (max-width: 640px) {
  .bank-info {
    min-width: min(340px, calc(100vw - 20px));
    max-width: min(410px, calc(100vw - 20px));
    right: -6px;
    padding: 14px;
  }

  .iban-copy-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .iban-copy-group {
    flex-direction: column;
    align-items: stretch;
  }

  .iban-copy-input,
  .iban-copy-btn {
    width: 100%;
  }

  .iban-copy-btn {
    min-height: 42px;
  }

  .bank-info-message {
    min-height: 188px;
  }
}

@media (max-width: 1200px) {
  .hud-board {
    gap: 10px;
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 10px;
    padding: 8px 12px;
  }

  .header-left,
  .header-right {
    gap: 8px;
  }

  .site-title {
    font-size: 20px;
  }

  .hud-board {
    display: none;
  }
}

@media (max-width: 720px) {
  .settings-overlay {
    justify-content: center;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .settings-panel {
    width: min(100vw - 10px, 420px);
    max-height: min(calc(var(--app-height, 100vh) - 10px), 84dvh);
    height: auto;
    border-right: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow:
      0 -14px 34px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    padding: 10px 12px 18px;
    transform: translateY(0);
  }

  .settings-overlay.hidden .settings-panel {
    transform: translateY(100%);
  }

  .settings-sheet-handle {
    display: block;
    width: 42px;
    height: 5px;
    margin: 2px auto 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
  }

  .settings-panel-header {
    position: sticky;
    top: -10px;
    z-index: 2;
    margin: 0 -12px 12px;
    padding: 0 12px 10px;
    background: linear-gradient(180deg, rgba(10, 18, 26, 0.98), rgba(10, 18, 26, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .settings-panel-subtitle {
    font-size: 11px;
    line-height: 1.35;
  }

  .settings-close-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .settings-section {
    padding: 12px;
    margin-bottom: 10px;
    border-top: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }

  .settings-section:last-child {
    margin-bottom: 0;
  }

  .settings-section-title {
    font-size: 11px;
    margin-bottom: 10px;
    color: #dbe8f8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .settings-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .settings-row-switch {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .settings-copy {
    gap: 3px;
  }

  .settings-label-strong {
    font-size: 13px;
  }

  .settings-label,
  .settings-help {
    font-size: 11px;
  }

  .settings-inline,
  .color-input-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .settings-select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    background: rgba(5, 8, 14, 0.9);
  }

  .settings-value {
    min-width: auto;
    font-size: 11px;
  }

  .settings-environment-block {
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
  }

  .settings-environment-note {
    font-size: 10px;
    min-height: 22px;
    padding: 3px 8px;
  }

  .color-input {
    width: 40px;
    height: 30px;
  }

  .site-header {
    padding: 8px 10px;
    gap: 8px;
  }

  .site-title {
    font-size: 18px;
  }

  .btn,
  .icon-btn {
    border-radius: 10px;
  }

  .completion-overlay::before {
    inset: -15%;
    filter: blur(28px);
  }

  .completion-card {
    min-width: min(92vw, 400px);
    padding: 26px 24px 22px;
    border-radius: 20px;
  }

  .completion-badge {
    width: 70px;
    height: 82px;
    margin: 0 auto 6px;
  }

  .completion-title {
    font-size: 30px;
  }

  .completion-subtitle {
    font-size: 13px;
  }

  .completion-time {
    margin-top: 14px;
    padding: 7px 16px;
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .site-title {
    display: none;
  }

  .header-left {
    flex: 0 0 auto;
  }
}

/* Mobile pinch standard package */
html,
body {
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.app-shell,
.canvas-wrap,
#game-canvas {
  touch-action: none;
  overscroll-behavior: none;
}

@media (max-width: 560px) {
  .site-title {
    display: block !important;
    font-size: 16px;
  }

  .header-left {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 1120px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
    align-items: flex-start;
  }

  .header-left {
    align-items: flex-start;
  }

  .site-tagline {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .header-left,
  .header-right {
    width: 100%;
  }

  .header-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (pointer: coarse) {
  html.browser-page-root,
  body.browser-page {
    overflow-y: auto !important;
    touch-action: auto !important;
  }
}

@media (max-width: 720px) {
  .browser-shell {
    width: min(100% - 20px, 1240px);
    padding: 20px 0 40px;
  }

  .browser-topbar {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .browser-top-links {
    width: 100%;
    gap: 8px;
  }

  .browser-top-link {
    font-size: 12px;
    padding: 8px 10px;
  }

  .browser-title {
    font-size: 28px;
  }

  .browser-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .browser-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }

  .browser-seo-inner {
    padding: 18px 16px 20px;
  }

  .browser-section-head {
    align-items: flex-start;
  }

  .browser-seo-content h2 {
    font-size: 21px;
  }

  .browser-seo-content h3 {
    font-size: 17px;
  }

  .browser-seo-content p,
  .browser-seo-list li {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  body.browser-page .browser-topbar {
    gap: 12px;
    margin-bottom: 20px;
  }

  body.browser-page .browser-back-link {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  body.browser-page .browser-top-links {
    gap: 10px;
  }

  body.browser-page .browser-top-link,
  body.browser-page .browser-seo-jump-link {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }

  body.browser-page .browser-title {
    font-size: 30px;
  }

  body.browser-page .browser-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 980px) and (orientation: landscape) and (pointer: coarse) {
  body.game-page {
    --header-height: auto;
  }

  body.game-page .site-header {
    height: auto;
    min-height: 88px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  body.game-page .header-left,
  body.game-page .header-right {
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.game-page .header-right {
    justify-content: flex-start;
    overflow: visible;
  }

  body.game-page .site-branding {
    min-width: min(260px, 100%);
  }

  body.game-page .site-title {
    display: block !important;
    font-size: 18px;
    line-height: 1.1;
  }

  body.game-page .site-tagline {
    display: none;
  }

  body.game-page .header-left-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.game-page .btn,
  body.game-page .icon-btn {
    min-height: 42px;
  }

  body.game-page .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  body.game-page .icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  body.game-page .hud-board {
    display: flex !important;
    min-height: 40px;
    padding: 8px 10px;
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
  }

  body.game-page .donate-wrap {
    display: flex;
  }

  body.game-page .donate-btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  body.game-page .bank-info {
    right: 0;
    left: auto;
    min-width: min(320px, calc(100vw - 24px));
    max-width: min(380px, calc(100vw - 24px));
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.game-page .app-shell {
    height: calc(var(--app-height, 100vh) - var(--header-height));
    min-height: 0;
  }
}

@media (max-width: 820px) and (orientation: portrait) and (pointer: coarse) {
  body.game-page {
    --header-height: 0px;
  }

  body.game-page .site-header {
    position: absolute;
    inset: max(0px, env(safe-area-inset-top)) 0 auto 0;
    z-index: 26;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: start;
    row-gap: 6px;
    column-gap: 8px;
    height: auto;
    min-height: 116px;
    padding: 8px 8px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.66) 72%, rgba(0, 0, 0, 0.18));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    overflow: visible;
  }

  body.game-page .header-left,
  body.game-page .header-right {
    display: contents;
  }

  body.game-page .site-branding {
    display: flex !important;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    gap: 2px;
    padding-right: 2px;
  }

  body.game-page .site-title {
    display: block !important;
    margin: 0;
    font-size: 16px;
    line-height: 1.04;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body.game-page .site-tagline {
    display: block;
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    opacity: 0.84;
  }

  body.game-page .donate-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    display: flex !important;
    margin-left: 6px;
  }

  body.game-page .donate-btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px;
    gap: 4px;
  }

  body.game-page .hud-board {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    display: flex !important;
    align-items: center;
    min-height: 32px;
    max-width: min(100%, 100%);
    padding: 6px 8px;
    gap: 6px;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
  }

  body.game-page .hud-board::-webkit-scrollbar {
    display: none;
  }

  body.game-page .header-left-actions {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }

  body.game-page .header-hanging-actions {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  body.game-page .btn,
  body.game-page .icon-btn {
    min-height: 38px;
  }

  body.game-page .btn {
    padding: 9px 11px;
    font-size: 12px;
  }

  body.game-page .icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  body.game-page .header-hanging-actions .icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    box-shadow: none;
  }

  body.game-page .bank-info {
    right: 0;
    left: auto;
    min-width: min(340px, calc(100vw - 20px));
    max-width: min(380px, calc(100vw - 20px));
  }

  body.game-page .app-shell {
    height: var(--app-height, 100vh);
  }
}

@media (max-width: 820px) and (orientation: portrait) and (pointer: coarse) and (max-height: 760px) {
  body.game-page .site-header {
    min-height: 98px;
    padding-top: 6px;
    padding-bottom: 8px;
  }

  body.game-page .site-tagline {
    display: none;
  }

  body.game-page .site-title {
    font-size: 15px;
  }

  body.game-page .hud-board {
    min-height: 30px;
    padding: 5px 7px;
    gap: 5px;
    font-size: 9px;
  }

  body.game-page .header-left-actions,
  body.game-page .header-hanging-actions {
    gap: 6px;
  }

  body.game-page .btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  body.game-page .icon-btn,
  body.game-page .header-hanging-actions .icon-btn,
  body.game-page .donate-btn {
    min-height: 34px;
    height: 34px;
    min-width: 34px;
  }
}

@media (max-width: 900px) {
  .browser-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .bank-info {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    bottom: auto;
    min-width: 0;
    width: min(380px, calc(100vw - 20px));
    max-width: min(380px, calc(100vw - 20px));
    max-height: min(68vh, 620px);
    padding: 14px;
    border-radius: 22px;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow:
      0 28px 60px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .bank-info-sheet-handle {
    display: none;
  }

  .bank-info-header {
    position: relative;
    top: auto;
    z-index: 1;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-bottom: 14px;
  }

  .bank-info-title {
    font-size: 20px;
  }

  .bank-info-subtitle {
    font-size: 12px;
    line-height: 1.55;
  }

  .bank-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
  }

  .iban-copy-group {
    gap: 10px;
  }

  .iban-copy-input,
  .bank-info-message {
    font-size: 16px;
    line-height: 1.5;
  }

  .iban-copy-input {
    min-height: 48px;
  }

  .iban-copy-btn,
  .bank-info-close-btn {
    min-height: 46px;
  }

  .bank-info-message {
    min-height: 220px;
    padding: 14px;
  }

  .bank-detail-value {
    text-align: left;
  }

  .settings-overlay {
    align-items: flex-end;
  }

  .settings-panel {
    width: min(100vw - 12px, 460px);
    max-height: min(calc(var(--app-height, 100vh) - 12px), 87dvh);
    border-radius: 26px 26px 0 0;
    padding: 12px 14px 24px;
    border-right: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .settings-panel-header {
    top: -12px;
    margin: 0 -14px 12px;
    padding: 0 14px 12px;
  }

  .settings-section {
    border-radius: 20px;
    padding: 15px;
  }

  .settings-select {
    min-height: 46px;
    border-radius: 14px;
  }

  .browser-shell {
    width: min(100% - 18px, 1280px);
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .browser-topbar {
    top: 8px;
    padding: 12px;
    border-radius: 18px;
  }

  .browser-hero {
    padding: 20px;
    border-radius: 24px;
  }

  .browser-feature-frame {
    padding: 16px;
    border-radius: 20px;
  }

  .browser-feature-image {
    min-height: 220px;
    max-height: 300px;
  }

  .browser-title {
    margin-top: 12px;
  }

  body.browser-page .browser-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.browser-page .browser-card-thumb {
    aspect-ratio: 4 / 3;
  }

  body.browser-page .browser-card-body {
    padding: 12px 14px 14px;
  }

  body.browser-page .browser-card-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  body.browser-page .browser-card-text,
  body.browser-page .browser-card-meta {
    display: none;
  }
}

@media (max-width: 760px) {
  .bank-info-title-signature {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .bank-info-title-signature {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .bank-info-copy-row .iban-copy-btn {
    min-height: 48px;
    font-size: 14px;
    border-radius: 14px;
  }
}




/* ── ROTATE OVERLAY (portrait-mode blocker for mobile) ──────────────────────
   Appears automatically when mobile user is in portrait. Hides when landscape.
   No button needed — orientationchange event handles show/hide via JS.
   ─────────────────────────────────────────────────────────────────────────── */

.rotate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 24, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rotate-overlay.hidden {
  display: none;
}

.rotate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  gap: 14px;
}

.rotate-icon {
  width: 90px;
  height: 90px;
  animation: rotate-phone-anim 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(123, 223, 246, 0.35));
}

.rotate-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes rotate-phone-anim {
  0%   { transform: rotate(0deg);   }
  30%  { transform: rotate(0deg);   }
  60%  { transform: rotate(-90deg); }
  90%  { transform: rotate(-90deg); }
  100% { transform: rotate(0deg);   }
}

.rotate-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fffdf8, #a8e8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rotate-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(210, 228, 248, 0.78);
}

.rotate-body strong {
  color: #7bdff6;
  font-weight: 600;
  -webkit-text-fill-color: #7bdff6;
}

/* ── Mobile landscape: compact single-row header ────────────────────────────
   Overrides the 2-row wrap layout with a tight single-row bar (~48px tall).
   Uses !important to beat the existing landscape block above.
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 980px) and (orientation: landscape) and (pointer: coarse) {
  body.game-page {
    --header-height: 48px;
  }

  body.game-page .site-header {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 10px 0 max(10px, env(safe-area-inset-left)) !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }

  body.game-page .header-left {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: hidden;
  }

  body.game-page .header-right {
    width: auto !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    overflow: visible !important;
  }

  body.game-page .site-branding {
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  body.game-page .site-title {
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  body.game-page .site-tagline {
    display: none !important;
  }

  body.game-page .btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  body.game-page .icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    min-width: 34px !important;
    border-radius: 8px !important;
  }

  body.game-page .icon-btn .icon-svg {
    width: 16px !important;
    height: 16px !important;
  }

  body.game-page .hud-board {
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 8px !important;
    gap: 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    align-items: center !important;
    overflow-x: auto !important;
    max-width: 200px !important;
    scrollbar-width: none !important;
  }

  body.game-page .hud-board::-webkit-scrollbar {
    display: none !important;
  }

  body.game-page .donate-btn {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  body.game-page .donate-btn-heart .icon-svg {
    width: 14px !important;
    height: 14px !important;
  }

  body.game-page .app-shell {
    height: calc(var(--app-height, 100vh) - 48px) !important;
  }
}

/* ── Fullscreen: canvas fills entire screen, no gaps ────────────────────────
   Override the hardcoded 48px subtraction from the compact header block.
   100dvh = dynamic viewport height (accounts for browser chrome hide/show).
   ─────────────────────────────────────────────────────────────────────────── */

@media (pointer: coarse) {
  body.game-page.is-fullscreen .app-shell {
    height: 100dvh !important;
    height: var(--app-height, 100vh) !important;
  }
}

/* ── Compact panels in mobile landscape: donate ~50%, settings ~50% left ─────
   Targeting body.game-page so these override both the base rules and the
   max-width:720px bottom-sheet rules that apply to narrow landscape phones.
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 980px) and (orientation: landscape) and (pointer: coarse) {

  /* ── SETTINGS: left-edge sidebar, half-width ── */

  body.game-page .settings-overlay {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding-top: 48px !important; /* sit below compact header */
    background: rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }

  body.game-page .settings-panel {
    width: min(200px, 46vw) !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 0 12px 12px 0 !important;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    border-top: none !important;
    border-left: none !important;
    border-bottom: none !important;
    padding: 6px 8px 12px !important;
    transform: translateX(0) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.game-page .settings-overlay.hidden .settings-panel {
    transform: translateX(-110%) !important;
  }

  body.game-page .settings-sheet-handle {
    display: none !important;
  }

  body.game-page .settings-panel-header {
    margin: 0 -8px 6px !important;
    padding: 0 8px 6px !important;
  }

  body.game-page .settings-panel-title {
    font-size: 12px !important;
    letter-spacing: 0 !important;
  }

  body.game-page .settings-panel-subtitle {
    display: none !important;
  }

  body.game-page .settings-close-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }

  body.game-page .settings-section {
    padding: 7px 8px !important;
    border-radius: 10px !important;
    margin-bottom: 5px !important;
  }

  body.game-page .settings-section-title {
    font-size: 9px !important;
    margin-bottom: 5px !important;
  }

  body.game-page .settings-row {
    padding: 3px 0 !important;
    gap: 4px !important;
    min-height: 0 !important;
  }

  body.game-page .settings-label,
  body.game-page .settings-label-strong {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  body.game-page .settings-select {
    font-size: 10px !important;
    padding: 2px 4px !important;
    min-height: 22px !important;
    height: 22px !important;
  }

  body.game-page .settings-reset-btn {
    font-size: 10px !important;
    padding: 2px 6px !important;
    min-height: 22px !important;
    height: 22px !important;
  }

  body.game-page .color-input {
    width: 28px !important;
    height: 22px !important;
  }

  body.game-page .settings-environment-note {
    font-size: 9px !important;
    min-height: 0 !important;
    padding: 2px 6px !important;
  }

  /* ── BANK-INFO (donate): half-size, right-aligned ── */

  body.game-page .bank-info {
    min-width: min(190px, calc(100vw - 20px)) !important;
    max-width: min(220px, calc(100vw - 20px)) !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 5px !important;
    font-size: 10px !important;
  }

  body.game-page .bank-info-badge {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }

  body.game-page .bank-info-title {
    font-size: 13px !important;
  }

  body.game-page .bank-info-swift,
  body.game-page .bank-info-subtitle,
  body.game-page .bank-info-contact-title,
  body.game-page .bank-info-email,
  body.game-page .bank-info-note,
  body.game-page .bank-info-line {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  body.game-page .bank-info-details {
    gap: 3px !important;
  }

  body.game-page .iban-copy-input {
    font-size: 9px !important;
    padding: 3px 6px !important;
    height: 26px !important;
  }

  body.game-page .iban-copy-btn {
    font-size: 9px !important;
    padding: 0 7px !important;
    height: 26px !important;
    min-height: 26px !important;
  }

  body.game-page .bank-info-message {
    font-size: 10px !important;
    min-height: 50px !important;
    padding: 5px 7px !important;
  }

  body.game-page .bank-info-message-label {
    font-size: 9px !important;
  }

  body.game-page .bank-info-close-btn {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }
}
