:root {
  color-scheme: light;
  --dark: #141517;
  --surface: #1c1e20;
  --ink: #18191b;
  --muted: #52565b;
  --line: #dcdfe1;
  --orange: #ff864c;
  --off-white: #f2f3f3;
  --width: 76rem;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c54c16; outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .demo :focus-visible { outline-color: var(--orange); }
.wrap { width: min(var(--width), 100% - 8rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; inset: .5rem auto auto .5rem; background: white; padding: .75rem; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.header { background: var(--dark); color: white; border-bottom: 1px solid #ffffff24; }
.header-inner { min-height: 5.25rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; font-size: 1.125rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.brand img { border-radius: .3rem; }
.header nav { display: flex; align-items: center; gap: 2.25rem; }
.header nav a { text-decoration: none; color: #d6d7d9; font-size: .9rem; }
.header nav a:hover { color: white; text-decoration: underline; text-underline-offset: .35em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.125rem; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: .34rem; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-header { justify-self: end; min-height: 2.6rem; border-color: #ffffff5c; padding-inline: 1rem; }
.button-header:hover { background: #343639; }
.button-primary { background: var(--orange); color: #161616; }
.button-primary:hover { background: #ffa476; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(32rem, 43vw, 42rem); overflow: hidden; color: white; background: var(--dark); }
.hero-photo { position: absolute; z-index: -2; width: 76%; height: 100%; inset: 0 0 0 auto; object-fit: cover; object-position: 45% 61%; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #141517 21%, #141517ee 33%, #141517bd 51%, #1415176b 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.16fr); align-items: center; gap: 1.5rem; padding-block: 4rem 4.5rem; }
.kicker { display: flex; align-items: center; gap: .65rem; color: #e8e8e7; font-size: .875rem; }
.kicker span { width: 1.6rem; height: 2px; background: var(--orange); }
h1 { margin: 1.2rem 0 1.4rem; font-size: clamp(3.65rem, 6.25vw, 6.15rem); font-weight: 750; letter-spacing: -.072em; line-height: .93; }
.hero-description { max-width: 26.5rem; font-size: 1.125rem; line-height: 1.65; color: #dedfe0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 1.85rem; }
.quiet-link { padding-block: .7rem; font-size: .9rem; text-underline-offset: .32em; }
.quiet-link:hover { color: var(--orange); }
.hero-screens { position: relative; min-width: 0; width: 100%; aspect-ratio: 1.35; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-screen {
  position: absolute;
  padding: .36rem;
  border: 1px solid #ffffff45;
  border-bottom-color: #8a929e;
  border-radius: .65rem;
  background: #292c31;
  box-shadow: 0 6px 0 #101114, 0 14px 22px #0008, 0 32px 60px #0007;
}
.hero-screen img { width: 100%; height: auto; border-radius: .32rem; }
.hero-screen-control { width: 88%; top: 2%; left: 0; transform: perspective(980px) rotateY(-13deg) rotateX(7deg) rotateZ(-5deg); }
.hero-screen-guest { width: 76%; bottom: 1%; right: 0; transform: perspective(860px) rotateY(-12deg) rotateX(6deg) rotateZ(4deg); }
.facts { background: var(--surface); color: white; border-top: 1px solid #ffffff22; }
.facts-inner { display: grid; grid-template-columns: .92fr 1.1fr 1fr; }
.facts-inner > div { padding: 1.7rem 1.5rem 1.8rem; }
.facts-inner > div:first-child { padding-left: 0; }
.facts-inner > div + div { border-left: 1px solid #ffffff24; }
.facts dt { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.facts dd { margin-top: .45rem; font-size: .875rem; color: #c3c6ca; line-height: 1.45; }

.section { padding-block: clamp(4rem, 7.4vw, 7rem); }
h2 { font-size: clamp(2.45rem, 4.45vw, 4.45rem); font-weight: 750; letter-spacing: -.06em; line-height: 1.02; }
.section p { line-height: 1.6; }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-heading p { max-width: 21rem; color: var(--muted); }
.games-layout { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 3.2fr); gap: 1.75rem; }
.games-layout:has(#game-tabs[hidden]) { grid-template-columns: 1fr; }
#game-tabs { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); }
.game-tab { display: block; min-height: 3.35rem; padding: .65rem .9rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; text-align: left; cursor: pointer; }
.game-tab:hover { background: #f5f5f6; }
.game-tab[aria-selected='true'] { background: #f2f3f3; color: var(--ink); box-shadow: inset 3px 0 #d95620; }
.game-display { min-width: 0; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; }
.game-display img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #141517; }
.game-display figcaption { padding: 1.15rem 1.35rem 1.35rem; }
.game-display h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.game-display p { color: var(--muted); margin-top: .35rem; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; list-style: none; font-weight: 700; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: #aa4219; }
.expand { position: relative; flex: none; width: .9rem; height: .9rem; }
.expand::before, .expand::after { content: ''; position: absolute; inset: calc(50% - .5px) 0 auto; height: 1px; background: currentColor; }
.expand::after { transform: rotate(90deg); }
details[open] .expand::after { transform: none; }
.operation { background: var(--off-white); }
.app-view { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: .5rem; background: white; }
.app-view > .screenshot-link { aspect-ratio: 1640 / 980; border-radius: .5rem 0 0 .5rem; }
.app-view img { width: 100%; height: 100%; object-fit: contain; }
.app-view figcaption { align-self: center; padding: clamp(1.25rem, 3vw, 2.5rem); }
.app-view h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.app-view p { color: var(--muted); margin-top: .35rem; }
.features { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 6vw, 6rem); }
.feature { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.feature h3 { font-size: clamp(1.125rem, 2vw, 1.35rem); letter-spacing: -.025em; }
.feature ul { margin: .8rem 0 0; padding-inline-start: 1.15rem; color: var(--muted); line-height: 1.55; }
.feature li + li { margin-top: .4rem; }
.feature li::marker { color: #aa4219; }
.feature a { color: var(--ink); text-underline-offset: .2em; }
.feature a:hover { color: #aa4219; }
.screenshot-link { position: relative; display: block; overflow: hidden; background: #10131c; }
.screenshot-link:focus-visible { outline-offset: -3px; }
.enlarge-icon {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #ffffff73;
  border-radius: .35rem;
  background: #141517d9;
  color: white;
}
.enlarge-icon::before, .enlarge-icon::after { content: ''; position: absolute; width: .55rem; height: .55rem; }
.enlarge-icon::before { border-top: 1px solid; border-right: 1px solid; top: .55rem; right: .55rem; }
.enlarge-icon::after { border-bottom: 1px solid; border-left: 1px solid; bottom: .55rem; left: .55rem; }
.screenshot-link:hover .enlarge-icon { background: #93512c; }
.screenshot-dialog { width: min(95vw, 104rem); max-width: unset; max-height: 94dvh; padding: 0; background: var(--dark); color: white; border: 1px solid #5f6265; border-radius: .6rem; }
.screenshot-dialog::backdrop { background: #090a0be8; }
.screenshot-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; }
.screenshot-dialog h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.screenshot-dialog img { width: 100%; max-height: 81dvh; object-fit: contain; background: #10131c; }
.screenshot-close { color: white; background: #303237; min-height: 2.5rem; }
.screenshot-close:hover { background: #474a50; }
.screenshot-close:focus-visible { outline-color: var(--orange); }
.faq, .demo-inner, .support-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 8vw, 8.5rem); }
.support-copy { color: var(--muted); }
.support-copy p + p { margin-top: .75rem; }
.support-link { display: inline-block; margin-top: 1.15rem; color: var(--ink); font-weight: 700; text-underline-offset: .28em; }
.support-link:hover { color: #aa4219; }
.demo-inner > div:first-child p { max-width: 27rem; margin-top: 1.25rem; }
.faq p { color: var(--muted); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details p { padding: 0 1.35rem 1.2rem 0; }

.demo { background: var(--dark); color: white; }
.demo-inner > div:first-child p { color: #d0d2d3; }
.contact-link { display: inline-block; margin-top: 1.25rem; color: var(--orange); text-underline-offset: .3em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
form label { display: block; margin-bottom: .9rem; font-size: .875rem; font-weight: 700; color: #e3e4e6; }
form label span { color: #bbbfc2; font-weight: 400; }
form input, form textarea { display: block; margin-top: .5rem; padding: .7rem; width: 100%; border: 1px solid #5f6265; border-radius: .3rem; color: white; background: var(--surface); color-scheme: dark; }
form textarea { min-height: 5rem; resize: vertical; }
.form-note { margin-top: .65rem; font-size: .8125rem; color: #c1c4c7; }
.form-note a { text-underline-offset: .2em; }
.form-note:empty { display: none; }
.demo-unavailable { align-self: center; font-size: 1rem; }
.demo form button:disabled { opacity: .65; cursor: wait; }
.footer { background: var(--dark); color: #d0d2d3; border-top: 1px solid #ffffff25; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; font-size: .875rem; }
.footer-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.footer .brand { color: white; }
.footer-copyright { color: #bfc2c4; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; text-underline-offset: .25em; }
.footer-legal a:hover { color: white; }
.footer-legal a[aria-current='page'] { color: var(--orange); }
.legal-page { background: var(--off-white); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.legal-hero { background: var(--dark); color: white; }
.legal-hero-inner { padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2.25rem, 5vw, 4.25rem); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.legal-tabs a { display: inline-flex; align-items: center; min-height: 2.75rem; border-bottom: 2px solid transparent; color: #d3d5d7; font-size: .9rem; font-weight: 700; text-decoration: none; }
.legal-tabs a:hover, .legal-tabs a[aria-current='page'] { color: white; border-color: var(--orange); }
.legal-tabs a:focus-visible { outline-color: var(--orange); }
.legal-hero h1 { margin: 1.1rem 0 .7rem; font-size: clamp(2rem, 5.7vw, 4.35rem); letter-spacing: -.055em; overflow-wrap: anywhere; }
.legal-hero p { color: #d1d2d3; line-height: 1.55; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); grid-template-areas: 'sheet index'; align-items: start; gap: clamp(1.5rem, 4.5vw, 3.5rem); max-width: 69rem; padding-block: clamp(1.5rem, 4.5vw, 4rem); }
.legal-sheet { grid-area: sheet; min-width: 0; padding: clamp(1.35rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: .65rem; background: white; }
.legal-index { grid-area: index; position: sticky; top: 1.25rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: .65rem; background: white; }
.legal-index h2 { font-size: .9rem; letter-spacing: 0; }
.legal-index ul { margin: .55rem 0 0; padding: 0; list-style: none; }
.legal-index a { display: flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .9rem; text-decoration-color: #c8cbd0; text-underline-offset: .24em; }
.legal-index a:hover { color: #933b15; }
.legal-content h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); letter-spacing: -.028em; }
.legal-content :is(h2, section)[id] { scroll-margin-top: 1.5rem; }
.legal-content section + section { border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.65rem; }
.legal-content p, .legal-content address { color: var(--muted); margin-top: .8rem; line-height: 1.7; }
.legal-content address { font-style: normal; }
.legal-content a { color: var(--ink); overflow-wrap: anywhere; text-underline-offset: .18em; }
.legal-contacts { display: grid; gap: .85rem; margin-top: .85rem; }
.legal-contacts div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: .25rem .75rem; }
.legal-contacts dt { color: var(--muted); }

@media (max-width: 64rem) {
  .wrap { width: min(var(--width), 100% - 4rem); }
  .hero-photo { width: 85%; }
}

@media (max-width: 52rem) {
  .hero-inner { grid-template-columns: 1fr; justify-items: start; gap: 1.65rem; padding-block: 3.25rem 3rem; }
  .hero-screens { max-width: 36rem; width: 95%; justify-self: center; }
  .hero::after { background: linear-gradient(180deg, #141517 12%, #141517b3 58%, #14151780 100%); }
}

@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; padding-block: .85rem .7rem; gap: .6rem 1rem; }
  .header nav { order: 3; grid-column: 1 / -1; flex-wrap: wrap; gap: 0 1.35rem; padding-top: .35rem; }
  .header nav a { padding-block: .38rem; }
  .hero { min-height: 0; align-items: start; }
  .hero-inner { padding-block: 2.85rem 2.1rem; }
  .hero-photo { width: 100%; height: 26rem; inset: auto 0 0; object-position: center; }
  .hero-screen { padding: .23rem; border-radius: .42rem; box-shadow: 0 4px 0 #101114, 0 9px 16px #0009; }
  .hero-screen-control { transform: perspective(900px) rotateY(-12deg) rotateX(5deg) rotateZ(-4deg); }
  .hero-screen-guest { transform: perspective(860px) rotateY(-10deg) rotateX(4deg) rotateZ(4deg); }
  h1 { font-size: clamp(3.65rem, 11vw, 5.2rem); }
  .hero-description { font-size: 1rem; }
  .facts-inner { grid-template-columns: 1fr; }
  .facts-inner > div { padding: 1rem 0; }
  .facts-inner > div + div { border-left: 0; border-top: 1px solid #ffffff24; }
  .section { padding-block: 3.5rem; }
  .section-heading, .games-layout, .feature-grid, .faq, .demo-inner, .support-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .app-view { grid-template-columns: 1fr; }
  .app-view > .screenshot-link { border-radius: .5rem .5rem 0 0; }
  .game-tab { overflow-wrap: anywhere; }
  #game-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .game-tab { border-right: 1px solid var(--line); text-align: center; padding: .5rem .25rem; font-size: .875rem; }
  .game-tab[aria-selected='true'] { box-shadow: inset 0 -3px #d95620; }
  .game-display figcaption { padding: 1rem; }
  .demo-inner { gap: 1.8rem; }
  .footer-inner, .footer-identity, .footer-legal { justify-content: center; }
  .footer-identity, .footer-legal { width: 100%; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'index' 'sheet'; }
  .legal-index { position: static; }
  .legal-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; }
  .legal-contacts div { grid-template-columns: 1fr; }
}

@media (max-width: 24rem) {
  .header-inner { column-gap: .75rem; }
  .header .brand { gap: .45rem; font-size: 1rem; }
  .button-header { padding-inline: .65rem; font-size: .8125rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions { gap: .35rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
