/* Sprunki Sinner — mixing console */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_a/bricolage-grotesque-latin-ext.776f6dcaf0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_a/bricolage-grotesque-latin.a79fdb52d4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.sinner-studio {
  --background: #17131f;
  --surface: #231c31;
  --raised: #302640;
  --line: #544465;
  --text: #f9f0ea;
  --muted: #cfc1da;
  --warm: #ffab78;
  --signal: #94dfcf;
  --screen: #100e16;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(1rem, 3.4vw, 2.5rem);
  --measure: 68rem;
  margin: 0;
  background:
    radial-gradient(58rem 33rem at 78% 0%, #2d203d 0, transparent 72%),
    var(--background);
  color: var(--text);
  font: 1rem/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sinner-console {
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--measure)) minmax(var(--gutter), 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.sinner-console > :where(h1, section, main, .gf-404) {
  grid-column: 2;
  min-width: 0;
}

.sinner-console > :is(header, footer) {
  grid-column: 1 / -1;
}

.sinner-console :where(a, button, summary, iframe):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.sinner-console a {
  color: var(--warm);
  text-underline-offset: .18em;
}

.sinner-console :where(h1, h2, h3, h4) {
  margin: 0;
  font-family: var(--display);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.sinner-console p {
  margin: 0;
  overflow-wrap: anywhere;
}

.sinner-console :where(button, summary) {
  cursor: pointer;
}

.sinner-console :where(img, iframe) {
  max-inline-size: 100%;
}

.sinner-console svg {
  inline-size: 1.25em;
  block-size: 1.25em;
  flex: none;
  vertical-align: middle;
}

/* Masthead and the existing language menu */
.sinner-console > header {
  position: relative;
  z-index: 3;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}

.sinner-console > header nav,
.sinner-console > footer > div {
  width: min(var(--measure), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.sinner-console > header nav > div,
#menuPanel > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  min-height: 4rem;
  padding-block: .45rem;
}

.sinner-console > header nav > div > a:first-child,
#menuPanel > div:first-child > a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.13rem, 2.15vw, 1.63rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.sinner-console > header nav > div > a:first-child {
  display: flex;
  align-items: center;
  gap: .64rem;
  min-height: 2.75rem;
}

.sinner-console > header nav > div > a:first-child::before {
  content: "";
  flex: 0 0 1.2rem;
  height: .86rem;
  background: linear-gradient(90deg, var(--warm) 50%, transparent 50%) 0 0 / 6px 100%;
  clip-path: polygon(0 37%, 24% 37%, 24% 15%, 50% 15%, 50% 0, 75% 0, 75% 28%, 100% 28%, 100% 72%, 75% 72%, 75% 100%, 50% 100%, 50% 85%, 24% 85%, 24% 63%, 0 63%);
}

.sinner-console > header nav > div > :where(.hidden) {
  display: none;
}

.sinner-console > header nav > div > .hidden > div {
  position: relative;
}

.sinner-console > header nav > div > .hidden > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: .32em;
}

.sinner-console > header nav > div > .hidden > a:hover {
  color: var(--text);
  text-decoration: underline;
}

#desktopLangButton, #mobileMenuButton, #closeMenuButton, #mobileLangSwitcher {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: .45rem .7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--text);
  font: inherit;
  font-size: .85rem;
}

#desktopLangButton:hover, #mobileMenuButton:hover,
#closeMenuButton:hover, #mobileLangSwitcher:hover {
  background: var(--raised);
  border-color: var(--warm);
}

#desktopLangArrow.rotate-180 {
  transform: rotate(180deg);
}

#desktopLangDropdown, #langDropdown {
  z-index: 2;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface);
  box-shadow: 0 12px 28px #0d0b16a8;
}

#desktopLangDropdown {
  position: absolute;
  inset: calc(100% + .55rem) 0 auto auto;
  width: 11rem;
  max-height: min(65vh, 26rem);
  padding: .3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.2rem);
  transition: opacity .16s ease, transform .16s ease;
}

#desktopLangDropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#desktopLangDropdown a, #langDropdown a, #menuPanel nav > div:first-child > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  min-height: 2.75rem;
  padding: .45rem .72rem;
  border-radius: .35rem;
  color: var(--text);
  text-decoration: none;
}

