/* PIRATE OF SEA — website
   Look: the game's chunky Roblox-fighting-game UI (thick dark outlines, light→dark gradients, gloss, painted icons)
   dressed as ship's gear (dark wood, rope, parchment, brass). Fonts: Kanit (Thai/body), Lilita One (numbers / EN
   display), Noto Serif Thai + Cinzel (cinematic island titles, same as the trailer). */

:root {
  color-scheme: dark;
  --sea-950: #030c16;
  --sea-900: #061422;
  --sea-850: #081a2c;
  --sea-800: #0b2238;
  --sea-700: #11314f;
  --ink: #1d0e04;          /* logo outline brown-black */
  --ink-2: #2a1408;
  --gold: #ffd628;
  --gold-2: #ffbf1f;
  --gold-soft: #ffe28a;
  --amber: #f5a30e;
  --orange: #ff8a1e;
  --red: #e5382f;
  --red-deep: #a8161a;
  --cream: #fff4dc;
  --text: #f4ecdd;
  --dim: rgba(244, 236, 221, .74);
  --faint: rgba(244, 236, 221, .5);
  --parch-1: #fbefcf;
  --parch-2: #efd8a2;
  --parch-3: #d4ad6c;
  --parch-ink: #3a2312;
  --wood-1: #3a2415;
  --wood-2: #22140a;
  --teal: #29c6d6;
  --r-common: #b8bcc4;
  --r-uncommon: #4896ff;
  --r-rare: #ac58f0;
  --r-legendary: #f446c8;
  --r-mythical: #ff3434;
  --nav-h: 68px;
  --wrap: 1200px;
  --gut: max(16px, env(safe-area-inset-left));
  --f-body: "Kanit", system-ui, sans-serif;
  --f-display: "Lilita One", "Kanit", system-ui, sans-serif;
  --f-serif: "Cinzel", "Noto Serif Thai", "Kanit", serif;
  --f-thai-serif: "Noto Serif Thai", "Cinzel", serif;
  --outline: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink),
             1.6px 1.6px 0 var(--ink), -1.6px 1.6px 0 var(--ink), 1.6px -1.6px 0 var(--ink), -1.6px -1.6px 0 var(--ink),
             0 4px 0 var(--ink);
  --outline-sm: 0 1.5px 0 var(--ink), 1.5px 0 0 var(--ink), -1.5px 0 0 var(--ink), 0 -1.5px 0 var(--ink),
                1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink), 0 3px 0 var(--ink);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .2  0 0 0 0 .08  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sea-900); color: var(--text);
  font: 400 17px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
/* decorative overflow (tilted ribbon, rotating light rays) must never widen the page on phones;
   clip (unlike hidden) keeps position: sticky working for the voyage bar */
main, .foot { overflow-x: clip; }
@supports not (overflow: clip) { main, .foot { overflow-x: hidden; } }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.nw { white-space: nowrap; }
.is-th { letter-spacing: .02em !important; text-transform: none !important; font-family: var(--f-body) !important; font-weight: 500 !important; }

