:root {
  --ink: #0d0c0b;
  --ink-2: #161412;
  --panel: #1c1a17;
  --line: rgba(255, 240, 225, .09);
  --paper: #f4f2ef;
  --muted: #a39a90;
  --tan-1: #e2c3a4;
  --tan-2: #c8a188;
  --tan-3: #8c6a52;
  --tan: linear-gradient(100deg, var(--tan-1), var(--tan-2));
  --display: 'Anton', 'Oswald', Impact, sans-serif;
  --label: 'Darker Grotesque', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --r: 14px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--tan-1); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.2em;
  font: 800 1.05rem/1 var(--label); letter-spacing: .01em; border-radius: 999px; white-space: nowrap;
  border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-tan { background: var(--tan); color: #1a120c; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.btn-tan:hover { filter: brightness(1.06); }
.btn-lg { font-size: 1.2rem; padding: .85em 1.5em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad); transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled { background: rgba(13, 12, 11, .78); backdrop-filter: blur(14px); padding-block: 10px; border-bottom: 1px solid var(--line); }
.nav-logo img { height: 34px; width: auto; filter: grayscale(1) brightness(1.6); }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  font: 700 1.08rem/1 var(--label); padding: .55em .9em; border-radius: 999px; color: #d9d2ca; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: .5em .9em; border-radius: 999px;
  border: 1px solid var(--line); font: 700 .98rem/1 var(--label); color: #d9d2ca; white-space: nowrap;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #6d655d; }
.status-pill.on i { background: #7bd88f; box-shadow: 0 0 0 4px rgba(123, 216, 143, .15); }
.status-pill.off i { background: #e06c5c; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(760px, 100svh); display: grid; align-items: center;
  padding: 120px var(--pad) 90px; isolation: isolate; overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0 0 0 28%; z-index: -2;
  background: url(assets/bg.jpg) 62% center / cover no-repeat;
  filter: grayscale(1) contrast(1.15) brightness(.82);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 82%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 82%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%);
}
.hero::before { /* tan wash over the photo, like the paper print in the kit */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 72% 45%, rgba(200, 161, 136, .22), transparent 70%),
    radial-gradient(40% 60% at 10% 90%, rgba(200, 161, 136, .10), transparent 70%);
  mix-blend-mode: soft-light;
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { max-width: 760px; position: relative; }
.eyebrow { font: 700 1.1rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--tan-1); margin: 0 0 18px; }
.hero-title { margin: 0; position: relative; line-height: .82; }
.brush {
  display: block; font: 400 clamp(110px, 17vw, 260px)/.86 var(--display); letter-spacing: -.01em;
  background: var(--tan); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: url(#rough) drop-shadow(0 10px 40px rgba(0, 0, 0, .5));
  transform: rotate(-2deg); transform-origin: left bottom;
}
.script {
  position: absolute; left: 38%; bottom: -.05em; font: 400 clamp(40px, 5.6vw, 84px)/1 'Rock Salt', cursive;
  color: #fff; transform: rotate(-9deg); text-shadow: 0 4px 24px rgba(0, 0, 0, .6); white-space: nowrap;
}
.hero-lede { max-width: 46ch; color: #d6cfc7; font-size: 1.12rem; margin: 46px 0 34px; }

.hero-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.hcard {
  position: relative; width: 186px; height: 150px; padding: 16px; border-radius: var(--r);
  background: rgba(28, 26, 23, .72); border: 1px solid var(--line); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.hcard::after {
  content: ''; position: absolute; inset: 0; background: var(--tan); opacity: 0; transition: opacity .3s var(--ease); z-index: -1;
}
.hcard { isolation: isolate; }
.hcard-k { font: 700 .95rem/1 var(--label); color: var(--muted); transition: color .3s; }
.hcard-t { font: 400 2.2rem/.92 var(--display); text-transform: uppercase; hyphens: manual; }
.hcard-go {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: transform .3s var(--ease), background .3s;
}
.hcard:hover { transform: translateY(-4px); color: #1a120c; border-color: transparent; }
.hcard:hover::after { opacity: 1; }
.hcard:hover .hcard-k { color: rgba(26, 18, 12, .6); }
.hcard:hover .hcard-go { background: #1a120c; color: var(--tan-1); transform: rotate(-45deg); }

.player {
  position: absolute; right: var(--pad); top: 118px; width: 330px; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 999px; background: rgba(244, 242, 239, .94); color: #1a1714;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.player-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: #1a1714; color: #fff;
  display: grid; place-items: center; font-size: 20px; cursor: pointer; transition: transform .2s var(--ease);
}
.player-btn:hover { transform: scale(1.06); }
.player.playing .player-btn { background: var(--tan); color: #1a120c; }
.player-meta { flex: 1; min-width: 0; line-height: 1.15; }
.player-meta b { display: block; font: 800 1.05rem/1.1 var(--label); }
.player-meta span { font: 600 .9rem/1 var(--label); color: #7a7067; }
.player-bar { height: 3px; border-radius: 3px; background: #d9d3cc; margin-top: 7px; overflow: hidden; }
.player-bar i { display: block; height: 100%; width: 0; background: var(--tan-3); }
.player-vol { display: flex; align-items: center; gap: 6px; color: #7a7067; }
.player-vol input { width: 64px; accent-color: var(--tan-3); }

.server-card {
  position: absolute; right: var(--pad); bottom: 90px; width: 230px; padding: 18px; border-radius: var(--r);
  background: rgba(28, 26, 23, .8); border: 1px solid var(--line); backdrop-filter: blur(10px);
  display: grid; gap: 2px;
}
.sc-label { font: 700 .95rem/1 var(--label); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.sc-num { font: 400 3.6rem/1 var(--display); margin-top: 8px; background: var(--tan); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-num small { font-size: .45em; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.sc-sub { font: 700 1rem/1 var(--label); color: #d6cfc7; }
.sc-copy {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px; color: var(--paper);
  padding: 8px 10px; cursor: pointer; font: 500 .86rem var(--body); transition: background .2s;
}
.sc-copy:hover { background: rgba(255, 255, 255, .11); }
.sc-copy code { font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- marquee ---------- */
.marquee { background: var(--tan); color: #1a120c; overflow: hidden; transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 2; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.marquee-dark { background: #1f1c19; color: var(--tan-1); transform: rotate(1deg); border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding: 16px 14px; font: 800 1.55rem/1 var(--label); white-space: nowrap; }
.marquee-track span svg { font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) var(--pad); position: relative; }
.section-head { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; margin-bottom: 48px; position: relative; }
.section-head p { max-width: 38ch; color: #bfb7ae; margin: 0 0 10px; font-size: 1.05rem; }
.display {
  margin: 0; font: 400 clamp(64px, 9.5vw, 150px)/.88 var(--display); text-transform: uppercase;
  background: var(--tan); -webkit-background-clip: text; background-clip: text; color: transparent;
  hyphens: manual; padding-top: .14em; margin-top: -.14em; /* room for Ă Î Â accents above the tight line box */
}
.sticker {
  display: inline-block; padding: 7px 14px; border-radius: 8px; background: var(--tan); color: #1a120c;
  font: 800 1rem/1 var(--label); transform: rotate(-4deg); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7);
  align-self: center;
}
.sub { font: 800 1.5rem/1 var(--label); margin: 0 0 18px; color: #e9e3dc; }

/* caracterul meu */
.char { background: var(--ink-2); border-bottom: 1px solid var(--line); }
.char-login {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: clamp(24px, 3.5vw, 44px); border-radius: calc(var(--r) + 6px); background: var(--panel); border: 1px solid var(--line);
}
.char-howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.char-howto li { display: flex; gap: 14px; align-items: baseline; font-size: 1.05rem; color: #d6cfc7; }
.char-howto li span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; translate: 0 6px;
  background: rgba(226, 195, 164, .12); color: var(--tan-1); font: 400 1rem/1 var(--display);
}
.char-howto code, .char-panel code { font-family: ui-monospace, Consolas, monospace; color: var(--tan-1); background: rgba(226, 195, 164, .1); padding: 2px 7px; border-radius: 6px; }
.char-intro h3 { margin: 0 0 12px; font: 400 clamp(2rem, 3.2vw, 2.8rem)/1 var(--display); text-transform: uppercase; }
.char-intro > p { margin: 0; color: #bfb7ae; font-size: 1.05rem; max-width: 42ch; }
.char-forms { align-self: center; }
.btn-cfx {
  width: 100%; justify-content: center; padding: .95em 1.2em; border-radius: 12px; font-size: 1.25rem;
}
.char-cfx-note { margin: 10px 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.char-paste { display: grid; gap: 10px; margin-top: 22px; }
.char-paste label { font: 800 1.05rem/1 var(--label); color: #d6cfc7; }
.char-paste textarea {
  width: 100%; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink);
  color: var(--paper); font: 500 .85rem/1.4 ui-monospace, Consolas, monospace; outline: none; word-break: break-all;
}
.char-paste textarea:focus { border-color: var(--tan-2); }
.char-paste .btn { justify-self: start; border-radius: 12px; }
.char-paste.busy .btn, .btn-cfx.busy { opacity: .6; pointer-events: none; }
.char-err { min-height: 1.3em; margin: 10px 0 0; color: #f0907f; font-size: .95rem; }
.char-err:empty { min-height: 0; }

.char-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.char-id {
  position: relative; display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: calc(var(--r) + 6px);
  background: linear-gradient(120deg, #2a231d, var(--panel) 65%); border: 1px solid rgba(226, 195, 164, .18);
}
.char-avatar {
  flex: none; width: 104px; height: 104px; border-radius: 22px; display: grid; place-items: center; transform: rotate(-4deg);
  background: var(--tan); color: #1a120c; font: 400 3rem/1 var(--display); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9);
}
.char-who { min-width: 0; }
.char-who h3 { margin: 6px 0 12px; font: 400 clamp(2rem, 3.4vw, 3rem)/.95 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.char-state { display: inline-flex; align-items: center; gap: 7px; font: 800 .95rem/1 var(--label); color: var(--muted); }
.char-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6d655d; }
.char-state.on { color: #9fe3ad; }
.char-state.on::before { background: #7bd88f; }
.char-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.char-facts div { display: grid; gap: 2px; }
.char-facts dt { font: 700 .82rem/1 var(--label); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.char-facts dd { margin: 0; font: 800 1.08rem/1.2 var(--label); }
.char-out {
  position: absolute; top: 16px; right: 16px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 7px 12px; border-radius: 999px; font: 700 .92rem/1 var(--label); cursor: pointer; transition: color .2s, border-color .2s;
}
.char-out:hover { color: var(--paper); border-color: rgba(255, 255, 255, .25); }

.char-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: grid; align-content: space-between; gap: 10px; }
.stat span { font: 700 .88rem/1 var(--label); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.stat b { font: 400 clamp(1.7rem, 2.6vw, 2.4rem)/1 var(--display); color: var(--tan-1); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.char-alert { margin-top: 16px; padding: 14px 18px; border-radius: var(--r); background: rgba(224, 108, 92, .1); border: 1px solid rgba(224, 108, 92, .35); color: #f3b3a8; font-weight: 500; }

.char-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0 16px; }
.char-tabs button {
  border: 1px solid var(--line); background: transparent; color: #d6cfc7; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  font: 800 1.08rem/1 var(--label); display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s, border-color .2s;
}
.char-tabs button i { font-style: normal; font-size: .85rem; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.char-tabs button:hover { border-color: rgba(255, 255, 255, .22); }
.char-tabs button[aria-selected="true"] { background: var(--tan); color: #1a120c; border-color: transparent; }
.char-tabs button[aria-selected="true"] i { background: rgba(26, 18, 12, .14); }

.char-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.item { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item-head b { font: 400 1.55rem/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.item-sub { font: 700 .95rem/1.2 var(--label); color: var(--muted); }
.tag { flex: none; font: 800 .85rem/1 var(--label); padding: 5px 8px; border-radius: 6px; background: rgba(226, 195, 164, .12); color: var(--tan-1); white-space: nowrap; }
.tag.bad { background: rgba(224, 108, 92, .14); color: #f0907f; }
.tag.ok { background: rgba(123, 216, 143, .12); color: #9fe3ad; }
.plate {
  justify-self: start; font: 700 1rem/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; padding: 6px 10px; border-radius: 6px;
  background: #f4f2ef; color: #1a2a6c; border: 2px solid #1a2a6c;
}
.meter { display: grid; grid-template-columns: 56px 1fr 38px; align-items: center; gap: 10px; font: 700 .9rem/1 var(--label); color: var(--muted); }
.meter div { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter div i { display: block; height: 100%; background: var(--tan-2); border-radius: 5px; }
.meter div i.low { background: #e06c5c; }
.meter span:last-child { text-align: right; color: #d6cfc7; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; color: #bfb7ae; }
.kv b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.item p { margin: 0; color: #bfb7ae; font-size: .95rem; }
.empty { grid-column: 1 / -1; padding: 34px; text-align: center; border-radius: var(--r); border: 1px dashed rgba(255, 255, 255, .12); color: var(--muted); }
.empty b { display: block; font: 800 1.25rem/1.2 var(--label); color: #d6cfc7; margin-bottom: 4px; }
.lic { display: flex; align-items: center; gap: 14px; }
.lic-cat { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font: 400 1.6rem/1 var(--display); background: rgba(255, 255, 255, .06); color: var(--muted); }
.lic-cat.has { background: var(--tan); color: #1a120c; }

/* jobs */
.jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.job {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); isolation: isolate;
}
.job img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
  filter: grayscale(1) contrast(1.05) brightness(.75); transition: filter .5s var(--ease), transform .6s var(--ease);
}
.job::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 12, 11, .92) 4%, transparent 60%); }
.job-txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.job-txt b { display: block; font: 400 1.7rem/1 var(--display); text-transform: uppercase; }
.job-txt span { font: 700 .98rem/1 var(--label); color: var(--tan-1); }
.job:hover img { filter: grayscale(0) contrast(1) brightness(.95); transform: scale(1.05); }

/* shop */
.shop { background: radial-gradient(80% 60% at 80% 0%, #221d18, var(--ink) 70%); overflow: hidden; }
.shop-bg {
  position: absolute; right: -2vw; top: 40px; font: 400 clamp(180px, 30vw, 460px)/.8 var(--display);
  background: var(--tan); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .14; filter: url(#rough); pointer-events: none; user-select: none;
}
.vip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; position: relative; }
.tier {
  position: relative; padding: 22px; border-radius: var(--r); background: rgba(28, 26, 23, .85); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), border-color .3s;
}
.tier:hover { transform: translateY(-4px); border-color: rgba(226, 195, 164, .4); }
.tier-name {
  font: 400 3.4rem/.9 var(--display); text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1.5px var(--tan-1); transition: color .3s;
}
.tier:hover .tier-name, .tier.featured .tier-name { color: var(--tan-1); }
.tier-price { font: 400 2.4rem/1 var(--display); color: var(--tan-1); }
.tier-price small { font: 700 1rem var(--label); color: var(--muted); margin-left: 6px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #d6cfc7; font-size: .98rem; }
.tier li { display: flex; gap: 10px; align-items: baseline; }
.tier li svg { color: var(--tan-2); font-size: .8em; transform: translateY(1px); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.badge { position: absolute; top: 16px; right: 16px; }
.tier .btn-ghost { background: rgba(255, 255, 255, .07); color: var(--paper); }
.tier:hover .btn-ghost { background: var(--tan); color: #1a120c; }

.coins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.coin {
  position: relative; padding: 20px 18px 18px; border-radius: var(--r); background: rgba(28, 26, 23, .85);
  border: 1px solid var(--line); display: grid; gap: 4px; cursor: pointer; text-align: left; color: inherit;
  font: inherit; isolation: isolate; overflow: hidden; transition: transform .3s var(--ease), color .3s;
}
.coin::before { content: ''; position: absolute; inset: 0; background: var(--tan); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; }
.coin:hover, .coin.featured { transform: translateY(-4px); color: #1a120c; }
.coin:hover::before, .coin.featured::before { opacity: 1; }
.coin-k { font: 700 .9rem/1 var(--label); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.coin:hover .coin-k, .coin.featured .coin-k { color: rgba(26, 18, 12, .6); }
.coin-n { font: 400 2.6rem/1 var(--display); margin-top: 12px; }
.coin-u { font: 400 1.4rem/1 var(--display); }
.coin-bonus { position: absolute; top: 16px; right: 16px; font: 800 .95rem/1 var(--label); padding: 5px 8px; border-radius: 6px; background: rgba(226, 195, 164, .14); color: var(--tan-1); }
.coin:hover .coin-bonus, .coin.featured .coin-bonus { background: rgba(26, 18, 12, .12); color: #1a120c; }
.coin-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid currentColor; border-color: rgba(255, 255, 255, .1); font: 800 1.1rem/1 var(--label); }
.coin:hover .coin-foot, .coin.featured .coin-foot { border-color: rgba(26, 18, 12, .2); }

.steps {
  margin-top: 70px; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--r) + 6px); background: var(--panel); border: 1px solid var(--line); position: relative;
}
.steps-title { margin: 0; font: 400 clamp(44px, 5vw, 72px)/.9 var(--display); text-transform: uppercase; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { padding: 18px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.steps li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tan); color: #1a120c; font: 400 1.1rem/1 var(--display); margin-bottom: 14px; }
.steps li b { display: block; font: 800 1.3rem/1.1 var(--label); }
.steps li p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 70px 1fr; gap: 6px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.rules li::before { content: counter(r, decimal-leading-zero); grid-row: span 2; font: 400 2.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px var(--tan-2); }
.rules b { font: 800 1.45rem/1.1 var(--label); }
.rules p { margin: 0; color: #bfb7ae; }

/* faq */
.faq-wrap { background: var(--ink-2); }
.faq { max-width: 900px; display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s; }
.faq details[open] { border-color: rgba(226, 195, 164, .35); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; font: 800 1.35rem/1.15 var(--label);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; background: rgba(255, 255, 255, .07); transition: transform .3s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; transition: rotate .3s var(--ease); }
.faq details[open] summary i { background: var(--tan); color: #1a120c; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq details p { margin: 0; padding: 0 22px 22px; color: #bfb7ae; max-width: 68ch; }
.faq details p code { color: var(--tan-1); }

/* discord */
.discord { padding: 0 var(--pad) clamp(80px, 10vw, 130px); background: var(--ink-2); }
.discord-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2a231d, #1a1714 60%); border: 1px solid rgba(226, 195, 164, .2);
}
.discord-card .display { font-size: clamp(44px, 6vw, 88px); }
.discord-card p { margin: 10px 0 0; color: #bfb7ae; max-width: 52ch; }
.discord-ico { font-size: 96px; color: var(--tan-1); }

/* footer */
.footer { padding: 40px var(--pad) 50px; display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer img { height: 30px; width: auto; filter: grayscale(1) brightness(1.4); opacity: .8; }
.footer p { margin: 0; }
.footer .muted { margin-left: auto; }

/* modal + toast */
.modal {
  border: 1px solid rgba(226, 195, 164, .25); border-radius: 20px; padding: 0; max-width: 460px; width: calc(100% - 32px);
  background: #1a1714; color: var(--paper);
}
.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.modal form { padding: 30px; display: grid; gap: 14px; position: relative; }
.modal .sticker { justify-self: start; }
.modal .display { font-size: 3.4rem; }
.modal-price { margin: -6px 0 0; font: 800 1.4rem var(--label); color: var(--tan-1); }
.modal-steps { margin: 0; padding-left: 20px; color: #d6cfc7; display: grid; gap: 8px; }
.modal .btn { justify-self: start; margin-top: 6px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: var(--paper); font-size: 22px; cursor: pointer; }
.modal[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.modal-status { margin: 0; color: #d6cfc7; }
.modal [hidden] { display: none !important; }
.coins.tebex-grid { margin-bottom: 40px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); overflow: visible; }
.tebex-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.coin .tebex-name { font-size: 1.6rem; line-height: 1; margin-top: 8px; }
.tebex-desc { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.coin:hover .tebex-desc { color: rgba(26, 18, 12, .7); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--tan); color: #1a120c; font: 800 1.1rem/1 var(--label);
  transition: opacity .25s, translate .25s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .player { top: auto; bottom: 230px; }
  .nav-links a { padding-inline: .6em; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 1180px) {
  .vip { grid-template-columns: repeat(2, 1fr); }
  .coins { grid-template-columns: repeat(5, minmax(180px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin-inline: -2px; }
  .coin { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .jobs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .hero { padding-bottom: 40px; align-items: start; }
  .hero-photo { inset: 0; opacity: .55; }
  .player, .server-card { position: relative; inset: auto; width: 100%; max-width: 420px; margin-top: 18px; }
  .rules { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr; }
  .discord-card { grid-template-columns: 1fr; }
  .char-login, .char-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .char-id { flex-direction: column; align-items: flex-start; padding-top: 56px; }
  .char-avatar { width: 80px; height: 80px; font-size: 2.3rem; }
  .char-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .char-tabs button { flex: none; }
}
@media (max-width: 560px) {
  .status-pill { display: none; }
  .vip, .jobs { grid-template-columns: 1fr; }
  .hcard { width: calc(50% - 7px); height: 130px; }
  .hcard:first-child { width: 100%; height: 110px; background: var(--tan); color: #1a120c; }
  .hcard:first-child .hcard-k { color: rgba(26, 18, 12, .6); }
  .hcard:first-child .hcard-t br { display: none; }
  .hcard-t { font-size: 1.8rem; }
  .script { left: 20%; }
}
/* ---------- chips (filtre) ---------- */
.chips { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); }
.chips-wrap { display: flex; flex-wrap: wrap; background: none; border: 0; padding: 0; gap: 8px; }
.chips button {
  border: 1px solid transparent; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font: 800 1.02rem/1 var(--label); transition: background .2s var(--ease), color .2s, border-color .2s;
}
.chips-wrap button { border-color: var(--line); background: var(--ink); }
.chips button:hover { color: var(--paper); }
.chips button[aria-selected="true"], .chips button[aria-pressed="true"] { background: var(--tan); color: #1a120c; border-color: transparent; }
.btn-ghost { background: rgba(255, 255, 255, .07); color: var(--paper); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- staff ---------- */
.staff { background: var(--ink); }
.staff-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.staff-duty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.staff-duty label { font: 800 1rem/1 var(--label); color: #d6cfc7; }
.staff-duty input, .tk input, .tk textarea {
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2);
  color: var(--paper); font: 500 1rem/1.35 var(--body); outline: none; transition: border-color .2s;
}
.staff-duty input { width: min(340px, 70vw); }
.staff-duty input:focus, .tk input:focus, .tk textarea:focus { border-color: var(--tan-2); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.staff-card {
  display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease);
}
.staff-card:hover { border-color: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.staff-top { display: flex; align-items: center; gap: 14px; }
.staff-av {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(226, 195, 164, .12); color: var(--tan-1); font: 400 1.3rem/1 var(--display);
}
.staff-card.on .staff-av::after {
  content: ''; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%;
  background: #7bd88f; border: 3px solid var(--panel);
}
.staff-who { display: grid; gap: 4px; min-width: 0; }
.staff-who b { font: 800 1.3rem/1.05 var(--label); overflow-wrap: anywhere; }
.staff-rank {
  justify-self: start; padding: 4px 10px; border-radius: 999px; font: 800 .85rem/1 var(--label); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .07); color: #d6cfc7;
}
.staff-card[data-rank="owner"] .staff-rank { background: var(--tan); color: #1a120c; }
.staff-card[data-rank="admin"] .staff-rank { background: rgba(224, 108, 92, .16); color: #f3b3a8; }
.staff-card[data-rank="moderator"] .staff-rank { background: rgba(110, 160, 230, .16); color: #b9d2f5; }
.staff-card[data-rank="helper"] .staff-rank { background: rgba(123, 216, 143, .14); color: #a9e6b6; }
.staff-duty-text { margin: 0; color: #d6cfc7; }
.staff-role { margin: -6px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- tichete ---------- */
.tickets { background: var(--ink-2); border-top: 1px solid var(--line); }
.tk-locked {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(24px, 3.5vw, 40px); border-radius: calc(var(--r) + 6px); background: var(--panel); border: 1px solid var(--line);
}
.tk-locked h3 { margin: 0 0 6px; font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--display); text-transform: uppercase; }
.tk-locked p { margin: 0; color: #bfb7ae; }
.tk-modes { margin-top: 0; }
.tk-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.tk-new {
  display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px); border-radius: calc(var(--r) + 4px); background: var(--panel); border: 1px solid var(--line);
  position: sticky; top: 100px;
}
.tk h3 { margin: 0; font: 400 1.9rem/1 var(--display); text-transform: uppercase; }
.tk-new fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-new legend, .tk-new label { font: 800 1.05rem/1 var(--label); color: #d6cfc7; padding: 0; }
.tk-new legend { margin-bottom: 8px; }
.tk-new label { display: grid; gap: 8px; }
.tk textarea { resize: vertical; min-height: 64px; }
.tk-new .btn { justify-self: start; border-radius: 12px; }
.tk-new.busy .btn, .tk-reply.busy .btn { opacity: .6; pointer-events: none; }
.tk-list { display: grid; gap: 10px; }
.tk-list h3 { margin-bottom: 6px; }
.tk-item { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
.tk-item.open, .tk-item:hover { border-color: rgba(255, 255, 255, .18); }
.tk-head {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 16px 18px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
}
.tk-id { font: 400 1.25rem/1 var(--display); color: var(--tan-2); }
.tk-main { display: grid; gap: 3px; min-width: 0; }
.tk-main b { font: 800 1.15rem/1.15 var(--label); overflow-wrap: anywhere; }
.tk-main small { color: var(--muted); font-size: .88rem; }
.dot-on { color: #9fe3ad; }
.tk-status { padding: 5px 11px; border-radius: 999px; font: 800 .85rem/1 var(--label); white-space: nowrap; }
.s-open { background: rgba(226, 195, 164, .14); color: var(--tan-1); }
.s-claimed { background: rgba(110, 160, 230, .16); color: #b9d2f5; }
.s-closed { background: rgba(255, 255, 255, .06); color: var(--muted); }
.tk-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.tk-thread { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 10px; }
.tk-thread li { max-width: 88%; padding: 12px 14px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.tk-thread li.staff { justify-self: end; background: rgba(226, 195, 164, .08); border-color: rgba(226, 195, 164, .2); }
.tk-thread li.close { border-style: dashed; }
.tk-thread p { margin: 4px 0 0; overflow-wrap: anywhere; }
.tk-meta { font-size: .85rem; color: var(--muted); }
.tk-meta b { color: #d6cfc7; font-weight: 600; }
.tk-meta i { font-style: normal; color: var(--tan-1); }
.tk-reply { display: grid; gap: 10px; margin-top: 14px; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-actions .btn { border-radius: 12px; padding: .6em 1em; font-size: 1rem; }
.tk-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }

@media (max-width: 980px) {
  .tk-grid { grid-template-columns: 1fr; }
  .tk-new { position: static; }
}
@media (max-width: 560px) {
  .tk-head { grid-template-columns: minmax(0, 1fr) auto; }
  .tk-id { display: none; }
  .tk-thread li { max-width: 100%; }
}

/* ---------- pagina regulament ---------- */
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.rb-head { padding-bottom: 30px; padding-top: clamp(120px, 14vw, 170px); }
.rb-head .section-head { margin-bottom: 30px; }
.rb-head .section-head p { max-width: 52ch; }
.rb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.rb-search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 340px; max-width: 520px; padding: 0 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s;
}
.rb-search:focus-within { border-color: var(--tan-2); }
.rb-search input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: none; color: var(--paper); font: 500 1.05rem/1 var(--body); outline: none; }
.rb-meta { color: var(--muted); font: 700 1rem/1 var(--label); }
.rb { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); padding: 10px var(--pad) clamp(80px, 10vw, 130px); align-items: start; }
.rb-toc { position: sticky; top: 96px; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow: auto; }
.rb-toc a {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 10px; color: var(--muted);
  font: 800 1.08rem/1.15 var(--label); transition: background .2s, color .2s;
}
.rb-toc a span { font: 400 .95rem/1 var(--display); color: var(--tan-3); }
.rb-toc a:hover { color: var(--paper); background: rgba(255, 255, 255, .04); }
.rb-toc a[aria-current="true"] { color: var(--paper); background: rgba(226, 195, 164, .1); }
.rb-toc a[aria-current="true"] span { color: var(--tan-1); }
.rb-toc a.dim { opacity: .35; }
.rb-body { display: grid; gap: clamp(40px, 6vw, 70px); }
.rb-ch { scroll-margin-top: 100px; }
.rb-ch h2 { display: flex; align-items: baseline; gap: 16px; margin: 0 0 18px; font: 400 clamp(2rem, 3.6vw, 3rem)/1 var(--display); text-transform: uppercase; }
.rb-ch h2 span { font-size: .6em; color: transparent; -webkit-text-stroke: 1.2px var(--tan-2); }
.rb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rb-art { scroll-margin-top: 110px; padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s; }
.rb-art.hit, .rb-art:target { border-color: var(--tan-2); }
.rb-art-head { display: flex; align-items: baseline; gap: 12px; }
.rb-code { flex: none; font: 800 .95rem/1 var(--label); color: var(--tan-1); letter-spacing: .02em; }
.rb-art-head b { flex: 1; font: 800 1.25rem/1.15 var(--label); }
.rb-copy {
  flex: none; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background .2s;
}
.rb-copy:hover { color: var(--paper); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.rb-art p { margin: 8px 0 0; color: #c9c1b8; }
.rb-sanction { display: inline-block; margin-top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(224, 108, 92, .1); color: #f3b3a8; font: 700 .9rem/1.2 var(--label); }
.footer a { color: var(--tan-1); }
@media (max-width: 900px) {
  .rb { grid-template-columns: 1fr; }
  .rb-toc { position: static; display: flex; gap: 6px; overflow-x: auto; max-height: none; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 6px; scrollbar-width: none; }
  .rb-toc a { flex: none; border: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
