@font-face {
  font-family: "AbCave";
  src: url("/fonts/AbCave-Oq2O.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #001218;
  --header-bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-line: rgba(11, 18, 24, 0.08);
  --text: #ffffff;
  --buttonText: #000000;
  --muted: #e8a100;
  --button-fill: #ffffff;
  --danger: #d94b40;
  --danger-deep: #b52f25;
  --secondary: #e8edf2;
  --shadow: 0 24px 60px rgba(19, 29, 38, 0.12);
  --section-gap: 1rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "AbCave", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

.page-shell {
  width: min(100%, 880px);
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--section-gap) 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.brand-bar {
  display: flex;
  justify-content: flex-start; /* changed from center */
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 0.85rem 1.2rem 0.85rem 0.7rem;
  background: var(--header-bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.brand-inner {
  width: 100%;
  max-width: none; /* remove centered container restriction */
  padding-left: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.company-logo {
  width: clamp(90px, 12vw, 128px);
  height: auto;
  object-fit: contain;
}

.game-logo {
  width: min(100%, 381px);
  height: auto;
  margin: 0 0 var(--section-gap);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.14));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise-in 420ms ease both;
}

h1 {
  width: min(100%, 670px);
  margin: 0 0 var(--section-gap);
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.content-block,
.provider-panel,
.status-message {
  width: min(100%, 690px);
}

.content-block {
  margin-bottom: var(--section-gap);
  padding: 0.15rem 0;
}

.content-block h2,
.provider-panel h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.18;
}

.content-block p,
.confirm-copy,
.status-message,
.summary-value {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.provider-panel {
  margin: 0 auto 0;
  animation: rise-in 500ms ease both;
}

.button-stack {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.95rem;
  justify-items: center;
}

.provider-image-button {
  width: min(100%, 375px);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.provider-image-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.provider-button-image {
  display: block;
  width: min(100%, 375px);
  height: auto;
}

.provider-button {
  width: min(100%, 375px);
  min-height: 60px;
  padding: 0 1.05rem;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.9rem;
  border-radius: 999px;
  border: none;
  background: var(--button-fill);
  color: var(--buttonText);
  box-shadow: 0 10px 24px rgba(19, 29, 38, 0.1);
  cursor: pointer;
}

.provider-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.provider-button-secondary {
  background: #ffffff;
}

.provider-button-danger {
  background: linear-gradient(180deg, #e95a4f 0%, var(--danger) 100%);
  color: #ffffff;
}

.provider-visual {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
}

.provider-visual-text {
  background: rgba(255, 255, 255, 0.2);
  font-family: "AbCave", "Trebuchet MS", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.provider-label {
  text-align: center;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
}

.account-summary-box {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--panel-line);
  border-radius: 1.1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-label {
  margin: 0 0 0.18rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-value {
  color: var(--text);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: #21b563;
  color: #ffffff;
  font-size: 1.5rem;
}

.status-message {
  min-height: 1.2rem;
  margin: 0.85rem auto 0;
  text-align: center;
  font-size: 0.84rem;
}

.status-message.error {
  color: #b32424;
}

.status-message.success {
  color: #1d8a4d;
}

.hidden {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-bottom: 1rem;
  }

  .brand-bar { 
    min-height: 76px; 
    padding: 0.7rem 0; 
  } 
  
  .brand-inner { 
    padding: 0 1rem 0 0.6rem; 
  }

  .provider-image-button,
  .provider-button-image {
    width: min(100%, 375px);
  }
}
