:root {
  --bg: #07080f; --bg2: #0d1020; --panel: #121629; --panel2: #1a1f38; --line: rgba(255,255,255,.09);
  --ink: #f3f4fb; --ink2: #b4b9d4; --ink3: #7c82a3;
  --gold: #ffcc3d; --gold2: #ffb21f; --live: #4ee08a; --soon: #66d3f5;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --nav-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.pixel-art { image-rendering: pixelated; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .15s, filter .15s, background .2s; cursor: pointer; border: 0; white-space: nowrap; }
.btn:active { transform: translateY(2px); }
.btn-gold { background: linear-gradient(180deg, #ffd95c, var(--gold2)); color: #1d1300; }
.btn-gold:hover { filter: brightness(1.1) saturate(1.1); }
.btn-gold .arr { transition: transform .2s; }
.btn-gold:hover .arr { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 16px; }
.btn-off { background: rgba(255,255,255,.06); color: var(--ink3); cursor: default; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 28px;
  padding: 0 max(24px, env(safe-area-inset-left)); transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(7,8,15,.86); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.pack { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.wordmark { font-family: 'Silkscreen', monospace; font-size: 16px; letter-spacing: 1px; color: var(--ink); white-space: nowrap; }
.wordmark b { font-weight: 400; color: var(--gold); }
.navlinks { display: flex; gap: 6px; margin-left: 12px; }
.navlinks a { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink2); padding: 8px 12px; position: relative; transition: color .2s; }
.navlinks a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
.navplay { margin-left: auto; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 980px; overflow: hidden; background: #000; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.slide .bg { position: absolute; inset: -2%; background-size: cover; background-position: center 60%; transform: scale(1.12); }
.slide.is-on .bg { animation: kenburns 14s ease-out forwards; }
.slide[data-theme="sea"] .bg { background-position: center 40%; }
.slide .bg-lootle { background-color: rgb(12,15,34); background-repeat: no-repeat; background-size: max(100%, 1500px) auto; background-position: 62% 100%; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1%, 0, 0); } to { transform: scale(1.02) translate3d(-1%, 0, 0); } }
.shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,6,12,.92) 0%, rgba(5,6,12,.7) 32%, rgba(5,6,12,.1) 62%, rgba(5,6,12,0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,8,15,.6) 18%, rgba(7,8,15,0) 42%),
    linear-gradient(180deg, rgba(7,8,15,.7) 0%, rgba(7,8,15,0) 18%); }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero-copy { position: absolute; z-index: 3; left: max(6vw, 24px); bottom: clamp(150px, 22vh, 230px); width: min(560px, 88vw); }
.slide .hero-copy > * { opacity: 0; transform: translateY(18px); }
.slide.is-on .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.slide.is-on .hero-copy > :nth-child(2) { animation-delay: .1s; }
.slide.is-on .hero-copy > :nth-child(3) { animation-delay: .2s; }
.slide.is-on .hero-copy > :nth-child(4) { animation-delay: .3s; }
.slide.is-on .hero-copy > :nth-child(5) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ink); padding: 6px 14px 6px 12px; background: rgba(0,0,0,.45);
  border-left: 3px solid var(--gold); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-live { background: var(--live); box-shadow: 0 0 0 0 rgba(78,224,138,.6); animation: ping 1.8s infinite; }