#desktopLangDropdown a:hover, #langDropdown a:hover, #menuPanel nav a:hover {
  background: var(--raised);
  color: var(--warm);
}

#mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  visibility: hidden;
}

#mobileMenu[style*="pointer-events: auto"] {
  visibility: visible;
}

#menuBackdrop {
  position: absolute;
  inset: 0;
  background: #100c19c9;
  opacity: 0;
  transition: opacity .18s ease;
}

#menuPanel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(86vw, 25rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: .6rem var(--gutter) 1.2rem;
  background: var(--surface);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .22s ease;
}

#menuPanel > div:first-child {
  border-bottom: 1px solid var(--line);
}

#menuPanel nav {
  padding-block: 1rem;
}

#menuPanel nav > div + div {
  margin-top: 1rem;
}

#mobileLangSwitcher {
  width: 100%;
}

#langDropdown {
  max-height: min(40vh, 20rem);
  margin-top: .4rem;
  padding: .25rem;
  opacity: 0;
  visibility: hidden;
}

#langDropdown:not([style*="visibility: visible"]) {
  display: none;
}

@media (min-width: 65rem) {
  .sinner-console > header nav > div > .hidden {
    display: flex;
    align-items: center;
    gap: clamp(.65rem, 1.3vw, 1.4rem);
  }

  #mobileMenu, #mobileMenuButton {
    display: none;
  }

  .sinner-studio:has(#mobileMenu[style*="pointer-events: auto"]) {
    overflow: visible !important;
  }
}

/* The first screen is a single full-width playback deck. */
.sinner-console > h1 {
  display: grid;
  grid-template-columns: auto minmax(1.8rem, 1fr);
  align-items: center;
  gap: clamp(.7rem, 3vw, 2.2rem);
  margin: clamp(1.48rem, 4vw, 3rem) 0 clamp(.95rem, 2vw, 1.5rem);
  font-size: clamp(1.85rem, 5.25vw, 4.15rem);
  letter-spacing: -.048em;
  font-weight: 800;
}

:is(html:lang(ja), html:lang(ko), html:lang(zh), html:lang(th)) .sinner-console > h1 {
  letter-spacing: 0;
  line-height: 1.25;
}

.sinner-console > h1::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, var(--warm), var(--line) 58%, transparent);
}

#play {
  padding: 0 0 clamp(1.9rem, 4vw, 3rem);
}

#play > div > div {
  display: grid;
  gap: 1.65rem;
}

#play > div > div > div:first-child {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.05rem .5rem 1.05rem 1.05rem;
  background: var(--surface);
  box-shadow: 0 16px 42px #0d09175c, inset 0 1px #ffffff15;
}

#play .game-container {
  display: grid;
  gap: clamp(.4rem, 1vw, .65rem);
  padding: clamp(.46rem, 1.45vw, .92rem);
  isolation: isolate;
  background: linear-gradient(135deg, #302443, #231b31 55%);
}

#play .game-container::before {
  content: "";
  display: block;
  width: min(16rem, 48%);
  height: .31rem;
  background: repeating-linear-gradient(
    90deg, var(--warm) 0 3px, transparent 3px 7px, var(--signal) 7px 9px, transparent 9px 14px
  );
  mask-image: linear-gradient(90deg, black 35%, transparent);
}

#play .game-container iframe {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #675671;
  border-radius: .5rem;
  background: var(--screen);
}

#play .game-container ~ div {
  padding: clamp(.75rem, 2vw, 1.2rem) clamp(.9rem, 2.4vw, 1.45rem);
  border-top: 1px solid var(--line);
}

#play .game-container ~ div:has(.a2a_kit) {
  padding-block: .55rem;
}

#play .a2a_kit > div {
  display: flex;
  flex-wrap: wrap;
  gap: .36rem .65rem;
}

#play .game-container ~ div h2 {
  margin-bottom: .35rem;
  font-size: 1.16rem;
  color: var(--text);
}

#play .game-container ~ div p {
  max-width: 74ch;
  color: var(--muted);
}

