/* Sub navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 9px 16px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.subnav a:hover, .subnav a.active { background: var(--surface-3); color: #fff; }

/* Jobs */
.jobs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.job-card {
  --c: var(--gold);
  position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, border-color .25s; scroll-margin-top: 150px;
}
.job-card:hover, .job-card:target { transform: translateY(-6px); border-color: var(--c); }
.job-visual { position: relative; height: 170px; background: radial-gradient(80% 80% at 50% 100%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), linear-gradient(180deg, #e9f7fe, #c4e6f8); display: grid; place-items: center; }
.job-visual .atelier { width: 80%; max-height: 135px; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(8, 50, 90, .35)); }
.job-visual .npc { position: absolute; right: 8px; bottom: 0; height: 64%; width: auto; filter: drop-shadow(0 8px 10px rgba(8, 50, 90, .35)); }
.job-body { padding: 18px 20px 22px; }
.job-body h3 { font-size: 22px; color: var(--text); }
.job-body p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-art { position: relative; display: grid; place-items: center; }
.split-art img { filter: drop-shadow(0 26px 34px rgba(8, 50, 90, .35)); }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(180deg, #ffd96b, var(--gold-2)); color: var(--gold-ink); font: 400 22px/1 var(--display); box-shadow: 0 4px 0 #9a420c; }
.steps strong { display: block; font: 400 20px/1.2 var(--display); }
.steps span { color: var(--muted); font-size: 15px; }

/* Zones */
.zone { --t: var(--gold); display: grid; grid-template-columns: 280px 1fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 150px; }
.zone + .zone { margin-top: 22px; }
.zone:target { border-color: var(--t); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t) 35%, transparent); }
.zone-boss { position: relative; display: grid; place-items: center; padding: 30px; background: radial-gradient(80% 70% at 50% 80%, color-mix(in srgb, var(--t) 55%, transparent), transparent 70%), linear-gradient(180deg, #e9f7fe, #c4e6f8); min-height: 240px; }
.zone-boss img { max-height: 200px; width: auto; filter: drop-shadow(0 18px 22px rgba(8, 50, 90, .38)); }
.zone-n { position: absolute; top: 16px; left: 16px; font: 400 54px/1 var(--display); color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--t) 70%, transparent); }
.zone-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.zone-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zone-body h3 { font-size: 27px; }
.zone-body p { color: var(--muted); font-size: 15px; }
.zone-boss-name { font-weight: 900; color: var(--gold-2); }
.mob-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: auto; }
.mob { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); height: 88px; display: grid; place-items: center; padding: 8px; }
.mob img { max-height: 74px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(8, 50, 90, .35)); transition: transform .25s; }
.mob:hover img { transform: scale(1.1); }

/* Pets & cubes */
.showcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.show-item { border-radius: 18px; background: var(--art); border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; padding: 14px; min-width: 0; overflow: hidden; position: relative; transition: transform .25s, border-color .25s; }
.show-item:hover { transform: translateY(-5px) rotate(-1deg); border-color: var(--gold-2); }
.show-item img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(8, 50, 90, .35)); }
.show-item span { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(13, 63, 106, .6); }
.show-item.has-label { padding-bottom: 34px; }

