body { background: var(--paper); }

.page-doc .shell { display: block; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.ico {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  color: inherit;
}

.nav-toggle .ico { width: 1.5rem; height: 1.5rem; }
.nav-toggle .nt-close { display: none; }
.nav-toggle[aria-expanded='true'] .nt-open { display: none; }
.nav-toggle[aria-expanded='true'] .nt-close { display: block; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 11rem;
  margin-top: 0.75rem;
  padding: 0.375rem;
  border-radius: 14px;
  background: var(--menu-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.nav-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 1rem;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0.05s;
}
.nav .nav-menu a {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav .nav-menu a::after { content: none; }
.nav .nav-menu a:hover,
.nav .nav-menu a:focus-visible { color: var(--ink); background: var(--hover); }
.nav .nav-menu a:focus-visible { outline-offset: -1px; }
@media (hover: none) {
  .nav-menu { display: none; }
}

.page-doc .plate-halo { padding-top: calc(var(--bar-h) + var(--safe-t)); }

.page-doc .plate:not(.plate-plain) {
  width: calc(100% - var(--gut) * 2);
  max-width: calc(var(--max) - var(--gut) * 2);
  margin: clamp(0.5rem, 1.5vw, 1rem) auto 0;
}
.page-doc .plate:not(.plate-plain) .hero {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.25rem);
  color: var(--on-dark);
}
.page-doc .plate:not(.plate-plain) .tag { display: block; margin-bottom: 1rem; color: var(--on-dark-2); }
.page-doc .plate:not(.plate-plain) .d1 { max-width: 16ch; color: var(--on-dark); }
.page-doc .plate:not(.plate-plain) .hero-sub { max-width: 44ch; margin-top: 1.25rem; color: var(--on-dark-2); }
.page-doc .plate:not(.plate-plain) .hero-actions { margin-top: 2rem; }
.page-doc .plate:not(.plate-plain) .pill:not(.pill-line) { background: var(--on-dark); color: #111111; }
.page-doc .plate:not(.plate-plain) .pill-line { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.page-doc .plate:not(.plate-plain) .pill-line:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--on-dark); }

.page-doc .plate-plain {
  display: block;
  width: 100%;
  max-width: var(--max);
  min-height: 0;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.page-doc .plate-plain::before,
.page-doc .plate-plain::after { content: none; }

.page-doc .plate-plain .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  column-gap: var(--col-gap);
  padding: var(--hero-top) var(--gut) var(--hero-bottom);
}
.page-doc .plate-plain .hero > .tag { grid-column: 1 / -1; margin-bottom: 1.5rem; }
.page-doc .plate-plain .hero > .d1 { grid-column: 1; grid-row: 2 / span 3; max-width: 14ch; }
.page-doc .plate-plain .hero > :not(.tag):not(.d1) { grid-column: 2; }
.page-doc .plate-plain .hero-sub { max-width: 36ch; }
.page-doc .plate-plain .hero-actions,
.page-doc .plate-plain .help-search { margin-top: 1.75rem; }

.page-doc .plate-plain .hero.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
}
.page-doc .plate-plain .hero.hero-center > .d1 { max-width: 16ch; }
.page-doc .plate-plain .hero.hero-center .hero-sub { max-width: 40ch; margin-top: 1.5rem; }
.page-doc .plate-plain .hero.hero-center .hero-actions { justify-content: center; margin-top: 2rem; }

.page-doc .plate-plain .hero.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.page-doc .plate-plain .hero.hero-stack > .tag { margin-bottom: 1.25rem; }
.page-doc .plate-plain .hero.hero-stack > .d1 { max-width: 22ch; }
.page-doc .plate-plain .hero.hero-stack .hero-sub { max-width: 40ch; margin-top: 1.5rem; }
.page-doc .plate-plain .hero.hero-stack .hero-actions { margin-top: 2rem; }

.sec { padding-block: var(--sec-y); }

.sec-head {
  max-width: var(--body-w);
  margin: 0 auto var(--sec-in);
}
.sec-head .tag { display: block; margin-bottom: 1rem; }
.sec-head h2 {
  max-width: var(--head-w);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--head-ls);
  text-wrap: balance;
}
.sec-head p {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.sec-head .go { margin-top: 1.5rem; }

.sec-body {
  max-width: var(--body-w);
  margin-inline: auto;
}
.sec-body > * + * { margin-top: clamp(2rem, 3.5vw, 3rem); }

.defs > li,
.defs > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 0.75rem var(--col-gap);
  padding-block: var(--row-y);
}
.defs h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: var(--title-ls);
  text-wrap: pretty;
}
.defs p {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.defs p + p { margin-top: 0.75rem; }
.defs .go { margin-top: 0.875rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) var(--col-gap);
}
.steps > li { padding-top: 0; }
.steps h3 { font-size: 1.25rem; letter-spacing: var(--title-ls); }
.steps p {
  margin-top: 0.625rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem var(--col-gap);
}
.cards > * {
  display: flex;
  flex-direction: column;
}
.cards h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: var(--title-ls); text-wrap: pretty; }
.cards .tag { display: block; margin-bottom: 0.75rem; }
.cards p {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.cards .go { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; font-size: 0.9375rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
}
.facts > div { padding-block: 0.5rem; }
.facts dt { color: var(--ink-2); font-size: 0.9375rem; }
.facts dd {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 3.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.facts dd small {
  display: block;
  margin-top: 0.875rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.note {
  max-width: 40rem;
  margin-inline: auto;
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}
.note b { font-weight: 500; }
.note .tag { display: block; margin-bottom: 0.5rem; }

.tbl {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.tbl table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.tbl th,
.tbl td {
  padding: 1rem 1.25rem 1rem 0;
  text-align: left;
  vertical-align: top;
  font-size: 1rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--line-soft);
}
.tbl thead th {
  color: var(--ink-3);
  font-size: 0.875rem;
  white-space: nowrap;
}
.tbl td { color: var(--ink-2); }
.tbl th[scope='row'] { color: var(--ink); }

.page-doc .end {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(var(--max) - var(--gut) * 2);
  margin: 0 auto;
  padding: var(--sec-y) clamp(1.5rem, 4vw, 4rem);
  background: none;
  color: var(--ink);
  text-align: center;
}
.page-doc .end .d2 { max-width: 18ch; }
.page-doc .end .lede {
  margin: 1.25rem auto 0;
  max-width: 40ch;
  text-wrap: balance;
}
.page-doc .end-actions {
  justify-content: center;
  margin: 2rem auto 0;
}
.page-doc .end .pill-line:hover { background: var(--card); }

.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease);
}
.foot-status:hover { color: var(--ink); }
.foot-social { display: flex; gap: 0.25rem; }
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.foot-social a:hover { color: var(--ink); background: var(--hover); }
.foot-social .ico { width: 1.125rem; height: 1.125rem; }

.rise-on [data-rise]:is(.facts, .cards, .steps, .defs, .seq) > * {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s var(--ease) var(--rise-d, 0s),
    transform 0.55s var(--ease) var(--rise-d, 0s);
}
.rise-on [data-rise].in:is(.facts, .cards, .steps, .defs, .seq) > * {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .nav-item { display: block; }
  .nav-item > a { display: flex; }
  .nav-menu { display: none; }
}

@media (max-width: 900px) {
  .page-doc .plate-plain .hero { grid-template-columns: minmax(0, 1fr); }
  .page-doc .plate-plain .hero > .d1 { grid-row: auto; }
  .page-doc .plate-plain .hero > :not(.tag):not(.d1) { grid-column: 1; }
  .page-doc .plate-plain .hero-sub { margin-top: 1.5rem; }

  .defs > li,
  .defs > div { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .defs p { max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 560px) {
  .page-doc .plate-plain .hero { padding: 2.5rem var(--gut) 2.5rem; }
  .page-doc .plate-plain .hero > .d1 { max-width: none; }
  .page-doc .plate-plain .hero-sub { max-width: none; }

  .sec-head h2 { font-size: clamp(1.875rem, 8.5vw, 2.25rem); }
  .cards p,
  .note { max-width: none; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .facts dd { font-size: 1.875rem; }
  .facts dd small { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rise-on [data-rise]:is(.facts, .cards, .steps, .defs, .seq) > * { opacity: 1; transform: none; }
  .nav-menu { transition: none; }
}

.page-read { --sec-y: clamp(3.5rem, 6.5vw, 6rem); }
.page-read .sec-head {
  max-width: var(--read-w);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.page-read .sec-head h2,
.page-read .sec-head p { max-width: none; }
.page-read .sec-body { max-width: var(--read-w); }
.page-read .sec-body > * + * { margin-top: 1.25rem; }
.page-read .sec-body > p {
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.sec-body > h3 {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  font-size: 1.25rem;
  letter-spacing: var(--title-ls);
}
.sec-body > h3 + p,
.sec-body > h3 + ul { margin-top: 1rem; }
.sec-body > ul > li,
.sec-body > ol > li {
  padding: 0.5rem 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.sec-body > ul > li b,
.sec-body > ul > li strong,
.sec-body > p strong { color: var(--ink); }
.sec code,
.tbl code {
  padding: 0.0625rem 0.375rem;
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.875em;
}
.sec-body p a,
.sec-body li a,
.tbl a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.sec-body p a:hover,
.sec-body li a:hover,
.tbl a:hover { text-decoration-color: var(--ink); }

.sec-n {
  display: block;
  margin-bottom: 1rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-block: 0 clamp(1rem, 3vw, 2rem);
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-btn);
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.9375rem;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.toc a:hover { color: var(--ink); background: var(--card-raised); }

.help-search {
  position: relative;
  width: 100%;
  max-width: 34rem;
}
.help-search .ico {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.help-search input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 3rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.help-search input::placeholder { color: var(--ink-3); }
.help-search input:hover { background: var(--card-raised); }
.help-search input:focus { outline: none; background: var(--card-raised); box-shadow: inset 0 0 0 1px var(--line); }
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.help-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.help-clear:hover { color: var(--ink); background: var(--card); }
.help-clear[hidden] { display: none; }

.page-doc .plate-plain .hero.help-hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-doc .plate-plain .hero.help-hero .help-search { margin-top: 2rem; }

.help-wrap {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(2rem, 6vw, 5.5rem);
  padding-bottom: var(--sec-y);
}
.help-topics {
  position: sticky;
  top: calc(var(--bar-h) + var(--safe-t) + 1.5rem);
  display: grid;
  gap: 0.125rem;
}
.help-topics[hidden] { display: none; }
.help-topics-head { margin-bottom: 0.625rem; color: var(--ink-3); font-size: 0.8125rem; }
.help-topics a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: color 0.18s var(--ease);
}
.help-topics a:hover,
.help-topics a[aria-current] { color: var(--ink); }
.help-topic-n { font-size: 0.8125rem; font-variant-numeric: tabular-nums; opacity: 0.7; }
.help-main { min-width: 0; }
.help-topics[hidden] + .help-main { grid-column: 1 / -1; max-width: 48rem; width: 100%; margin-inline: auto; }

.help-group {
  margin: clamp(3rem, 5vw, 4rem) 0 0.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--bar-h) + var(--safe-t) + 1.5rem);
}
.help-group:first-child { margin-top: 0; }
p.help-group { color: var(--ink-3); font-weight: 400; }
.help-article { border-bottom: 1px solid var(--line-soft); }
.help-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.help-title {
  display: block;
  font-size: 1.0625rem;
  letter-spacing: var(--title-ls);
}
.help-summary {
  display: block;
  margin-top: 0.125rem;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.help-head .ico {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ink-3);
  transition: transform 0.22s var(--ease), color 0.18s var(--ease);
}
.help-head:hover .ico { color: var(--ink); }
.help-head[aria-expanded='true'] .ico { transform: rotate(180deg); }
.help-body {
  max-width: 64ch;
  padding: 0.25rem 0 1.5rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}
.help-body > * + * { margin-top: 1rem; }
.help-body ul,
.help-body ol { padding-left: 1.25rem; }
.help-body ul { list-style: disc; }
.help-body ol { list-style: decimal; }
.help-body li + li { margin-top: 0.375rem; }
.help-body li::marker { color: var(--ink-3); }
.help-note {
  color: var(--ink-2);
  font-size: 1rem;
}
.help-body .go { font-size: 1rem; }
.help-empty {
  padding-block: 1rem;
  color: var(--ink-2);
}
.help-empty b { display: block; color: var(--ink); font-weight: 500; }

.status-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: 0.25rem 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line-soft);
}
.status-list dt { color: var(--ink-2); }
.status-list dd { color: var(--ink); }
.status-list dd small { display: block; margin-top: 0.125rem; color: var(--ink-3); font-size: 0.9375rem; }
.status-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.page-lost .shell {
  display: flex;
  flex-direction: column;
  min-height: min(100vh, 52rem);
  min-height: min(100svh, 52rem);
}
.lost {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bar-h) + var(--safe-t) + 2rem) var(--gut) calc(var(--bar-h) + var(--safe-b));
  text-align: center;
}
.help-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 6vw, 5.5rem);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-bottom: var(--sec-y);
  border-top: 1px solid var(--line-soft);
}
.help-more h2 { margin-bottom: 1rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.help-more-col > p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.help-more-col > p + p { margin-top: 0.75rem; }
.help-more .status-list > div:first-child { border-top: 1px solid var(--line-soft); }
.help-more-col > p.help-more-fine { margin-top: 1rem; color: var(--ink-3); font-size: 0.875rem; }

.lost .hero-sub { max-width: 36ch; margin: 1rem auto 0; }
.lost .hero-actions { justify-content: center; margin-top: 2rem; }
.offline-status { margin-top: 1.25rem; color: var(--ink-3); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .status-list > div { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
}

@media (max-width: 900px) {
  .help-wrap { grid-template-columns: minmax(0, 1fr); }
  .help-topics { display: none; }
  .help-more { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .help-body { max-width: none; }
}

.form { display: grid; gap: 1.125rem; }
.field { display: grid; gap: 0.5rem; min-width: 0; }
.field > span,
.form legend {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.field small { color: var(--ink-3); font-size: 0.875rem; line-height: 1.5; }
.form input[type='email'],
.form input[type='text'],
.form select,
.form .chooser-trigger,
.form textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.625rem 0.875rem;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  cursor: pointer;
}
.form .chooser-trigger { padding-right: 2.5rem; border: 0; }
.form .chooser-trigger[aria-expanded='true'] { background: var(--card-raised); }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; background: var(--card-raised); box-shadow: inset 0 0 0 1px var(--line); }
.form ::placeholder { color: var(--ink-3); }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 0.625rem; }
.form-say { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.form-say:empty { display: none; }
.form-say[data-state='error'] { color: var(--danger); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.panel {
  padding: var(--pad);
  border-radius: var(--r-box);
  background: var(--card);
}

.pol {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40rem) minmax(0, 1fr);
  gap: 0 clamp(2rem, 4vw, 4rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gut) var(--sec-y);
}
.pol-toc {
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: calc(var(--bar-h) + var(--safe-t) + 2rem);
  max-height: calc(100vh - var(--bar-h) - 4rem);
  overflow-y: auto;
  scrollbar-width: none;
}
.pol-toc::-webkit-scrollbar { display: none; }
.pol-toc ol { display: grid; gap: 0.125rem; }
.pol-toc a {
  display: block;
  padding: 0.3125rem 0;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.18s var(--ease);
}
.pol-toc a:hover,
.pol-toc a[aria-current='true'] { color: var(--ink); }
.pol-pick { display: none; }

.tp-tbl {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.tp-tbl:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tp-tbl table { min-width: 60rem; }
.tp-tbl th,
.tp-tbl td { font-size: 0.9375rem; line-height: 1.55; }
.tp-tbl td { color: var(--ink); }
.tp-tbl tbody th[scope='row'] { width: 11%; font-weight: 610; }
.tp-note { display: block; margin-top: 0.375rem; color: var(--ink-3); font-size: 0.8125rem; font-weight: 500; line-height: 1.45; }
.tp-tbl tbody td:nth-child(2) { width: 30%; }
.tp-tbl a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-transparency .pol-body { grid-column: 2; }

.pol-body {
  grid-column: 2;
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.7;
}
.pol-body > * + * { margin-top: 1.25rem; }
.pol-body p,
.pol-body li { color: var(--ink); text-wrap: pretty; }
.pol-body h2 {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: clamp(1.625rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: var(--head-ls);
  scroll-margin-top: calc(var(--bar-h) + 2rem);
}
.pol-body h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  line-height: 1.3;
}
.pol-body h2 + *,
.pol-body h3 + * { margin-top: 1rem; }
.pol-body ul,
.pol-body ol { padding-left: 1.5rem; }
.pol-body ul { list-style: disc; }
.pol-body ol { list-style: decimal; }
.pol-body li + li { margin-top: 0.75rem; }
.pol-body li::marker { color: var(--ink-3); }
.page-privacy .pol-body li::marker { color: var(--ink); }
.pol-body strong { font-weight: 610; }
.pol-body em { font-style: italic; }
.pol-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-3);
}
.pol-body a:hover { text-decoration-color: var(--ink); }
.pol-body .tbl { margin-top: 1.5rem; }
.pol-body .tbl table { min-width: 30rem; }
.pol-body .tbl th,
.pol-body .tbl td { font-size: 1rem; }
.pol-body .tbl td { color: var(--ink); }

.pol-body .pol-sum { padding: 0; }
.pol-body .pol-sum h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.pol-body .pol-sum ul { margin-top: 0.75rem; }
.pol-body .pol-sum li + li { margin-top: 0.375rem; }

@media (max-width: 1080px) {
  .pol { grid-template-columns: minmax(0, 1fr); }
  .pol-toc { display: none; }
  .pol-body { grid-column: 1; max-width: 42rem; margin-inline: auto; width: 100%; }
  .page-transparency .pol-body,
  .tp-tbl { grid-column: 1; }
  .pol-pick {
    position: sticky;
    top: calc(var(--bar-h) + var(--safe-t));
    z-index: 40;
    display: block;
    margin: 0 calc(var(--gut) * -1) 2rem;
    background: var(--bar-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
  .pol-pick summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0 var(--gut);
    font-size: 0.9375rem;
    list-style: none;
    cursor: pointer;
  }
  .pol-pick summary::-webkit-details-marker { display: none; }
  .pol-pick summary .ico { transition: transform 0.2s var(--ease); }
  .pol-pick[open] summary .ico { transform: rotate(180deg); }
  .pol-pick ol {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 var(--gut) 1rem;
  }
  .pol-pick a {
    display: block;
    padding: 0.5rem 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
  }
  .pol-pick a[aria-current='true'] { color: var(--ink); }
}

.page-land .end { width: 100%; }

.log { border-top: 1px solid var(--line-soft); }
.log > li {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 2fr);
  gap: 0.75rem var(--col-gap);
  padding-block: var(--row-y);
  border-bottom: 1px solid var(--line-soft);
}
.log-when {
  color: var(--ink-3);
  font-size: var(--small);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.log-what + .log-what { margin-top: 1.5rem; }
.log-what h3 {
  font-size: 1.125rem;
  letter-spacing: var(--title-ls);
  text-wrap: pretty;
}
.log-what p {
  margin-top: 0.625rem;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .log > li { grid-template-columns: minmax(0, 1fr); gap: 0.375rem; }
}

@media (max-width: 560px) {
  .log-what p { max-width: none; }
}

.price {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}
ul.price > li {
  padding: var(--row-y) clamp(1rem, 2vw, 1.75rem) 0.5rem;
}
ul.price > li:first-child { padding-left: 0; }
ul.price > li + li { border-left: 1px solid var(--line-soft); }
.price h3 {
  font-size: 1.25rem;
  letter-spacing: var(--title-ls);
}
.price ul { margin-top: 1rem; }
.price ul li {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.price ul li + li { margin-top: 0.625rem; }

@media (max-width: 900px) {
  .price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  ul.price > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  ul.price > li:nth-child(n + 3) { margin-top: var(--row-y); border-top: 1px solid var(--line-soft); }
}

@media (max-width: 560px) {
  .price { grid-template-columns: minmax(0, 1fr); }
  ul.price > li,
  ul.price > li + li { padding-inline: 0; border-left: 0; }
  ul.price > li + li { margin-top: var(--row-y); border-top: 1px solid var(--line-soft); }
}

[data-reveal] .w { display: inline-block; }
[data-reveal].is-armed .w {
  opacity: 0;
  transform: translateY(0.18em);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
[data-reveal].is-in .w { opacity: 1; transform: none; }

.page-models {
  --mg: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 1fr);
  --mg-gap: clamp(1.5rem, 4vw, 4rem);
  --row-pad: clamp(1.25rem, 2.2vw, 1.75rem);
}

.page-models .plate-plain .hero.mdl-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2.5rem var(--col-gap);
  padding-block: var(--hero-top) clamp(1rem, 3vw, 2rem);
}
.page-models .plate-plain .hero.mdl-hero > .mdl-hero-say { grid-column: 1; }
.page-models .plate-plain .hero.mdl-hero > .chip { grid-column: 2; }
.mdl-hero-say > .tag { display: block; margin-bottom: 1.5rem; }
.mdl-hero .d1 { max-width: 12ch; }
.mdl-hero .hero-sub { max-width: 38ch; margin-top: 1.25rem; }

.page-models .sec { padding-block: clamp(3rem, 5.5vw, 4.5rem) 0; }
.page-models .sec-head {
  display: grid;
  grid-template-columns: var(--mg);
  align-items: start;
  column-gap: var(--mg-gap);
  row-gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}
.page-models .sec-head h2 {
  grid-column: 1;
  max-width: 14ch;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  line-height: 1.12;
  letter-spacing: var(--head-ls);
}
.page-models .sec-head p {
  grid-column: 2 / -1;
  max-width: 38rem;
  margin: 0;
  padding-top: 0.375rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.chip-pkg {
  width: 100%;
  padding: clamp(0.5rem, 1.2vw, 0.75rem);
  border-radius: clamp(14px, 2vw, 20px);
  background: var(--card-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip-die {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(2, minmax(0, 1fr));
  gap: 1px;
  aspect-ratio: 16 / 10;
  border-radius: clamp(10px, 1.4vw, 14px);
  background: #2e2e2e;
  overflow: hidden;
}
.chip-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: clamp(0.75rem, 1.6vw, 1rem) clamp(0.875rem, 1.8vw, 1.25rem);
  background: #111111;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  letter-spacing: -0.01em;
}
.chip-brand img { filter: invert(1); opacity: 0.9; }
.chip-brand img.logo-mark { filter: invert(1); }
.chip-core {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.125rem;
  min-width: 0;
  padding: clamp(0.875rem, 1.8vw, 1.25rem);
  background: #111111;
  overflow: hidden;
}
.chip-glyph {
  width: clamp(1.25rem, 2vw, 1.5rem);
  height: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: auto;
  color: rgba(255, 255, 255, 0.86);
}
.chip-name { color: #ffffff; font-size: clamp(1rem, 1.9vw, 1.375rem); line-height: 1.15; letter-spacing: -0.02em; }
.chip-role { color: rgba(255, 255, 255, 0.6); font-size: clamp(0.75rem, 1.05vw, 0.875rem); line-height: 1.3; }

.rise-on .chip[data-rise] .chip-core { opacity: 0; transition: opacity 0.7s var(--ease); }
.rise-on .chip[data-rise] .chip-atlas { transition-delay: 150ms; }
.rise-on .chip[data-rise] .chip-cobalt { transition-delay: 300ms; }
.rise-on .chip[data-rise] .chip-altair { transition-delay: 450ms; }
.rise-on .chip[data-rise] .chip-spectre { transition-delay: 600ms; }
.rise-on .chip[data-rise].in .chip-core { opacity: 1; }

.mdl {
  display: grid;
  grid-template-columns: var(--mg);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    'role say facts'
    'name say facts';
  column-gap: var(--mg-gap);
  padding-block: var(--row-pad);
  border-top: 1px solid var(--line);
}
.mdl:first-child { padding-top: 0; border-top: 0; }
.mdl-role { grid-area: role; color: var(--ink-3); font-size: var(--small); line-height: 1.4; }
.mdl h3 {
  grid-area: name;
  margin-top: 0.375rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.mdl-say {
  grid-area: say;
  max-width: 40ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.mdl-facts { grid-area: facts; margin: 0; }
.mdl-facts > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line-soft);
}
.mdl-facts > div:first-child { padding-top: 0.125rem; border-top: 0; }
.mdl-facts dt { color: var(--ink-3); font-size: var(--small); }
.mdl-facts dd { margin: 0; color: var(--ink); font-size: 0.9375rem; }
.mdl-cells { display: flex; gap: 2px; }
.mdl-cells i {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 1px;
  background: var(--line);
  transition: background 0.3s var(--ease);
  transition-delay: calc(var(--rise-d, 0s) + 300ms + var(--c) * 55ms);
}
.mdl-cells i.on { background: var(--ink); }
.rise-on .mdl-grid[data-rise]:not(.in) .mdl-cells i.on { background: var(--line); }

.mdl-tbl { --tbl-a: calc((100% - var(--mg-gap) * 2) * 0.85 / 3.15 + var(--mg-gap) - 1.5rem); }
.mdl-tbl table,
.mdl-tbl thead,
.mdl-tbl tbody { display: block; min-width: 0; }
.mdl-tbl tr {
  display: grid;
  grid-template-columns: var(--tbl-a) repeat(4, minmax(0, 1fr));
  column-gap: 1.5rem;
}
.mdl-tbl th,
.mdl-tbl td {
  padding: 1rem 0;
  border-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.mdl-tbl thead th:not(:first-child) {
  padding-bottom: 1.125rem;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.mdl-tbl thead tr { border-bottom: 1px solid var(--line); }
.mdl-tbl tbody tr + tr { border-top: 1px solid var(--line-soft); }
.mdl-tbl th[scope='row'] { color: var(--ink-3); font-size: 0.875rem; }
.mdl-tbl td { color: var(--ink); }

ol.mdl-modes > li {
  display: grid;
  grid-template-columns: var(--mg);
  align-items: baseline;
  gap: 0.5rem var(--mg-gap);
  padding-block: 1.125rem;
  border-top: 1px solid var(--line);
}
ol.mdl-modes > li:first-child { padding-top: 0; border-top: 0; }
.mdl-modes h3 { color: var(--ink); font-size: 1.375rem; letter-spacing: var(--title-ls); }
.mdl-modes p { max-width: 44ch; color: var(--ink-2); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.mdl-modes .mdl-who { color: var(--ink); }

.page-models .cards { grid-template-columns: var(--mg); gap: 2rem var(--mg-gap); }
.page-models .cards h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: var(--title-ls); }
.page-models .cards p { max-width: 40ch; }

.page-models .end {
  width: calc(100% - var(--gut) * 2);
  max-width: var(--body-w);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.page-models .end .pill-line:hover { background: var(--card); }

.rise-on [data-rise]:is(.mdl-grid, .mdl-modes) > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease) var(--rise-d, 0s), transform 0.55s var(--ease) var(--rise-d, 0s);
}
.rise-on [data-rise].in:is(.mdl-grid, .mdl-modes) > * { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .page-models { --mg: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .mdl-facts > div { grid-template-columns: 4.75rem minmax(0, 1fr) auto; }
  .mdl-tbl { --tbl-a: calc((100% - var(--mg-gap) * 2) * 0.8 / 3 + var(--mg-gap) - 1.5rem); }
}

@media (max-width: 900px) {
  .page-models .plate-plain .hero.mdl-hero { grid-template-columns: minmax(0, 1fr); }
  .page-models .plate-plain .hero.mdl-hero > .chip { grid-column: 1; }
  .page-models .sec-head { grid-template-columns: minmax(0, 1fr); }
  .page-models .sec-head h2 { max-width: 20ch; }
  .page-models .sec-head p { grid-column: 1; padding-top: 0; }

  .mdl {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'role facts'
      'name facts'
      'say facts';
    row-gap: 0;
  }
  .mdl-say { margin-top: 1rem; }

  ol.mdl-modes > li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdl-modes h3 { grid-column: 1 / -1; margin-bottom: 0.25rem; }
}

@media (max-width: 760px) {
  .page-models .cards { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .page-models .cards p { max-width: none; }

  .mdl-tbl { overflow: visible; }
  .mdl-tbl table,
  .mdl-tbl tbody,
  .mdl-tbl tr,
  .mdl-tbl th,
  .mdl-tbl td { display: block; width: 100%; }
  .mdl-tbl thead { display: none; }
  .mdl-tbl tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding-block: 1.5rem;
  }
  .mdl-tbl tbody tr:first-child { padding-top: 0; }
  .mdl-tbl tbody th[scope='row'] {
    grid-column: 1 / -1;
    padding: 0;
    color: var(--ink);
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
  }
  .mdl-tbl td { padding: 0; }
  .mdl-tbl td::before {
    content: attr(data-who);
    display: block;
    margin-bottom: 0.125rem;
    color: var(--ink-3);
    font-size: var(--small);
  }
}

@media (max-width: 600px) {
  .page-models .sec { padding-top: 2.75rem; }
  .page-models .sec-head { padding-top: 1.25rem; }

  .mdl {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: 'role' 'name' 'say' 'facts';
  }
  .mdl h3 { font-size: 2.25rem; }
  .mdl-facts { margin-top: 1.5rem; }
  .mdl-facts > div:first-child { padding-top: 0.75rem; border-top: 1px solid var(--line-soft); }
  .mdl-say { max-width: none; }

  ol.mdl-modes > li { grid-template-columns: minmax(0, 1fr); }
  .mdl-modes p,
  .mdl-modes .mdl-who { max-width: none; }

  .chip-die { aspect-ratio: 1 / 1; }

  .page-models .end { margin-top: 3rem; padding-block: 3rem; }
}

@media (max-width: 340px) {
  .mdl-tbl tbody tr { grid-template-columns: minmax(0, 1fr); gap: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].is-armed .w { opacity: 1; transform: none; }
  .rise-on [data-rise]:is(.mdl-grid, .mdl-modes) > * { opacity: 1; transform: none; }
  .rise-on .chip[data-rise] .chip-core { opacity: 1; transition: none; }
  .mdl-cells i { transition: none; }
}

@media (max-width: 760px) {
  .pol-body .tbl table,
  .tbl table { min-width: 0; }

  .tp-tbl { overflow: visible; }
  .tp-tbl table,
  .tp-tbl tbody,
  .tp-tbl tr,
  .tp-tbl th,
  .tp-tbl td { display: block; width: 100%; }
  .tp-tbl thead { display: none; }
  .tp-tbl tbody tr { padding-block: 1.5rem; border-bottom: 1px solid var(--line-soft); }
  .tp-tbl tbody tr:first-child { padding-top: 0; }
  .tp-tbl tbody th[scope='row'] { width: 100%; padding: 0 0 0.75rem; border: 0; font-size: 1.0625rem; }
  .tp-tbl tbody td:nth-child(2) { width: 100%; }
  .tp-tbl td { padding: 0; border: 0; }
  .tp-tbl td + td { margin-top: 1rem; }
  .tp-tbl td::before {
    content: attr(data-who);
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink-3);
    font-size: 0.875rem;
  }
}

.foot:has(.seufic-perch) { position: relative; }
.seufic-perch {
  position: absolute;
  top: -1px;
  right: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)));
  width: 0;
  height: 0;
}
.seufic-perch .seufic-buddy { right: 0; }

.page-forum .forum-sec {
  padding-top: calc(var(--bar-h) + var(--safe-t) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: var(--sec-y);
}
.page-forum[data-view='topic'] .forum-sec { padding-top: calc(var(--bar-h) + var(--safe-t) + clamp(1.5rem, 3vw, 2.5rem)); }
.page-forum .pill:disabled { opacity: 0.4; cursor: default; }
.page-forum .pill.is-danger { background: var(--danger); color: #ffffff; }

.forum-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.forum-head[hidden] { display: none; }
.forum-h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 570;
  line-height: 1;
  letter-spacing: -0.045em;
}
.forum-lede {
  max-width: 44ch;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.forum-head-act { flex: none; }
.forum-head-act:empty { display: none; }

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: var(--col-gap);
  align-items: start;
}
.forum-main { min-width: 0; }

.forum-side {
  position: sticky;
  top: calc(var(--bar-h) + var(--safe-t) + 1.5rem);
  display: grid;
  gap: 2.25rem;
}
#forum-side-top:empty { display: none; }
.forum-side-block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.forum-side-block h2 {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 570;
  letter-spacing: -0.006em;
}
.forum-rules { display: grid; gap: 1rem; margin-top: 1rem; }
.forum-rules b {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}
.forum-rules span {
  display: block;
  margin-top: 0.125rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}
.forum-side-links {
  display: grid;
  justify-items: start;
  gap: 0.375rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.forum-who {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.forum-side-block > .forum-who { margin-top: 0.875rem; font-size: 0.9375rem; }

.forum-facts { margin-top: 0.5rem; font-size: 0.875rem; }
.forum-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--line-soft);
}
.forum-facts > div:last-child { border-bottom: 0; }
.forum-facts dt { color: var(--ink-3); }
.forum-facts dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.forum-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--card-raised);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  user-select: none;
}
.forum-avatar.is-lg { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.forum-avatar.is-sm { width: 1.75rem; height: 1.75rem; font-size: 0.8125rem; }

.forum-name { color: var(--ink); }
.forum-hidden { margin-top: 0.5rem; color: var(--danger); font-size: 0.875rem; }

.forum-list { border-top: 1px solid var(--line); }
.forum-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: start;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.forum-row-main { min-width: 0; }
.forum-list .forum-row-title {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.011em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.forum-list .forum-row-title::after { content: ''; position: absolute; inset: 0; }
.forum-list .forum-row-title:hover { text-decoration-color: var(--ink-3); }
.forum-row-excerpt {
  margin-top: 0.25rem;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}
.forum-row-meta { margin-top: 0.375rem; color: var(--ink-3); font-size: 0.8125rem; }
.forum-row-small { display: none; }
.forum-row-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.125rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.forum-row-count { display: inline-flex; align-items: center; gap: 0.375rem; min-width: 2.75rem; }
.forum-row-count .ico { width: 1rem; height: 1rem; color: var(--ink-3); }
.forum-row-when { min-width: 2.25rem; color: var(--ink-3); text-align: right; }

.forum-list.is-loading .forum-avatar { background: var(--card); }
.forum-bone {
  display: block;
  width: 62%;
  height: 0.875rem;
  border-radius: 6px;
  background: var(--card);
}
.forum-bone + .forum-bone { margin-top: 0.625rem; }
.forum-bone.is-short { width: 34%; }

.forum-more { display: flex; justify-content: flex-start; margin-top: 1.75rem; }

.forum-empty,
.forum-gate {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.55;
}
.forum-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.forum-gate p { max-width: 48ch; }
.forum-gate b { color: var(--ink); font-weight: 500; }
.forum-back + .forum-gate { margin-top: 1.5rem; }

.forum-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}
.forum-back:hover { color: var(--ink); }
.forum-back .ico { transition: transform 0.2s var(--ease); }
.forum-back:hover .ico { transform: translateX(-2px); }
.forum-back + .forum-list { margin-top: 1.5rem; }

.forum-title {
  margin-top: 1.25rem;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 570;
  line-height: 1.08;
  letter-spacing: var(--head-ls);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.forum-post {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--line-soft);
}
.forum-post.is-lead {
  margin-top: 1.75rem;
  padding-bottom: 1.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.forum-post-main { min-width: 0; }
.forum-post-head {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding-top: 0.5rem;
  font-size: 0.9375rem;
}
.forum-post-head time { color: var(--ink-3); font-size: 0.875rem; }
.forum-op {
  padding: 0.0625rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.75rem;
}
.forum-post-body {
  max-width: 68ch;
  margin-top: 0.125rem;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.forum-post.is-lead .forum-post-body { font-size: 1.125rem; }
.forum-act {
  margin: 0 -0.5rem 0 auto;
  padding: 0.125rem 0.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.forum-act:hover { color: var(--ink); }
.forum-act.is-danger:hover { color: var(--danger); }
.forum-act:disabled { opacity: 0.7; cursor: default; }
.forum-act:disabled:hover { color: var(--ink-3); }

.forum-replies-h {
  padding-block: 0.875rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.forum-compose {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  margin-top: 1.75rem;
}
.forum-compose-box { gap: 0.75rem; }
.forum-compose textarea { min-height: 7rem; }
.forum-compose-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.forum-count { color: var(--ink-3); font-size: 0.875rem; }

.forum-sheet {
  width: min(36rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.18);
  overflow: auto;
}
.forum-sheet[open] { animation: forum-rise 0.22s var(--ease); }
.forum-sheet::backdrop { background: rgba(17, 17, 17, 0.32); }
.forum-sheet-in { padding: clamp(1.5rem, 3vw, 2rem); }
.forum-sheet-title { font-size: 1.5rem; line-height: 1.2; letter-spacing: var(--title-ls); }
.forum-sheet-text { margin-top: 0.625rem; color: var(--ink-2); line-height: 1.6; }
.forum-sheet-actions { display: flex; justify-content: flex-end; gap: 0.625rem; margin-top: 1.5rem; }
.form .forum-sheet-actions { margin-top: 0.375rem; }
.forum-say { color: var(--danger); font-size: 0.9375rem; }
.forum-say:empty { display: none; }

.forum-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(1.5rem + var(--safe-b));
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.125rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.forum-toast[data-show='true'] { opacity: 1; transform: translate(-50%, 0); }
.forum-toast[data-tone='error'] { background: var(--danger); color: #ffffff; }

@keyframes forum-rise {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 900px) {
  .forum-layout { grid-template-columns: minmax(0, 1fr); }
  .forum-side { position: static; }
}

@media (max-width: 640px) {
  .forum-head { flex-direction: column; align-items: flex-start; }
  .forum-row { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.875rem; }
  .forum-row-stats { display: none; }
  .forum-row-small { display: inline; }
  .forum-post,
  .forum-compose { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem; }
  .forum-avatar.is-lg { width: 2.25rem; height: 2.25rem; font-size: 0.9375rem; }
  .forum-post-head { min-height: 2.25rem; padding-top: 0.375rem; }
  .forum-sheet {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    margin: auto 0 0;
    border-radius: var(--r-panel) var(--r-panel) 0 0;
  }
  .forum-sheet-in { padding-bottom: calc(1.5rem + var(--safe-b)); }
}

@media (prefers-reduced-motion: reduce) {
  .forum-sheet[open] { animation: none; }
  .forum-toast { transition: none; }
}

.page-daily {
  --g-five: #7fd3a5;
  --g-search: #f5a982;
  --g-anagram: #f2c35b;
  --g-ladder: #9cc9fb;
  --g-groups: #c4aef2;
  --on-g: #121214;
  --near: #e9c046;
  --tile-miss: #3a3a3d;
  --key: #262628;
  --key-hover: #323235;
  --key-miss: #141416;
  --arc-done: #2a2a2d;
  --arc-off: #0c0c0d;
}
.page-daily .daily-sec {
  padding-top: calc(var(--bar-h) + var(--safe-t) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: var(--sec-y);
}
.daily { min-height: 60vh; }
.daily-loading { color: var(--ink-3); padding: 3rem 0; }

[data-game='five'] { --g: var(--g-five); }
[data-game='search'] { --g: var(--g-search); }
[data-game='scramble'] { --g: var(--g-anagram); }
[data-game='ladder'] { --g: var(--g-ladder); }
[data-game='groups'] { --g: var(--g-groups); }

.daily-mast { margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--line-soft); }
.daily-mast-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; }
.daily-mast-row.is-sub { align-items: baseline; margin-top: 1.5rem; }
.daily-h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 580; line-height: 0.9; letter-spacing: -0.055em; }
.daily-mast-date { display: flex; gap: 1.25rem; padding-bottom: 0.5rem; white-space: nowrap; color: var(--ink-2); font-size: 0.9375rem; }
.daily-mast-no { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.daily-lede { color: var(--ink-2); font-size: 1.0625rem; }
.daily-mast-aside { color: var(--ink-3); font-size: 0.9375rem; }
.daily-mast-aside b { color: var(--ink); font-weight: 580; font-variant-numeric: tabular-nums; }
.daily-mast-sep { display: inline-block; width: 1.5rem; }

.daily-cards { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; }
.daily-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(17rem, 22vw, 20rem);
  padding: 1.125rem 1.125rem 1.25rem;
  border-radius: var(--r-box);
  background: var(--g);
  color: var(--on-g);
}
.daily-card-top { display: flex; align-items: center; justify-content: space-between; }
.daily-card-top .daily-art { width: 2rem; height: 2rem; }
.daily-card-archive {
  position: relative;
  z-index: 1;
  margin: -0.375rem -0.5rem -0.375rem 0;
  padding: 0.375rem 0.625rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.4);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.daily-card-archive:hover { background: rgba(255, 255, 255, 0.7); }
.daily-card-archive:focus-visible { outline: 2px solid var(--on-g); outline-offset: 2px; }
.daily-peek { display: flex; align-items: center; flex: 1; padding-block: 1.25rem; }
.daily-card-name { font-size: clamp(1.375rem, 1.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.daily-card-name a { color: inherit; text-decoration: none; }
.daily-card-name a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.daily-card-name a:focus-visible { outline: none; }
.daily-card:has(.daily-card-name a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.daily-card-note {
  display: -webkit-box;
  min-height: 2.8em;
  margin-top: 0.4rem;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0.74;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.daily-peek-tiles { display: flex; gap: 0.2rem; }
.daily-peek-tiles span {
  display: grid;
  place-items: center;
  width: clamp(1.375rem, 1.6vw, 1.75rem);
  height: clamp(1.375rem, 1.6vw, 1.75rem);
  padding-bottom: 0.06em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1;
  text-transform: uppercase;
}
.daily-peek-tiles.is-rung { gap: 0; padding-inline: 0.25rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.55); }
.daily-peek-tiles.is-rung span { background: none; }
.daily-peek-tiles.is-rung.is-goal { background: none; outline: 1.5px dashed rgba(18, 18, 20, 0.5); outline-offset: -1.5px; }
.daily-peek-ladder { display: grid; justify-items: start; gap: 0.5rem; }
.daily-peek-marks { display: grid; gap: 3px; }
.daily-peek-marks > span { display: flex; gap: 3px; }
.daily-peek-marks i { width: 0.875rem; height: 0.875rem; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.daily-peek-marks i[data-mark='hit'] { background: var(--on-g); }
.daily-peek-marks i[data-mark='near'] { background: var(--near); box-shadow: inset 0 0 0 1.5px var(--on-g); }
.daily-peek-words { display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.daily-peek-words span { padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.55); }
.daily-peek-theme { font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 560; letter-spacing: -0.03em; }

.daily-art { display: block; flex: none; color: var(--on-g); }
.daily-side-art { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--g); }
.daily-side-art .daily-art { width: 1.75rem; height: 1.75rem; }
.daily-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
  font-size: var(--small);
  text-decoration: none;
}
.daily-back .ico { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease); }
.daily-back:hover { color: var(--ink); }
.daily-back:hover .ico { transform: translateX(-3px); }
.daily-game-h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.daily-game-meta { margin-top: 0.35rem; color: var(--ink-3); font-size: 0.8125rem; }
.daily-meta-short { display: none; }
.daily-side-name { min-width: 0; }


.arc { max-width: 34rem; margin-inline: auto; }
.arc-head { display: grid; justify-items: center; margin-top: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.arc-badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 14px; background: var(--g); }
.arc-badge .daily-art { width: 2rem; height: 2rem; }
.arc-h1 { margin-top: 1.125rem; font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.arc-lede { margin-top: 0.625rem; color: var(--ink-2); font-size: 1rem; }
.arc-cal { margin-top: clamp(2rem, 4vw, 2.75rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line-soft); }
.arc-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.arc-month-h { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.arc-step {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.arc-step .ico { width: 1.125rem; height: 1.125rem; }
.arc-step.is-next .ico { transform: scaleX(-1); }
.arc-step:hover:not(:disabled) { background: var(--card-raised); }
.arc-step:disabled { opacity: 0.3; cursor: default; }
.arc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem clamp(0.375rem, 1.5vw, 0.75rem); }
.arc-dow { color: var(--ink-3); font-size: 0.75rem; font-weight: 600; text-align: center; }
.arc-day { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; color: var(--ink); text-decoration: none; }
.arc-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 3.25rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink-3);
  transition: transform 0.15s var(--ease);
}
.arc-tile .daily-art { position: relative; width: 52%; height: 52%; color: inherit; opacity: 0.35; }
.arc-tile::before { content: ''; position: absolute; inset: auto 0 0; height: 0; background: var(--g); }
a.arc-day:hover .arc-tile { transform: translateY(-2px); }
a.arc-day:focus-visible { outline: none; }
a.arc-day:focus-visible .arc-tile { outline: 2px solid var(--ink); outline-offset: 2px; }
.arc-day.is-started .arc-tile::before { height: 50%; }
.arc-day.is-started .arc-tile .daily-art { color: var(--on-g); opacity: 0.6; }
.arc-day.is-solved .arc-tile { background: var(--g); color: var(--on-g); }
.arc-day.is-solved .arc-tile .daily-art { opacity: 1; }
.arc-day.is-done .arc-tile { background: var(--arc-done); color: var(--ink-2); }
.arc-day.is-done .arc-tile .daily-art { opacity: 0.55; }
.arc-num { display: grid; place-items: center; min-width: 1.75rem; height: 1.5rem; padding-inline: 0.375rem; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.arc-day.is-today .arc-num { background: var(--ink); color: var(--paper); }
.arc-day.is-off .arc-tile { background: var(--arc-off); }
.arc-day.is-off .arc-tile .daily-art { display: none; }
.arc-day.is-off .arc-num { color: var(--ink-3); opacity: 0.5; }
.arc-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem 1.5rem; margin-top: 2.5rem; color: var(--ink-3); font-size: 0.8125rem; }
.arc-key-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.arc-key-tile { position: relative; width: 1rem; height: 1rem; overflow: hidden; border-radius: 4px; background: var(--card); }
.arc-key-tile.is-started { background: linear-gradient(to top, var(--g) 50%, var(--card) 50%); }
.arc-key-tile.is-solved { background: var(--g); }
.arc-key-tile.is-done { background: var(--arc-done); }

html:has(.page-daily[data-view='game']) { overflow: hidden; }
.page-daily[data-view='game'] { overflow: hidden; }
.page-daily[data-view='game'] .foot { display: none; }
.page-daily[data-view='game'] .daily-sec {
  box-sizing: border-box;
  height: 100dvh;
  padding-top: calc(var(--bar-h) + var(--safe-t));
  padding-bottom: 0;
}
.page-daily[data-view='game'] .daily { height: 100%; min-height: 0; }

.daily-game { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); height: 100%; min-height: 0; }
.daily-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-height: 0;
  padding: clamp(1.5rem, 4vh, 2.5rem) 2rem 2rem 0;
  border-right: 1px solid var(--line-soft);
  overflow-y: auto;
}
.daily-side-head { display: flex; align-items: center; gap: 0.875rem; margin-top: 0.75rem; }
.daily-game-help { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; text-wrap: pretty; }
.daily-side-link { color: var(--ink-2); font-size: var(--small); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25em; }
.daily-side-link:hover { color: var(--ink); }
.daily-game-run { align-self: stretch; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: var(--small); }
.daily-how-toggle { display: none; }

.daily-stage {
  container-type: size;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(1rem, 3vh, 2rem) 0 clamp(0.75rem, 2vh, 1.5rem) clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
}
.daily-stage > :not(.daily-say) { flex: 1; min-height: 0; width: 100%; }

.daily-say {
  position: fixed;
  top: calc(var(--bar-h) + var(--safe-t) + 1rem);
  left: 50%;
  z-index: 40;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-btn);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--small);
  font-weight: 540;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.daily-say[data-show='true'] { opacity: 1; transform: translate(-50%, 0); }

.daily-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin-top: min(1.5rem, 3cqh); }
.daily-actions[hidden] { display: none; }
.daily-actions.is-quiet { gap: 1.5rem; margin: min(1rem, 2cqh) 0; }
.daily-actions .pill { min-height: min(2.875rem, 7cqh); padding-inline: 1.375rem; font-size: 1rem; }
.daily-actions .pill:disabled { opacity: 0.35; cursor: default; }
.daily-link {
  border: 0;
  background: none;
  padding: 0.25rem 0;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.25em;
}
.daily-link:hover { color: var(--ink); }
.daily-link[hidden] { display: none; }
.daily-after { flex: none; align-self: stretch; }
.daily-after:empty { display: none; }
.daily-end { margin-top: min(1.5rem, 3cqh); padding-top: min(1.25rem, 2.5cqh); border-top: 1px solid var(--line-soft); text-align: center; }
.daily-end-say { font-size: 1.375rem; font-weight: 580; letter-spacing: -0.02em; }
.daily-end-fine { margin-top: 0.5rem; color: var(--ink-3); font-size: var(--small); }
.daily-note { margin-top: min(1rem, 2cqh); color: var(--ink-2); font-size: 0.9375rem; text-align: center; }

.is-shake { animation: daily-shake 0.32s var(--ease); }
@keyframes daily-shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
@keyframes daily-pop { 50% { transform: scale(1.06); } }
@keyframes daily-flip {
  0%, 49% { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink-3); }
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}
@keyframes daily-rise{ from { opacity: 0; transform: translateY(6px); } }

.daily-keys { display: grid; gap: min(0.375rem, 0.9cqh); width: 100%; max-width: 36rem; margin-top: min(1.75rem, 3cqh); }
.daily-keys[hidden] { display: none; }
.daily-keys-row { display: flex; justify-content: center; gap: min(0.3125rem, 1.2cqw); }
.daily-key {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 3.375rem;
  height: var(--k, 3.5rem);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--key);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 620;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), color 0.15s var(--ease);
}
.daily-key:active { background: var(--key-hover); }
.daily-key:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.daily-key.is-wide { flex: 1.6 1 0; max-width: 5.25rem; font-size: 0.75rem; letter-spacing: 0.02em; }
.daily-key .ico { width: 1.375rem; height: 1.375rem; }
.daily-key[data-mark='hit'] { background: var(--g); color: var(--on-g); }
.daily-key[data-mark='near'] { background: var(--near); color: var(--on-g); }
.daily-key[data-mark='miss'] { background: var(--key-miss); color: color-mix(in srgb, var(--ink) 30%, transparent); }

