:root {
  --header-height: 64px;
  --app-height: 100vh;
  --app-height-stable: 100svh;
  --bg-header: #000000;
  --bg-canvas: #0a1630;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --panel-border: rgba(255, 255, 255, 0.14);
  --button-bg: #111111;
  --button-bg-hover: #1a1a1a;
  --button-border: rgba(255, 255, 255, 0.18);
  --accent-red: #d90429;
  --panel-bg: rgba(10, 18, 26, 0.96);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-header);
  color: var(--text-main);
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: var(--app-height, 100vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.completion-mode .site-header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-header {
  flex: 0 0 var(--header-height);
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--panel-border);
  position: relative;
  transition: opacity 180ms ease;
  min-width: 0;
  overflow: visible;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-left {
  flex: 1 1 auto;
  overflow: hidden;
}

.header-left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-hanging-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}


.header-right {
  flex: 0 0 auto;
  justify-content: flex-end;
  overflow: visible;
}

.site-title {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.btn {
  appearance: none;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.btn:hover {
  background: var(--button-bg-hover);
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: #ffffff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease,
    opacity 140ms ease;
  flex: 0 0 auto;
}

.icon-btn:hover {
  background: var(--button-bg-hover);
  border-color: rgba(255, 255, 255, 0.26);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hud-board {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

.hud-board strong {
  color: #ffffff;
}

.sound-toggle {
  position: relative;
  overflow: hidden;
}

.sound-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.sound-icon-off {
  opacity: 0;
  transform: scale(0.92);
}

.sound-toggle[data-muted="true"] .sound-icon-on {
  opacity: 0;
  transform: scale(0.92);
}

.sound-toggle[data-muted="true"] .sound-icon-off {
  opacity: 1;
  transform: scale(1);
}

.sound-toggle[data-muted="true"] {
  background: rgba(120, 120, 120, 0.16);
  color: #d6d6d6;
}

.preview-toggle {
  position: relative;
  overflow: hidden;
}

.eye-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.eye-icon-off {
  opacity: 0;
  transform: scale(0.92);
}

.preview-toggle[data-active="true"] .eye-icon-on {
  opacity: 0;
  transform: scale(0.92);
}

.preview-toggle[data-active="true"] .eye-icon-off {
  opacity: 1;
  transform: scale(1);
}

.preview-toggle[data-active="true"] {
  border-color: rgba(140, 190, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.14);
}

.fullscreen-toggle {
  position: relative;
  overflow: hidden;
}

.fullscreen-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.fullscreen-icon-exit {
  opacity: 0;
  transform: scale(0.92);
}

.fullscreen-toggle[data-active="true"] .fullscreen-icon-enter {
  opacity: 0;
  transform: scale(0.92);
}

.fullscreen-toggle[data-active="true"] .fullscreen-icon-exit {
  opacity: 1;
  transform: scale(1);
}

.fullscreen-toggle[data-active="true"] {
  border-color: rgba(140, 190, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.14);
}

.settings-btn[aria-expanded="true"] {
  border-color: rgba(140, 190, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.14);
}

.donate-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
  z-index: 10;
}

.donate-btn {
  appearance: none;
  border: 1px solid rgba(140, 213, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(140, 213, 255, 0.16), rgba(140, 213, 255, 0.07)),
    rgba(8, 18, 30, 0.78);
  color: #ffffff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.donate-btn:hover {
  background:
    linear-gradient(180deg, rgba(140, 213, 255, 0.22), rgba(140, 213, 255, 0.1)),
    rgba(10, 21, 34, 0.88);
  border-color: rgba(140, 213, 255, 0.32);
}

.donate-btn:active {
  transform: translateY(1px);
}

.donate-btn-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}

.bank-info {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 14;
  min-width: 360px;
  max-width: 420px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(10, 18, 26, 0.98);
  color: #e5eef8;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  z-index: 9999;
}

.bank-info.hidden {
  display: none;
}

.bank-info-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(185, 246, 176, 0.12);
  border: 1px solid rgba(185, 246, 176, 0.2);
  color: #b9f6b0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bank-info-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #ffffff;
}

.bank-info-swift {
  color: #aebed0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.bank-info-subtitle {
  font-size: 12px;
  line-height: 1.55;
  color: #aebed0;
  margin-bottom: 14px;
}

.bank-info-details {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.bank-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bank-detail-label {
  font-size: 12px;
  font-weight: 700;
  color: #b9f6b0;
}

.bank-detail-value {
  font-size: 12px;
  font-weight: 600;
  color: #e5eef8;
  text-align: right;
}

.bank-detail-value-mono {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.03em;
}

.bank-info-line {
  margin-bottom: 0;
}

.bank-info-copy-row {
  display: grid;
  gap: 8px;
}

.bank-info-contact {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.bank-info-contact-title {
  font-size: 12px;
  font-weight: 800;
  color: #b9f6b0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bank-info-email {
  color: #e5eef8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.bank-info-email:hover {
  color: #ffffff;
}

.bank-info-note {
  margin: 14px 0 0;
  color: rgba(226, 234, 244, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.iban-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.iban-copy-hint {
  font-size: 11px;
  color: #8fa3b8;
}

.iban-copy-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.iban-copy-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f8ff;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.iban-copy-input::selection {
  background: rgba(185, 246, 176, 0.35);
}

.iban-copy-btn {
  appearance: none;
  min-width: 88px;
  border: 1px solid rgba(185, 246, 176, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(185, 246, 176, 0.2), rgba(185, 246, 176, 0.12));
  color: #eaffea;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.iban-copy-btn:hover {
  background: linear-gradient(180deg, rgba(185, 246, 176, 0.28), rgba(185, 246, 176, 0.16));
  border-color: rgba(185, 246, 176, 0.42);
}

.iban-copy-btn:active {
  transform: translateY(1px);
}

.iban-copy-btn[data-copied="true"] {
  border-color: rgba(125, 240, 145, 0.52);
  box-shadow: 0 0 0 3px rgba(125, 240, 145, 0.12);
}

.bank-info-message-block {
  margin-top: 14px;
}

.bank-info-message-label {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #b9f6b0;
}

.bank-info-message {
  width: 100%;
  min-height: 180px;
  resize: none;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #e5eef8;
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
}

.bank-info-message[readonly] {
  cursor: default;
}

.bank-info-message::placeholder {
  color: #7e93a8;
}

@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;
  }
}

.app-shell {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(var(--app-height, 100vh) - var(--header-height));
  background: var(--bg-canvas);
}

.canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-canvas);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 3000ms linear;
}

.preview-overlay.hidden {
  display: none !important;
}

.preview-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}