.dot-soon { background: var(--soon); }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(78,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(78,224,138,0); } }
.hero h1 { margin: 22px 0 6px; line-height: .95; }
.hero-sub { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); letter-spacing: .5px; text-transform: uppercase; color: var(--ink); }
.hero-text { margin: 0 0 30px; font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* game logos */
.logo-lootle { font-family: 'Silkscreen', monospace; font-weight: 400; font-size: clamp(64px, 10vw, 128px); letter-spacing: 6px; color: var(--gold);
  text-shadow: -4px 0 0 #e0413a, 4px 0 0 #3a8fe0, 0 6px 0 rgba(0,0,0,.6), 0 0 40px rgba(255,204,61,.35); }
.logo-lootle.sm { font-size: 46px; letter-spacing: 4px; text-shadow: -3px 0 0 #e0413a, 3px 0 0 #3a8fe0, 0 4px 0 rgba(0,0,0,.6); }
.logo-map { font-family: 'Eagle Lake', 'Georgia', serif; font-weight: 400; font-size: clamp(46px, 6.4vw, 84px); letter-spacing: 0;
  background: linear-gradient(180deg, #fff6dc 0%, #f1d58e 55%, #c99a45 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(120,200,255,.25)); }
.logo-map small { display: block; font-size: .34em; letter-spacing: .32em; line-height: 1.2; margin-bottom: .12em; }
.logo-map small.sub { font-size: .4em; letter-spacing: .02em; margin: .08em 0 0; }
.logo-map.sm small.sub { font-size: .42em; }
.logo-map.sm { font-size: 48px; line-height: 1; }

/* pager */
.pager { position: absolute; z-index: 4; left: max(6vw, 24px); right: max(6vw, 24px); bottom: 34px; display: flex; gap: 14px; }
.pg { all: unset; position: relative; display: flex; align-items: center; gap: 14px; width: 300px; padding: 10px 14px 14px 10px; cursor: pointer;
  background: rgba(10,12,24,.6); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.pg:hover { background: rgba(20,24,44,.8); }
.pg:focus-visible { outline: 2px solid var(--gold); }
.pg-img { width: 74px; height: 44px; background-size: cover; background-position: center; flex: none; image-rendering: pixelated; opacity: .55; transition: opacity .2s; }
.pg.is-on .pg-img { opacity: 1; }
.pg-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-txt b { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg.is-on .pg-txt b { color: var(--ink); }
.pg-txt small { font-size: 12px; color: var(--ink3); }
.pg-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
.pg-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.pg.is-on .pg-bar i { animation: fill var(--dur, 8s) linear forwards; }
.hero.paused .pg.is-on .pg-bar i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

/* ---------- why ---------- */
.why { position: relative; background: var(--bg); }
.why-in { max-width: 1240px; margin: 0 auto; padding: 34px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-bottom: 1px solid var(--line); }
.perk { display: flex; gap: 14px; align-items: center; }
.perk svg { width: 34px; height: 34px; flex: none; }
.perk b { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 1px; text-transform: uppercase; }
.perk span { display: block; font-size: 14px; color: var(--ink3); margin-top: 2px; }

/* ---------- games ---------- */
.games { max-width: 1240px; margin: 0 auto; padding: 90px 24px 40px; }
.sec-head { margin-bottom: 30px; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.sec-head h2, .soon h2 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(42px, 5vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: 1px; }

.lib { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gcard { position: relative; height: 460px; overflow: hidden; cursor: pointer; background: #000; outline: none;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.gcard::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); pointer-events: none; transition: box-shadow .3s; }
.gcard:hover, .gcard:focus-visible { transform: translateY(-6px); }
.gcard:hover::after, .gcard:focus-visible::after, .gcard.is-open::after { box-shadow: inset 0 0 0 2px var(--gold); }
.gart { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.9) brightness(.9); }
.gcard[data-game="lootle"] .gart { background-size: auto 115%; background-position: 50% 55%; }
.gcard:hover .gart, .gcard.is-open .gart { transform: scale(1.1); filter: saturate(1.1) brightness(1); }
.gshade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,12,.96) 0%, rgba(5,6,12,.75) 34%, rgba(5,6,12,0) 66%); }
.gtop { position: absolute; top: 18px; left: 20px; }
.badge { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; padding: 6px 12px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.badge.live { color: var(--live); box-shadow: inset 2px 0 0 var(--live); }
.badge.soon { color: var(--soon); box-shadow: inset 2px 0 0 var(--soon); }
.gbody { position: absolute; left: 26px; right: 80px; bottom: 26px; }
.gbody h3 { margin: 0 0 10px; }
.gbody p { margin: 0 0 14px; color: var(--ink2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--ink2); padding: 5px 10px; background: rgba(255,255,255,.08); }
.gmore { position: absolute; right: 24px; bottom: 26px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink);
  background: rgba(255,255,255,.1); transition: transform .3s, background .2s; }
.gmore svg { width: 16px; height: 16px; }
.gcard:hover .gmore { background: var(--gold); color: #1d1300; }
.gcard.is-open .gmore { transform: rotate(180deg); background: var(--gold); color: #1d1300; }

/* drawer */
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1), margin .5s; margin-top: 0; }
.drawer.open { grid-template-rows: 1fr; margin-top: 24px; }
.drawer > .drawer-in { overflow: hidden; min-height: 0; }
.drawer-in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; background: linear-gradient(135deg, var(--panel2), var(--panel)); }
.drawer.open .drawer-in { padding: 32px; box-shadow: inset 0 0 0 1px var(--line); }
.drawer.open .drawer-in > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.drawer.open .d-copy { animation-delay: .08s !important; }
.d-main { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.d-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.d-main img.px { image-rendering: pixelated; object-fit: contain; background: #0b0a14; }
.d-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.d-thumbs button { all: unset; cursor: pointer; aspect-ratio: 16 / 9; background-size: cover; background-position: center; opacity: .5; transition: opacity .2s; box-shadow: inset 0 0 0 2px transparent; }
.d-thumbs button.px { image-rendering: pixelated; }
.d-thumbs button:hover { opacity: .85; }
.d-thumbs button.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--gold); }
.d-thumbs button:focus-visible { outline: 2px solid var(--gold); }
.d-copy h3 { margin: 6px 0 12px; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; text-transform: uppercase; }
.d-lead { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.d-copy p { color: var(--ink2); line-height: 1.65; font-size: 15.5px; margin: 0 0 16px; }
.d-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.d-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.d-list li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.d-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 24px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.d-facts div { background: var(--panel); padding: 10px 12px; }
.d-facts dt { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink3); }
.d-facts dd { margin: 3px 0 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.d-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.d-close { all: unset; position: absolute; top: 10px; right: 14px; font-size: 30px; line-height: 1; color: var(--ink3); cursor: pointer; padding: 4px 8px; }
.d-close:hover { color: var(--ink); }

/* restore: before / after */
.restore { margin-top: 110px; display: grid; grid-template-columns: 0.75fr 1.6fr; gap: 44px; align-items: center; }
.restore h2 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; text-transform: uppercase; }
.restore p { color: var(--ink2); font-size: 16.5px; line-height: 1.65; margin: 16px 0 0; }
.restore .hint { color: var(--gold); font-family: var(--display); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 15px; }
.compare { --pos: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; user-select: none; touch-action: pan-y;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.c-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold);
  box-shadow: 0 0 18px rgba(255,204,61,.8); pointer-events: none; }
.c-knob { position: absolute; top: 80%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center;
  background: var(--gold); color: #1d1300; transform: rotate(45deg); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.c-knob svg { width: 24px; height: 12px; transform: rotate(-45deg); }
.c-tag { position: absolute; top: 16px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 6px 12px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); pointer-events: none; }
.c-tag-l { left: 16px; color: var(--live); }
.c-tag-r { right: 16px; color: #d9d9d9; }
.c-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.c-range:focus-visible ~ .c-line, .compare:has(.c-range:focus-visible) .c-line { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,204,61,.8); }

/* coming soon */
.soon { margin-top: 110px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.soon p { color: var(--ink2); font-size: 17px; line-height: 1.6; max-width: 460px; margin: 16px 0 0; }
.soon-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mystery { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(135deg, #0f1224 0 12px, #121630 12px 24px); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.mystery b { font-family: 'Silkscreen', monospace; font-weight: 400; font-size: 54px; color: #2c3358; text-shadow: 0 0 20px rgba(255,204,61,.08); }
.mystery span { font-family: var(--display); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink3); font-size: 14px; }
.mystery:nth-child(2) { transform: translateY(18px); }

/* footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); background: #05060c; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 34px 24px 44px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ink2); font-size: 14px; }
.foot-links a:hover { color: var(--ink); }
.foot small { margin-left: auto; color: var(--ink3); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .navlinks { display: none; }
  .why-in { grid-template-columns: 1fr 1fr; }
  .lib { grid-template-columns: 1fr; }
  .drawer-in { grid-template-columns: 1fr; gap: 24px; }
  .soon { grid-template-columns: 1fr; }
  .restore { grid-template-columns: 1fr; gap: 24px; }
  .pg { width: auto; flex: 1; }
}
@media (max-width: 620px) {
  :root { --nav-h: 60px; }
  .wordmark { font-size: 12px; }
  .navplay { height: 36px; padding: 0 14px; font-size: 15px; }
  .pack { width: 26px; height: 26px; }
  .hero { min-height: 640px; }
  .hero-copy { bottom: 128px; }
  .shade { background:
    linear-gradient(0deg, var(--bg) 0%, rgba(7,8,15,.92) 30%, rgba(7,8,15,.45) 62%, rgba(7,8,15,.15) 100%),
    linear-gradient(180deg, rgba(7,8,15,.7) 0%, rgba(7,8,15,0) 18%); }
  .slide .bg { background-position: 50% 40%; }
  .hero-text { font-size: 15.5px; margin-bottom: 22px; }
  .btn { height: 48px; padding: 0 22px; font-size: 17px; }
  .pager { bottom: 22px; gap: 8px; }
  .pg { padding: 8px 8px 12px; gap: 8px; }
  .pg-img { width: 44px; height: 30px; }
  .pg-txt b { font-size: 14px; }
  .pg-txt small { display: none; }
  .why-in { grid-template-columns: 1fr; gap: 16px; padding: 28px 20px; }
  .games { padding: 64px 16px 30px; }
  .gcard { height: 400px; }
  .gbody { left: 20px; right: 20px; bottom: 20px; }
  .gmore { display: none; }
  .drawer.open .drawer-in { padding: 20px 16px; }
  .d-copy h3 { font-size: 36px; }
  .d-facts { grid-template-columns: 1fr 1fr 1fr; }
  .soon { margin-top: 80px; }
  .restore { margin-top: 80px; }
  .c-knob { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .foot small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide .hero-copy > * { opacity: 1; transform: none; }
}

/* Inkwell title: one big word, the subtitle on a single line beneath it */
.hero .logo-map { font-size: clamp(56px, 7.4vw, 108px); line-height: 1; }
.hero .logo-map small.sub { font-size: .3em; letter-spacing: .02em; white-space: nowrap; margin-top: .25em; }