.five {
  --k: min(3.5rem, 8.5cqh);
  --t: min(4.25rem, calc((70cqh - 4rem) / 6.2), 16cqw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.five-board { display: grid; gap: min(0.5rem, 1cqh); }
.five-row { display: grid; grid-template-columns: repeat(5, var(--t)); gap: min(0.5rem, 1.6cqw); }
.five-tile {
  display: grid;
  place-items: center;
  width: var(--t);
  height: var(--t);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--tile-miss);
  font-size: calc(var(--t) * 0.5);
  font-weight: 680;
  line-height: 1;
  text-transform: uppercase;
}
.five-tile[data-mark='typed'] { box-shadow: inset 0 0 0 2px var(--ink-3); animation: daily-pop 0.12s var(--ease); }
.five-tile[data-mark='hit'] { background: var(--g); color: var(--on-g); box-shadow: none; }
.five-tile[data-mark='near'] { background: var(--near); color: var(--on-g); box-shadow: none; }
.five-tile[data-mark='miss'] { background: var(--tile-miss); color: var(--ink-2); box-shadow: none; }
.five-tile.is-land { animation: daily-flip 0.5s var(--ease) both; animation-delay: calc(var(--i) * 110ms); }

.scr {
  --s: min(4rem, 9cqh, calc((100cqw - 3rem) / 7));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scr-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; }
.scr-step {
  min-height: 2.25rem;
  padding: 0.375rem 0.95rem;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s var(--ease);
}
.scr-step.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.scr-step.is-solved { background: var(--g); color: var(--on-g); box-shadow: none; font-weight: 620; text-transform: uppercase; letter-spacing: 0.03em; }
.scr-step:disabled { cursor: default; }
.scr-step:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.scr-main { flex: 0 1 auto; margin-block: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: min(2.5rem, 6cqh); }
.scr-slots { display: flex; gap: min(0.625rem, 1.8cqw); }
.scr-slots span {
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--tile-miss);
  font-size: calc(var(--s) * 0.5);
  font-weight: 680;
  line-height: 1;
  text-transform: uppercase;
  transition: box-shadow 0.15s var(--ease);
}
.scr-slots span.is-typed { box-shadow: inset 0 0 0 2px var(--ink-3); animation: daily-pop 0.12s var(--ease); }
.scr-mixed { display: flex; flex-wrap: wrap; justify-content: center; gap: min(0.625rem, 1.8cqw); }
.scr-letter {
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--g);
  color: var(--on-g);
  font: inherit;
  font-size: calc(var(--s) * 0.5);
  font-weight: 680;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.15s var(--ease), transform 0.12s var(--ease);
}
.scr-letter:active { transform: scale(0.93); }
.scr-letter:disabled { opacity: 0.16; cursor: default; transform: none; }.scr-letter:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.scr .scr-do { flex: none; margin-top: 0; }
.scr .scr-main > .is-quiet { margin: calc(-1 * min(1.25rem, 3cqh)) 0 0; }
.scr-do .pill-line .ico { width: 1.125rem; height: 1.125rem; }