#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  background: var(--bg-canvas);
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;

  /* karanlık perdeyi kaldır */
  background: transparent;

  /* kritik: canvas ile etkileşimi aç */
  pointer-events: none;

  display: flex;
  justify-content: flex-start;
  opacity: 1;
  transition: opacity 180ms ease;
}

.settings-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.settings-panel {
  width: min(380px, 92vw);
  height: 100%;
  background: var(--panel-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 16px 0 36px rgba(0, 0, 0, 0.35);
  padding: 18px 16px 22px;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 180ms ease;
  pointer-events: auto;
}

.settings-sheet-handle {
  display: none;
}

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

.settings-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.settings-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.settings-panel-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

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

.settings-section {
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

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

.settings-row-stack {
  align-items: flex-start;
}

.settings-row-switch {
  cursor: pointer;
  gap: 14px;
}

.settings-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.settings-label-strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.settings-help {
  font-size: 12px;
  line-height: 1.35;
  color: #9fb0c5;
  max-width: 260px;
}

.settings-switch-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.settings-switch-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.settings-switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 109, 109, 0.38);
  background: linear-gradient(180deg, rgba(153, 31, 43, 0.96), rgba(95, 13, 25, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 18px rgba(0, 0, 0, 0.28);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.settings-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dfe7f2);
  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.settings-switch-input:focus-visible + .settings-switch {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(110, 168, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 18px rgba(0, 0, 0, 0.28);
}

.settings-switch-input:checked + .settings-switch {
  background: linear-gradient(180deg, rgba(54, 162, 84, 0.96), rgba(22, 111, 53, 0.96));
  border-color: rgba(147, 255, 181, 0.42);
}

.settings-switch-input:checked + .settings-switch::before {
  transform: translateX(22px);
  background: linear-gradient(180deg, #f5f7fb, #ccd5e3);
}

.settings-label {
  font-size: 13px;
  color: var(--text-muted);
}

.settings-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-inline-stretch {
  width: 100%;
}

.settings-select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 10, 18, 0.92);
  color: #ffffff;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 13px;
  min-width: 140px;
  cursor: pointer;
}

.settings-environment-block {
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.settings-environment-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.12);
  border: 1px solid rgba(110, 168, 255, 0.18);
  color: #dceaff;
  font-size: 11px;
  line-height: 1.25;
}

.settings-select:focus,
.color-input:focus {
  outline: none;
  border-color: rgba(140, 190, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.18);
}

.settings-select:disabled {
  opacity: 0.55;
  cursor: default;
}

.settings-value {
  font-size: 12px;
  color: #ffffff;
  min-width: 64px;
  text-align: right;
}

.settings-mini-btn {
  padding: 8px 10px;
  font-size: 12px;
}

.settings-range {
  width: min(220px, 100%);
  accent-color: #6ea8ff;
  cursor: pointer;
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-input {
  appearance: none;
  width: 42px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.hidden {
  display: none !important;
}

.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255, 214, 102, 0.14), transparent 28%),
    radial-gradient(circle at 50% 34%, rgba(88, 180, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.22), rgba(2, 8, 20, 0.52));
  backdrop-filter: blur(4px);
}

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