/* Two browsing densities for the two existing recommendation sections. */
#play .other-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: .6rem;
}

#play .other-games-grid a {
  display: grid;
  grid-template-columns: minmax(3rem, 28%) minmax(0, 1fr);
  align-items: center;
  min-height: 4.5rem;
  padding: .38rem;
  border: 1px solid var(--line);
  border-radius: .54rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

#play .other-games-grid a > div + div {
  padding: .28rem .55rem;
}

#play :has(> .other-games-grid) > h2 {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: .65rem;
  color: var(--signal);
  font-size: 1.11rem;
}

#play :has(> .other-games-grid) > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

#otherGame {
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
}

#otherGame > div > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.3rem), 1fr));
  align-items: stretch;
  gap: .8rem;
}

#otherGame a {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

#otherGame a > div + div {
  padding: .63rem .72rem .8rem;
}

:is(#play .other-games-grid, #otherGame) a > div:first-child {
  overflow: hidden;
  min-width: 0;
  border-radius: .28rem;
  background: var(--raised);
  aspect-ratio: 4 / 3;
}

#otherGame a > div:first-child {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

:is(#play .other-games-grid, #otherGame) a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(#play .other-games-grid, #otherGame) a h3 {
  font-size: .96rem;
}

:is(#play .other-games-grid, #otherGame) a p {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.38;
}

:is(#play .other-games-grid, #otherGame) a:hover {
  border-color: var(--warm);
  background: var(--raised);
}

:is(#play .other-games-grid, #otherGame) a:hover h3 {
  color: var(--warm);
}

@media (min-width: 31rem) {
  #play > div > div > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 4fr);
  }

  #play .game-container {
    grid-column: 1 / -1;
  }

  #play .game-container ~ div {
    grid-column: 1 / -1;
  }
}

@media (min-width: 45rem) {
  #play .game-container ~ div:has(.a2a_kit) {
    display: flex;
    align-items: center;
    align-self: stretch;
    grid-column: 1;
    border-right: 1px solid var(--line);
  }

  #play .game-container ~ div:has(.a2a_kit) ~ div {
    grid-column: 2;
  }
}

/* Editorial blocks use the existing headings as a section index. */
.sinner-console > section:not(#play, #otherGame) {
  padding-block: clamp(1.8rem, 4.7vw, 3.8rem);
  border-top: 1px solid var(--line);
}

.sinner-console > section:not(#play, #otherGame) > div {
  display: grid;
  gap: 1.05rem;
}

.sinner-console > section:not(#play, #otherGame) h2 {
  color: var(--text);
  font-size: clamp(1.52rem, 2.85vw, 2.3rem);
  letter-spacing: -.033em;
}