.lad {
  --k: min(3.5rem, 8.5cqh);
  --c: min(3.5rem, 6.5cqh, 15cqw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lad-tally { color: var(--ink-3); font-size: 0.9375rem; }
.lad .daily-actions.is-quiet { margin-top: min(1.5rem, 3cqh); }
.lad-rungs {
  list-style: none;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: min(0.5rem, 1cqh);
  margin: min(1rem, 2cqh) 0 0;
  padding: min(0.625rem, 1.2cqh) 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.lad-rungs::-webkit-scrollbar { display: none; }
.lad-rung { flex: none; display: grid; grid-template-columns: repeat(4, var(--c)); gap: min(0.375rem, 1.4cqw); }
.lad-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--c);
  height: var(--c);
  border-radius: 6px;
  font-size: calc(var(--c) * 0.5);
  font-weight: 680;
  line-height: 1;
  text-transform: uppercase;
}
.lad-rung.is-end .lad-cell { background: var(--g); color: var(--on-g); }
.lad-rung.is-goal .lad-cell { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g) 55%, transparent); color: var(--g); }
.lad-rung.is-step .lad-cell { background: var(--tile-miss); }
.lad-rung.is-typing .lad-cell { box-shadow: inset 0 0 0 2px var(--tile-miss); }
.lad-rung.is-typing .lad-cell:not(:empty) { box-shadow: inset 0 0 0 2px var(--ink-3); animation: daily-pop 0.12s var(--ease); }
.lad-rung.is-step .lad-cell.is-changed,
.lad-rung.is-end .lad-cell.is-changed { box-shadow: inset 0 0 0 3px var(--ink); }
.lad .daily-keys { flex: none; }
.lad-path { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 0.5rem; margin-top: 0.75rem; color: var(--ink-2); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.lad-path .ico { width: 0.875rem; height: 0.875rem; color: var(--ink-3); }

.grp {
  --r: min(4.75rem, calc((100cqh - 11rem) / 4.4), 19cqw);
  --l0: #e6dcfb;
  --l1: #d2c2f7;
  --l2: #bba3ef;
  --l3: #a283e6;
  --gap: min(0.5rem, 1.6cqw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 38rem;
  margin-inline: auto;
}
.grp-done { display: grid; gap: var(--gap); }
.grp-done:empty { display: none; }
.grp-set {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.25rem;
  height: var(--r);
  padding: 0 1rem;
  border-radius: 8px;
  background: var(--tier);
  color: var(--on-g);
  text-align: center;
  text-transform: uppercase;
}
.grp-set.is-new { animation: daily-rise 0.32s var(--ease) both; }
.grp-set b { font-size: min(1rem, 3cqw); font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
.grp-set span { font-size: min(0.875rem, 2.6cqw); font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; }
.grp-set.is-l0 { --tier: var(--l0); }
.grp-set.is-l1 { --tier: var(--l1); }
.grp-set.is-l2 { --tier: var(--l2); }
.grp-set.is-l3 { --tier: var(--l3); }
.grp-set.is-missed { background: none; box-shadow: inset 0 0 0 2px var(--tier); color: var(--tier); }
.grp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.grp-done:empty + .grp-grid { margin-top: 0; }
.grp-grid[hidden] { display: none; }
.grp-word {
  min-width: 0;
  height: var(--r);
  padding: 0 0.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--key);
  color: var(--ink);
  font: inherit;
  font-size: min(1rem, 2.7cqw);
  font-weight: 680;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.12s var(--ease);
}
.grp-word.is-on { background: var(--g); color: var(--on-g); }
.grp-word:active { transform: scale(0.96); }
.grp-word:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.grp-left { margin-top: min(1.25rem, 2.5cqh); color: var(--ink-3); font-size: 0.9375rem; text-align: center; }
.grp-left[hidden] { display: none; }
.grp .grp-do { gap: 0.625rem; align-items: center; margin-top: min(1rem, 2cqh); }

.ws { --w: min(4.25rem, calc((100cqh - 2rem) / 10.4), calc((100cqw - 17rem) / 10.4)); display: flex; flex-direction: column; justify-content: safe center; }
.ws:has(.daily-end) { --w: min(4.25rem, calc((100cqh - 10rem) / 10.4), calc((100cqw - 17rem) / 10.4)); }
.ws-play { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 4cqw, 3.5rem); }
.ws-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, var(--w));
  grid-auto-rows: var(--w);
  gap: 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.ws-cell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: calc(var(--w) * 0.42);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s var(--ease);
}
.ws-cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ws-cell[data-c] { color: var(--on-g); font-weight: 560; }
.ws-board.is-done .ws-cell:not([data-c]) { color: var(--ink-3); }
.ws-ink {
  position: absolute;
  z-index: 0;
  left: calc((var(--x) + 0.5) * 10%);
  top: calc((var(--y) + 0.5) * 10%);
  width: calc((var(--l) + 0.84) * 10%);
  height: 8.4%;
  border-radius: var(--r-pill);
  background: var(--hl);
  transform: translate(-50%, -50%) rotate(var(--a));
  pointer-events: none;
}
.ws-ink.is-sel { background: color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: inset 0 0 0 2px var(--ink); }
.ws-ink[data-c='0'],
.ws-words li[data-c='0'] { --hl: var(--g-five); }
.ws-ink[data-c='1'],
.ws-words li[data-c='1'] { --hl: var(--g-search); }
.ws-ink[data-c='2'],
.ws-words li[data-c='2'] { --hl: var(--g-anagram); }
.ws-ink[data-c='3'],
.ws-words li[data-c='3'] { --hl: var(--g-ladder); }
.ws-ink[data-c='4'],
.ws-words li[data-c='4'] { --hl: var(--g-groups); }
.ws-ink[data-c='5'],
.ws-words li[data-c='5'] { --hl: #f2a7c3; }
.ws-side { display: grid; gap: 1.25rem; align-content: center; min-width: 12rem; }
.ws-theme { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.ws-count { margin-top: 0.375rem; color: var(--ink-3); font-size: 0.9375rem; }
.ws-words { list-style: none; display: grid; gap: 0.5rem; margin: 0; padding: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.ws-words li.is-found { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hl); text-decoration-thickness: 3px; }

@media (hover: hover) {
  .daily-key:hover { background: var(--key-hover); }
  .daily-key[data-mark='hit']:hover { background: var(--g); }
  .daily-key[data-mark='miss']:hover { background: var(--key-miss); }
  .scr-step:hover:not(:disabled):not(.is-on) { background: var(--card-raised); }
  .grp-word:hover:not(.is-on) { background: var(--key-hover); }
}

@container (max-width: 44rem) {
  .ws { --w: min(3.25rem, calc((100cqh - 9.5rem) / 10.4), calc((100cqw - 0.5rem) / 10.4)); }
  .ws:has(.daily-end) { --w: min(3.25rem, calc((100cqh - 17.5rem) / 10.4), calc((100cqw - 0.5rem) / 10.4)); }
  .ws-play { flex-direction: column-reverse; gap: 1rem; }
  .ws-side { gap: 0.625rem; min-width: 0; justify-items: center; text-align: center; }
  .ws-theme { font-size: 1.25rem; }
  .ws-count { margin-top: 0.125rem; font-size: 0.8125rem; }
  .ws-words { grid-template-columns: repeat(4, auto); justify-content: center; gap: 0.25rem 0.875rem; font-size: 0.8125rem; }
}

@media (max-width: 1100px) {
  .daily-card { min-height: 16rem; padding: 1rem 1rem 1.125rem; }
  .daily-peek-tiles { gap: 0.15rem; }
  .daily-peek-tiles span { width: 1.25rem; height: 1.25rem; font-size: 0.75rem; }
  .daily-card-name { font-size: 1.25rem; }
}

@media (max-width: 860px) {
  .daily-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12.5rem, 42%);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    padding-block: 4px;
  }
  .daily-cards::-webkit-scrollbar { display: none; }
  .daily-card { scroll-snap-align: start; }
  .daily-peek-tiles { gap: 0.2rem; }
  .daily-peek-tiles span { width: 1.625rem; height: 1.625rem; font-size: 0.8125rem; }
}

