/* Dragon Store – Blox Fruits wiki. Same tokens, fonts, header and light/dark themes as the store (web/src/1-head.html).
   Facts gathered from the Blox Fruits community wiki (CC BY-SA) and rewritten in our words.
   Item icons are from the game (Blox Fruits © Gamer Robot / Roblox); credited in the footer, never claimed as ours. */
@font-face { font-family: 'Cairo DS'; src: url('/wiki/assets/fonts/cairo-arabic-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Cairo DS'; src: url('/wiki/assets/fonts/cairo-latin-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: 'Barlow DS'; src: url('/wiki/assets/fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Barlow DS'; src: url('/wiki/assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Saira DS'; src: url('/wiki/assets/fonts/saira-latin-900-italic.woff2') format('woff2'); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Saira DS'; src: url('/wiki/assets/fonts/saira-latin-800-italic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }

/* ---------- theme tokens (the store's values) ---------- */
:root {
  --ice: #F4F6F9; --surface: #FFFFFF; --surface2: #F8FAFC; --well: #EDF2F9; --steel: #D2D6DC; --line: #E6E9EE;
  --ink: #0F172A; --ink2: #334155; --mute: #5A6577; --brand: #0E6BD0; --fill: #0E6BD0; --fill-hover: #0A56AA; --brand-soft: #E6F2FF;
  --gold: #B45309; --green: #0E9F6E; --night: #0A1428; --grid: rgba(14,107,208,.10);
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px -12px rgba(15,23,42,.18);
  --r-common: #8A94A6; --r-uncommon: #3B82F6; --r-rare: #A855F7; --r-legendary: #EC4899; --r-mythical: #EF4444;
  --font: 'Barlow DS', 'Cairo DS', system-ui, 'Segoe UI', sans-serif; --disp: 'Saira DS', 'Cairo DS', 'Arial Narrow', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ice: #0B1120; --surface: #111827; --surface2: #0F172A; --well: #0B1424; --steel: #263244; --line: #1E293B;
  --ink: #E5E9F0; --ink2: #CBD5E1; --mute: #94A3B8; --brand: #4DA8FF; --fill: #1671D0; --fill-hover: #0E6BD0; --brand-soft: #13233F;
  --gold: #F5C451; --green: #34D399; --grid: rgba(77,168,255,.10);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6); --r-common: #94A3B8;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) {
  --ice: #0B1120; --surface: #111827; --surface2: #0F172A; --well: #0B1424; --steel: #263244; --line: #1E293B;
  --ink: #E5E9F0; --ink2: #CBD5E1; --mute: #94A3B8; --brand: #4DA8FF; --fill: #1671D0; --fill-hover: #0E6BD0; --brand-soft: #13233F;
  --gold: #F5C451; --green: #34D399; --grid: rgba(77,168,255,.10);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6); --r-common: #94A3B8; color-scheme: dark; } }

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ice); }
body { color: var(--ink); background: var(--ice); font-family: var(--font); font-size: 16px; line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
[dir=rtl] body { font-family: 'Cairo DS', var(--font); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
svg.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* English item names: the store's display face (Saira italic, as in the logo) */
.nm-d, .ahead h1, .infobox .t, .rel b, .pop b, .is .top b, .hero h1 .ltr, .sugg b, .tbl .n, .t2 b, .mt-n, .pn b {
  font-family: var(--disp); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .2px; }
a.lk { color: var(--brand); font-weight: 700; }
a.lk:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header (same build as the store's: logo + search + buttons, then the menu row) ---------- */
header.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--steel); }
.hrow { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.logo img { height: 36px; width: auto; }
.logo .wb { font-size: 12.5px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 8px; padding: 1px 8px; white-space: nowrap; }
.hsearch { position: relative; flex: 1; max-width: 560px; min-width: 200px; display: flex; align-items: center; height: 44px; border: 1px solid var(--steel); background: var(--surface); border-radius: 10px; padding-inline: 12px 4px; gap: 6px; transition: border-color .2s, box-shadow .2s; }
.hsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.hsearch > svg { color: var(--mute); font-size: 19px; }
.hsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.hsearch input::placeholder { color: color-mix(in srgb, var(--mute) 85%, transparent); }
.hsearch .go { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--fill); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.hsearch .go:hover { background: var(--fill-hover); }
.sugg { position: absolute; top: 50px; inset-inline: 0; background: var(--surface); border: 1px solid var(--steel); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); display: none; z-index: 40; }
.sugg.on { display: block; }
.sugg a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.sugg a:hover, .sugg a.act { background: var(--brand-soft); }
.sugg img, .sugg .ic { width: 34px; height: 34px; object-fit: contain; color: var(--brand); }
.sugg b { direction: ltr; font-size: 15px; } .sugg small { color: var(--mute); font-size: 12.5px; margin-inline-start: auto; }
.hact { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.hbtn { height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 1px solid var(--steel); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s; }
.hbtn:hover { border-color: var(--brand); color: var(--brand); }
.hbtn .ic { font-size: 19px; }
.hbtn.sq { padding: 0; width: 44px; }
.hbtn.brand { background: var(--fill); border-color: var(--fill); color: #fff; padding: 0 18px; font-size: 15px; }
.hbtn.brand:hover { background: var(--fill-hover); color: #fff; box-shadow: 0 10px 24px -10px rgba(30,144,255,.75); }
.th-sun { display: none; } :root[data-theme="dark"] .th-sun { display: block; } :root[data-theme="dark"] .th-moon { display: none; }
nav.main { display: flex; align-items: center; gap: 2px; height: 46px; margin-top: -4px; overflow-x: auto; scrollbar-width: none; font-size: 15px; font-weight: 700; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; color: var(--ink2); white-space: nowrap; transition: color .2s, background .2s; }
nav.main a:hover, nav.main a.on { color: var(--brand); background: var(--brand-soft); }
nav.main a.on { box-shadow: inset 0 -2px 0 var(--brand); }
nav.main .sp { flex: 1; min-width: 12px; }
nav.main a img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 860px) {
  .hrow { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .logo img { height: 30px; } .hbtn.brand { padding: 0 14px; }
  nav.main { margin-top: 0; }
}
@media (max-width: 420px) { .hbtn .lbl { display: none; } .logo .wb { display: none; } }

/* ---------- common ---------- */
.crumbs { font-size: 14px; color: var(--mute); margin: 20px 0 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--brand); } .crumbs b { color: var(--ink); font-weight: 700; }
.page { display: none; padding-bottom: 40px; } .page.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page.on { animation: none; } * { transition: none !important; } }
.panel { background: var(--surface); border: 1px solid var(--steel); border-radius: 14px; box-shadow: var(--shadow); }
h2.sec { font-size: 24px; font-weight: 800; margin: 32px 0 14px; display: flex; align-items: center; gap: 10px; }
h2.sec .ic { color: var(--brand); }
h2.sec small { font-size: 14px; color: var(--mute); font-weight: 600; margin-inline-start: 4px; }
.rdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--rc, var(--mute)) 45%, transparent); background: color-mix(in srgb, var(--rc, var(--mute)) 12%, transparent); padding: 2px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
a.pill:hover { border-color: var(--rc, var(--brand)); color: var(--brand); }
.btn { height: 46px; border: 0; border-radius: 10px; background: var(--fill); color: #fff; font-weight: 700; font-size: 15px; padding: 0 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, box-shadow .2s; }
.btn:hover { background: var(--fill-hover); box-shadow: 0 10px 24px -10px rgba(30,144,255,.75); }
.btn.ghost { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.line { background: var(--surface); color: var(--ink); border: 1px solid var(--steel); } .btn.line:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; border-radius: 18px; margin-top: 18px; min-height: 330px; color: #fff; isolation: isolate;
  background: radial-gradient(70% 90% at 15% 30%, rgba(14,107,208,.55), transparent 62%), radial-gradient(60% 80% at 100% 100%, rgba(77,168,255,.22), transparent 60%), linear-gradient(160deg, #0F1D3D, var(--night) 60%, #070D1C); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(77,168,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(77,168,255,.09) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(80% 90% at 70% 40%, #000, transparent); mask-image: radial-gradient(80% 90% at 70% 40%, #000, transparent); }
.hero .sun { position: absolute; left: 6%; top: 20px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(77,168,255,.6), rgba(14,107,208,.22) 50%, transparent 70%); filter: blur(10px); }
.hero svg.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.hero svg.waves path:first-child { fill: rgba(14,107,208,.16); } .hero svg.waves path:last-child { fill: rgba(7,13,28,.9); }
.hero .in { position: relative; z-index: 2; padding: 42px 40px 46px; max-width: 640px; }
[dir=ltr] .hero .in { margin-left: auto; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; background: rgba(14,107,208,.22); border: 1px solid rgba(77,168,255,.4); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; color: #9CCBFF; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 900; line-height: 1.08; margin-top: 14px; }
.hero h1 em { font-style: normal; color: #4DA8FF; }
.hero p { color: #C7D2E3; font-size: 17px; margin-top: 10px; }
.hero .cta2 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hstats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.hstats div { display: flex; flex-direction: column; } .hstats b { font-family: var(--disp); font-style: italic; font-weight: 900; font-size: 26px; line-height: 1; color: #fff; direction: ltr; }
.hstats span { font-size: 13px; color: #9FB0C8; font-weight: 600; }
.float { position: absolute; z-index: 1; filter: drop-shadow(0 22px 30px rgba(0,0,0,.5)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@media (max-width: 900px) { .float { opacity: .28; } .hero .in { padding: 30px 22px 40px; } }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 560px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.cat { position: relative; overflow: hidden; border-radius: 14px; padding: 14px 16px; min-height: 128px; border: 1px solid var(--steel); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat::after { content: ''; position: absolute; inset-inline-start: -20px; bottom: -30px; width: 150px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, transparent); filter: blur(24px); }
.cat:hover { transform: translateY(-3px); border-color: var(--brand); }
.cat b { font-size: 18px; font-weight: 800; display: block; position: relative; z-index: 1; } .cat span { font-size: 13px; color: var(--mute); font-weight: 600; position: relative; z-index: 1; }
.cat img, .cat > .ic { position: absolute; inset-inline-end: 8px; bottom: 6px; width: 74px; height: 74px; object-fit: contain; z-index: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); transition: transform .3s; }
.cat > .ic { width: 54px; height: 54px; color: var(--c); stroke-width: 1.6; bottom: 12px; inset-inline-end: 14px; filter: none; }
.cat:hover img, .cat:hover > .ic { transform: scale(1.1) rotate(-6deg); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 0; } .ph h3 { font-size: 18px; font-weight: 800; } .ph a { font-size: 14px; }
.pop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; }
@media (max-width: 560px) { .pop { grid-template-columns: repeat(2, 1fr); } }
.pop a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.pop a:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.pop img { width: 44px; height: 44px; object-fit: contain; flex: none; } .pop b { direction: ltr; font-size: 14.5px; display: block; line-height: 1.2; } .pop small { color: var(--mute); font-size: 12px; font-weight: 600; }
.upd { padding: 4px 18px 12px; }
.upd .u { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--steel); } .upd .u:last-child { border: 0; }
.upd .v { flex: none; font-weight: 700; font-size: 12.5px; background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 8px; padding: 1px 9px; height: fit-content; direction: ltr; }
.upd p { font-size: 14.5px; color: var(--ink2); }
.rlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
@media (max-width: 700px) { .rlist { grid-template-columns: 1fr; } }

/* ---------- list ---------- */
.lhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lhead h1 { font-size: 32px; font-weight: 800; line-height: 1.15; } .lhead p { color: var(--mute); font-size: 15px; }
.view { display: flex; background: var(--surface); border: 1px solid var(--steel); border-radius: 10px; padding: 3px; }
.view button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--mute); display: inline-flex; gap: 6px; align-items: center; }
.view button.on { background: var(--fill); color: #fff; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; }
.chip { border: 1px solid var(--steel); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: var(--brand); color: var(--brand); } .chip.on { background: var(--fill); color: #fff; border-color: var(--fill); }
.lbox { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--steel); background: var(--surface); box-shadow: var(--shadow); }
.lbox .lt { padding: 12px 16px; font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--steel); display: flex; align-items: center; gap: 8px; }
.lbox .lt::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--brand); }
.lbox .lf { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.lbox select, .lbox input { height: 40px; border-radius: 9px; border: 1px solid var(--steel); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; padding: 0 12px; }
.lbox input { min-width: 180px; flex: 1; max-width: 320px; } .lbox select:focus, .lbox input:focus { outline: none; border-color: var(--brand); }
.lbox h3.sub { padding: 6px 16px 0; margin-top: 10px; }
.tiles2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding: 14px 16px; }
/* game-style rarity tile (kept colourful in both themes, like the game's inventory) */
.t2 { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--rc) 55%, #fff);
  background: radial-gradient(75% 75% at 50% 40%, color-mix(in srgb, var(--rc) 70%, #fff 8%), color-mix(in srgb, var(--rc) 78%, #000) 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 4px 14px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.t2:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 0 0 2px var(--brand), 0 10px 22px rgba(14,107,208,.3); }
.t2 img { position: absolute; top: 6%; left: 9%; width: 82%; height: 74%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.t2 b { position: absolute; inset-inline: 6px; bottom: 4px; text-align: end; direction: ltr; font-size: 13.5px; line-height: 1.05; color: #fff;
  text-shadow: 0 1.5px 0 #000, 1.5px 0 0 #000, 0 -1.5px 0 #000, -1.5px 0 0 #000, 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
[dir=ltr] .t2 b { text-align: left; }
.t2 i.st { position: absolute; inset-inline-start: 6px; top: 5px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(0,0,0,.4); border-radius: 6px; padding: 0 6px; }
h3.sub { grid-column: 1 / -1; font-size: 19px; font-weight: 800; margin: 18px 0 0; } h3.sub small { display: block; font-size: 13.5px; color: var(--mute); font-weight: 600; }
.empty { color: var(--mute); padding: 30px 0; text-align: center; grid-column: 1 / -1; }
@media (max-width: 560px) { .tiles2 { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; } .t2 b { font-size: 11.5px; } }
.tscroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { background: var(--surface2); text-align: start; padding: 10px 12px; font-weight: 700; color: var(--mute); font-size: 13px; border-bottom: 1px solid var(--steel); white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--brand-soft); } .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl img { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; margin-inline-end: 8px; }
.tbl .n { direction: ltr; display: inline-block; font-size: 14.5px; }
.tbl .num { direction: ltr; font-weight: 700; white-space: nowrap; }

/* ---------- article ---------- */
.art2 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .art2 { grid-template-columns: 1fr; } .infobox { order: -1; } }
.ahead h1 { font-size: 44px; direction: ltr; text-align: end; line-height: 1.1; }
[dir=ltr] .ahead h1 { text-align: left; }
.ahead .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.toc { margin-top: 16px; padding: 14px 18px; } .toc b { font-size: 14px; color: var(--mute); } .toc ol { padding-inline-start: 20px; margin-top: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 16px; } .toc a { color: var(--brand); font-weight: 700; font-size: 14.5px; }
.sect { margin-top: 16px; padding: 20px 22px; } .sect h2 { font-size: 21px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; } .sect h2 .ic { color: var(--brand); }
.sect p, .sect li { color: var(--ink2); font-size: 15.5px; } .sect ol, .sect ul { padding-inline-start: 22px; display: grid; gap: 6px; } .sect p + p { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.facts div { border: 1px solid var(--steel); background: var(--surface2); border-radius: 10px; padding: 8px 12px; }
.facts small { display: block; color: var(--mute); font-size: 12.5px; font-weight: 600; } .facts b { font-size: 15px; font-weight: 800; }
.infobox { position: sticky; top: 130px; overflow: hidden; border-radius: 14px; border: 1px solid var(--steel); background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 960px) { .infobox { position: static; } }
.infobox .t { padding: 10px 16px; font-size: 20px; text-align: center; direction: ltr; color: #fff; background: linear-gradient(90deg, #0E6BD0, #0A4FA3); }
.infobox .im { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; border-bottom: 3px solid var(--rc);
  background: radial-gradient(55% 60% at 50% 55%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 72%), var(--well); }
.infobox .im::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 95%); mask-image: radial-gradient(closest-side, #000 30%, transparent 95%); }
.infobox .im img { position: relative; width: 62%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.infobox dl { display: grid; grid-template-columns: 112px 1fr; } .infobox dt, .infobox dd { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.infobox dt { color: var(--mute); font-weight: 600; background: var(--surface2); } .infobox dd { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.infobox .im.isle { padding: 0; } .infobox .im.isle::before { display: none; }
.infobox .im.isle .photo { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.infobox .im.isle .art { position: absolute; inset: 0; display: grid; place-items: center; } .infobox .im.isle .art .ic { width: 96px; height: 96px; color: rgba(255,255,255,.88); }
.rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } @media (max-width: 560px) { .rel { grid-template-columns: repeat(2, 1fr); } }
.rel a { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--steel); text-align: center;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 75%), var(--well); transition: border-color .2s, transform .2s; }
.rel a:hover { border-color: var(--rc); transform: translateY(-2px); } .rel img { width: 64px; height: 64px; object-fit: contain; } .rel b { direction: ltr; font-size: 14px; line-height: 1.15; } .rel small { color: var(--mute); font-size: 12px; font-weight: 600; }
.navbox { margin-top: 22px; overflow: hidden; } .navbox .t { padding: 10px 18px; font-weight: 800; background: var(--surface2); border-bottom: 1px solid var(--steel); }
.navbox .row { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); } .navbox .row:first-of-type { border-top: 0; }
.navbox .row > b { padding: 10px 14px; font-size: 13px; background: var(--surface2); display: flex; align-items: center; gap: 6px; }
.navbox .row > div { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.navbox a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 2px 9px 2px 4px; border-radius: 999px; direction: ltr; border: 1px solid transparent; }
.navbox a:hover, .navbox a.cur { border-color: var(--rc, var(--brand)); background: color-mix(in srgb, var(--rc, var(--brand)) 12%, transparent); } .navbox a img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 560px) { .navbox .row { grid-template-columns: 1fr; } .navbox .row > b { padding: 6px 12px; } }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pn a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--steel); background: var(--surface); box-shadow: var(--shadow); min-width: 0; transition: border-color .2s; }
.pn a:hover { border-color: var(--brand); } .pn a.nx { justify-content: flex-end; text-align: end; grid-column: 2; }
.pn img { width: 40px; height: 40px; object-fit: contain; flex: none; } .pn small { display: block; font-size: 12px; color: var(--mute); font-weight: 600; } .pn b { font-size: 14.5px; direction: ltr; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn .ar { color: var(--brand); font-size: 20px; flex: none; }
[dir=rtl] .pn .ar, .pn .ar.back { transform: scaleX(-1); } [dir=rtl] .pn .ar.back { transform: none; }
.shop { margin-top: 16px; border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: #fff;
  background: radial-gradient(80% 140% at 0% 50%, rgba(14,107,208,.6), transparent 60%), var(--night); border: 1px solid #1E3A66; }
.shop b { font-size: 18px; font-weight: 800; display: block; } .shop span { color: #C7D2E3; font-size: 14px; }

/* ---------- crafting box (materials -> result) ---------- */
.craft { border: 1px solid var(--steel); border-radius: 14px; overflow: hidden; background: var(--surface2); margin: 6px 0 4px; }
.craft .ch { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(90deg, #0E6BD0, #0A4FA3); color: #fff; }
.craft .ch .ic { font-size: 20px; } .craft .ch b { font-size: 16px; font-weight: 800; } .craft .ch .wh { margin-inline-start: auto; font-size: 13px; font-weight: 600; opacity: .9; display: flex; align-items: center; gap: 4px; }
.craft .ch .wh a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.craft .cb { display: flex; align-items: center; gap: 18px 22px; padding: 18px 14px; flex-wrap: wrap; justify-content: center;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.craft .mats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; flex: 0 1 auto; }
.craft .arr { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: #fff; font-size: 22px; flex: none; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
[dir=rtl] .craft .arr .ic { transform: scaleX(-1); }
.mtw { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; }
.mt { position: relative; width: 84px; height: 84px; border-radius: 14px; display: grid; place-items: center; color: #fff; border: 3px solid color-mix(in srgb, var(--rc) 55%, #fff);
  background: radial-gradient(75% 75% at 50% 40%, color-mix(in srgb, var(--rc) 70%, #fff 8%), color-mix(in srgb, var(--rc) 78%, #000) 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 6px 16px -6px color-mix(in srgb, var(--rc) 70%, #000); transition: transform .15s, box-shadow .15s; }
a.mtw:hover .mt { transform: translateY(-3px); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 0 0 2px var(--brand), 0 10px 20px -6px rgba(14,107,208,.5); }
.mt img { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.mt img.px { image-rendering: pixelated; width: 34%; }
.mt .q { position: absolute; bottom: -9px; inset-inline-end: -8px; font-style: normal; font-weight: 800; font-size: 13px; line-height: 1; padding: 4px 7px; border-radius: 999px; direction: ltr;
  background: var(--surface); color: var(--ink); border: 2px solid color-mix(in srgb, var(--rc) 70%, var(--steel)); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mt .q i { font-style: normal; color: var(--mute); font-weight: 700; margin-inline-end: 1px; }
.mt-n { font-size: 12px; line-height: 1.15; color: var(--ink); direction: ltr; overflow-wrap: anywhere; }
.mtw.res { width: 120px; } .mtw.res .mt { width: 112px; height: 112px; border-width: 4px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 0 0 6px color-mix(in srgb, var(--rc) 22%, transparent), 0 12px 26px -8px color-mix(in srgb, var(--rc) 80%, #000); }
.mtw.res .mt .ic { width: 48%; height: 48%; color: #fff; stroke-width: 1.6; }
.mtw.res .mt-n { font-size: 14px; }
.craft .tot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--steel); background: var(--surface); font-size: 14px; }
.craft .tot > span:first-child { color: var(--mute); font-weight: 600; }
.craft .tot .cost { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; direction: ltr; }
.craft .tot .cost img { height: 20px; width: auto; } .craft .tot .cost img.px { image-rendering: pixelated; height: 18px; }
.craft .tbl { font-size: 13.5px; border-top: 1px solid var(--steel); background: var(--surface); }
.craft .tbl img { width: 30px; height: 30px; }
@media (max-width: 560px) { .mtw { width: 76px; } .mt { width: 70px; height: 70px; } .mtw.res { width: 100px; } .mtw.res .mt { width: 92px; height: 92px; } .craft .mats { gap: 10px; } .craft .ch .wh { flex-basis: 100%; margin: 0; } .craft .ch { flex-wrap: wrap; } }
.cw { display: flex; gap: 6px; align-items: flex-start; color: var(--mute); font-size: 14px; margin: 8px 0 14px; } .cw .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.cgrid { display: grid; gap: 14px; }
.cgrid h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

/* ---------- seas + islands ---------- */
.seaHd { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: 18px 0 12px; } .seaHd h2 { font-size: 28px; font-weight: 800; }
.unlock { padding: 12px 16px; font-size: 14.5px; color: var(--ink2); margin-bottom: 14px; display: flex; gap: 10px; } .unlock svg { color: var(--brand); font-size: 20px; margin-top: 3px; }
.isl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.is { border-radius: 14px; overflow: hidden; border: 1px solid var(--steel); background: var(--surface); box-shadow: var(--shadow); }
.is .top { height: 96px; position: relative; display: flex; align-items: flex-end; padding: 10px 14px; overflow: hidden; color: #fff; }
.is .top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,9,20,.7)); }
.is .top svg { position: absolute; left: 12px; top: 10px; width: 54px; height: 54px; color: rgba(255,255,255,.88); }
[dir=ltr] .is .top svg { left: auto; right: 12px; }
.is .top b { font-size: 18px; direction: ltr; position: relative; z-index: 1; } .is a.top:hover b { text-decoration: underline; }
.is .bd { padding: 10px 14px 14px; }
.lvBar { height: 8px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; margin: 6px 0 4px; } .lvBar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #22C55E, #FACC15, #EF4444); }
.is .lvT { font-size: 13px; font-weight: 700; color: var(--gold); } .is .ev { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.is .swl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.is .swl a { font-size: 12px; font-weight: 600; padding: 2px 8px 2px 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: color-mix(in srgb, var(--rc) 12%, transparent); direction: ltr; display: inline-flex; align-items: center; gap: 4px; }
.is .swl img { width: 20px; height: 20px; object-fit: contain; }
.two3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } @media (max-width: 700px) { .two3 { grid-template-columns: 1fr; } }
.two3 h3.sub { margin: 0 0 6px; font-size: 16px; } ul.cols { margin: 0; padding-inline-start: 18px; } ul.cols li { margin: 2px 0; }
ul.cols .drops { display: inline-flex; gap: 2px; margin-inline-start: 6px; vertical-align: middle; } ul.cols .drops img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- rarity guide ---------- */
.rg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; } @media (max-width: 900px) { .rg { grid-template-columns: 1fr 1fr; } }
.rg > * { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--steel); border-top: 3px solid var(--rc); box-shadow: var(--shadow); }
.rg b { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--rc) 75%, var(--ink)); } .rg small { color: var(--mute); font-weight: 600; direction: ltr; display: block; } .rg p { font-size: 14px; color: var(--ink2); margin-top: 6px; }
a.rgc:hover { border-color: var(--rc); }

/* ---------- not found + footer ---------- */
.nf { padding: 40px 20px; text-align: center; }
.nf h1 { font-size: 30px; font-weight: 800; } .nf p { color: var(--mute); margin: 8px 0 18px; }
.nf .cta2 { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
footer.ft { margin-top: 30px; border-top: 1px solid var(--steel); background: var(--surface); }
.ft .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding: 30px 0 20px; }
@media (max-width: 860px) { .ft .cols { grid-template-columns: 1fr 1fr; } }
.ft .cols img { height: 32px; width: auto; } .ft .cols p { color: var(--mute); font-size: 14px; margin-top: 10px; max-width: 320px; }
.ft h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; } .ft ul { list-style: none; display: grid; gap: 4px; } .ft li a { color: var(--mute); font-size: 14px; } .ft li a:hover { color: var(--brand); }
.ft .legal { border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; padding: 16px 0 34px; line-height: 1.8; }
