/* Daily Crossword page */

.crossword-layout {
  display: flex;
  justify-content: center;
  padding: 20px var(--space-4);
}

.crossword-page {
  display: grid;
  gap: var(--space-6);
  width: 100%;
  max-width: 880px;
  padding: var(--space-8);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-1);
}

.crossword-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.crossword-hero h1 {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.crossword-stage {
  display: grid;
  gap: var(--space-3);
}

.crossword-widget-shell {
  padding: clamp(8px, 1.5vw, 14px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 22%) 0%, transparent 30%),
    var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 22px;
}

html[data-theme="dark"] .crossword-widget-shell {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, transparent 30%),
    var(--surface-1);
}

.crossword-frame {
  display: block;
  width: 100%;
  height: 760px;
  margin: 0 auto;
  border: 0;
}

.crossword-credit,
.crossword-fallback {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: center;
}

.crossword-credit a,
.crossword-fallback a {
  color: var(--accent);
}

.crossword-open-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-inline: auto;
  padding: var(--space-2) var(--space-4);
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 999px;
}

.crossword-open-direct:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

@media (max-width: 600px) {
  .crossword-layout {
    padding-inline: var(--space-2);
  }

  .crossword-page {
    gap: var(--space-5);
    padding: var(--space-4);
    border-radius: 20px;
  }

  .crossword-widget-shell {
    padding: 4px;
    border-radius: 18px;
  }

  .crossword-frame {
    height: 1040px;
  }
}