.fireworks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.completion-glow {
  position: absolute;
  width: min(56vw, 620px);
  height: min(56vw, 620px);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 219, 120, 0.22) 0%,
      rgba(255, 200, 80, 0.09) 30%,
      rgba(255, 200, 80, 0.03) 52%,
      transparent 72%
    );
  filter: blur(8px);
  pointer-events: none;
}

.completion-overlay.is-active .completion-glow {
  animation: completion-glow-pulse 1800ms ease-in-out infinite;
}

.completion-card {
  position: relative;
  z-index: 2;
  min-width: min(88vw, 420px);
  padding: 26px 34px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24, 34, 53, 0.96), rgba(10, 15, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(255, 218, 112, 0.12);
  animation: completion-pop-in 420ms ease-out forwards;
}

.completion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%, transparent 72%, rgba(255, 219, 120, 0.12));
  pointer-events: none;
}

.completion-card::after {
  content: "";
  position: absolute;
  top: -110%;
  left: -30%;
  width: 42%;
  height: 320%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}

.completion-overlay.is-active .completion-card::after {
  animation: completion-card-sheen 1600ms ease-out 120ms 1;
}

.completion-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(180deg, #fffdf8, #ffe7a1 72%, #ffd36f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 12px rgba(255, 214, 102, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.completion-subtitle {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(232, 239, 255, 0.82);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-time {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #ffd76a;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 12px rgba(255, 215, 106, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.32);
}

.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.completion-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 253, 241, 0.95), rgba(255, 219, 120, 0.35) 62%, transparent 70%);
  box-shadow:
    0 0 12px rgba(255, 238, 188, 0.55),
    0 0 22px rgba(122, 220, 255, 0.22);
  transform: translate3d(0, 0, 0) scale(var(--spark-scale, 1));
  animation: completion-sparkle-float 3s ease-in-out infinite;
}

@keyframes completion-sparkle-float {
  0% {
    transform: translate3d(0, 8px, 0) scale(calc(var(--spark-scale, 1) * 0.82));
    opacity: 0;
  }
  24% {
    opacity: 0.92;
  }
  72% {
    opacity: 0.78;
  }
  100% {
    transform:
      translate3d(var(--spark-drift-x, 0px), var(--spark-drift-y, -24px), 0)
      scale(calc(var(--spark-scale, 1) * 1.14));
    opacity: 0;
  }
}

body.game-page.game-mobile-rotated .completion-overlay.completion-overlay-mobile-rotated .fireworks-canvas,
body.game-page.game-mobile-rotated .completion-overlay.completion-overlay-mobile-rotated .completion-glow,
body.game-page.game-mobile-rotated .completion-overlay.completion-overlay-mobile-rotated .confetti-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

body.game-page.game-mobile-rotated .completion-overlay.completion-overlay-mobile-rotated .completion-card {
  transform: rotate(90deg);
  transform-origin: center center;
  animation-name: completion-pop-in-rotated;
}

@keyframes completion-pop-in {
  0% {
    transform: translateY(10px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes completion-pop-in-rotated {
  0% {
    transform: rotate(90deg) translateY(10px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: rotate(90deg) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes completion-glow-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes completion-card-sheen {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0) rotate(18deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(360px, 0, 0) rotate(18deg);
  }
}

@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-card {
    min-width: min(90vw, 380px);
    padding: 22px 24px;
  }

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

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

  .completion-time {
    font-size: 16px;
  }
}

@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;
  }
}


.settings-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.settings-help {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}


.site-branding {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.site-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
}

.header-left-actions .btn {
  white-space: nowrap;
}

@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;
  }
}

html:not(.browser-page-root),
body:not(.browser-page) {
  overscroll-behavior: none;
}