/* ------------------------------------------------------------------ type */
.kicker {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  font: 800 13px/1 var(--f-serif); letter-spacing: .3em; color: var(--gold-soft); text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before, .kicker::after { content: ""; height: 2px; width: 46px; background: linear-gradient(90deg, transparent, var(--gold)); border-radius: 2px; }
.kicker::after { transform: scaleX(-1); }
.story .kicker { justify-content: flex-start; }
.story .kicker::before { display: none; }

.h2 {
  font: 800 clamp(30px, 4.4vw, 56px)/1.22 var(--f-body);
  letter-spacing: -.005em;
  background: linear-gradient(180deg, #fffdf2 8%, #ffe27a 46%, #ffb323 78%, #ff8f1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 0 1px var(--ink)) drop-shadow(0 10px 22px rgba(0,0,0,.45));
  padding-bottom: .06em; /* room for Thai descenders under the clip */
}
.h2--xl { font-size: clamp(36px, 6vw, 76px); }
.sub { color: var(--dim); font-size: clamp(16px, 1.6vw, 19px); max-width: 40em; margin: 14px auto 0; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--text); }
.sechead { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b: 3px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: var(--b) solid var(--ink); border-radius: 14px;
  padding: .62em 1.25em; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 800 18px/1.1 var(--f-display); font-synthesis: none; letter-spacing: .01em;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(3px); }
.btn--play {
  color: #fff; text-shadow: var(--outline-sm);
  background: linear-gradient(180deg, #fff7a8 0%, #ffe03a 30%, #ffc21c 62%, #f39a0c 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 -5px 0 rgba(173, 82, 0, .45), 0 5px 0 var(--ink), 0 14px 26px rgba(0,0,0,.35);
}
.btn--play:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 -3px 0 rgba(173,82,0,.45), 0 2px 0 var(--ink), 0 6px 14px rgba(0,0,0,.3); }
.btn--play .ico { width: 1.05em; height: 1.05em; filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(1px 0 0 var(--ink)) drop-shadow(-1px 0 0 var(--ink)); }
.btn--play::before { /* gloss */
  content: ""; position: absolute; inset: 0 0 52% 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.08)); border-radius: 10px 10px 40% 40% / 10px 10px 18px 18px;
}
.btn--play::after { /* shine sweep */
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -70%; width: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75) 50%, transparent);
  transform: skewX(-18deg); animation: glint 4.2s ease-in-out infinite;
}
.btn--glass {
  color: #fff; text-shadow: var(--outline-sm);
  background: linear-gradient(180deg, rgba(40,62,92,.78), rgba(10,22,38,.86));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.08), 0 5px 0 var(--ink), 0 14px 26px rgba(0,0,0,.35);
}
.btn--glass img { width: 1.5em; height: 1.5em; }
.btn--wood {
  color: var(--cream); text-shadow: var(--outline-sm);
  background: linear-gradient(180deg, rgba(110,66,34,.6), rgba(34,18,8,.75)), url("/img/ui/tex_wood.png") center/180px;
  box-shadow: inset 0 2px 0 rgba(255,220,170,.25), 0 5px 0 var(--ink), 0 12px 22px rgba(0,0,0,.35);
}
.btn--sm { font-size: 16px; padding: .5em .95em; border-radius: 12px; }
.btn--lg { font-size: clamp(18px, 1.8vw, 21px); }
.btn--xl { font-size: clamp(22px, 2.5vw, 31px); padding: .6em 1.45em; border-radius: 18px; --b: 3.5px; }
.disc { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: linear-gradient(180deg, #ff6a5b, #c81f1f); border: 2.5px solid var(--ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.45); }
.disc svg { width: .8em; height: .8em; fill: #fff; margin-left: .1em; }

/* ------------------------------------------------------------------ ribbons / badges */
.ribbon {
  --rc1: #ff5a4a; --rc2: #c61e1e;
  position: relative; display: inline-block; padding: 7px 34px 9px;
  font: 800 15px/1 var(--f-body); letter-spacing: .06em; color: var(--cream); text-shadow: 0 2px 0 rgba(60,0,0,.65);
  background: linear-gradient(180deg, var(--rc1), var(--rc2));
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  filter: drop-shadow(0 3px 0 var(--ink));
}
.ribbon::before { content: ""; position: absolute; inset: 3px 16px; border-block: 1.5px dashed rgba(255,235,200,.55); pointer-events: none; }
.lvl {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font: 400 15px/1 var(--f-display); letter-spacing: .03em; color: #fff; text-shadow: var(--outline-sm);
  background: linear-gradient(180deg, #ff5d4d, #b81b1b); border: 2.5px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 var(--ink);
}
.lvl img { width: 18px; height: 18px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 7px; border: 2px solid var(--ink);
  font: 600 12.5px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, #fff1b8, #ffcf3a); box-shadow: 0 2px 0 var(--ink);
}

/* ------------------------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h); transition: background .3s, box-shadow .3s; padding-top: env(safe-area-inset-top); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: url("/img/ui/tex_rope.png") left center / auto 12px repeat-x; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.nav--solid { background: linear-gradient(180deg, rgba(58,36,21,.92), rgba(28,16,8,.95)), url("/img/ui/tex_wood.png") center / 220px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.nav--solid::after { opacity: 1; }
.nav__in { height: 100%; display: flex; align-items: center; gap: 18px; max-width: calc(var(--wrap) + 2 * var(--gut) + 80px); margin-inline: auto; padding-inline: var(--gut); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); transition: transform .3s; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__word { font: 400 22px/1 var(--f-display); letter-spacing: .02em; color: var(--gold); text-shadow: var(--outline-sm); }
.brand__word em { font-style: normal; color: #fff; font-size: .78em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; text-decoration: none; font: 600 16.5px/1 var(--f-body); color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.6); border-radius: 10px; transition: background .2s, color .2s; }
.nav__links a:hover { background: rgba(255,214,40,.14); color: var(--gold); }
.nav__links a.is-on { color: var(--gold); }
.nav__links a.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px rgba(255,214,40,.6); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: rgba(6,20,34,.55); cursor: pointer; padding: 0; box-shadow: 0 3px 0 var(--ink); }
.lang span { padding: 6px 10px; font: 400 14px/1 var(--f-display); color: var(--faint); transition: background .2s, color .2s; }
html[lang="th"] .lang [data-l="th"], html[lang="en"] .lang [data-l="en"] { background: linear-gradient(180deg, #ffe76a, #f2a50f); color: #fff; text-shadow: var(--outline-sm); }
.burger { display: none; width: 46px; height: 42px; border: 2.5px solid var(--ink); border-radius: 12px; background: rgba(6,20,34,.6); cursor: pointer; padding: 0; place-content: center; gap: 5px; box-shadow: 0 3px 0 var(--ink); }
.burger span { display: block; width: 20px; height: 3px; border-radius: 3px; background: #fff; transition: transform .25s, opacity .25s; }
.nav--open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav--open .burger span:nth-child(2) { opacity: 0; }
.nav--open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: calc(var(--nav-h) + 18px) var(--gut) 150px; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: #0a2238 url("/media/hero.jpg") center / cover; }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-ready { opacity: 1; }
.hero__rays {
  position: absolute; left: 50%; top: -55vmax; width: 150vmax; height: 150vmax; margin-left: -75vmax;
  background: url("/img/ui/bg_rays.png") center / contain no-repeat; opacity: .16; mix-blend-mode: screen;
  animation: spin 120s linear infinite; pointer-events: none;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(3,12,22,.48) 0%, rgba(3,12,22,.12) 60%, transparent 80%),
    linear-gradient(180deg, rgba(3,12,22,.62) 0%, rgba(3,12,22,0) 22%, rgba(3,12,22,0) 58%, rgba(6,20,34,.88) 88%, var(--sea-900) 100%);
}
.sparkles i { position: absolute; width: 26px; height: 26px; background: url("/img/ui/fx_sparkle.png") center / contain no-repeat; opacity: 0; animation: twinkle 5s ease-in-out infinite; mix-blend-mode: screen; }
.sparkles i:nth-child(1) { left: 12%; top: 22%; animation-delay: .2s; }
.sparkles i:nth-child(2) { left: 84%; top: 18%; animation-delay: 1.4s; width: 34px; height: 34px; }
.sparkles i:nth-child(3) { left: 72%; top: 62%; animation-delay: 2.6s; }
.sparkles i:nth-child(4) { left: 20%; top: 70%; animation-delay: 3.3s; width: 18px; height: 18px; }
.sparkles i:nth-child(5) { left: 50%; top: 12%; animation-delay: 4.1s; width: 20px; height: 20px; }
.sparkles i:nth-child(6) { left: 92%; top: 46%; animation-delay: .9s; width: 16px; height: 16px; }
.sparkles i:nth-child(7) { left: 6%; top: 48%; animation-delay: 2.1s; width: 22px; height: 22px; }
.sparkles i:nth-child(8) { left: 36%; top: 80%; animation-delay: 3.8s; width: 16px; height: 16px; }
.hero__content { position: relative; text-align: center; max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.ribbon--hero { margin-bottom: 6px; animation: dropIn .7s .1s cubic-bezier(.2,1.3,.4,1) both; }
.hero__logo { margin: 0; line-height: 0; }
.hero__logo img { width: min(640px, 88vw, max(300px, calc((100svh - 390px) * 1.25))); height: auto; filter: drop-shadow(0 18px 28px rgba(0,0,0,.55)); animation: logoIn 1s .15s cubic-bezier(.2,1.35,.35,1) both, float 7s 1.3s ease-in-out infinite; transform-origin: 50% 60%; }
.hero__tag { margin-top: 6px; max-width: 30em; font: 500 clamp(17px, 2.05vw, 23px)/1.55 var(--f-body); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 4px 18px rgba(0,0,0,.75); animation: fadeUp .8s .55s both; }
.hero__tag b { font-family: var(--f-display); font-weight: 400; color: var(--gold); letter-spacing: .02em; text-shadow: var(--outline-sm); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px 18px; justify-content: center; margin-top: 26px; animation: fadeUp .8s .7s both; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; animation: fadeUp .8s .85s both; }
.stat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 15px; color: var(--text); background: rgba(5,16,28,.62); border: 2px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stat b { font: 400 17px/1 var(--f-display); color: var(--gold); letter-spacing: .02em; }
.stat svg { width: 18px; height: 18px; fill: var(--gold); }
.stat img { width: 22px; height: 22px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3bf06a; box-shadow: 0 0 0 0 rgba(59,240,106,.7); animation: pulse 1.8s infinite; }
.scrollcue { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 13px; color: var(--dim); letter-spacing: .04em; z-index: 2; }
.scrollcue img { width: 34px; height: 34px; animation: bob 2.2s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }

/* ------------------------------------------------------------------ marquee */
.marquee {
  position: relative; z-index: 5; margin: -46px -2vw 0; padding: 13px 0 12px; overflow: hidden;
  background: linear-gradient(180deg, #f2493d 0%, #d02a26 55%, #a9171a 100%);
  border-block: 4px solid var(--ink); transform: rotate(-1.4deg);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 10px 0 rgba(0,0,0,.28);
}
.marquee::before, .marquee::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-top: 2px dashed rgba(255,232,190,.5); }
.marquee::before { top: 5px; } .marquee::after { bottom: 5px; }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font: 800 clamp(17px, 1.7vw, 21px)/1.2 var(--f-body); color: var(--cream); text-shadow: 0 2px 0 rgba(70,0,0,.7); }
.marquee__item img { width: 26px; height: 26px; filter: drop-shadow(0 2px 0 rgba(70,0,0,.6)); }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; padding-block: clamp(84px, 11vw, 150px); }

/* story */
.story { background:
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(41,198,214,.12), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(255,191,31,.07), transparent 70%),
    var(--sea-900); }
.story__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.story__text .h2 { margin-bottom: 22px; }
.story__text p + p { margin-top: 14px; color: var(--dim); }
.story__text .btn { margin-top: 30px; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; padding-top: 14px; }
.feat {
  --acc: #ffd628;
  position: relative; padding: 38px 18px 18px; border-radius: 18px; border: 3px solid var(--ink);
  background: linear-gradient(180deg, #263955 0%, #18263d 52%, #0f1a2c 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.16), inset 0 -3px 0 rgba(0,0,0,.3), 0 6px 0 rgba(0,0,0,.38);
  transition: transform .25s;
}
.feat::before { content: ""; position: absolute; inset: 0 0 55% 0; border-radius: 15px 15px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent); pointer-events: none; }
.feat::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--acc); box-shadow: 0 0 14px var(--acc); opacity: .9; }
.feat:hover { transform: translateY(-4px) rotate(-.6deg); }
.feat img { position: absolute; top: -26px; left: 14px; width: 58px; height: 58px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)); transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.feat:hover img { transform: scale(1.12) rotate(-6deg); }
.feat h3 { font: 800 19px/1.3 var(--f-body); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); margin-bottom: 4px; }
.feat p { font-size: 15px; line-height: 1.6; color: var(--dim); }

