:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif;
  color: #f3f0ff;
  background: #11101d;
  --accent: #c7afff;
  --muted: #c3bdce;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 16px;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: #302a43;
  border: 1px solid #696076;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  font-weight: 650;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:hover:not(:disabled) {
  background: #443956;
}
button:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #e5d5ff;
  outline-offset: 3px;
}
.primary {
  background: #6d4fd0;
  border-color: #b99cff;
}
.shell {
  max-width: 940px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h1 {
  margin: 0;
  font-size: 28px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.variant {
  color: var(--muted);
  font-size: 14px;
}
.tagline {
  color: var(--muted);
  margin: 8px 0 16px;
  line-height: 1.5;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
  color: var(--muted);
}
.stats b {
  color: #f3f0ff;
  font-weight: 650;
  margin-inline-end: 4px;
}
.board {
  --size: 5;
  display: grid;
  grid-template-columns: repeat(var(--size), minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 560px);
  margin-inline: auto;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 2px solid rgb(0 0 0 / 0.35);
  border-radius: 10px;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease;
}
.tile:hover:not(:disabled) {
  background-color: inherit;
  transform: scale(1.03);
}
.tile[aria-pressed="true"] {
  border-color: #ffffff;
  transform: scale(0.92);
  box-shadow:
    0 0 0 3px #11101d,
    0 0 0 6px #ffffff;
}
.tile.fixed {
  cursor: not-allowed;
  opacity: 1;
  background-image: repeating-linear-gradient(
    135deg,
    rgb(0 0 0 / 0.18) 0 6px,
    transparent 6px 12px
  );
}
.tile.correct::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--mark, #fff);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.35);
}
.tile.hinted {
  animation: pulse 0.9s ease-in-out 2;
}
@keyframes pulse {
  50% {
    transform: scale(1.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile.hinted {
    transition: none;
    animation: none;
  }
}
.note {
  min-height: 1.4em;
  color: var(--muted);
  text-align: center;
}
.controls {
  display: grid;
  gap: 14px;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tabs button[aria-pressed="true"] {
  background: #4b3b7a;
  border-color: #c7afff;
}
label {
  display: grid;
  gap: 6px;
}
select {
  padding: 10px;
  border-radius: 10px;
  color: inherit;
  background: #1c1930;
  border: 1px solid #696076;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.result {
  padding: 14px;
  border: 1px solid #8d7ad0;
  border-radius: 14px;
  background: #1c1930;
}
.result h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.stars {
  font-size: 22px;
  color: #ffd166;
  margin: 6px 0;
}
.muted,
.privacy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
details {
  background: #1c1930;
  border-radius: 12px;
  padding: 10px 14px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
ul {
  padding-inline-start: 20px;
  line-height: 1.55;
  color: var(--muted);
}
footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
footer a {
  color: var(--accent);
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