@media (max-width: 860px) {
  .daily-game { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .daily-side {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    overflow: visible;
  }
  .daily-side .daily-back span { display: none; }
  .daily-side .daily-back .ico { width: 1.25rem; height: 1.25rem; }
  .daily-side-head { margin-top: 0; gap: 0.625rem; }
  .daily-side-art { width: 2.25rem; height: 2.25rem; border-radius: 8px; }
  .daily-side-art .daily-art { width: 1.375rem; height: 1.375rem; }
  .daily-game-h1 { font-size: 1.25rem; }
  .daily-game-meta { margin-top: 0.125rem; font-size: 0.75rem; white-space: nowrap; }
  .daily-side-head { min-width: 0; }
  .daily-side-link,
  .daily-game-run { display: none; }
  .daily-how-toggle {
    display: inline-flex;
    flex: none;
    margin-left: auto;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--card-raised);
    color: var(--ink);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
  }
  .daily-game-help {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 5;
    display: none;
    padding: 1rem 1.125rem;
    border-radius: var(--r-box);
    background: var(--paper);
    box-shadow: 0 0 0 1px var(--line-soft), var(--shadow);
  }
  .daily-game.is-how .daily-game-help { display: block; }
  .daily-stage { padding: clamp(0.75rem, 2.5vh, 1.5rem) 0 max(0.75rem, var(--safe-b)); }
}