/* ------------------------------------------------------------------ islands */
.islands { background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(41,198,214,.10), transparent 70%),
    linear-gradient(180deg, var(--sea-900) 0%, #071a2d 40%, #0a1f35 100%); padding-bottom: clamp(40px, 6vw, 80px); }
.voyage { position: sticky; top: var(--nav-h); z-index: 30; margin-bottom: clamp(36px, 5vw, 64px); padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(6,20,34,.92), rgba(6,20,34,.78)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid rgba(255,214,40,.16); }
.voyage__in { position: relative; max-width: 860px; margin: 0 auto; padding: 0 calc(var(--gut) + 18px); }
.voyage__track { position: absolute; left: calc(var(--gut) + 24px); right: calc(var(--gut) + 24px); top: 9px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.voyage__fill { height: 100%; width: 0; background: linear-gradient(90deg, #ffe680, var(--gold-2)); box-shadow: 0 0 12px rgba(255,214,40,.7); transition: width .5s ease; }
.voyage__nodes { position: relative; display: flex; justify-content: space-between; }
.voyage__nodes li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; cursor: pointer; }
.voyage__nodes i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,214,40,.55); background: var(--sea-900); transition: all .35s; }
.voyage__nodes b { font: 600 11.5px/1 var(--f-serif); letter-spacing: .08em; color: var(--faint); transition: color .3s; white-space: nowrap; }
.voyage__nodes span { font-size: 12px; line-height: 1.1; color: var(--faint); white-space: nowrap; transition: color .3s; }
.voyage__nodes li.is-past i { background: var(--gold-2); border-color: var(--gold); }
.voyage__nodes li.is-on i { background: #fff6c8; border-color: #fff; box-shadow: 0 0 0 5px rgba(255,214,40,.25), 0 0 18px rgba(255,214,40,.9); transform: scale(1.15); }
.voyage__nodes li.is-on b, .voyage__nodes li.is-on span { color: var(--gold-soft); }

.isl { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; margin-bottom: clamp(80px, 10vw, 140px); }
.isl:nth-child(even) .isl__media { order: 2; }
.isl__media { position: relative; }
.isl__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px rgba(255,214,40,.28), 0 28px 60px rgba(0,0,0,.55); background: #0a1a2a center / cover; transform: perspective(1200px) rotateY(var(--tilt, -3deg)); transition: transform .6s ease; }
.isl:nth-child(even) .isl__frame { --tilt: 3deg; }
.isl:hover .isl__frame { --tilt: 0deg; }
.isl__frame video, .isl__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.isl__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 70%, rgba(0,0,0,.35)); pointer-events: none; }
.isl__lv { position: absolute; z-index: 2; left: 14px; top: 14px; }
.isl__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.isl__thumbs button { position: relative; padding: 0; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; cursor: zoom-in; background: #0a1a2a; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.isl__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.isl__thumbs button:hover img { transform: scale(1.08); }
.isl__kind { margin-bottom: 10px; }
.isl__name {
  font: 900 clamp(42px, 6.2vw, 80px)/1.12 var(--f-thai-serif);
  background: linear-gradient(180deg, #fff8dc 10%, #ffd877 48%, #f39a2b 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #2a1003) drop-shadow(0 12px 24px rgba(0,0,0,.5)); padding-bottom: .08em;
}
.isl__latin { font: 600 clamp(12px, 1.2vw, 14px)/1.4 var(--f-serif); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-soft); opacity: .9; margin-top: 2px; }
.isl__era { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; font-size: 14.5px; color: var(--faint); }
.isl__era span { display: inline-flex; align-items: center; gap: 6px; }
.isl__era img { width: 18px; height: 18px; }
.isl__lore { margin-top: 14px; color: var(--dim); font-size: 16.5px; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.zones li { padding: 5px 12px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,214,40,.25); color: var(--text); }
.isl--end .isl__frame { box-shadow: 0 0 0 2px rgba(255,120,190,.45), 0 0 60px rgba(255,90,170,.25), 0 28px 60px rgba(0,0,0,.55); }
.isl--end .isl__name { background-image: linear-gradient(180deg, #fff1f6 8%, #ffb3d4 45%, #ff5c7a 90%); }
.isl--end .zones li { border-color: rgba(255,120,190,.35); }

.fog { position: relative; text-align: center; margin: 0 auto clamp(80px, 10vw, 140px); max-width: 760px; padding: 70px 24px 60px; border-radius: 28px; overflow: hidden; isolation: isolate; }
.fog::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/fog.jpg") center / cover; filter: blur(3px) saturate(.6) brightness(.55); transform: scale(1.1); }
.fog::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(10,31,53,.15), rgba(10,31,53,.85) 75%); }
.fog__route { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 3px dashed rgba(255,214,40,.35); }
.fog h3 { position: relative; font: 900 clamp(30px, 4vw, 46px)/1.2 var(--f-thai-serif); color: #e9f2f7; text-shadow: 0 3px 0 rgba(0,0,0,.6), 0 0 30px rgba(180,220,255,.35); }
.fog p { position: relative; margin-top: 8px; color: var(--dim); }
.fog .lvl { position: relative; margin-bottom: 14px; background: linear-gradient(180deg, #6f7f93, #3b4757); }
.qmarks { position: relative; display: flex; gap: 18px; justify-content: center; margin-top: 22px; }
.qmarks span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.35); font: 400 32px/1 var(--f-display); color: rgba(255,255,255,.55); animation: bob 3s ease-in-out infinite; }
.qmarks span:nth-child(2) { animation-delay: .6s; } .qmarks span:nth-child(3) { animation-delay: 1.2s; }

/* ------------------------------------------------------------------ fruits */
.fruits { isolation: isolate; color: #fff;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(140,230,255,.5), transparent 70%),
    linear-gradient(180deg, #1b9be0 0%, #137cc4 30%, #0d5a9b 65%, #0a3e70 100%); }
.fruits::before { content: ""; position: absolute; left: 50%; top: -30vmax; width: 120vmax; height: 120vmax; margin-left: -60vmax; z-index: -1; background: url("/img/ui/bg_rays.png") center / contain no-repeat; opacity: .22; mix-blend-mode: screen; animation: spin 160s linear infinite; pointer-events: none; }
.wave { position: absolute; left: 0; right: 0; height: 70px; z-index: 1; pointer-events: none; background: no-repeat center / 100% 100%; }
.wave--top { top: -1px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 0h1440v28c-120 26-240 34-360 22S840 10 720 22 480 64 360 60 120 26 0 36z' fill='%230a1f35'/></svg>"); }
.wave--bot { top: -1px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 0h1440v34c-120 14-240 30-360 20S840 12 720 20 480 62 360 58 120 24 0 38z' fill='%230a3e70'/></svg>"); }
.fruits .h2 { background: linear-gradient(180deg, #fff 15%, #fff1a6 55%, #ffc93a 100%); -webkit-background-clip: text; background-clip: text; }
.fruits .kicker { color: #fff3b0; }
.fruits .sub { color: rgba(255,255,255,.88); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.tab { --rc: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 3px solid var(--ink); cursor: pointer;
  font: 600 15.5px/1 var(--f-body); color: #fff; background: rgba(4,24,48,.45); box-shadow: 0 3px 0 var(--ink); transition: transform .15s, background .2s; }
.tab::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--rc); border: 2px solid var(--ink); }
.tab[data-r="all"]::before { background: conic-gradient(var(--r-common), var(--r-uncommon), var(--r-rare), var(--r-legendary), var(--r-mythical), var(--r-common)); }
.tab:hover { transform: translateY(-2px); }
.tab[aria-selected="true"] { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 70%, #fff), var(--rc) 60%, color-mix(in srgb, var(--rc) 70%, #000)); text-shadow: var(--outline-sm); }
.tab[data-r="all"][aria-selected="true"] { background: linear-gradient(180deg, #ffe46b, #f39a0c); }

.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.fgrid > li { transition: opacity .3s, transform .3s; }
.fgrid > li.is-out { display: none; }
.fc {
  --rc: var(--r-common); --fc: #ffd84a;
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #1f2c45, #121b2c);
  box-shadow: 0 0 0 3px var(--rc) inset, 0 7px 0 var(--ink), 0 18px 30px rgba(0,20,50,.35);
  transition: transform .25s cubic-bezier(.2,1.2,.4,1), box-shadow .25s;
}
.fc:hover { transform: translateY(-7px) rotate(-.8deg); box-shadow: 0 0 0 3px var(--rc) inset, 0 12px 0 var(--ink), 0 26px 40px rgba(0,20,50,.45); }
.fc__art { position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--fc) 80%, #fff) 0%, color-mix(in srgb, var(--fc) 55%, var(--rc)) 34%, color-mix(in srgb, var(--rc) 45%, #0b1426) 78%); }
.fc__art::before { content: ""; position: absolute; inset: -30%; background: url("/img/ui/bg_rays.png") center / contain no-repeat; opacity: .35; mix-blend-mode: soft-light; animation: spin 40s linear infinite; }
.fc__art video, .fc__art .fc__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.fc__sticker { position: absolute; left: 50%; top: 52%; width: 62%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)) drop-shadow(0 14px 18px rgba(0,0,0,.25)); transition: all .4s cubic-bezier(.2,1.3,.4,1); animation: bobS 4s ease-in-out infinite; z-index: 2; }
.fc.has-video:hover .fc__art video, .fc.is-playing .fc__art video { opacity: 1; }
.fc.has-video:hover .fc__sticker, .fc.is-playing .fc__sticker { width: 30%; left: 82%; top: 76%; animation: none; }
.fc__r { position: absolute; z-index: 3; left: 10px; top: 10px; }
.rar { display: inline-block; padding: 4px 10px; border-radius: 8px; border: 2.5px solid var(--ink); font: 400 13px/1 var(--f-display); letter-spacing: .05em; color: #fff; text-shadow: var(--outline-sm);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 65%, #fff), var(--rc) 55%, color-mix(in srgb, var(--rc) 65%, #000)); box-shadow: 0 2px 0 var(--ink); }
.fc__type { position: absolute; z-index: 3; right: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; background: rgba(0,0,0,.45); color: #fff; }
.fc__ev { position: absolute; z-index: 3; right: 10px; bottom: 10px; }
.fc__body { position: relative; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.fc__name { font: 800 22px/1.25 var(--f-body); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.fc__en { font: 400 15px/1.2 var(--f-display); letter-spacing: .02em; color: var(--rc); filter: brightness(1.25); }
.fc__ep { font-size: 13.5px; color: var(--faint); margin-top: 2px; }
.keys { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }
.key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; border: 2.5px solid var(--ink); background: linear-gradient(180deg, #ffffff, #d5dce6); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 3px 0 var(--ink); font: 400 15px/1 var(--f-display); color: #1c2433; }
.fc__more { margin-left: auto; align-self: center; font-size: 13px; color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
.fc[data-r="Mythical"] { box-shadow: 0 0 0 3px var(--rc) inset, 0 7px 0 var(--ink), 0 0 34px rgba(255,52,52,.55); animation: mythic 2.4s ease-in-out infinite; }
.fc[data-r="Mythical"]::after { content: ""; position: absolute; inset: 0; border-radius: 17px; padding: 3px; z-index: 5; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #ff3434, #ffd628, #ff3434, #ff6ad5, #ff3434); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rot 3s linear infinite; }
.fc[data-r="Legendary"] .fc__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); background-size: 260% 100%; animation: sheen 3.6s ease-in-out infinite; z-index: 2; pointer-events: none; }

.fgrid > li[data-r="Mythical"] { grid-column: 1 / -1; }
.fgrid > li[data-r="Mythical"] .fc { flex-direction: row; min-height: 300px; }
.fgrid > li[data-r="Mythical"] .fc__art { flex: 0 0 min(44%, 460px); aspect-ratio: auto; }
.fgrid > li[data-r="Mythical"] .fc__sticker { width: min(64%, 300px); }
.fgrid > li[data-r="Mythical"] .fc__body { justify-content: center; padding: 26px 30px; gap: 6px; background: radial-gradient(ellipse at 0% 50%, rgba(255,52,52,.18), transparent 60%); }
.fgrid > li[data-r="Mythical"] .fc__name { font-size: clamp(28px, 3vw, 40px); }
.fgrid > li[data-r="Mythical"] .fc__en { font-size: 20px; }
.fgrid > li[data-r="Mythical"] .fc__ep { font-size: 16px; }
.fc__desc { display: none; }
.fgrid > li[data-r="Mythical"] .fc__desc { display: block; font-size: 16px; line-height: 1.6; color: var(--dim); max-width: 36em; margin-top: 6px; }
.fgrid > li[data-r="Mythical"] .keys { margin-top: 14px; }
.fgrid > li[data-r="Mythical"] .key { width: 34px; height: 34px; font-size: 17px; }
.fgrid > li[data-r="Mythical"] .fc__more { margin-left: 14px; font-size: 15px; }
.fc__crown { display: none; }
.fgrid > li[data-r="Mythical"] .fc__crown { display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1 var(--f-serif); letter-spacing: .24em; color: #ffb4b4; text-transform: uppercase; }
.junk { margin-top: 56px; }
.junk__h { display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 22px/1.2 var(--f-body); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.4); margin-bottom: 18px; }
.junk__h img { width: 34px; height: 34px; }
.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jc { display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer; border-radius: 16px; border: 3px solid var(--ink);
  background: linear-gradient(180deg, rgba(20,34,58,.86), rgba(12,20,36,.92)); box-shadow: 0 5px 0 var(--ink); transition: transform .2s; }
.jc:hover { transform: translateY(-3px) rotate(.6deg); }
.jc img { width: 64px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 0 rgba(0,0,0,.3)); }
.jc b { display: block; font: 800 17px/1.3 var(--f-body); color: #fff; }
.jc span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--dim); }

/* ------------------------------------------------------------------ bosses (wanted board) */
.bosses { background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(26,16,9,.86), rgba(18,10,5,.9)),
    url("/img/ui/tex_wood.png") center / 300px; }
.bosses .h2 { background-image: linear-gradient(180deg, #fff7df 10%, #ffd26a 50%, #e8892a 100%); }
.wanted { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 28px; padding-top: 14px; }
.wanted > li { width: calc((100% - 3 * 28px) / 4); max-width: 290px; }
.wanted > li { --r: -1.5deg; filter: drop-shadow(0 16px 18px rgba(0,0,0,.55)); transition: transform .35s cubic-bezier(.2,1.3,.4,1); transform: rotate(var(--r)); }
.wanted > li:nth-child(3n+2) { --r: 1.6deg; } .wanted > li:nth-child(3n) { --r: -.6deg; } .wanted > li:nth-child(4n) { --r: 2.2deg; }
.wanted > li:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); z-index: 2; }
.poster {
  position: relative; padding: 18px 16px 18px; color: var(--parch-ink); text-align: center;
  background: var(--noise), radial-gradient(ellipse 85% 75% at 50% 42%, var(--parch-1) 0%, var(--parch-2) 62%, var(--parch-3) 100%);
  background-blend-mode: multiply, normal;
  clip-path: polygon(0% 1.2%, 6% 0%, 13% 1%, 21% 0.2%, 30% 1.1%, 38% 0%, 47% 0.9%, 55% 0.1%, 64% 1%, 72% 0.2%, 81% 1.1%, 89% 0%, 95% 0.8%, 100% 0%,
    99.3% 8%, 100% 17%, 99.1% 26%, 100% 35%, 99.4% 45%, 100% 55%, 99.2% 64%, 100% 74%, 99.3% 84%, 100% 93%, 99.4% 100%,
    92% 99.1%, 84% 100%, 76% 99.2%, 67% 100%, 58% 99.3%, 49% 100%, 40% 99.2%, 31% 100%, 22% 99.1%, 14% 100%, 6% 99.3%, 0% 100%,
    0.7% 91%, 0% 82%, 0.8% 72%, 0% 62%, 0.6% 52%, 0% 42%, 0.8% 32%, 0% 22%, 0.6% 12%);
}
.poster::before { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(90,52,22,.45); pointer-events: none; }
.nail { position: absolute; left: 50%; top: 6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 35%, #f6f2ea, #9a958c 45%, #3d3a35 100%); box-shadow: 0 2px 2px rgba(0,0,0,.5); }
.poster__w { font: 800 clamp(30px, 3vw, 38px)/1 var(--f-serif); letter-spacing: .1em; color: #3a1d0a; margin-top: 10px; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.poster__th { font: 900 15px/1.2 var(--f-thai-serif); letter-spacing: .05em; color: #6b3a17; margin-top: 4px; }
.poster__photo { position: relative; margin: 12px auto 10px; aspect-ratio: 3 / 4; border: 3px solid #3a2312; background: #2b1a0e; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255,240,210,.25); }
.poster__photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) saturate(1.05) contrast(1.04); transition: transform .5s, filter .5s; }
.wanted > li:hover .poster__photo img { transform: scale(1.05); }
.poster__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(60,30,8,.45)); pointer-events: none; }
.poster__name { font: 800 21px/1.25 var(--f-body); color: #2a1408; }
.poster__en { font: 600 11.5px/1.4 var(--f-serif); letter-spacing: .14em; text-transform: uppercase; color: #6b4524; }
.poster__sub { font-size: 13px; line-height: 1.45; color: #6b4524; margin-top: 6px; min-height: 2.9em; font-style: italic; }
.poster__bounty { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 2px dashed rgba(90,52,22,.4); }
.poster__bounty small { font: 600 12px/1 var(--f-body); letter-spacing: .1em; color: #6b4524; text-transform: uppercase; }
.poster__bounty img { width: 26px; height: 26px; }
.poster__bounty b { font: 400 26px/1 var(--f-display); color: #8b1a12; letter-spacing: .02em; }
.poster__where { font-size: 12.5px; color: #6b4524; margin-top: 6px; }
.stamp { position: absolute; z-index: 3; right: 6px; top: 47%; transform: rotate(-14deg); padding: 4px 10px; border: 3px solid currentColor; border-radius: 8px;
  font: 400 18px/1 var(--f-display); letter-spacing: .06em; color: #b3191b; background: #f6e6c0; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.stamp--event { color: #c25a00; } .stamp--final { color: #a3001b; font-size: 20px; } .stamp--secret { color: #5a2a8c; }
.poster--secret .poster__photo img { filter: brightness(.2) contrast(1.4) saturate(0) blur(6px); transform: scale(1.12); }
.wanted > li:hover .poster--secret .poster__photo img { filter: brightness(.45) contrast(1.2) saturate(.4) blur(3px); }
.poster--secret .poster__photo::before { content: "?"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font: 400 120px/1 var(--f-display); color: rgba(255,214,40,.9); text-shadow: 0 0 30px rgba(255,214,40,.5), var(--outline); }
.poster--final { background: var(--noise), radial-gradient(ellipse 85% 75% at 50% 42%, #ffe6d4 0%, #f2b896 62%, #c9785a 100%); background-blend-mode: multiply, normal; }

/* ------------------------------------------------------------------ watch */
.watch { background: linear-gradient(180deg, #1a1009 0%, #0b0f17 18%, var(--sea-950) 100%); }
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.clip { position: relative; display: block; width: 100%; padding: 0; text-align: left; border: 0; background: none; cursor: pointer; }
.clip__screen { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 3px solid var(--ink); background: #0a1520 center / cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 20px 40px rgba(0,0,0,.55); transition: transform .3s, box-shadow .3s; }
.clip:hover .clip__screen { transform: translateY(-6px); box-shadow: 0 0 0 2px rgba(255,214,40,.6), 0 26px 48px rgba(0,0,0,.6); }
.clip__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); }
.clip__play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; transition: transform .25s; }
.clip__play.disc { width: 2.4em; height: 2.4em; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 var(--ink), 0 0 0 6px rgba(255,255,255,.12); }
.clip:hover .clip__play { transform: translate(-50%, -50%) scale(1.12); }
.clip__t { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; font: 800 18px/1.3 var(--f-body); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.7); }
.clip__badge { position: absolute; z-index: 2; left: 12px; top: 12px; }

/* ------------------------------------------------------------------ captain's log */
.log { background: linear-gradient(180deg, var(--sea-950), var(--sea-900)); }
.scroll { position: relative; max-width: 860px; margin: 0 auto; padding: 46px clamp(20px, 5vw, 58px) 40px; color: var(--parch-ink);
  background: var(--noise), linear-gradient(90deg, rgba(150,100,50,.22), transparent 8%, transparent 92%, rgba(150,100,50,.22)), radial-gradient(ellipse at 50% 40%, var(--parch-1), var(--parch-2) 70%, var(--parch-3));
  background-blend-mode: multiply, normal, normal; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.scroll::before, .scroll::after { content: ""; position: absolute; left: -18px; right: -18px; height: 26px; border-radius: 14px; border: 3px solid var(--ink);
  background: linear-gradient(180deg, #8a5a32, #5a3519 55%, #3a210e); box-shadow: inset 0 3px 0 rgba(255,220,170,.35), 0 6px 10px rgba(0,0,0,.4); }
.scroll::before { top: -14px; } .scroll::after { bottom: -14px; }
.entries > li { padding: 22px 0; border-bottom: 2px dashed rgba(90,52,22,.3); }
.entries > li:first-child { padding-top: 0; }
.entries > li:last-child { border-bottom: 0; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.entry__date { font: 600 14px/1 var(--f-serif); letter-spacing: .08em; color: #8b3a12; }
.entry__tag { padding: 3px 9px; border-radius: 6px; border: 2px solid var(--ink); font: 400 12.5px/1.2 var(--f-display); letter-spacing: .06em; color: #fff; text-shadow: var(--outline-sm); background: linear-gradient(180deg, #5fb8ff, #2668d8); }
.entry__tag[data-t="event"] { background: linear-gradient(180deg, #ffa24a, #d1560b); }
.entry__tag[data-t="new"] { background: linear-gradient(180deg, #6fe68b, #1f9a45); }
.entry__tag[data-t="fix"] { background: linear-gradient(180deg, #c3c8d0, #7a818c); }
.entry__title { font: 800 clamp(20px, 2.2vw, 25px)/1.3 var(--f-body); color: #2a1408; }
.entry__body { margin-top: 6px; font-size: 16px; color: #4a2e18; }
.entry__body ul { margin-top: 8px; display: grid; gap: 4px; }
.entry__body li { position: relative; padding-left: 26px; }
.entry__body li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 14px; background: url("/img/ui/ic_star.png") center / contain no-repeat; }
.entry__img { margin-top: 12px; border-radius: 10px; border: 3px solid #3a2312; }
#logMore { display: flex; margin: 22px auto 0; }

/* ------------------------------------------------------------------ final CTA */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 14vw, 190px) 0 clamp(100px, 12vw, 160px); text-align: center; }
.final__bg { position: absolute; inset: 0; z-index: -2; background: url("/img/sunset.jpg") center 40% / cover; transform: scale(1.12); will-change: transform; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(10,8,20,.5), rgba(10,8,20,.2) 70%), linear-gradient(180deg, var(--sea-900) 0%, rgba(6,20,34,.35) 20%, rgba(6,20,34,.15) 60%, rgba(20,12,6,.96) 100%); }
.final__in { display: flex; flex-direction: column; align-items: center; }
.final__emblem { width: clamp(110px, 12vw, 150px); height: auto; margin-bottom: 8px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
.final .lead { margin-top: 14px; max-width: 34em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.toast { min-height: 1.6em; margin-top: 16px; font-weight: 600; color: var(--gold-soft); text-shadow: 0 2px 8px rgba(0,0,0,.8); }

/* ------------------------------------------------------------------ footer */
.foot { position: relative; padding: 46px 0 calc(34px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(40,24,13,.94), rgba(20,11,5,.98)), url("/img/ui/tex_wood.png") center / 240px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; background: url("/img/ui/tex_rope.png") left center / auto 12px repeat-x; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { width: 64px; height: auto; }
.foot__name { font: 400 22px/1 var(--f-display); color: var(--gold); text-shadow: var(--outline-sm); }
.foot__th { font-size: 14px; color: var(--dim); margin-top: 4px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.foot__links a { text-decoration: none; color: var(--text); font-weight: 500; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.foot__links a:hover { color: var(--gold); border-color: var(--gold); }
.foot__legal, .foot__copy { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; color: var(--faint); }
.foot__legal { padding-top: 18px; border-top: 1px solid rgba(255,214,40,.14); }

/* ------------------------------------------------------------------ dialogs */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(1040px, 94vw); max-height: 92vh; max-height: 92svh; overflow: visible; }
.modal::backdrop { background: rgba(2,8,14,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: popIn .35s cubic-bezier(.2,1.3,.4,1); }
.modal__x { position: absolute; z-index: 5; top: -14px; right: -14px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer;
  font: 400 30px/1 var(--f-display); color: #fff; text-shadow: var(--outline-sm); background: linear-gradient(180deg, #ff6a5b, #c81f1f); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 var(--ink); }
.modal--video { text-align: center; }
.phone { width: min(400px, 88vw, calc((92svh - 60px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; border: 6px solid #0d0d10; box-shadow: 0 0 0 3px var(--ink), 0 30px 80px rgba(0,0,0,.7); background: #000; margin: 0 auto; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal--img .phone { width: min(1100px, 92vw); aspect-ratio: auto; border-radius: 16px; border-width: 3px; }
.modal__cap { margin-top: 14px; font-weight: 600; color: #fff; }
.modal--fruit { width: min(980px, 94vw); }
.fm { --rc: var(--r-common); --fc: #ffd84a; position: relative; display: grid; grid-template-columns: 1fr 1.08fr; border-radius: 22px; overflow: hidden; border: 3px solid var(--ink);
  background: linear-gradient(180deg, #1f2c45, #0f1828); box-shadow: 0 0 0 3px var(--rc) inset, 0 30px 80px rgba(0,0,0,.6); max-height: 92svh; }
.fm__art { position: relative; min-height: 340px; overflow: hidden; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--fc) 80%, #fff), color-mix(in srgb, var(--fc) 50%, var(--rc)) 38%, color-mix(in srgb, var(--rc) 40%, #0b1426) 80%); }
.fm__art::before { content: ""; position: absolute; inset: -40%; background: url("/img/ui/bg_rays.png") center / contain no-repeat; opacity: .4; mix-blend-mode: soft-light; animation: spin 40s linear infinite; }
.fm__art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm__art img { position: absolute; left: 50%; top: 50%; width: 60%; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 0 rgba(0,0,0,.25)); animation: bobS 4s ease-in-out infinite; }
.fm__art.has-video img { width: 26%; left: auto; right: 4%; top: auto; bottom: 4%; transform: none; animation: none; }
.fm__info { padding: 26px 26px 24px; overflow: auto; max-height: 92svh; }
.fm__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.fm__name { font: 800 clamp(28px, 3.4vw, 38px)/1.2 var(--f-body); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.fm__en { font: 400 18px/1.2 var(--f-display); color: var(--rc); filter: brightness(1.3); }
.fm__desc { margin-top: 12px; color: var(--dim); font-size: 16px; }
.fm__passive { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,214,40,.08); border-left: 4px solid var(--gold); font-size: 15px; }
.fm__passive b { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 2px; }
.fm__moves { margin-top: 18px; display: grid; gap: 10px; }
.fm__moves h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.mv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.06); }
.mv .key { width: 34px; height: 34px; font-size: 17px; grid-row: span 2; }
.mv b { font: 800 16.5px/1.3 var(--f-body); color: #fff; }
.mv b small { font: 400 13px/1 var(--f-display); color: var(--faint); margin-left: 6px; letter-spacing: .02em; }
.mv p { font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.hold { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: rgba(41,198,214,.18); color: #8ff3ff; vertical-align: 2px; }
.fm .btn { margin-top: 20px; }

/* ------------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; padding: 10px 16px; background: var(--gold); color: var(--ink); text-align: center; font-weight: 600; }

/* ------------------------------------------------------------------ keyframes */
@keyframes glint { 0%, 55% { left: -70%; } 85%, 100% { left: 140%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: .95; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.6) rotate(90deg); } }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.55) rotate(-4deg); } 100% { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes bobS { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -7px; rotate: 3deg; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59,240,106,.65); } 70% { box-shadow: 0 0 0 10px rgba(59,240,106,0); } 100% { box-shadow: 0 0 0 0 rgba(59,240,106,0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0%, 40% { background-position: 130% 0; } 80%, 100% { background-position: -30% 0; } }
@keyframes mythic { 0%, 100% { box-shadow: 0 0 0 3px var(--rc) inset, 0 7px 0 var(--ink), 0 0 22px rgba(255,52,52,.45); } 50% { box-shadow: 0 0 0 3px var(--rc) inset, 0 7px 0 var(--ink), 0 0 44px rgba(255,52,52,.8); } }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --ang: 360deg; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .clips { grid-template-columns: repeat(4, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: thin; }
  .clip { scroll-snap-align: center; }
}
@media (max-width: 1100px) {
  .wanted > li { width: calc((100% - 2 * 28px) / 3); }
}
@media (max-width: 920px) {
  :root { --nav-h: 62px; }
  .burger { display: grid; }
  .nav__links { position: fixed; top: calc(var(--nav-h) + 10px); left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px; margin: 0;
    border: 3px solid var(--ink); border-radius: 16px; background: linear-gradient(180deg, rgba(58,36,21,.97), rgba(28,16,8,.98)), url("/img/ui/tex_wood.png") center / 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,.5); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav--open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 16px; font-size: 18px; }
  .nav__links a.is-on::after { display: none; }
  .nav--open { background: linear-gradient(180deg, rgba(58,36,21,.96), rgba(28,16,8,.97)), url("/img/ui/tex_wood.png") center / 220px; }
  .story__grid { grid-template-columns: 1fr; }
  .isl, .isl:nth-child(even) { grid-template-columns: 1fr; }
  .isl:nth-child(even) .isl__media { order: 0; }
  .isl__frame, .isl:nth-child(even) .isl__frame { --tilt: 0deg; }
  .jgrid { grid-template-columns: 1fr; }
  .fm { grid-template-columns: 1fr; overflow: auto; }
  .fm__art { min-height: 0; aspect-ratio: 16 / 10; }
  .fm__info { max-height: none; overflow: visible; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__word { display: none; }
  .nav__right .btn--sm { font-size: 15px; padding: .5em .8em; }
  .hero { padding-bottom: 120px; }
  .hero__cta .btn { width: min(100%, 340px); }
  .scrollcue span { display: none; }
  .scrollcue { bottom: 64px; }
  .kicker { font-size: 11.5px; letter-spacing: .2em; gap: 10px; }
  .kicker::before, .kicker::after { width: 24px; }
  .feats { grid-template-columns: 1fr; gap: 30px; }
  .voyage__nodes li { width: 44px; }
  .voyage__nodes span { display: none; }
  .fgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .fc { border-radius: 16px; }
  .fc__body { padding: 10px 11px 12px; }
  .fc__name { font-size: 17px; }
  .fc__en { font-size: 13px; }
  .fc__ep { display: none; }
  .key { width: 22px; height: 22px; font-size: 12px; border-width: 2px; border-radius: 5px; }
  .keys { gap: 4px; }
  .fc__more { display: none; }
  .fc__type { display: none; }
  .fgrid > li[data-r="Mythical"] .fc { flex-direction: column; min-height: 0; }
  .fgrid > li[data-r="Mythical"] .fc__art { flex: none; aspect-ratio: 16 / 10; }
  .fgrid > li[data-r="Mythical"] .fc__body { padding: 14px 14px 16px; }
  .fgrid > li[data-r="Mythical"] .fc__desc { font-size: 14px; }
  .rar { font-size: 11px; padding: 3px 7px; }
  .wanted { gap: 26px 14px; }
  .wanted > li { width: calc((100% - 14px) / 2); }
  .poster { padding: 12px 10px 12px; }
  .poster__w { font-size: 22px; }
  .poster__name { font-size: 16px; }
  .poster__sub { font-size: 11.5px; }
  .poster__bounty b { font-size: 19px; }
  .poster__bounty img { width: 20px; height: 20px; }
  .poster__bounty small { display: none; }
  .stamp { font-size: 13px; right: 6px; }
  .clips { grid-template-columns: repeat(4, 66vw); }
  .modal__x { top: -10px; right: -6px; }
}
@media (hover: none) {
  .fc:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