body.is-fullscreen {
  --header-height: 64px;
}

body.is-fullscreen .site-header {
  display: flex;
}

html.browser-page-root,
body.browser-page {
  touch-action: auto !important;
  overscroll-behavior: auto;
  overscroll-behavior-y: auto;
}

html.browser-page-root {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--bg-canvas);
  -webkit-text-size-adjust: 100%;
}

body.browser-page {
  display: block !important;
  width: 100%;
  height: auto !important;
  min-height: max(100vh, var(--app-height-stable, 100svh));
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--bg-canvas);
  color: var(--text-main);
  -webkit-overflow-scrolling: touch;
  touch-action: auto !important;
  overscroll-behavior: auto;
}

body.browser-page .browser-shell,
body.browser-page .browser-grid,
body.browser-page .browser-seo-content,
body.browser-page .browser-seo-inner,
body.browser-page .browser-card,
body.browser-page .browser-card-link {
  touch-action: auto !important;
}

.browser-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 0;
  display: flex;
  flex-direction: column;
}

.browser-scroll-area {
  height: 1600px;
  overflow-y: scroll;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* 3 kopyanin (A-B-C) her biri ayni grid layout */
.browser-drum-set {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0;
}

.browser-seo-content {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}



.browser-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.browser-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.browser-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
}

.browser-top-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.browser-back-link {
  color: #ffffff;
  text-decoration: none;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

.browser-back-link:hover {
  background: var(--button-bg-hover);
}

.browser-hero {
  margin-bottom: 22px;
}

.browser-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
}

.browser-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 760px;
}

.browser-grid {
  /* Grid layout drum-set'lere taşındı — bu sadece container */
  display: block;
}

.browser-load-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.browser-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.browser-card-thumb {
  aspect-ratio: 4 / 3;
  min-height: 195px; /* placeholder durumunda da boyut garantisi */
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.browser-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* data-src placeholder durumunda da yer kapla */
  min-height: 195px;
}

.browser-card-body {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.browser-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.browser-card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 auto;
}

.browser-card-meta {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  opacity: 0.9;
}

.browser-card-actions {
  margin-top: 4px;
  display: flex;
}

.browser-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: #ffffff;
}

.browser-empty,
.browser-error,
.browser-loading {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  color: var(--text-muted);
}

.browser-seo-content {
  margin-top: 0;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.browser-seo-inner {
  padding: 24px 22px 26px;
}

.browser-seo-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.browser-seo-jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
}

.browser-seo-jump-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.browser-seo-content h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.browser-seo-content h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.browser-seo-content p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.browser-seo-list {
  margin: 0 0 16px 18px;
  padding: 0;
  color: var(--text-muted);
}

.browser-seo-list li {
  margin-bottom: 10px;
  line-height: 1.65;
}


.browser-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.browser-section-head h2 {
  margin: 0;
}

.browser-back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.browser-back-to-top:hover {
  background: rgba(255, 255, 255, 0.08);
}

html.browser-page-root {
  scroll-behavior: smooth;
}

@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;
  }
}


/* Mobile browser gallery top bar: make it larger and easier to tap */
@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;
  }
}

/* Phone landscape: keep header, buttons, HUD and donate visible in game/fullscreen */
@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: auto;
    left: 0;
    min-width: min(360px, calc(100vw - 24px));
    max-width: min(420px, calc(100vw - 24px));
  }

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


/* Mobile portrait overlay header: two-line branding + centered HUD + hanging controls */
@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;
  }
}

/* Visual polish pass */
:root {
  --ui-font: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  --accent-amber: #f1be76;
  --accent-amber-strong: #ffdb98;
  --accent-sky: #8cd5ff;
  --accent-mint: #c9f2ae;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --shadow-xl: 0 26px 70px rgba(0, 0, 0, 0.35);
}

html,
body {
  font-family: var(--ui-font);
}