@media (max-width: 480px) {
  .daily-meta-long { display: none; }
  .daily-meta-short { display: inline; }
}

@media (max-width: 640px) {
  .daily-cards { grid-auto-columns: 72%; }
  .daily-card { min-height: 15rem; }
  .daily-mast-row.is-sub { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .daily-mast-date { padding-bottom: 0; }
}

@media (max-height: 34rem) {
  html:has(.page-daily[data-view='game']) { overflow: auto; }
  .page-daily[data-view='game'] { overflow: visible; }
  .page-daily[data-view='game'] .daily-sec { height: auto; min-height: 100dvh; padding-bottom: 1.5rem; }
  .page-daily[data-view='game'] .daily,
  .daily-game { height: auto; }
  .daily-side { overflow: visible; }
  .daily-stage { container-type: inline-size; overflow: visible; }
  .five { --t: min(3rem, 13cqw); --k: 2.75rem; }
  .scr { --s: min(3rem, calc((100cqw - 3rem) / 7)); }
  .lad { --c: min(2.75rem, 15cqw); --k: 2.75rem; }
  .lad-rungs { overflow: visible; }
  .grp { --r: 2.75rem; }
  .ws { --w: min(2.375rem, calc((100cqw - 17rem) / 10.4)); }
  @container (max-width: 44rem) {
    .ws { --w: min(2.375rem, calc((100cqw - 0.5rem) / 10.4)); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .five-tile.is-land,
  .five-tile[data-mark='typed'],
  .scr-slots span.is-typed,
  .lad-rung.is-typing .lad-cell,
  .grp-set.is-new,
  .is-shake { animation: none; }
}
