/* Haydi Arena page CSS: only what the kit lacks.
   Colour rule 70 / 20 / 10: the dark ground and its surfaces carry the page, Haydar blue (#3a7bff family) the cabinet
   marquees and the setup band, joystick red (#ef4136 family) only the download buttons, the live
   dots and the joystick balls. Cream is the text colour, not a fourth colour. */

:root {
  --ha-dark: #161513; --ha-surface: #1c1a18; --ha-case: #23201d;
  --ha-blue: #3a7bff; --ha-blue-deep: #2452c4; --ha-blue-ink: #86a8ff;
  --ha-red: #ef4136; --ha-red-deep: #d62f24;
  --ha-cream: #efe9de; --ha-muted: #aaa398;
}
::selection { background: var(--ha-blue); color: var(--ha-cream); }
html { scrollbar-color: #3a3530 var(--ha-dark); accent-color: var(--ha-red); background: var(--ha-dark); }

/* the ground: plain dark, the colour lives in Haydar and the cabinets */
body { background: var(--ha-dark); }

/* the wordmark: Baloo 2 600, the ı's dot replaced by a red ball on a cream stick */
.ha-word { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.nav__logo.ha-word { display: inline-block; font-size: 26px; line-height: 1; padding-top: 4px; gap: 0; }
/* the ı's joystick, centred on the stem: the stem's middle is .131em from the glyph's left edge and its top .479em above
   the baseline (Baloo 2 600, measured). line-height 1 on .ha-i makes its box .223em of baseline-to-bottom whatever the
   parent's line-height is, so .692em puts the stick's foot .01em inside the stem. Ball .24em (clear of the d), stick .055em x .11em. */
/* the 8-bit logo (24.11.2026): Haydar and the wordmark; the wordmark at one screen pixel per art pixel stays crisp */
.nav__logo.ha-logo8 { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo.ha-logo8 img { width: auto; flex: none; }
.nav__logo.ha-logo8 .ha-logo8__h { height: 44px; }
.nav__logo.ha-logo8 .ha-logo8__w { height: 28px; image-rendering: pixelated; }
@media (max-width: 639px) { .nav__logo.ha-logo8 .ha-logo8__h { height: 36px; } .nav__logo.ha-logo8 { gap: 8px; } }
.ha-i { position: relative; display: inline-block; line-height: 1; }
.ha-joy { position: absolute; left: .131em; bottom: .692em; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ha-ball { width: .24em; height: .24em; border-radius: 50%; background: var(--ha-red); }
.ha-stick { width: .055em; height: .11em; background: currentColor; }
.close__word.ha-word { letter-spacing: -0.03em; padding-top: .2em; line-height: 1.08; overflow: visible; }
.ha-lang { white-space: nowrap; }

/* red buttons: the 10%. Hover is a darker red, nothing more */
.btn--primary:hover { box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .btn--primary:hover, .btn--primary:hover { background: #c0281e; }
  .ground-inverse .btn--primary:hover, .footer--statement .btn--primary:hover { background: #fffaf3; }
}
/* touch: a tap fakes :hover and leaves it on; keep the buttons at rest colour (the kit's hover isn't gated) */
@media not ((hover: hover) and (pointer: fine)) {
  html .btn--primary:hover, html:not([data-motion="off"]) .btn--primary:hover { background: var(--p-action); }
  html .ground-inverse .btn--primary:hover, html:not([data-motion="off"]) .ground-inverse .btn--primary:hover { background: var(--p-inv-action); }
  html .footer--statement .btn--primary:hover, html:not([data-motion="off"]) .footer--statement .btn--primary:hover { background: var(--ha-red-deep); }
}

/* ---------- hero: everything centred on Haydar ---------- */
.ha-hero { position: relative; padding: clamp(24px, 4vh, 64px) 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.ha-hero__in { display: flex; flex-direction: column; align-items: center; }
/* the eyebrow: a quiet line of text with the live dot, no pill */
.ha-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  font: 500 15px/1.2 var(--font-text); color: var(--ha-muted);
}
.ha-hero h1 {
  margin: 0; max-width: 18ch; color: var(--ha-cream);
  font: 600 clamp(40px, 4.6vw, 68px)/1.02 var(--font-display); letter-spacing: -0.03em; text-wrap: balance;
}
.ha-hero__lead { margin: 16px 0 0; max-width: 44ch; color: var(--ha-muted); font: 400 clamp(17px, 1.4vw, 20px)/1.5 var(--font-text); text-wrap: balance; }
.ha-hero__cta { margin-top: 24px; justify-content: center; }
.ha-hero__stage { width: min(500px, 88vw, calc(100svh - 400px)); min-width: min(320px, 88vw); margin-top: 0; }

/* the live dot (cabinet screens, the eyebrow) */
.scr__live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ha-red); }

/* ---------- games: four arcade cabinets, the clips at the streams' own 9:16 ---------- */
.ha-center { text-align: center; margin-inline: auto; }
.games .section-head h2 { max-width: 34ch; margin-inline: auto; }
/* one statement per heading; the second thought sits under it as a plain muted line */
.games .section-head p { margin-inline: auto; color: var(--ha-muted); }
#yayincilar .section-head p, #streamers .section-head p { color: var(--p-inv-muted); }
/* the kit lights the diagram panel with a radial wash; the panel stays a plain surface */
#yayincilar .panel::before, #streamers .panel::before { background: none; }
#yayincilar .dg-halo, #streamers .dg-halo { display: none; }
.arcade { position: relative; }
.arcade__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }

.cab { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.cab__marquee {
  margin: 0; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px 16px 4px 4px; background: var(--ha-blue-deep); color: var(--ha-cream);
  font: 600 22px/1 "Baloo 2", system-ui, sans-serif; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12);
}
.cab__screen {
  margin: 8px 0 0; padding: 10px; border-radius: 8px; background: #0d0c0b;
  border: 6px solid #2a2622; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow 220ms cubic-bezier(.22,1,.36,1);
}
.scr__bar { display: flex; align-items: center; gap: 6px; font: 500 12px/1 Inter, system-ui, sans-serif; color: var(--ha-cream); }
.scr__likes { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ha-muted); font-variant-numeric: tabular-nums; }
.scr__likes svg { width: 12px; height: 12px; fill: var(--ha-muted); }
.scr__likes b { font-weight: 500; color: var(--ha-cream); }
.scr { display: block; width: 100%; border-radius: 4px; }
.scr--clip { aspect-ratio: 9 / 16; height: auto; object-fit: cover; background: #1b1916; }

.cab__deck {
  height: 52px; margin-top: 8px; border-radius: 6px 6px 12px 12px; background: var(--ha-case);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  box-shadow: inset 0 2px 0 #3a3530;
}
.cab__joy { position: relative; width: 22px; height: 34px; }
.cab__joy::before { content: ""; position: absolute; left: 8px; bottom: 0; width: 6px; height: 22px; border-radius: 3px; background: var(--ha-cream); transform-origin: 50% 100%; transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.cab__joy i { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ha-red); transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.cab__btns { display: flex; gap: 10px; }
.cab__btns i { width: 18px; height: 10px; border-radius: 50%; background: var(--ha-cream); }
.cab__btns i + i { background: var(--ha-red); }
.cab__text { margin: 16px 4px 0; color: var(--ha-muted); font: 400 15px/1.55 var(--font-text); }
.cab__sub { display: block; margin-bottom: 4px; color: var(--ha-cream); font-weight: 500; }

/* the signature: a cabinet under the pointer lights its screen and the ball tips toward it */
@media (hover: hover) and (pointer: fine) {
  .cab:hover .cab__screen { box-shadow: 0 0 0 2px rgba(239,233,222,.18); }
  .cab:hover .cab__joy i { transform: translate(-3px, 2px); }
  .cab:hover .cab__joy::before { transform: rotate(-10deg); }
}

.arcade__pause {
  position: absolute; right: 0; top: -60px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(239,233,222,.16); background: var(--ha-dark); color: var(--ha-cream); display: grid; place-items: center; cursor: pointer;
}
.arcade__pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.arcade__pause[aria-pressed="true"] svg path { d: path("M5 3.5l7 4.5-7 4.5z"); fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) { .arcade__pause { display: none; } }

@media (max-width: 1439px) { .cab__marquee { font-size: 18px; } .cab__deck { padding: 0 12px; } }
@media (max-width: 1279px) { .arcade__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 1023px) {
  .arcade__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .cab__marquee { font-size: 18px; }
}
@media (max-width: 639px) {
  .nav__logo.ha-word { font-size: 20px; }
  .ha-lang { display: none; }
  .ha-hero__stage { width: min(360px, 92vw); }
  .ha-eyebrow { font-size: 13px; }
  .arcade__row { gap: 24px 12px; }
  .cab__marquee { height: 36px; font-size: 15px; border-radius: 12px 12px 4px 4px; }
  .cab__screen { padding: 6px; border-width: 4px; gap: 6px; }
  .scr__bar { font-size: 11px; }
  .cab__deck { height: 36px; padding: 0 10px; }
  .cab__joy { transform: scale(.7); transform-origin: 0 50%; }
  .cab__btns i { width: 12px; height: 7px; }
  .cab__text { font-size: 14px; margin-top: 12px; }
  .arcade__pause { display: none; }
}

/* ---------- the setup band in Haydar blue ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ha-dark); color: var(--ha-cream); font: 600 18px/1 "Baloo 2", system-ui, sans-serif; }
.steps h3 { margin: 0 0 4px; font: 500 var(--t-lead)/1.35 var(--font-text); letter-spacing: 0; }
.steps p { margin: 0; color: var(--ink); max-width: 46ch; }
#yayincilar .panel, #streamers .panel { background: var(--p-inv-surface); }
#yayincilar .dg-meta, #streamers .dg-meta { font-family: var(--font-text); }
@media (max-width: 639px) { #yayincilar .card, #streamers .card { display: none; } }

/* ---------- questions ---------- */
@media (min-width: 640px) { .faq--roomy > .faq__item { padding: var(--s-6) 0; } .faq--roomy > .faq__item:first-child { padding-top: 0; } }
.needs { align-self: start; }
.needs h3 { margin: 0 0 var(--s-4); font: 500 var(--t-lead)/1.35 var(--font-text); letter-spacing: 0; }
.needs .ic-tile { flex: none; }

/* ---------- the closing slab: a lifted dark surface, the red download button its one colour ---------- */
.footer--statement {
  --ground-bg: #1c1a18; --ground-surface: #23201d; --ground-ink: #efe9de; --ground-muted: #aaa398; --ground-accent: #ef4136;
  background: #1c1a18; border-top: 1px solid rgba(239,233,222,.08);
}
.footer--statement .btn--primary { background: var(--ha-red-deep); color: #fffaf3; }
@media (max-width: 639px) { .close__word.ha-word { font-size: 15vw; } }

/* ---------- 3D Haydar (haydar3d.js, three.js). The svg drawing shows until the scene has drawn, and stays if WebGL fails ---------- */
.haydar-stage { --hb-base: #23201d; --hb-top: #302c28; position: relative; aspect-ratio: 1 / 1; height: auto; }
.haydar-stage > svg, .haydar-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.haydar-stage > svg { padding: 8%; box-sizing: border-box; }
.haydar-stage > canvas { opacity: 0; transition: opacity 400ms cubic-bezier(.22,1,.36,1); }
.haydar-stage.is-3d > canvas { opacity: 1; }
.haydar-stage.is-3d > svg { opacity: 0; transition: opacity 400ms cubic-bezier(.22,1,.36,1); }

/* the kit sets every section to exactly one screen; the hero, the cabinets and the statement grow with their content instead */
main > section.ha-hero { height: auto; min-height: 100svh; padding-bottom: 0; }
main > section.games { height: auto; padding-bottom: var(--section, 96px); }

/* ---------- phones: the platform layer (mobile-native) ---------- */
/* no grey flash over tapped links; every control keeps its own :active press from the kit */
html { -webkit-tap-highlight-color: transparent; }
/* taps fire at once, no double-tap-zoom wait */
a, button, [role="button"] { touch-action: manipulation; }
/* a long press on a button selects nothing and opens no callout; text stays selectable */
.btn, button, .nav__link, .arcade__pause { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* "Dene": the cabinet's own start button on the control deck, opens the game with fake viewers */
.cab__try {
  height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; flex: none;
  border-radius: 99px; background: #171513; color: var(--ha-cream); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(239,233,222,.2), 0 2px 0 rgba(0,0,0,.35);
  font: 600 14px/1 var(--font-text); letter-spacing: .02em; transition: background 160ms, box-shadow 160ms, transform 120ms;
}
.cab__try svg { width: 11px; height: 11px; fill: var(--ha-red); }
.cab__try:hover { background: #24211e; box-shadow: inset 0 0 0 1px rgba(239,233,222,.45), 0 2px 0 rgba(0,0,0,.35); }
.cab__try:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(239,233,222,.45); }
.cab__try:focus-visible { outline: 2px solid var(--ha-blue); outline-offset: 2px; }
/* the link is a 44px tap target even where the deck is shorter */
.cab__try { position: relative; }
.cab__try::after { content: ""; position: absolute; inset: -6px -4px; }
@media (max-width: 639px) { .cab__try { height: 28px; padding: 0 10px; gap: 6px; font-size: 13px; } .cab__try::after { inset: -8px -6px; } }

/* ---------- "Hangi hediye ne yapar?": three plain rules, then one game at a time (tabs are radio buttons, no JS);
   each game's gifts climb from small to big, so the value-to-effect link reads at a glance ---------- */
.gt-how { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gt-how li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; padding: 16px; border-radius: 14px; background: var(--ha-surface); border: 1px solid rgba(239,233,222,.1); }
.gt-how__ic { grid-row: span 2; font-size: 26px; line-height: 1; }
.gt-how b { font: 600 18px/1.2 "Baloo 2", system-ui, sans-serif; color: var(--ha-cream); }
.gt-how span:last-child { font: 400 14px/1.5 var(--font-text); color: var(--ha-muted); }
.gt-list { display: grid; gap: 10px; }
.gt-acc { border-radius: 14px; background: var(--ha-surface); border: 1px solid rgba(239,233,222,.1); transition: border-color 160ms; }
.gt-acc[open] { border-color: rgba(58,123,255,.45); }
.gt-acc summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 14px 52px 14px 16px; position: relative; cursor: pointer; list-style: none; border-radius: 14px; }
.gt-acc summary::-webkit-details-marker { display: none; }
.gt-acc summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ha-cream); border-bottom: 2px solid var(--ha-cream); transform: rotate(45deg); transition: transform 180ms cubic-bezier(.22,1,.36,1); }
.gt-acc[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.gt-acc summary:hover .gt-joy__st { transform: rotate(-12deg); }
.gt-acc summary:focus-visible { outline: 2px solid var(--ha-blue); outline-offset: 2px; }
.gt-joy { width: 40px; height: 40px; flex: none; }
.gt-joy__st { transform-origin: 20px 30px; transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.gt-acc[open] .gt-joy__st { transform: rotate(18deg); }
.gt-acc__name { font: 600 20px/1.1 "Baloo 2", system-ui, sans-serif; color: var(--ha-cream); }
.gt-acc__tag { font: 400 14px/1.3 var(--font-text); color: var(--ha-muted); }
.gt-p { display: grid; gap: 12px; padding: 4px 20px 20px; }
.gt-p h4 { margin: 0; font: 600 13px/1.2 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--ha-muted); }
.gt-likes { display: grid; gap: 8px; }
.gt-likes ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.gt-likes li { padding: 7px 12px; border-radius: 10px; background: var(--ha-case); color: var(--ha-cream); font: 400 14px/1.35 var(--font-text); }
.gt-gh { margin-top: 6px !important; }
.gt-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gt-tier { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border-radius: 12px; background: var(--ha-case);
  border-top: 3px solid rgba(58,123,255,calc(.3 + var(--i) * .17)); min-width: 0; }
.gt-pips { display: flex; gap: 3px; }
.gt-pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--ha-cream); opacity: .85; }
.gt-val { font: 600 14px/1 var(--font-text); color: var(--ha-blue-ink); font-variant-numeric: tabular-nums; }
.gt-fx { font: 600 17px/1.25 "Baloo 2", system-ui, sans-serif; color: var(--ha-cream); overflow-wrap: anywhere; }
.gt-ex { margin-top: auto; font: 400 13px/1.3 var(--font-text); color: var(--ha-muted); }
.gt__note { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--ha-case); color: var(--ha-muted); font: 400 14px/1.5 var(--font-text); }
@media (max-width: 1023px) { .gt-how { grid-template-columns: minmax(0, 1fr); } .gt-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .gt-p { padding: 4px 14px 14px; } .gt-acc__name { font-size: 18px; } .gt-tiers { grid-template-columns: minmax(0, 1fr); }
  .gt-tier { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .gt-fx { flex-basis: 100%; order: 3; } .gt-ex { margin-top: 0; order: 4; }
}
}

/* "TikTok kurallarına göre tasarlandı" (yayin/hediye-tablosu.mjs üretir) */
.rs-ilke { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rs-ilke li { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; background: var(--ha-surface); border: 1px solid rgba(239,233,222,.1); border-top: 3px solid #2fd67b; }
.rs-ilke b { font: 700 18px/1.2 var(--font-display, "Baloo 2", system-ui, sans-serif); color: var(--ha-cream); }
.rs-ilke span { font: 400 14.5px/1.5 var(--font-text, "Inter", system-ui, sans-serif); color: var(--ha-muted); }
.rs-oyun { display: flex; flex-direction: column; border-radius: 14px; background: var(--ha-surface); border: 1px solid rgba(239,233,222,.1); }
.rs-row { display: grid; grid-template-columns: 170px 130px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid rgba(239,233,222,.07); }
.rs-row:last-child { border-bottom: 0; }
.rs-ad { font: 700 17px/1.3 var(--font-display, "Baloo 2", system-ui, sans-serif); color: var(--ha-cream); }
.rs-oz { font: 400 14.5px/1.5 var(--font-text, "Inter", system-ui, sans-serif); color: var(--ha-muted); }
.rs-rk { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; border: 1px solid; font: 700 12.5px/1.5 var(--font-text, "Inter", system-ui, sans-serif); white-space: nowrap; }
.rs-rk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rs-rk--dusuk { color: #2fd67b; border-color: rgba(47,214,123,.4); }
.rs-rk--orta { color: #ffa14a; border-color: rgba(255,161,74,.4); }
.rs-rk--yuksek { color: #ff8a80; border-color: rgba(239,65,54,.45); }
.rs-not { margin: 16px 0 0; max-width: 72ch; font: 400 13.5px/1.55 var(--font-text, "Inter", system-ui, sans-serif); color: var(--ha-muted); }
@media (max-width: 1100px) { .rs-ilke { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rs-ilke { grid-template-columns: 1fr; } .rs-row { grid-template-columns: 1fr auto; } .rs-oz { grid-column: 1 / -1; } }

/* ---------- 3D arcade cabinets (kabin3d.js, models/kabin.glb from Blender) ---------- */
/* one fixed see-through canvas draws every cabinet into its slot; it never takes a click */
.cab3d-canvas { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; }
/* hero: two cabinets floating either side of Haydar (wide screens only) */
.ha-cab3d { position: absolute; bottom: 2vh; width: clamp(190px, 17vw, 270px); aspect-ratio: 1 / 1.75; pointer-events: none; }
.ha-cab3d--l { left: max(16px, calc(50% - 250px - clamp(190px, 17vw, 270px) - 6vw)); }
.ha-cab3d--r { right: max(16px, calc(50% - 250px - clamp(190px, 17vw, 270px) - 6vw)); }
@media (max-width: 1023px) { .ha-cab3d { display: none; } }
/* the cards: the cabinet takes the place of the flat marquee, screen and joystick; the clip keeps playing off view
   (it is the cabinet screen's texture), the name stays for screen readers, the "Dene" button stays under it */
.has-cab3d .arcade .cab { position: relative; }
.cab3d { width: 100%; aspect-ratio: 1 / 1.75; }
.has-cab3d .arcade .cab__marquee { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.has-cab3d .arcade .cab__screen { position: absolute; left: 50%; top: 30%; width: 2px; height: 2px; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.has-cab3d .arcade .cab__joy, .has-cab3d .arcade .cab__btns { display: none; }
.has-cab3d .arcade .cab__deck { justify-content: center; background: none; box-shadow: none; height: auto; margin-top: 4px; padding: 0; }
@media (hover: hover) and (pointer: fine) { .has-cab3d .cab:hover .cab__screen { box-shadow: none; } }

/* ---------- space behind Haydar (uzay.js) ---------- */
/* one fixed canvas at the very back of the page; it runs on under the games and fades into the ground at their foot.
   The ground colour moves to the root so the body's own background cannot paint over the canvas. */
.ha-space { position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none; }
html.has-space { background: #161513; }
html.has-space body { background: transparent; }

/* ---------- the games on a C-shaped arc, and the point of view into a cabinet (kabin3d.js) ---------- */
/* wide screens (five columns): one stage above the row draws all the cabinets in one perspective; the cards keep
   their names, text and Dene buttons under it. Narrower: each card its own straight cabinet. */
.arcade-stage { display: none; width: 100%; aspect-ratio: 2.35 / 1; margin-bottom: 8px; }
@media (min-width: 1280px) {
  .has-cab3d .arcade-stage { display: block; }
  .has-cab3d .arcade .cab3d { display: none; }
  .has-cab3d .arcade .cab__deck { margin-top: 0; }
}
/* the point of view: the page dims, the nav steps aside, the scroll stays put */
.pov-shade { position: fixed; inset: 0; z-index: 4; background: #07080f; opacity: 0; pointer-events: none; }
html.ha-pov { overflow: hidden; }
html.ha-pov .pov-shade { pointer-events: auto; }
html.ha-pov .nav, html.ha-pov .actionbar, html.ha-pov .arcade__pause { visibility: hidden; }
.pov-game { position: fixed; left: 0; top: 0; z-index: 6; width: 1080px; height: 1920px; border: 0; background: #000; transform-origin: 0 0; opacity: 0; transition: opacity 260ms ease; }
.pov-game.is-on { opacity: 1; }
.pov-ui { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity 220ms ease; }
.pov-ui.is-on { opacity: 1; }
/* on the cabinet screen until the game has loaded (phones take a few seconds) */
.pov-load { position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(8,8,7,.72); color: #efe9de; font: 500 14px/1.2 var(--font-text, Inter, sans-serif); text-align: center; padding: 8px; }
.pov-load__dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4136; animation: pov-blink 900ms ease-in-out infinite alternate; }
@keyframes pov-blink { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pov-load__dot { animation: none; } }
.pov-col { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; pointer-events: auto; }
/* arcade buttons: a domed cap in a dark bezel, the label under it */
.arc-btn { display: flex; flex-direction: column; align-items: center; gap: calc(var(--btn, 64px) * .24); padding: 0; border: 0; background: none; color: var(--ha-cream); font: 500 12px/1.15 var(--font-text); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.arc-btn__cap { width: var(--btn, 64px); height: var(--btn, 64px); border-radius: 50%; position: relative;
  background: radial-gradient(circle at 38% 30%, var(--cap-hi) 0 18%, var(--cap) 46%, var(--cap-lo) 100%);
  box-shadow: 0 0 0 calc(var(--btn, 64px) * .09) #0b0b0a, 0 0 0 calc(var(--btn, 64px) * .12) #2a2622, 0 calc(var(--btn, 64px) * .08) 0 calc(var(--btn, 64px) * .09) #050505;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out; }
.arc-btn__lbl { max-width: calc(var(--btn, 64px) * 1.5); text-shadow: 0 1px 0 #000; }
.arc-btn:active .arc-btn__cap { transform: translateY(calc(var(--btn, 64px) * .06)); box-shadow: 0 0 0 calc(var(--btn, 64px) * .09) #0b0b0a, 0 0 0 calc(var(--btn, 64px) * .12) #2a2622, 0 calc(var(--btn, 64px) * .02) 0 calc(var(--btn, 64px) * .09) #050505; }
.arc-btn:focus-visible { outline: none; }
.arc-btn:focus-visible .arc-btn__cap { outline: 3px solid var(--ha-cream); outline-offset: calc(var(--btn, 64px) * .16); }
.arc-btn--red { --cap: #e3392d; --cap-hi: #ff7a6e; --cap-lo: #9e1d14; }
.arc-btn--blue { --cap: #3a7bff; --cap-hi: #8fb3ff; --cap-lo: #1d46b8; }
.arc-btn--cream { --cap: #efe9de; --cap-hi: #ffffff; --cap-lo: #b9b0a0; }
.arc-btn--back .arc-btn__cap::after { content: ""; position: absolute; inset: 30%; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 3 5 8l5 5' fill='none' stroke='%23161513' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* the picked side lights up */
.arc-btn[aria-pressed="false"] .arc-btn__cap { filter: saturate(.45) brightness(.7); }
.arc-btn[aria-pressed="true"] .arc-btn__cap { filter: none; }
@media (hover: hover) and (pointer: fine) { .arc-btn:hover .arc-btn__cap { filter: brightness(1.08); } .arc-btn[aria-pressed="false"]:hover .arc-btn__cap { filter: saturate(.7) brightness(.85); } }
@media (max-width: 639px) { .arc-btn { font-size: 11px; gap: 4px; } }

/* ---------- the logo's pixel face (24.11.2026): Press Start 2P for headings, cabinet names, the menu and the buttons;
   paragraphs stay in Inter. Every glyph fills a square em, so the sizes are far smaller than Baloo's and sit on
   multiples of 8 px where the face is sharpest; no negative tracking, a looser line height. ---------- */
:root {
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-display: var(--font-pixel);
  --display-weight: 400; --display-tracking: 0; --display-tracking-xl: 0;
  --t-h1: clamp(24px, 2.4vw + 10px, 40px);
  --t-h2: clamp(16px, 1.2vw + 10px, 24px);
  --t-h3: 16px;
}
h1, h2, h3, .t-h1, .t-h2, .t-h3 { letter-spacing: 0; }
h1, .t-h1 { line-height: 1.4; }
h2, .t-h2 { line-height: 1.5; }
.ha-hero h1 { font: 400 clamp(24px, 2.4vw + 10px, 40px)/1.4 var(--font-pixel); letter-spacing: 0; }
.nav__link { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0; }
.btn { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0; line-height: 1.4; }
/* (eski hediye kartının adı) */ .cab__marquee, .gt__name { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0; font-size: 16px; }
.cab__try, .arc-btn__lbl, .steps__n { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0; font-size: 10px; }
.rs-ilke b, .rs-ad { font-family: var(--font-pixel); font-weight: 400; font-size: 12px; line-height: 1.5; }
.close__word.ha-word { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0; line-height: 1.3; }
@media (max-width: 639px) {
  .nav__link { font-size: 10px; }
  .btn { font-size: 10px; }
  .cab__marquee, .gt__name { font-size: 12px; }
  .close__word.ha-word { font-size: 9vw; }
}
/* the closing wordmark: the logo's own pixel wordmark, as wide as the column allows */
.close__word--px { margin: 0; line-height: 0; }
.close__word--px img { display: block; width: min(100%, 996px); height: auto; image-rendering: pixelated; }
/* the footer line is a sentence: it stays in the reading face */
.footer__lede { font: 500 var(--t-lead)/1.45 var(--font-text); letter-spacing: 0; max-width: 30ch; }
.nav__actions .btn { font-size: 12px; }
@media (max-width: 639px) { .nav__actions .btn { font-size: 10px; } }

/* Haydar gets annoyed when poked (24.11.2026): a pixel speech bubble over his head */
@media (hover: hover) and (pointer: fine) { .haydar-stage.is-3d { cursor: pointer; } }
.haydar-stage { -webkit-tap-highlight-color: transparent; }
.haydar-bubble { position: absolute; left: 62%; top: 4%; z-index: 2; max-width: 62%; padding: 10px 12px; background: #efe9de; color: #161513;
  font: 400 12px/1.5 var(--font-pixel, monospace); letter-spacing: 0; text-align: center; white-space: nowrap; pointer-events: none;
  box-shadow: 0 0 0 3px #161513, 4px 4px 0 3px rgba(0,0,0,.45); opacity: 0; transform: translate(-10%, 8px) scale(.6); transform-origin: 0% 100%;
  transition: opacity 120ms ease-out, transform 160ms cubic-bezier(.34,1.56,.64,1); }
.haydar-bubble::after { content: ""; position: absolute; left: 14px; bottom: -12px; width: 12px; height: 12px; background: #efe9de;
  box-shadow: 3px 0 0 #161513, 0 3px 0 #161513, 3px 3px 0 #161513; clip-path: polygon(0 0, 100% 0, 0 100%); }
.haydar-bubble.is-on { opacity: 1; transform: translate(-10%, 0) scale(1); }
.haydar-bubble[data-level="3"] { background: #ef4136; color: #fffaf3; }
.haydar-bubble[data-level="3"]::after { background: #ef4136; }
@media (max-width: 639px) { .haydar-bubble { font-size: 10px; padding: 8px 10px; left: 54%; top: 2%; white-space: normal; width: max-content; max-width: 44vw; } }
@media (prefers-reduced-motion: reduce) { .haydar-bubble { transition: opacity 120ms; transform: translate(-10%, 0); } }

/* switching games inside the point of view (24.11.2026): previous / next outside the cabinet, a black cut on phones */
.pov-cut { position: fixed; inset: 0; z-index: 6; background: #000; opacity: 0; pointer-events: none; }
.pov-nav { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
.pov-nav.is-on { opacity: 1; }
.pov-nav__btn { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 112px; padding: 14px 8px 12px; border: 0; border-radius: 14px; background: rgba(22,21,19,.78); color: #efe9de; cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(239,233,222,.22), 0 4px 0 rgba(0,0,0,.45); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background 140ms, box-shadow 140ms, transform 100ms ease-out; }
.pov-nav__btn:active { transform: translate(-50%, calc(-50% + 2px)); box-shadow: inset 0 0 0 2px rgba(239,233,222,.45), 0 2px 0 rgba(0,0,0,.45); }
.pov-nav__btn:focus-visible { outline: 2px solid #3a7bff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pov-nav__btn:hover { background: rgba(36,33,30,.92); box-shadow: inset 0 0 0 2px rgba(239,233,222,.5), 0 4px 0 rgba(0,0,0,.45); } }
/* a pixel arrow: a red stepped triangle */
.pov-nav__arrow { width: 24px; height: 28px; background: #ef4136;
  clip-path: polygon(0 0, 25% 0, 25% 14%, 50% 14%, 50% 28%, 75% 28%, 75% 43%, 100% 43%, 100% 57%, 75% 57%, 75% 72%, 50% 72%, 50% 86%, 25% 86%, 25% 100%, 0 100%); }
.pov-nav__btn--prev .pov-nav__arrow { transform: scaleX(-1); }
.pov-nav__txt { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pov-nav__hint { font: 400 11px/1.2 var(--font-text, Inter, sans-serif); color: #aaa398; }
.pov-nav__name { font: 400 10px/1.5 var(--font-pixel, monospace); color: #efe9de; }
/* no room beside the cabinet (phones, tall windows): a pair along the top */
.pov-nav.is-top .pov-nav__btn { top: calc(env(safe-area-inset-top, 0px) + 12px); transform: none; flex-direction: row; gap: 10px; width: auto; max-width: calc(50% - 22px); padding: 10px 12px; }
.pov-nav.is-top .pov-nav__btn:active { transform: translateY(2px); }
.pov-nav.is-top .pov-nav__btn--prev { left: 16px; }
.pov-nav.is-top .pov-nav__btn--next { right: 16px; flex-direction: row-reverse; }
.pov-nav.is-top .pov-nav__arrow { width: 14px; height: 18px; flex: none; }
.pov-nav.is-top .pov-nav__txt { align-items: flex-start; gap: 4px; }
.pov-nav.is-top .pov-nav__btn--next .pov-nav__txt { align-items: flex-end; }
.pov-nav.is-top .pov-nav__hint { font-size: 10px; }
.pov-nav.is-top .pov-nav__name { font-size: 8px; }
@media (prefers-reduced-motion: reduce) { .pov-nav { transition: none; } }
/* the arcade button labels in the pixel face: one line, small enough for the narrow margins on phones */
.arc-btn__lbl { white-space: nowrap; line-height: 1.3; }
@media (max-width: 639px) { .arc-btn__lbl { font-size: 8px; } }
/* while a game is open on a cabinet, the point of view sits above everything on the page (the iris moment on the
   streamers band is at z 20 and used to cover the bottom of the view) */
html.ha-pov .pov-shade { z-index: 40; }
html.ha-pov .cab3d-canvas { z-index: 41; }
html.ha-pov .pov-game { z-index: 42; }
html.ha-pov .pov-cut { z-index: 43; }
html.ha-pov .pov-ui, html.ha-pov .pov-nav { z-index: 44; }

/* ---------- page transitions (24.11.2026): no page arrives with a jolt ----------
   Between our own pages the browser cross-fades them (View Transitions: Chrome, Edge, Safari 18.2+). A page opened
   from outside, or in a browser without that, fades and rises in by itself (html.ha-in, set by the head line). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ha-vt-out 220ms cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: ha-vt-in 480ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes ha-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes ha-vt-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes ha-fade-in { from { opacity: 0; } }
html.ha-in main, html.ha-in .footer { animation: ha-vt-in 560ms cubic-bezier(.22, 1, .36, 1) both; }
html.ha-in .nav, html.ha-in .ha-space { animation: ha-fade-in 420ms ease both; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.ha-in main, html.ha-in .footer, html.ha-in .nav, html.ha-in .ha-space { animation: none; }
}

/* the home page's way to the games page */
.gp-more-link { margin: 12px 0 0; }
.gp-more-link a { display: inline-flex; align-items: center; gap: 8px; color: var(--ha-cream); font: 500 15px/1.4 var(--font-text); text-decoration: underline; text-decoration-color: rgba(239,233,222,.35); text-underline-offset: 4px; }
.gp-more-link svg, .gp-open svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (hover: hover) and (pointer: fine) { .gp-more-link a:hover { text-decoration-color: var(--ha-red); } }

/* ---------- the games page (oyunlar.js, yayin/oyunlar-sayfasi.mjs) ---------- */
.gp-head { padding: clamp(112px, 16vh, 176px) 0 8px; text-align: center; }
main > section.gp-head, main > section.gp-games { height: auto; min-height: 0; }
/* system.css gives every section a screen of its own (--h, on phones --hm); these two are only as tall as their content */
.gp-head, .gp-games { --h: 0; --hm: 0; }
main > section.gp-head { padding-bottom: 0; }
.gp-head .ha-eyebrow { display: flex; justify-content: center; }
.gp-head h1 { margin: 16px 0 12px; font: 400 clamp(24px, 2.4vw + 10px, 40px)/1.4 var(--font-pixel); letter-spacing: 0; }
.gp-lead { max-width: 52ch; margin: 0 auto; color: var(--ha-muted); font: 400 clamp(16px, 1.2vw + 4px, 19px)/1.55 var(--font-text); text-wrap: balance; }
main > section.gp-games { padding-top: clamp(32px, 5vh, 56px); }
/* any number of games: as many columns as fit */
.gp-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 40px 24px; }
@media (max-width: 639px) { .gp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; } }
.has-cab3d .arcade[data-stage="off"] .cab3d { display: block; }
.gp-cab { cursor: pointer; }
.gp-open { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 12px 4px 0; padding: 8px 0; border: 0; background: none;
  color: var(--ha-cream); font: 400 10px/1.5 var(--font-pixel); letter-spacing: 0; cursor: pointer; touch-action: manipulation; }
.gp-open:focus-visible { outline: 2px solid var(--ha-blue); outline-offset: 4px; border-radius: 4px; }
.gp-open svg { transition: transform 160ms ease-out; }
@media (hover: hover) and (pointer: fine) { .gp-cab:not(.is-sel):hover .gp-open { color: #fff; } .gp-cab:not(.is-sel):hover .gp-open svg { transform: translateX(3px); } }
.gp-note { max-width: 72ch; margin: 48px auto 0; color: var(--ha-muted); font: 400 14px/1.55 var(--font-text); text-align: center; text-wrap: balance; }

/* one game open: only its cabinet, large, and everything about it beside it */
.gp.is-detail .gp-cab:not(.is-sel) { display: none; }
.gp.is-detail .gp-row { grid-template-columns: minmax(0, 1fr); }
.gp.is-detail .gp-note { display: none; }
.gp-cab.is-sel { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; cursor: default; }
.gp-cab.is-sel > * { grid-column: 1; }
.gp-cab.is-sel > .gp-detail { grid-column: 2; grid-row: 1 / span 12; }
.gp-cab.is-sel > .gp-open { display: none; }
.gp-detail { animation: gp-in 480ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes gp-in { from { opacity: 0; transform: translateY(16px); } }
.gp-detail__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gp-name { flex-basis: 100%; margin: 0; color: var(--ha-cream); font: 400 clamp(20px, 1.6vw + 10px, 32px)/1.35 var(--font-pixel); outline: none; }
.gp-tag { margin: 0; color: var(--ha-muted); font: 400 15px/1.4 var(--font-text); }
.gp-about { max-width: 62ch; margin: 20px 0 16px; color: var(--ha-cream); font: 400 clamp(16px, 0.4vw + 14px, 18px)/1.6 var(--font-text); }
.gp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-facts li { padding: 7px 12px; border-radius: 10px; background: var(--ha-case, #24211e); color: var(--ha-cream); font: 400 14px/1.35 var(--font-text); }
.gp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 32px 0 12px; color: var(--ha-cream); font: 400 12px/1.5 var(--font-pixel); letter-spacing: 0; }
.gp-likes { margin: 0; padding-left: 20px; color: var(--ha-cream); font: 400 15px/1.6 var(--font-text); }
.gp-likes li + li { margin-top: 4px; }
.gp-likes li::marker, .gp-risk li::marker { color: var(--ha-red, #ef4136); }
.gp-detail .gt__note { margin-top: 12px; }
.gp-risk { margin-top: 36px; padding: clamp(16px, 2vw, 24px); border-radius: 16px; background: rgba(239,233,222,.035); box-shadow: inset 0 0 0 1px rgba(239,233,222,.1); }
.gp-risk .gp-h { margin-top: 0; }
.gp-risk__sum { margin: 0 0 18px; color: var(--ha-cream); font: 400 15px/1.55 var(--font-text); }
.gp-risk__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.gp-risk h4 { margin: 0 0 8px; color: var(--ha-muted); font: 500 13px/1.4 var(--font-text); letter-spacing: 0; text-transform: none; }
.gp-risk ul { margin: 0; padding-left: 18px; color: var(--ha-cream); font: 400 14px/1.55 var(--font-text); }
.gp-risk li + li { margin-top: 6px; }
.gp-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; margin-top: 36px; }
.gp-go, .gp-all { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(22,21,19,.72); color: var(--ha-cream); box-shadow: inset 0 0 0 1px rgba(239,233,222,.18); text-align: left; touch-action: manipulation;
  transition: box-shadow 140ms, background 140ms, transform 100ms ease-out; }
.gp-go--next { align-items: flex-end; text-align: right; }
.gp-go__hint { color: var(--ha-muted); font: 400 12px/1.3 var(--font-text); }
.gp-go__name { font: 400 10px/1.5 var(--font-pixel); }
.gp-all { align-items: center; text-align: center; font: 400 10px/1.5 var(--font-pixel); }
.gp-go:active, .gp-all:active { transform: translateY(1px); }
.gp-go:focus-visible, .gp-all:focus-visible { outline: 2px solid var(--ha-blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .gp-go:hover, .gp-all:hover { background: rgba(36,33,30,.92); box-shadow: inset 0 0 0 1px rgba(239,233,222,.45); } }
@media (max-width: 899px) {
  .gp-cab.is-sel { grid-template-columns: minmax(0, 1fr); }
  .gp-cab.is-sel > .gp-detail { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .gp-cab.is-sel .cab3d { max-width: 300px; margin-inline: auto; }
  .gp-cab.is-sel .cab__deck, .gp-cab.is-sel .cab__text { max-width: 420px; margin-inline: auto; text-align: center; }
  .gp-risk__cols { grid-template-columns: minmax(0, 1fr); }
  .gp-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gp-all { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .gp-detail { animation: none; } }