body:not(.browser-page) {
  background:
    radial-gradient(circle at 12% 0%, rgba(241, 190, 118, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(140, 213, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--bg-header);
}

body:not(.browser-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 110%, rgba(241, 190, 118, 0.1), transparent 34%);
  opacity: 0.95;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 8;
  overflow: visible;
  padding: 12px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(241, 190, 118, 0.12), transparent 28%, transparent 76%, rgba(140, 213, 255, 0.1)),
    var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-branding {
  gap: 4px;
}

.site-title {
  font-size: clamp(24px, 2vw + 14px, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.site-tagline {
  max-width: 58ch;
  color: rgba(231, 240, 252, 0.74);
  font-size: 12.5px;
  line-height: 1.35;
}

.btn,
.icon-btn,
.browser-top-link,
.browser-back-link,
.browser-back-to-top {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 22, 0.72);
  border-radius: 14px;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(10, 15, 26, 0.82);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.browser-top-link:focus-visible,
.browser-back-link:focus-visible,
.browser-back-to-top:focus-visible,
.browser-card-link:focus-visible,
.donate-btn:focus-visible,
.iban-copy-btn:focus-visible,
.bank-info-close-btn:focus-visible,
.settings-close-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(140, 213, 255, 0.18),
    0 0 0 1px rgba(171, 225, 255, 0.46),
    0 18px 32px rgba(0, 0, 0, 0.24);
}

#new-game-btn {
  border-color: rgba(140, 213, 255, 0.18);
  background: var(--bg-canvas);
  color: #edf5ff;
}

#new-game-btn:hover {
  border-color: rgba(140, 213, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--bg-canvas);
}

.btn-secondary {
  background:
    linear-gradient(180deg, rgba(140, 213, 255, 0.16), rgba(140, 213, 255, 0.07)),
    rgba(8, 18, 30, 0.78);
  border-color: rgba(140, 213, 255, 0.22);
}

.btn-secondary:hover {
  background:
    linear-gradient(180deg, rgba(140, 213, 255, 0.22), rgba(140, 213, 255, 0.1)),
    rgba(10, 21, 34, 0.88);
}

.icon-btn {
  border-radius: 15px;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(9, 13, 22, 0.8);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.icon-btn:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(11, 16, 27, 0.88);
  border-color: rgba(255, 255, 255, 0.24);
}

.hud-board {
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 11, 20, 0.66);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(235, 243, 253, 0.76);
}

.hud-board strong {
  color: #fff7e7;
}

.app-shell {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 12% 12%, rgba(241, 190, 118, 0.12), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(140, 213, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--bg-canvas);
}

.canvas-wrap::before,
.canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.canvas-wrap::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.24;
}

.canvas-wrap::after {
  background:
    radial-gradient(circle at center, transparent 46%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.preview-overlay {
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.18), rgba(8, 12, 20, 0.26)),
    rgba(0, 0, 0, 0.04);
}

.preview-stage {
  padding: clamp(10px, 1.8vw, 24px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.preview-image {
  border-radius: 20px;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.donate-btn {
  border-color: rgba(140, 213, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(140, 213, 255, 0.16), rgba(140, 213, 255, 0.07)),
    rgba(8, 18, 30, 0.78);
  color: #edf5ff;
  border-radius: 14px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  justify-content: center;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.donate-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--bg-canvas);
  border-color: rgba(140, 213, 255, 0.32);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.donate-btn-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  font-size: 0;
  flex: 0 0 auto;
  color: #ff6f88;
  filter: drop-shadow(0 5px 9px rgba(255, 77, 103, 0.22));
}

.donate-btn-heart .icon-svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: rgba(255, 220, 226, 0.92);
  stroke-width: 1.6;
}

.bank-info {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(19, 14, 17, 0.94), rgba(11, 19, 32, 0.98)),
    rgba(10, 18, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bank-info::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(241, 190, 118, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 22%, transparent 78%, rgba(140, 213, 255, 0.06));
  pointer-events: none;
}

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

.bank-info-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.bank-info-header-copy {
  min-width: 0;
}

.bank-info-badge,
.bank-detail-label,
.bank-info-message-label,
.bank-info-contact-title {
  color: var(--accent-amber-strong);
}

.bank-info-title {
  font-size: 22px;
  letter-spacing: 0;
  margin-bottom: 7px;
}

.bank-info-subtitle,
.bank-info-swift {
  max-width: 44ch;
  font-size: 12.5px;
  color: rgba(226, 234, 244, 0.76);
}

.bank-info-close-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bank-info-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.bank-detail-row,
.iban-copy-input,
.bank-info-message,
.bank-info-contact,
.settings-section,
.browser-card,
.browser-topbar,
.browser-hero,
.browser-seo-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    var(--surface-soft);
}

.bank-detail-row {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
}

.iban-copy-input,
.bank-info-message {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(4, 7, 13, 0.44);
}

