@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");

:root {
  --bg: #f8f3eb;
  --paper: rgba(255, 252, 246, 0.9);
  --paper-strong: #fffdf8;
  --ink: #111111;
  --muted: #57534e;
  --line: rgba(214, 167, 26, 0.5);
  --accent: #f2b400;
  --accent-deep: #c48b00;
  --shadow: 0 30px 80px rgba(17, 17, 17, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.66), rgba(248, 243, 235, 0.72)),
    url("/assets/backgrounds/landing-collage.webp") center center / cover fixed no-repeat,
    linear-gradient(180deg, #fbf7ef 0%, #f8f3eb 100%);
  font-family: "Fredoka One", "Trebuchet MS", sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(242, 180, 0, 0.12), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(17, 17, 17, 0.04), transparent 24rem);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 243, 235, 0.28), rgba(248, 243, 235, 0.86));
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.2rem, 3vw, 2.25rem);
}

.site-header-end {
  justify-content: flex-end;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-small {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

/* Styled wordmark logo, matching the in-game header (.play-online-wordmark). */
.brand-wordmark {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.brand-wordmark .wordmark-accent {
  color: var(--accent);
  -webkit-text-stroke: 1.5px #111111;
  paint-order: stroke fill;
}

.brand-wordmark .wordmark-fill {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ghost-button,
.button {
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.ghost-button {
  border: 2px solid #111111;
  padding: 0.8rem 1.05rem;
  background: rgba(255, 252, 246, 0.64);
  backdrop-filter: blur(8px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  border-color: #111111;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(242, 180, 0, 0.24);
}

.button-primary:hover {
  background: #ffc629;
}

.button-secondary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button-secondary:hover {
  background: #262626;
}

.panel {
  background: var(--paper);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.panel-copy,
.side-copy {
  color: var(--muted);
  line-height: 1.65;
}

.field-group {
  display: grid;
  gap: 0.5rem;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.text-input,
.text-area,
.file-input {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.text-input:focus,
.text-area:focus,
.file-input:focus {
  outline: 2px solid rgba(242, 180, 0, 0.28);
  border-color: rgba(242, 180, 0, 0.9);
}

.status-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
}

.status-message[data-tone="success"] {
  color: #0d7d46;
}

.status-message[data-tone="error"] {
  color: #a12f1b;
}

.status-message[data-tone="warning"] {
  color: #8a5a00;
}

.suggestions-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.suggestion-button {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.suggestion-button:hover,
.suggestion-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 180, 0, 0.8);
  background: rgba(255, 246, 209, 0.95);
  outline: none;
}

.suggestions-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.github-prompt {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(242, 180, 0, 0.14), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.7);
}

.github-prompt-copy {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 1rem;
  }
}
