:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #f5f3ec;
  background: #101313;
  --muted: #b4bbb4;
  --line: #303835;
  --accent: #f2e679;
  --page-gutter: clamp(22px, 5.65vw, 102px);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 305px; scroll-behavior: smooth; }
body, h1, h2, h3, p { margin: 0; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f2e679; outline-offset: 5px; }
.wrap { width: min(calc(100% - 2 * var(--page-gutter)), 1440px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 12px; background: #202420; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid #ffffff13; background: #101313; }
.header-inner, .footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.teknos-brand { gap: 12px; }
.teknos-brand strong { font-size: 1.045rem; font-weight: 780; letter-spacing: -.035em; }
.teknos-brand .teknos-byline { font-weight: 600; font-size: .7rem; color: #b8c0bb; }
.site-header nav { display: flex; align-items: center; gap: clamp(19px, 3vw, 44px); }
.nav-link, .install-button { font-size: .86rem; font-weight: 680; }
.nav-link { color: #d4d9d4; padding-block: 9px; }
.nav-link:hover { color: #f2e679; }
.install-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px; background: #ffffff07; border: 1px solid #68736a; border-radius: 6px; white-space: nowrap; }
.install-button:hover { background: #ffffff16; border-color: #d1d5c9; }
.install-button svg { color: #e8dc77; }

.hero { position: relative; isolation: isolate; background: #161d16; min-height: clamp(560px, 47vw, 680px); display: flex; flex-direction: column; justify-content: end; overflow: hidden; touch-action: pan-y pinch-zoom; }
.hero:focus-visible { outline-offset: -4px; }
.slide-stack, .slide, .slide-shade { position: absolute; inset: 0; }
.slide { z-index: 1; overflow: hidden; }
.slide.active { z-index: 2; }
.slide.leaving { z-index: 1; pointer-events: none; }
.slide-art { position: absolute; inset: 0 0 0 20%; background: #364e35; overflow: hidden; }
.slide-art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--position); filter: saturate(.94) contrast(1.05) brightness(.94); }
.slide-shade { background: linear-gradient(90deg, #111614 0%, #111614 15%, #111614ef 27%, #11161465 51%, transparent 76%), linear-gradient(0deg, #101313 0%, #101313e8 9%, #10131349 34%, transparent 57%), linear-gradient(180deg, #10161334, transparent 27%); }
.slide.active { animation: panel-in .62s cubic-bezier(.25,.7,.3,1) both; }
.slide.active .slide-art img { animation: art-in 1.15s cubic-bezier(.2,.65,.3,1) both; }
.slide.active .hero-copy > * { animation: copy-in .66s cubic-bezier(.2,.65,.3,1) both; }
.slide.active .hero-copy > :nth-child(2) { animation-delay: .045s; }
.slide.active .hero-copy > :nth-child(3) { animation-delay: .1s; }
.slide.active .hero-copy > :nth-child(4) { animation-delay: .13s; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes art-in { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

.hero-frame { position: relative; height: calc(100% - 95px); display: flex; align-items: center; }
.hero-copy { max-width: 740px; padding-block: 24px 5px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); font-size: .74rem; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; line-height: 1.5; }
.eyebrow span { display: inline-block; width: 27px; height: 2px; flex: 0 0 27px; background: var(--accent); }
.hero h1 { margin: 16px 0 19px; font-size: clamp(70px, 8.5vw, 130px); font-weight: 850; line-height: .83; letter-spacing: -.066em; text-wrap: balance; }
.hero-description { color: #dde1d8; font-size: clamp(1rem, 1.26vw, 1.18rem); line-height: 1.55; max-width: 375px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 17px; border: 1px solid transparent; border-radius: 6px; font-size: .91rem; font-weight: 760; transition: background .18s, border-color .18s, transform .18s; white-space: nowrap; }
.button:hover { transform: translateY(-2px); }
.primary { color: #141913; background: var(--accent); }
.primary:hover { background: color-mix(in srgb, var(--accent), white 20%); }
.secondary { background: #171d19b8; border-color: #d4e3d060; }
.secondary:hover { background: #323a32; border-color: #cdd9cd; }
.play-icon { font-size: .73em; display: inline-block; }

.feature-controls { position: relative; z-index: 4; min-height: 95px; padding: 15px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.carousel-nav { display: flex; align-items: center; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; padding: 0; border: 1px solid #aabba859; background: #171e1a99; border-radius: 6px; font-size: 1.15rem; }
.icon-button:hover { background: #394139; border-color: #b5c5b3; }
#rotation { margin-left: 4px; font-size: .92rem; }
.feature-tabs { display: flex; align-items: stretch; gap: 8px; }
.slide-tab { display: flex; align-items: center; gap: 9px; min-width: 146px; min-height: 54px; padding: 7px 10px 7px 7px; background: #131a18d4; color: #faf9f2; border: 1px solid #7d898157; border-radius: 7px; text-align: left; }
.slide-tab[aria-current='true'] { border-color: var(--featured-accent); background: #222a24; }
.slide-tab:hover { border-color: #dbded4; }
.slide-tab img { border-radius: 3px; width: 50px; height: 34px; object-fit: cover; }
.slide-tab strong { display: block; font-size: .76rem; font-weight: 710; white-space: nowrap; }
.slide-tab small { display: block; margin-top: 2px; color: #b8c0b8; font-size: .66rem; }

.catalog { padding-block: 42px 76px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: baseline; gap: 15px; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.065em; }
.section-heading span { color: var(--muted); font-size: .84rem; font-weight: 620; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid #313934; border-radius: 9px; background: #171c1a; }
.game-card:focus-within { border-color: var(--game-accent); }
.game-picture { display: block; position: relative; overflow: hidden; aspect-ratio: 1.77; background: #202822; outline-offset: -5px; }
.game-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game-picture:hover img { transform: scale(1.05); }
.card-arrow { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid #ffffff70; border-radius: 50%; color: #fff; background: #101313b5; }
.card-info { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; align-items: end; padding: 16px; }
.card-info p { grid-column: 1 / -1; color: #c0c8c1; font-size: .74rem; line-height: 1.4; }
.card-info h3 { color: #fbf8ef; font-size: clamp(1.05rem, 1.8vw, 1.52rem); font-weight: 740; letter-spacing: -.045em; line-height: 1.24; }
.card-play { padding: 6px 3px 2px; color: color-mix(in srgb, var(--game-accent), white 30%); font-size: .84rem; font-weight: 730; white-space: nowrap; }
.card-play:hover, .card-info h3 a:hover, .footer-inner > a:hover { text-decoration: underline; text-underline-offset: 4px; }

.advertisement { min-height: 140px; padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; text-align: center; }
.advertisement p { margin-bottom: 14px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 100px; }
.footer-inner > a:last-child { color: var(--muted); font-size: .87rem; }

.details { min-height: 67vh; padding-block: 38px 68px; }
.back { min-height: 40px; display: inline-flex; gap: 8px; align-items: center; width: fit-content; font-size: .86rem; font-weight: 660; color: #d5ddd3; }
.back:hover { color: #f5ed9a; }
.details-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(24px, 6vw, 90px); margin-top: 24px; animation: copy-in .5s ease both; }
.details h1 { font-weight: 820; font-size: clamp(3.2rem, 6.7vw, 7rem); line-height: .92; letter-spacing: -.075em; margin-block: 12px 20px; }
.details-copy > p:not(.eyebrow) { color: #d0d8cf; max-width: 47ch; font-size: 1.04rem; line-height: 1.65; margin-bottom: 24px; }
.details-art { width: 100%; aspect-ratio: 1.44; object-fit: cover; border: 1px solid #ffffff38; border-radius: 12px; }
.player { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.player-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 50px; gap: 12px; padding: 2px clamp(12px, 3vw, 46px); border-bottom: 1px solid var(--line); }
.player-bar h1 { font-size: clamp(.8rem, 2.65vw, 1rem); line-height: 1.2; font-weight: 740; text-align: center; }
.player-details { justify-self: end; font-size: .8rem; color: #c3cec5; text-align: right; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }

dialog { width: min(460px, calc(100vw - 36px)); padding: 23px; color: #f7f6ee; background: #202721; border: 1px solid #667166; border-radius: 12px; }
dialog::backdrop { background: #090c0bd9; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 1.48rem; letter-spacing: -.035em; }
#install-message { font-size: .98rem; line-height: 1.5; color: #e3e7dd; margin-block: 12px; }
.install-status { font-size: .82rem; color: #b8c9b6; border-top: 1px solid #8c9d8d48; padding-top: 14px; margin-top: 15px; }

@media (max-width: 850px) {
  .hero { min-height: 570px; }
  .slide-art { left: 15%; }
  .hero h1 { font-size: clamp(67px, 11vw, 100px); }
  .game-grid { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-tab { min-width: 0; }
  .slide-tab img { width: 40px; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 65px; }
  .teknos-brand { gap: 9px; }
  .teknos-brand strong { font-size: .96rem; }
  .site-header nav { gap: 12px; }
  .nav-link { font-size: .77rem; white-space: nowrap; }
  .install-button { min-height: 40px; font-size: .8rem; padding-inline: 9px; gap: 5px; }
  .hero { min-height: 0; height: clamp(568px, 74svh, 690px); }
  .slide-art { inset: 0 0 22%; }
  .slide-art img { object-position: var(--mobile-position); }
  .slide-shade { background: linear-gradient(0deg, #101313 0%, #101313 8%, #101313eb 24%, #10131381 51%, #10131315 78%), linear-gradient(90deg, #171d1866, transparent 87%); }
  .hero-frame { height: calc(100% - 112px); align-items: end; }
  .hero-copy { padding: 0 0 10px; }
  .eyebrow { font-size: .64rem; letter-spacing: .11em; gap: 9px; }
  .eyebrow span { width: 22px; flex-basis: 22px; }
  .hero h1 { font-size: clamp(55px, 14.5vw, 82px); margin-block: 12px 14px; }
  .hero-description { font-size: .9rem; max-width: 32ch; }
  .hero-actions { margin-top: 19px; }
  .button { min-height: 45px; padding-inline: 12px; font-size: .84rem; }
  .feature-controls { min-height: 112px; padding-block: 8px 15px; display: grid; align-content: start; gap: 8px; }
  .carousel-nav { order: 2; }
  .carousel-nav .icon-button { width: 43px; height: 42px; }
  .feature-tabs { gap: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slide-tab { padding: 5px; gap: 4px; min-height: 37px; justify-content: center; }
  .slide-tab img { display: none; }
  .slide-tab strong { font-size: .67rem; line-height: 1.12; white-space: normal; text-align: center; }
  .slide-tab small { display: none; }
  .catalog { padding-block: 22px 48px; }
  .section-heading { margin-bottom: 16px; }
  .game-grid { gap: 10px; }
  .card-info { display: flex; flex-direction: column; align-items: start; gap: 6px; padding: 10px; }
  .card-info p { font-size: .67rem; }
  .card-play { padding-inline: 0; min-height: 28px; }
  .card-arrow { width: 28px; height: 28px; top: 7px; right: 7px; font-size: .82rem; }
  .details { padding-block: 18px 44px; }
  .details-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
  .details-art { aspect-ratio: 1.6; }
  .footer-inner { min-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

@media (max-width: 365px) {
  .nav-link { display: none; }
}