/* Shop */
.shop { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.shop-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.shop-cat { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); font: 400 19px/1 var(--display); transition: border-color .2s, background .2s, transform .2s; }
.shop-cat img { width: 40px; height: 40px; object-fit: contain; }
.shop-cat:hover { transform: translateY(-2px); }
.shop-cat[aria-selected="true"] { border-color: var(--gold-2); background: linear-gradient(180deg, #fff7d1, #fff); }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-head h2 { font-size: 28px; }
.shop-head p { color: var(--muted); max-width: 560px; margin-top: 6px; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product {
  --c: var(--gold);
  position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s;
}
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.product .ribbon { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 5px 10px; border-radius: 8px; font: 900 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 #9a420c; }
.product .ribbon.best { background: var(--pink); color: #fff; box-shadow: 0 3px 0 #a3145c; }
.product-visual { height: 140px; display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 100%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), linear-gradient(180deg, #e9f7fe, #c4e6f8); position: relative; }
.product-visual img { max-height: 130px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(8, 50, 90, .35)); transition: transform .3s cubic-bezier(.2, 1.3, .4, 1); }
.product:hover .product-visual img { transform: scale(1.08) rotate(-3deg); }
.rank-tag { font: 400 34px/1 var(--display); letter-spacing: .04em; padding: 10px 20px; border-radius: 14px; background: var(--text); border: 3px solid #fff; box-shadow: var(--shadow); }
.rank-tag b { font-weight: 400; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 22px; }
.product-body .bonus { display: inline-flex; gap: 6px; align-items: center; font-weight: 900; font-size: 13px; color: var(--green); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.perks li { display: flex; gap: 8px; }
.perks li::before { content: '✦'; color: var(--c); }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font: 400 26px/1 var(--display); }
.price small { font: 800 13px/1 var(--body); color: var(--dim); }
.price.free { color: var(--green); }

.cart { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.panel { border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); padding: 20px; }
.panel h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.panel h3 svg { width: 22px; height: 22px; color: var(--gold-2); }
.account-on { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--bg); margin-top: 14px; }
.account-on img { width: 44px; height: 44px; border-radius: 10px; image-rendering: pixelated; background: var(--surface-2); }
.account-on strong { display: block; }
.account-on button { margin-left: auto; color: var(--dim); font-weight: 800; font-size: 13px; text-decoration: underline; }
.cart-items { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.cart-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-weight: 800; font-size: 14px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); font-weight: 900; }
.cart-empty { color: var(--dim); font-size: 14px; padding: 18px 0; text-align: center; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--line-2); font-weight: 800; }
.cart-total strong { font: 400 28px/1 var(--display); color: var(--gold-2); }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; font-weight: 700; margin-top: 10px; }

/* Vote */
.vote-top { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: stretch; }
.vote-hero-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 300px; background: radial-gradient(70% 70% at 50% 100%, rgba(79, 227, 255, .35), transparent 70%), url(../assets/img/sky.webp) center/cover; display: grid; place-items: end center; }
.vote-hero-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 72%, rgba(13, 63, 106, .45)); }
.vote-hero-card img { position: relative; width: 70%; max-width: 300px; margin-bottom: 70px; filter: saturate(1.1) drop-shadow(0 20px 24px rgba(8, 50, 90, .3)); animation: float 5s ease-in-out infinite; }
.vote-hero-card p { color: #fff; position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 400 22px/1.2 var(--display); text-shadow: 0 2px 0 rgba(13, 63, 106, .6); }
.vote-sites { display: grid; gap: 10px; align-content: start; }
.vote-site { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.vote-site .num { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: #fff; font: 400 20px/1 var(--display); }
.vote-site strong { display: block; }
.vote-site span { color: var(--dim); font-size: 13px; font-weight: 700; }
.vote-site .btn { min-width: 130px; }
.vote-site.cooling .btn { --b: var(--surface-2); --b-dark: #c3e2f5; --ink: var(--muted); }
.vote-login { padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line-2); display: grid; gap: 10px; }
.vote-login form { display: flex; gap: 10px; }
.vote-login .input { flex: 1; }
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.goal h3 { font-size: 22px; margin-bottom: 4px; }
.goal p { color: var(--muted); font-size: 14px; }
.bar { position: relative; height: 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); overflow: hidden; margin: 16px 0 10px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); transition: width 1.2s cubic-bezier(.2, .9, .3, 1); }
.bar.cyan i { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.bar.pink i { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.goal-num { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; color: var(--muted); }
.goal-num strong { font: 400 24px/1 var(--display); color: var(--text); }
.timer { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; padding: 6px 10px; border-radius: 10px; background: var(--bg); font-weight: 800; font-size: 13px; color: var(--muted); }
.timer b { font: 400 16px/1 var(--display); color: var(--cyan); letter-spacing: .04em; }
.keys-rank { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.keys-rank li { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: var(--bg); font-weight: 800; font-size: 14px; }
.leader { margin-top: 22px; }
.leader-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 14px; }
.podium-spot { text-align: center; padding: 18px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.podium-spot img { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 12px; image-rendering: pixelated; }
.podium-spot strong { display: block; font: 400 20px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; }
.podium-spot .medal { font: 400 30px/1 var(--display); }
.podium-spot.p1 { padding-top: 28px; border-color: rgba(255, 197, 49, .6); background: linear-gradient(180deg, #fff3c4, #fff); }
.podium-spot.p1 .medal { color: var(--gold); }
.podium-spot.p2 .medal { color: #8aa3ba; }
.podium-spot.p3 .medal { color: #e39a5b; }
.podium-spot small { display: block; margin-top: 4px; color: var(--muted); font-weight: 800; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 0 14px; }
.table td { padding: 12px 14px; background: var(--surface); font-weight: 800; }
.table td:first-child { border-radius: 12px 0 0 12px; width: 60px; color: var(--dim); }
.table td:last-child { border-radius: 0 12px 12px 0; text-align: right; }
.table .who { display: flex; align-items: center; gap: 10px; }
.table .who img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; }
.gem { color: var(--cyan); }

/* Join */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.platform { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.platform h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.platform ol { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.platform ol strong { color: var(--text); }
.server-card { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 12px; background: #1d1d1d; border: 2px solid #5e5e5e; font-family: 'Courier New', monospace; margin-top: 18px; }
.server-card img { width: 64px; height: 64px; image-rendering: pixelated; }
.server-card strong { color: #fff; font-family: var(--body); }
.server-card span { display: block; color: #aaa; font-size: 14px; }

/* News page */
.news-list { display: grid; gap: 22px; }
.news-item { display: grid; grid-template-columns: 360px 1fr; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 110px; }
.news-item:target { border-color: var(--gold-2); }
.news-item .news-img { aspect-ratio: auto; min-height: 240px; }
.news-item .news-body { padding: 26px 30px; }
.news-item h2 { font-size: 24px; }
.news-item ul { color: var(--muted); padding-left: 20px; margin: 4px 0 0; display: grid; gap: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { padding: 9px 16px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: transparent; }

.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.legal-toc a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 800; font-size: 14px; }
.legal-toc a:hover { background: var(--surface); color: var(--text); }

@media (max-width: 1080px) {
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: repeat(4, 1fr); }
  .shop { grid-template-columns: 1fr; }
  .cart { position: static; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .vote-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .zone { grid-template-columns: 1fr; }
  .zone-boss { min-height: 240px; }
  .zone-body { padding: 22px; }
  .vote-top { grid-template-columns: 1fr; }
  .vote-hero-card { min-height: 260px; }
  .platforms { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .news-img { min-height: 200px; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; }
  .shop-cats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .jobs-grid, .products, .vote-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mob-strip { grid-template-columns: repeat(2, 1fr); }
  .vote-site { grid-template-columns: 34px 1fr; }
  .vote-site .btn { grid-column: span 2; }
  .vote-login form { flex-direction: column; }
  .podium { gap: 8px; }
  .podium-spot img { width: 44px; height: 44px; }
  .podium-spot strong { font-size: 15px; }
  .shop-cat { font-size: 16px; padding: 10px; }
  .shop-cat img { width: 30px; height: 30px; }
}

.vote-site .btn[aria-disabled="true"] { filter: grayscale(.5); opacity: .75; }
.vote-site.cooling .btn { font-variant-numeric: tabular-nums; }
.rank-pill { padding: 3px 10px; border-radius: 8px; color: #fff; font-weight: 900; text-shadow: 0 1px 2px rgba(13, 63, 106, .7); }
.keys-rank li { align-items: center; }
.vote-hero-card img { width: 58%; margin-bottom: 64px; }
.ip-inline { padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-weight: 800; }
.news-item .news-body p { flex: none; }
