:root {
  --ink: #0f2f2c;
  --muted: #5a736f;
  --bg0: #e8f6f2;
  --bg1: #f7fbfa;
  --card: #ffffff;
  --line: #d5e6e2;
  --teal: #028980;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #c9efe6 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a { color: var(--teal); }

.wrap {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

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

.brand {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.nav a {
  margin-left: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover { color: var(--teal); }

.secure-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4e5;
  border: 1px solid #f0c36d;
  color: #5c3b00;
  font-size: 0.92rem;
  line-height: 1.45;
}

.secure-banner[hidden] { display: none !important; }

.secure-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.secure-actions a {
  font-weight: 700;
}

.secure-banner code {
  font-size: 0.85em;
  background: rgba(255,255,255,0.7);
  padding: 1px 4px;
  border-radius: 4px;
}

.ad-slot {
  min-height: 90px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.ad-slot.is-live {
  border-style: solid;
  background: transparent;
  min-height: 0;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 50, 45, 0.06);
  overflow: hidden;
}

.game-frame-wrap {
  position: relative;
  width: 100%;
  /* 9:16-ish phone canvas */
  aspect-ratio: 750 / 1200;
  max-height: min(86vh, 920px);
  background: #000;
}

.game-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  padding: 16px 18px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}