.iban-copy-btn {
  min-height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(241, 190, 118, 0.34), rgba(241, 190, 118, 0.16)),
    rgba(54, 35, 13, 0.72);
  border-color: rgba(241, 190, 118, 0.24);
  color: #fff7e8;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.3), rgba(5, 8, 14, 0.56));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.settings-panel {
  width: min(400px, 92vw);
  background:
    linear-gradient(180deg, rgba(19, 14, 17, 0.95), rgba(11, 19, 32, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    18px 0 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.settings-panel-title {
  font-size: 23px;
  letter-spacing: -0.03em;
}

.settings-panel-subtitle {
  color: rgba(221, 231, 243, 0.68);
}

.settings-section {
  border-top-color: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-section:first-of-type {
  padding-top: 16px;
}

.settings-section-title {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  color: rgba(255, 241, 214, 0.76);
}

.settings-select {
  border-radius: 13px;
  min-height: 44px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(5, 8, 14, 0.82);
}

.settings-help {
  max-width: 34ch;
  color: rgba(207, 218, 232, 0.72);
}

body.browser-page {
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 190, 118, 0.14), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(140, 213, 255, 0.13), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #0d1828;
}

.browser-shell {
  width: min(1280px, calc(100% - 28px));
  padding: max(28px, env(safe-area-inset-top)) 0 calc(68px + env(safe-area-inset-bottom));
}

.browser-topbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.browser-top-link,
.browser-back-link,
.browser-back-to-top {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 22, 0.6);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.browser-top-link:hover,
.browser-back-link:hover,
.browser-back-to-top:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.browser-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: var(--shadow-xl);
}

.browser-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(140, 213, 255, 0.18), transparent 26%),
    radial-gradient(circle at 12% 0%, rgba(241, 190, 118, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 24%, transparent 70%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.browser-hero-copy,
.browser-hero-feature {
  position: relative;
  z-index: 1;
}

.browser-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(241, 190, 118, 0.28);
  background: linear-gradient(180deg, rgba(241, 190, 118, 0.22), rgba(241, 190, 118, 0.08));
  color: var(--accent-amber-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browser-title {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.browser-subtitle {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.62;
  color: rgba(225, 235, 245, 0.8);
}

.browser-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.browser-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #edf5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.browser-hero-feature:empty {
  display: none;
}

.browser-feature-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 6px;
}

.browser-feature-image {
  width: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  box-shadow: none;
}

.browser-grid {
  gap: 24px;
  margin-bottom: 34px;
}

.browser-card {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.browser-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 46px rgba(0, 0, 0, 0.24);
}

.browser-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
}

.browser-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 26%);
  pointer-events: none;
}

.browser-card-thumb img {
  transition: transform 220ms ease;
}

.browser-card:hover .browser-card-thumb img {
  transform: scale(1.04);
}

.browser-card-body {
  padding: 13px 15px 15px;
}

.browser-card-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.browser-card-text {
  color: rgba(221, 231, 243, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.browser-card-meta {
  color: var(--accent-amber-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.browser-loading,
.browser-error,
.browser-empty,
.browser-seo-content {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.browser-loading,
.browser-error,
.browser-empty {
  padding: 18px 20px;
}

.browser-seo-content {
  padding: 10px 0;
}

.browser-seo-inner {
  padding: 18px 0 12px;
}

.browser-seo-content h2 {
  letter-spacing: -0.03em;
}

@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;
  }
}

  .settings-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* NEW GAME BUTTON - FIXED HEADER STYLE */
.btn-new-game {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-new-game:hover {
  background: #262626;
}


/* BANK INFO — SIGNATURE NAME */
.bank-info-title-signature {
  font-family: 'Alex Brush', 'Brush Script MT', cursive;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 2px;
  text-shadow: 0 1px 10px rgba(140, 213, 255, 0.18);
}

.bank-info-owner-label {
  font-size: 11px;
  font-weight: 600;
  color: #8fa3b8;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.bank-info-copy-rows {
  display: grid;
  gap: 4px;
  margin-bottom: 0;
}

.bank-info-field-label {
  font-size: 11px;
  font-weight: 800;
  color: #b9f6b0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 4px;
}

.bank-info-field-label-mt {
  margin-top: 12px;
}

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

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

/* BANK INFO — COPY BUTTONS FULL WIDTH */
.bank-info-copy-row .iban-copy-btn {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
  border-radius: 12px;
  padding: 0 16px;
}

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

/* NEW GAME BUTTON - FIXED HEADER STYLE */
.btn-new-game {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-new-game:hover {
  background: #262626;
}

/* NEW GAME BUTTON - FORCE OVERRIDE */
#new-game-btn.btn-new-game {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

#new-game-btn.btn-new-game:hover {
  background: #262626 !important;
}
