@font-face {
  font-family: Inter;
  src: url("inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italik-latin-ext.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italik-latin.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F;
}

:root {
  --ink: #29354b;
  --muted: #474d57;
  --line: #d7cbbd;
  --paper: #f8f4eb;
  --sand: #dcd0bf;
  --brick: #874839;
  --serif: "Instrument Serif", Georgia, serif;
  --space: clamp(4rem, 8vw, 8rem);
  --gutter: clamp(1rem, 4vw, 4rem);
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 24px 110px; }
body { margin: 0; padding-bottom: env(safe-area-inset-bottom); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: #e8cbad; color: var(--ink); }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 1rem; left: 1rem; z-index: 4; background: #fff; padding: .75rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 570; line-height: 1.04; letter-spacing: -.06em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.7vw, 6.6rem); }
h2 { font-size: clamp(2.45rem, 5.4vw, 5.15rem); }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.027em; }
h3 { line-height: 1.22; letter-spacing: -.045em; font-size: clamp(1.25rem, 2.45vw, 2rem); }
p + p { margin-top: 1em; }
.wrap, .editorial { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; min-height: 74px; }
.wordmark { display: inline-flex; gap: .42rem; align-items: center; justify-self: start; line-height: 1; font: 400 clamp(1.7rem, 3vw, 2.25rem)/1 var(--serif); letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--brick); margin-left: -.4rem; }
.main-nav { display: flex; gap: clamp(.75rem, 2vw, 2rem); align-items: center; }
.main-nav a, .masthead-play { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav [aria-current] { color: var(--brick); text-decoration: underline; }
.masthead-play { justify-self: end; gap: .65rem; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: .4rem; }
.masthead-play:hover { border-color: var(--brick); }
.home .masthead { background: #12382f; color: #fff7e6; border-color: #ffffff25; }
.home .wordmark span { color: #e9c68b; }
.home .main-nav a:hover { color: #f1d5a5; }
.home .masthead-play { border-color: #ffffff70; }
.home .masthead-play:hover { background: #ffffff18; }

.opening { background: #12382f; color: #fff7e6; }
.opening-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: clamp(590px, calc(100svh - 74px), 960px);
  padding: clamp(2rem, 6vh, 5rem) var(--gutter) clamp(1rem, 3.3vh, 2.4rem);
  overflow: hidden;
}
.opening.has-motion::after { content: ""; display: block; height: min(55vh, 480px); }
.has-motion .opening-stage { position: sticky; top: 0; }
.opening-media, .opening-media::after, .opening-wide, .opening-close {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.opening-media { z-index: -1; overflow: hidden; }
.opening-wide img, .opening-close { width: 100%; height: 100%; object-fit: cover; object-position: center 89%; }
.opening-wide { transform: scale(var(--scene-scale, 1)); transform-origin: center 66%; }
.opening-close { opacity: var(--detail-opacity, 0); object-position: center 55%; transform: scale(var(--detail-scale, 1.13)); }
.opening-media::after {
  content: "";
  background: linear-gradient(180deg, #102720ab 0%, #11251b40 41%, transparent 58%, #071d1470 75%, #0b231be8 100%);
}
.opening-copy { text-align: center; }
.opening h1 {
  font: 400 clamp(5rem, 13.3vw, 12rem)/.79 var(--serif);
  letter-spacing: -.045em;
  color: #fff7e6;
  text-shadow: 0 8px 40px #062014b0;
}
.opening h1 em { color: #f4dfae; }
.opening-copy p { margin-top: .85rem; font-weight: 600; text-shadow: 0 2px 12px #082417; }
.opening-copy, .opening-detail { transform: translateY(var(--scene-title-y, 0px)); }
.opening-copy { opacity: var(--title-opacity, 1); }
.opening-detail {
  position: absolute;
  top: 28%;
  width: min(90%, 43rem);
  text-align: center;
  opacity: var(--detail-opacity, 0);
  text-shadow: 0 3px 20px #1d261b, 0 3px 42px #05190e;
  pointer-events: none;
}
.opening-detail span { font-size: .9rem; font-weight: 650; }
.opening-detail strong { display: block; font: 400 clamp(3.5rem, 9vw, 8rem)/.9 var(--serif); }
.opening-access { width: min(100%, 720px); text-align: center; margin-top: clamp(4rem, 17vh, 12rem); }
.opening-access .first-access { margin: 0 auto; }
.opening-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .55rem;
  margin-top: .4rem;
  color: #fff7e6;
  font-size: .85rem;
  font-weight: 650;
  text-shadow: 0 2px 8px #082417;
}
.opening :focus-visible, .home .masthead :focus-visible { outline-color: #ffe0a2; }

.scene-guide { padding: clamp(2.4rem, 7vw, 6rem) 0; background: #173e33; color: #fff7e6; }
.scene-guide-header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.scene-guide-header p { max-width: 31rem; color: #f3e9da; }
.scene-guide-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.scene-guide-track a { display: block; padding: .65rem .65rem 1rem; border: 1px solid #ffffff38; border-radius: .6rem; text-decoration: none; }
.scene-guide-track a:hover, .scene-guide-track a:focus-visible { border-color: #ffe0a2; }
.scene-guide-track a:focus-visible { outline-color: #ffe0a2; outline-offset: 2px; }
.scene-guide-track img { width: 100%; aspect-ratio: 2.1; object-fit: cover; border-radius: .35rem; }
.scene-guide-track span { display: flex; justify-content: space-between; gap: .55rem; margin: .7rem .25rem 0; font-weight: 680; line-height: 1.25; }
.scene-guide-track small { display: block; margin: .3rem .25rem 0; color: #f3e9da; }

.first-access, .device-links { display: grid; gap: .6rem; }
.first-access { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 720px); margin: 1.35rem auto 0; }
.access {
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: .42rem;
  background: #fcf9f2;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.access img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.access strong, .access small { display: block; line-height: 1.25; }
.access strong { font-size: .87rem; }
.access small { margin-top: .2em; font-size: .7rem; color: var(--muted); }
.access:hover { border-color: var(--brick); box-shadow: 0 2px 10px #4527151a; }
.access-primary { background: #f4e4cf; border-color: #ae8069; }
.access-arrow { margin-left: auto; align-self: flex-start; flex: 0 0 auto; font-size: .85rem; }
.jump-links a:hover { color: var(--brick); }
.intro { padding-block: clamp(2.6rem, 6vw, 5rem) 1.5rem; }
.intro h2 br { display: none; }
.intro p, .closing > p { max-width: 630px; margin-top: 1.15rem; color: var(--muted); }
.jump-links { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; margin-top: .8rem; font-size: .9rem; font-weight: 620; }
.jump-links a { display: inline-flex; align-items: center; min-height: 44px; }
.game-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); }
.game-panel { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; align-items: start; padding-block: 1.4rem; border-block: 1px solid var(--line); }
.game-panel h3, .game-panel p, .game-panel .pill { grid-column: 2; }
.game-panel p { max-width: 42ch; }
.game-panel .pill { justify-self: start; margin-top: .4rem; }
.game-fact { grid-area: 1 / 1 / span 3; display: block; padding: .15rem .9rem .15rem 0; border-right: 1px solid #af7f6c; font: 400 clamp(2.3rem, 4.5vw, 4.4rem)/.91 var(--serif); white-space: nowrap; }
.game-fact small { display: block; max-width: 13ch; margin-top: .65rem; font: 530 .72rem/1.35 Inter, system-ui, sans-serif; white-space: normal; }
.pill, .button { display: inline-flex; align-items: center; min-height: 44px; justify-content: center; padding: .55rem .95rem; border: 1px solid transparent; border-radius: 999px; font-size: .86rem; font-weight: 650; text-decoration: none; }
.pill:hover, .button:hover { box-shadow: 0 0 0 2px var(--brick); }
.pill.dark, .button { background: var(--ink); color: #fff; }
.pill.light { color: var(--ink); background: #fff; border-color: var(--line); }

.practice, .feature, .reading, .faq, .closing { margin-top: var(--space); }
.section-heading { margin: 0 0 1.4rem; }
.section-heading > p { margin-top: .7rem; color: var(--muted); max-width: 65ch; }
.practice-controls { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .9rem; }
.practice-controls [aria-current] { color: #fff; background: var(--ink); border-color: var(--ink); }
.exercise { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 290px; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: #ebe1d2; }
.exercise + .exercise { margin-top: .8rem; }
.table-scene {
  display: grid;
  place-items: center;
  min-height: 208px;
  padding: 2rem 1rem 3rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 40% 22%, #e5cfaa, #b79873 68%, #9a795b);
  perspective: 650px;
}
.rack {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: .4rem;
  width: min(86%, 355px);
  padding: .9rem .45rem 1rem;
  border-radius: .6rem;
  transform: rotateX(19deg) rotateZ(-5deg);
  transform-style: preserve-3d;
  border-bottom: 10px solid #684329;
  background: linear-gradient(145deg, #a67442, #845636);
  box-shadow: 0 16px 23px #442d2480;
}
.tile {
  --color: #2d2930;
  display: inline-flex;
  min-width: 52px;
  min-height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .23rem;
  border: 1px solid #c7bdac;
  border-bottom: 5px solid #c7b49c;
  border-radius: .45rem;
  padding: .35rem .44rem;
  background: linear-gradient(145deg, #fff, #f8f1e6);
  color: var(--color);
  font-size: clamp(1rem, 2.7vw, 1.75rem);
  font-weight: 790;
  line-height: 1;
  white-space: nowrap;
}
.tile small { font-size: .66rem; font-weight: 640; }
.tile.kirmizi { --color: #992d3b; }
.tile.mavi { --color: #1e4e9c; }
.tile.sari { --color: #785300; }
.tile.slot { background: #603e28; border: 1px dashed #ffe6bd; color: #fff; }
.rack-total { color: #fff; font-size: 1.7rem; padding: .65rem .6rem; font-weight: 760; line-height: .9; }
.rack-total small { font-size: .7rem; }
.tile.is-placed { animation: seat-tile .38s cubic-bezier(.2,.75,.2,1) both; }
@keyframes seat-tile {
  from { transform: translate3d(0,-22px,54px) rotateX(-28deg); opacity: .5; }
  to { transform: translate3d(0,0,0) rotateX(0); opacity: 1; }
}
.exercise-body { padding: clamp(1.1rem, 4vw, 3rem); }
.tile-options { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.tile-options button:enabled { cursor: pointer; }
.tile-options button:enabled:hover, .tile-options button[aria-pressed="true"] { outline: 2px solid var(--brick); outline-offset: 2px; }
.tile-options button:focus-visible { outline-width: 3px; }
.feedback { min-height: 3.25em; color: var(--ink); font-size: .9rem; }

.feature-photo { border-radius: .65rem; overflow: hidden; background: var(--sand); }
.feature-photo img { width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 1.5rem clamp(1.5rem, 5vw, 4rem); align-items: start; padding-top: 2rem; border-top: 1px solid var(--line); }
.feature .section-heading { grid-area: 1 / 2; margin: 0; }
.feature .feature-photo { grid-area: 1 / 1 / span 2; }
.feature .feature-copy { grid-area: 2 / 2; grid-template-columns: minmax(0, 1fr); padding: 0; gap: 1rem; }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.feature:nth-of-type(even) .section-heading { grid-column: 1; }
.feature:nth-of-type(even) .feature-photo { grid-column: 2; }
.feature:nth-of-type(even) .feature-copy { grid-column: 1; }
.feature-copy { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1rem, 5vw, 5rem); padding: clamp(1.25rem, 4vw, 3.2rem) clamp(0rem, 2.5vw, 2.4rem) 0; }
.feature-copy h3 { margin-bottom: .75rem; }
.steps { padding-left: 1.4rem; margin-block: .5rem 0; }
.steps li + li { margin-top: .7rem; }
.steps li::marker { color: var(--brick); font-weight: 750; }
.example { padding: clamp(1rem, 3vw, 1.75rem); background: #ede4d6; border-left: 3px solid #af7f6c; border-radius: .35rem; }
.example ul { margin: .5rem 0; padding-left: 1.25rem; }
.example a { display: inline-block; margin-top: .65rem; font-weight: 650; }
.data-table { width: 100%; border-collapse: collapse; margin-bottom: .8rem; text-align: left; }
.data-table caption { text-align: left; color: var(--muted); font-size: .82rem; padding: .15rem 0 .4rem; }
.data-table td, .data-table th { padding: .48rem .55rem; border-bottom: 1px solid var(--line); }
.data-table td:last-child, .data-table th[scope="col"]:last-child { text-align: right; }
.data-table tfoot { background: #ede4d6; font-weight: 750; }
.comparison { margin-top: clamp(2.4rem, 6vw, 4.4rem); }
.comparison h3 { margin-bottom: .6rem; }
.comparison .data-table { table-layout: fixed; overflow-wrap: break-word; }
.comparison .data-table td:last-child, .comparison .data-table th[scope="col"]:last-child { text-align: left; }
.comparison .data-table th:first-child { width: 24%; }

.reading-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4.5rem); margin-top: 1.6rem; }
.reading-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.reading-list li { border-top: 1px solid var(--line); }
.reading-list a { display: grid; grid-template-columns: 76px 1fr auto; gap: .85rem; align-items: center; padding: .7rem 0; text-decoration: none; }
.reading-list a:hover strong { text-decoration: underline; }
.reading-list img { width: 76px; height: 60px; object-fit: cover; border-radius: .32rem; background: var(--sand); }
.reading-list strong, .reading-list small { display: block; }
.reading-list strong { line-height: 1.26; }
.reading-list small { margin-top: .3rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.list-arrow { align-self: start; }
.faq { max-width: 830px; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 660; padding: .85rem .15rem; }
.faq details p { padding: 0 .15rem .9rem 1.2rem; color: var(--muted); }
.closing { padding: clamp(1.4rem, 6vw, 4rem); border-radius: .65rem; background: #e9dbc8; }
.device-links { margin: 1.5rem 0 0; max-width: 840px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-sources { font-size: .84rem; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem 2rem; padding-block: 3.5rem 1rem; }
.footer p { margin-top: .35rem; color: var(--muted); font-size: .85rem; }
.footer nav { display: flex; gap: .55rem 1.3rem; flex-wrap: wrap; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

.inner-page { padding-top: clamp(1.5rem, 5vw, 4rem); max-width: 1040px; }
.inner-page h1 { font-size: clamp(2.45rem, 6vw, 5rem); text-align: left; text-wrap: pretty; }
.inner-page h2 { font-size: clamp(1.65rem, 4vw, 2.7rem); letter-spacing: -.047em; text-wrap: pretty; }
.inner-page .first-access { margin-left: 0; }
.inner-page .button { margin: 1rem .5rem 0 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .2em .5em; margin-bottom: 1.15rem; font-size: .85rem; color: var(--muted); }
.lede { max-width: 72ch; margin-top: .95rem; color: var(--muted); font-size: 1.03rem; }
.article-cover { margin-top: 1.6rem; overflow: hidden; border-radius: .65rem; background: var(--sand); }
.article-cover img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(0, 3fr); gap: 1.6rem; margin-top: 1.7rem; }
.article-layout .toc { align-self: start; display: grid; gap: .7rem; padding: 1rem; background: #ede4d6; border-radius: .5rem; font-size: .9rem; }
.article-text section + section { margin-top: 1.8rem; }
.article-text p { margin-top: .7rem; }
.related, .inner-access, .sources { margin-top: 2.3rem; }
.inner-access .device-links { margin-left: 0; }
.sources ul { padding-left: 1.25rem; }
.enter { animation: enter .48s ease-out both; }
@keyframes enter {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 760px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 .5rem; padding-top: .3rem; }
  .main-nav { grid-area: 2 / 1 / auto / -1; justify-content: space-between; gap: .4rem; }
  .main-nav a, .masthead-play { font-size: .78rem; }
  .opening-stage { min-height: clamp(480px, calc(100svh - 90px), 760px); padding-top: clamp(1.6rem, 5vh, 3rem); padding-bottom: .65rem; }
  .opening h1 { font-size: clamp(4.3rem, 14vw, 7.5rem); }
  .opening-copy p { font-size: .88rem; margin-top: .5rem; }
  .opening-access { margin-top: clamp(4rem, 15vh, 9rem); }
  .opening.has-motion::after { height: min(44vh, 330px); }
  .scene-guide-header { display: block; }
  .scene-guide-header p { margin-top: .6rem; }
  .scene-guide-track {
    grid-template-columns: none;
    grid-auto-columns: min(80%, 320px);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .35rem .3rem .75rem;
  }
  .scene-guide-track a { scroll-snap-align: start; }
  .first-access { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 445px; }
  .exercise { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-of-type(even) { display: flex; flex-direction: column; gap: 1.1rem; }
  .feature-photo { width: 100%; }
  .feature .feature-copy { width: 100%; }
  .feature-photo img { aspect-ratio: 1.5; }
  .section-heading { margin-left: 0; }
  .device-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .game-panels, .reading-columns, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .opening-access .first-access { gap: .4rem; }
  .opening-wide img { height: 92%; object-position: center; }
  .closing { padding-inline: .8rem; }
  .access { padding-inline: .55rem; min-height: 54px; gap: .45rem; }
  .access strong { font-size: .82rem; }
  .access img { width: 19px; height: 19px; }
  .access-arrow { display: none; }
  .comparison .data-table { font-size: .82rem; }
  .comparison .data-table th, .comparison .data-table td { padding-inline: .28rem; vertical-align: top; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening.has-motion::after { display: none; }
  .has-motion .opening-stage { position: relative; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