.sinner-console > section:not(#play, #otherGame) h3,
.sinner-console > main h2 {
  color: var(--warm);
}

.sinner-console > section:not(#play, #otherGame) p {
  max-width: 68ch;
  color: var(--muted);
}

.sinner-console > section:not(#play, #otherGame) :where(p + p, h3 + p, h2 + p) {
  margin-top: .65rem;
}

.sinner-console > section:not(#play, #otherGame) :where([class~="grid"]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .85rem;
  min-width: 0;
}

.sinner-console > section:not(#play, #otherGame) :where([class~="grid-cols-2"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sinner-console > section:not(#play, #otherGame)
  :where(div[class~="bg-gray-700"], div[class~="bg-gray-800"]) {
  padding: clamp(.9rem, 1.7vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
  min-width: 0;
}

.sinner-console > section:not(#play, #otherGame) :where([class~="space-y-8"]) > * + * {
  margin-top: .85rem;
}

.sinner-console > section:not(#play, #otherGame) :where(ul, ol) {
  margin: .75rem 0 0;
  padding-inline-start: 1.35rem;
  color: var(--muted);
}

.sinner-console > section:not(#play, #otherGame) :where(li + li) {
  margin-top: .48rem;
}

.sinner-console > section:not(#play, #otherGame) :where(ul, ol):has(> li.flex) {
  padding-inline-start: 0;
  list-style: none;
}

.sinner-console > section:not(#play, #otherGame) :where([class~="flex"]) {
  display: flex;
  align-items: start;
  gap: .55rem;
  min-width: 0;
}

.sinner-console > section:not(#play, #otherGame) :where(.flex) > :where(svg, span:first-child) {
  color: var(--signal);
}

.sinner-console > section:not(#play, #otherGame) :where(li.flex) > span[class~="rounded-full"] {
  display: grid;
  place-items: center;
  flex: 0 0 1.7rem;
  min-height: 1.7rem;
  border: 1px solid var(--line);
  border-radius: .28rem;
  background: var(--raised);
  color: var(--warm);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.sinner-console > section:not(#play, #otherGame) :where(div[class~="text-center"]) > svg {
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: .65rem;
  color: var(--signal);
}

.sinner-console > section :where(div[class~="relative"]):has(> iframe) {
  position: relative;
  padding: 0 !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--screen);
  overflow: hidden;
  border-radius: .65rem;
}

.sinner-console > section :where(div[class~="relative"]) > iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sinner-console > section :where(a[class~="bg-purple-600"]) {
  display: inline-flex;
  padding: .58rem .92rem;
  border-radius: .45rem;
  background: var(--warm);
  color: var(--background);
  text-decoration: none;
  font-weight: 780;
}

.sinner-console > section :where(a[class~="bg-purple-600"]):hover {
  background: var(--signal);
}

#faq details {
  border-bottom: 1px solid var(--line);
}

#faq details:first-child {
  border-top: 1px solid var(--line);
}

#faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .95rem .65rem;
  list-style: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary h3 {
  color: var(--text);
  font-size: 1.04rem;
}

#faq summary:hover h3, #faq details[open] summary h3 {
  color: var(--warm);
}

#faq summary > span {
  color: var(--signal);
  transition: transform .17s ease;
}

#faq details[open] summary > span {
  transform: rotate(180deg);
}

#faq details > div {
  padding: 0 .65rem 1rem;
}

@media (min-width: 57rem) {
  .sinner-console > section:not(#play, #otherGame) > div {
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.77fr);
    align-items: start;
    column-gap: clamp(1.35rem, 4vw, 3.4rem);
  }

  .sinner-console > section:not(#play, #otherGame) > div > :first-child {
    grid-row: 1;
    grid-column: 1;
  }

  .sinner-console > section:not(#play, #otherGame) > div > :not(:first-child) {
    grid-column: 2;
  }

  .sinner-console > section:not(#play, #otherGame) > div > :nth-child(2) {
    grid-row: 1;
  }
}

/* Reading pages share the masthead, with a quieter text measure. */
.sinner-console > main {
  width: min(100%, 46rem);
  justify-self: center;
  padding: clamp(2.2rem, 7vw, 5.9rem) 0 clamp(3rem, 7vw, 5.9rem);
}

.sinner-console > main h1 {
  margin-bottom: 1.28rem;
  font-size: clamp(1.9rem, 5.2vw, 3.3rem);
  letter-spacing: -.036em;
}

.sinner-console > main h2 {
  margin: 1.45rem 0 .58rem;
  font-size: 1.28rem;
}

.sinner-console > main p {
  color: var(--muted);
}

.sinner-console > main :where(p + p, li + li) {
  margin-top: .72rem;
}

.sinner-console > main :where(ul, ol) {
  margin: .75rem 0;
  padding-inline-start: 1.3rem;
  color: var(--muted);
}

.sinner-console > main > section > div > div {
  padding: clamp(1.05rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--warm);
  border-radius: .32rem .32rem .84rem .84rem;
  background: var(--surface);
}

.sinner-console > footer {
  padding: clamp(1.45rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
  background: var(--background);
}

.sinner-console > footer > div {
  display: grid;
  gap: .45rem;
}

.sinner-console > footer p {
  color: var(--muted);
  font-size: .84rem;
}

.sinner-console > footer div > div {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.05rem;
  margin-top: .4rem;
}

.sinner-console > footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--text);
  font-size: .85rem;
}

.sinner-console > footer a:hover {
  color: var(--warm);
}

@media (prefers-reduced-motion: reduce) {
  .sinner-console *, .sinner-console *::before, .sinner-console *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
