:root {
  --bg-1: #fef6e7;
  --bg-2: #ffe2b8;
  --ink: #17202a;
  --ink-soft: #334155;
  --brand: #d9480f;
  --brand-2: #0f766e;
  --card: #fffdf8;
  --line: #f3c68a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #fff7e5 0%, transparent 50%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2));
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.hero {
  padding: 2rem;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff9ef, #fff3df);
  box-shadow: 0 12px 30px rgba(34, 20, 5, 0.12);
}

h1,
h2 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--brand-2);
  border-color: #87d6cf;
}

.grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid #edd4b2;
  border-radius: 14px;
  background: var(--card);
  padding: 1rem;
}

.daily-feature {
  margin-top: 1.25rem;
}

.daily-art {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5be8d;
  background: linear-gradient(135deg, #fff7eb, #ffeccf);
}

.daily-guess-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.daily-guess-result {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.daily-stats {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.daily-stats p {
  margin: 0;
  background: #fff7e6;
  border: 1px solid #eac593;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.cookie-dex {
  margin-top: 0.75rem;
  background: #fff7e6;
  border: 1px solid #eac593;
  border-radius: 10px;
  padding: 0.65rem;
}

.cookie-dex p {
  margin: 0;
}

.dex-recent {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dex-pill {
  display: inline-block;
  background: #fffef9;
  border: 1px solid #e9cc9e;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.86rem;
  color: #5a3a14;
}

.share-panel {
  margin-top: 0.85rem;
}

.share-panel p {
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-actions .button {
  padding: 0.5rem 0.85rem;
}

header.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 1rem;
}

.legal {
  border: 1px solid #eccca2;
  border-radius: 14px;
  background: #fff9ef;
  padding: 1.25rem;
}

footer {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
  color: #5b6470;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.play-form {
  display: grid;
  gap: 0.6rem;
}

.play-form input {
  border: 1px solid #d9b485;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  background: #fffefb;
}

.play-image {
  width: min(100%, 520px);
  border-radius: 14px;
  border: 1px solid #e8c596;
  background: linear-gradient(135deg, #fff7eb, #ffeccf);
  padding: 0.5rem;
}

.play-image.silhouette {
  filter: brightness(0);
}

.player-list {
  margin: 0;
  padding-left: 1.1rem;
}

.player-list li {
  margin: 0.25rem 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.small-note {
  margin: 0;
  font-size: 0.9rem;
}

.play-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ad {
  overflow: hidden;
  border-radius: 8px;
  background: #fff8ee;
  min-height: 100px;
}

.ad-top {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  min-height: 100px;
}

.ad-top .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 90px;
}

.ad-side {
  align-self: start;
  position: sticky;
  top: 1rem;
  width: 300px;
  min-height: 250px;
}

.ad-side .adsbygoogle {
  display: block;
  width: 300px;
  min-height: 250px;
}

@media (min-width: 1100px) {
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

  .ad-side {
    min-height: 600px;
  }

  .ad-side .adsbygoogle {
    min-height: 600px;
  }
}

@media (max-width: 1099px) {
  .ad-side {
    display: none;
  }
}

.button.large {
  font-size: 1.15rem;
  padding: 0.85rem 2rem;
  margin-top: 1rem;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.name-row label {
  font-weight: 600;
  white-space: nowrap;
}

.name-row input {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

.streak-display {
  display: inline-block;
  background: #fff3d9;
  border: 1.5px solid #d29f63;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7c4b1a;
  margin-top: 0.75rem;
}

.streak-display.hidden {
  display: none;
}

.guess-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #d9b485;
  border-radius: 14px;
  padding: 0.38rem 0.45rem;
  background: linear-gradient(180deg, #fffefb, #fff7eb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(84, 54, 16, 0.08);
}

.guess-shell:focus-within {
  border-color: #d9480f;
  box-shadow: 0 0 0 3px rgba(217, 72, 15, 0.16), 0 10px 24px rgba(84, 54, 16, 0.14);
}

.guess-icon {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff2ce 0%, #ffd88a 70%);
  color: #7a4a18;
  font-weight: 800;
}

#guess-input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.04rem;
  padding: 0.5rem 0.4rem;
}

#daily-guess-input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.04rem;
  padding: 0.5rem 0.4rem;
}
