:root {
  --background: #f7f7f5;
  --text: #171717;
  --muted: #686868;
  --line: #deded9;
  --focus: #171717;
  --radius: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-shell > main {
  flex: 1;
}

.intro {
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(6rem, 14vw, 10rem) 1.5rem clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.site-label {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro h1,
.policy-header h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

.intro-description {
  max-width: 620px;
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem);
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.game-slot {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 0.86;
  min-height: 240px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 2px solid rgba(23, 23, 23, 0.15);
  border-radius: var(--radius);
  # box-shadow: 0 2px 0 rgba(23, 23, 23, 0.08);
  text-decoration: none;
  background-position: center;
  background-size: cover;
}

.game-slot-coral { background: #ff6b55; }

.game-slot-live {
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.game-slot-live:hover,
.game-slot-live:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(23, 23, 23, 0.14);
}

.game-slot-title {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.65rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}
.game-slot-yellow { background: #f4cf4f; }
.game-slot-blue { background: #6fa8ff; }
.game-slot-green { background: #7fd09a; }
.game-slot-pink { background: #f3a8c5; }
.game-slot-purple { background: #ad95e8; }

.closing-note {
  width: min(720px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
}

.closing-note p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.back-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.policy-page {
  width: min(760px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0 clamp(6rem, 12vw, 9rem);
}

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.policy-header {
  padding: clamp(5rem, 12vw, 8rem) 0 4rem;
}

.policy-header h1 {
  max-width: 680px;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
}

.policy-header > p:last-child {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.policy-content {
  display: grid;
  gap: 2.75rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.policy-content section {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 2rem;
}

.policy-content h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.policy-content p {
  margin: 0;
  color: #4f4f4f;
  font-size: 1rem;
  line-height: 1.75;
}

.policy-content a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.tip-page {
  width: min(820px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0 clamp(6rem, 12vw, 9rem);
}

.tip-header {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 0 3.5rem;
  text-align: center;
}

.tip-mark {
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  margin: 0 auto 1.7rem;
  place-items: center;
  border: 2px solid rgba(23, 23, 23, 0.13);
  border-radius: 1.5rem;
  background: #f3a8c5;
  box-shadow: 0 5px 0 rgba(23, 23, 23, 0.12);
  transform: rotate(-3deg);
}

.tip-mark svg {
  width: 2.5rem;
  height: 2.5rem;
}

.tip-header h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.tip-header > p:last-child {
  max-width: 620px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.tip-panel {
  padding: clamp(1.5rem, 5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 14px 40px rgba(23, 23, 23, 0.08);
}

.tip-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tip-step {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tip-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.035em;
}

.preview-badge {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #f1eee7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tip-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tip-amounts button,
.tip-methods button {
  color: var(--text);
  font: inherit;
}

.tip-amounts button {
  min-height: 4.5rem;
  border: 2px solid #e5e3dd;
  border-radius: 1rem;
  background: #faf9f6;
  font-size: 1.15rem;
  font-weight: 800;
}

.tip-divider {
  height: 1px;
  margin: 2.5rem 0;
  background: var(--line);
}

.tip-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.tip-methods button {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 0;
  border-radius: 1rem;
  background: #171717;
  color: #fff;
  text-align: left;
}

.tip-methods button:first-child {
  background: #5a55d6;
}

.tip-methods button:disabled,
.tip-amounts button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.tip-methods span {
  font-weight: 800;
}

.tip-methods small {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.72;
}

.tip-status {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 820px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-slot { min-height: 220px; }
}

@media (max-width: 560px) {
  .intro { padding-top: 5rem; }

  .game-grid {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 420px);
  }

  .game-slot { aspect-ratio: 1.15 / 1; }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 2rem);
  }

  .site-footer p { text-align: left; }

  .policy-page {
    width: calc(100% - 2rem);
    padding-top: 2rem;
  }

  .tip-page {
    width: calc(100% - 2rem);
    padding-top: 2rem;
  }

  .tip-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tip-methods {
    grid-template-columns: 1fr;
  }

  .policy-content section {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
