
/* Obix official site. Same poster look as the store: Near-black night, one orange, rounded dark cards with amber hairlines,
   orange icon tiles, a white word + a huge orange word in every heading, and a city skyline at the bottom. */
:root {
  color-scheme: dark;
  --bg: #0a0806;
  --card: #120e0b;
  --card-2: #18130e;
  --stroke: #3a2a17;
  --stroke-2: #5c4120;
  --text: #f6f1ea;
  --muted: #bdb2a5;
  --dim: #85796c;
  --orange: #ff9d1c;
  --orange-2: #ffb84f;
  --on-orange: #1a0d00;
  --red: #ff4a3d;
  --green: #3fd07f;
  --ar: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --lat: "Rajdhani", "Cairo", "Arial Narrow", sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--ar); font-size: 16px; line-height: 1.7; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: var(--orange); text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lat { font-family: var(--lat); direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.orange { color: var(--orange); }

/* ---- poster parts ---- */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 157, 28, .05); font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.kicker { font-family: var(--lat); font-weight: 700; font-size: 15px; letter-spacing: .32em; color: var(--orange); direction: ltr; unicode-bidi: isolate; text-transform: uppercase; }
.title { display: grid; gap: 6px; line-height: 1.2; font-weight: 900; }
.title .w { color: var(--text); font-size: clamp(34px, 5vw, 60px); line-height: 1.25; }
.title .o { color: var(--orange); font-size: clamp(52px, 9vw, 112px); text-shadow: 0 0 46px rgba(255, 157, 28, .35); line-height: 1.3; }
.sub { font-size: clamp(17px, 2vw, 22px); font-weight: 600; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; min-width: 0; }
.info { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.tile { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--orange); display: grid; place-items: center; color: var(--on-orange); box-shadow: 0 6px 24px -8px rgba(255, 157, 28, .7); }
.tile svg { width: 23px; height: 23px; }
.tile.num-tile { font-family: var(--lat); font-weight: 700; font-size: 24px; }
.info .lbl { display: block; color: var(--orange); font-weight: 700; font-size: 14px; line-height: 1.3; }
.info .val { display: block; color: var(--text); font-weight: 800; font-size: 19px; line-height: 1.35; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 999px; font: 800 16px var(--ar); cursor: pointer; border: 1px solid var(--stroke-2); background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; white-space: nowrap; }
.btn:hover { border-color: var(--orange); }
.btn.solid { background: var(--orange); border-color: var(--orange); color: var(--on-orange); box-shadow: 0 10px 30px -12px var(--orange); }
.btn.solid:hover { background: var(--orange-2); }
.link-pill { display: inline-flex; align-items: center; gap: 12px; padding: 11px 24px; border-radius: 999px; border: 1px solid var(--stroke-2); background: var(--card); color: var(--text); font-weight: 800; font-size: 17px; text-decoration: none; }
.link-pill b { color: var(--orange); font-family: var(--lat); font-size: 19px; letter-spacing: .02em; direction: ltr; }
.link-pill:hover { border-color: var(--orange); }
.demo { font-size: 12px; font-weight: 600; color: var(--dim); border: 1px dashed var(--stroke-2); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.diamond { color: var(--orange); font-size: 12px; }

/* ---- header ---- */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10, 8, 6, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--stroke); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--lat); font-weight: 700; font-size: 26px; letter-spacing: .04em; color: var(--text); direction: ltr; }
.brand span b { color: var(--orange); font-weight: 700; }
nav.menu { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav.menu::-webkit-scrollbar { display: none; }
nav.menu ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
nav.menu a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15.5px; white-space: nowrap; border: 1px solid transparent; }
nav.menu a:hover { color: var(--text); }
nav.menu a[aria-current="page"] { color: var(--text); border-color: var(--stroke-2); background: rgba(255, 157, 28, .06); }

/* ---- pages ---- */
section.page { position: relative; }
.page-top { padding-block: 54px 36px; display: grid; gap: 16px; justify-items: start; }
.page-body { padding-bottom: 80px; }

/* home hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 22% 45%, rgba(255, 157, 28, .10), transparent 70%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: center; padding-block: 56px 190px; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero-copy .title .o { font-size: clamp(76px, 13vw, 168px); }
.infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.skyline { position: absolute; inset: auto 0 0 0; height: 220px; z-index: 1; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 34px 170px; }

}
@media (max-width: 620px) { .infos { grid-template-columns: 1fr; } }

.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -60px; position: relative; z-index: 3; }
.shortcuts a.card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; transition: border-color .2s; }
.shortcuts a.card:hover { border-color: var(--orange); }
@media (max-width: 900px) { .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -40px; } }
@media (max-width: 520px) { .shortcuts { grid-template-columns: 1fr; } }

.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 48px 0 16px; }
.block-head h2 { font-size: 26px; font-weight: 900; }
.block-head h2 span { color: var(--orange); }

/* start */
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.step h3 { font-size: 19px; font-weight: 800; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .extra { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--card-2); font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px dashed var(--stroke-2); background: #0d0a07; max-width: 100%; }
.cmd code { font-family: var(--lat); font-weight: 700; font-size: 17px; color: var(--orange); direction: ltr; white-space: nowrap; overflow-x: auto; min-width: 0; }
.cmd .btn { padding: 7px 16px; font-size: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side { padding: 22px; display: grid; gap: 12px; }
.side h3 { font-size: 19px; font-weight: 800; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 15.5px; }
.list li::before { content: "◆"; color: var(--orange); font-size: 10px; flex: none; }

/* hero visual: an Obix City ID card the visitor fills with their character name */
.idwrap { display: grid; gap: 14px; justify-items: center; }
.idcard { width: min(100%, 440px); aspect-ratio: 1.586; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #20170e 0%, #120d09 55%, #0d0a07 100%); border: 1px solid var(--stroke-2);
  box-shadow: 0 0 0 1px rgba(255, 157, 28, .2), 0 0 60px -18px rgba(255, 157, 28, .55), 0 40px 70px -40px #000;
  transform: perspective(1300px) rotateY(-9deg) rotateX(3deg); transition: transform .5s ease; }
.idcard:hover { transform: perspective(1300px) rotateY(-3deg) rotateX(1deg); }
.idcard .wm { position: absolute; width: 62%; inset-inline-start: -14%; bottom: -24%; opacity: .07; pointer-events: none; }
.idcard .band { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 20px; background: var(--orange); color: var(--on-orange); }
.idcard .band b { font-weight: 900; font-size: 16px; }
.idcard .band .lat { font-weight: 700; font-size: 13px; letter-spacing: .22em; }
.idbody { position: relative; display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 16px; padding: 16px 20px 0; }
.photo { aspect-ratio: 4 / 5; border-radius: 12px; background: radial-gradient(80% 60% at 50% 30%, #2a1d10, #0c0906); border: 1px solid var(--stroke-2); display: grid; place-items: end center; overflow: hidden; }
.photo svg { width: 82%; height: auto; display: block; }
.fields { display: grid; gap: 7px; align-content: start; min-width: 0; }
.f small { display: block; color: var(--orange); font-size: 12px; font-weight: 700; line-height: 1.3; }
.f b { display: block; font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.f b.big { font-size: 20px; font-weight: 900; }
.f b.lat { font-size: 17px; letter-spacing: .06em; text-align: start; }
.idfoot { position: absolute; inset-inline: 20px; bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.idfoot svg { height: 30px; width: 46%; display: block; }
.stamp { border: 2px solid var(--orange); color: var(--orange); border-radius: 8px; padding: 2px 10px; font-weight: 900; font-size: 13px; transform: rotate(-6deg); white-space: nowrap; background: rgba(255, 157, 28, .06); }
.stamp.ok { border-color: var(--green); color: var(--green); background: rgba(63, 208, 127, .07); }
.tryname { width: min(100%, 440px); padding: 12px 14px; display: grid; gap: 6px; }
.tryname label { font-weight: 700; font-size: 14px; color: var(--orange); }
.tryname input { background: #0c0906; border: 1px solid var(--stroke); border-radius: 12px; color: var(--text); font: 700 16px var(--ar); padding: 10px 14px; width: 100%; min-width: 0; }
.tryname input:focus { outline: none; border-color: var(--orange); }
.hint { font-size: 13.5px; font-weight: 600; color: var(--dim); }
.hint.ok { color: var(--green); } .hint.bad { color: var(--orange-2); }
@media (max-width: 900px) { .idcard { transform: none; } .idcard:hover { transform: none; } }
@media (max-width: 420px) { .f b { font-size: 14px; } .f b.big { font-size: 17px; } .idcard .band b { font-size: 14px; } .idfoot svg { height: 24px; } }

/* rules page */
.intro { padding: 22px 24px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; margin-bottom: 18px; }
.intro p { color: var(--muted); font-size: 16px; }
.intro p b { color: var(--text); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
.storm { border-radius: 14px; border: 1px solid var(--stroke-2); background: #0c0906; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.storm .tile { background: var(--green); box-shadow: 0 6px 24px -8px rgba(63, 208, 127, .6); }
.storm.off .tile { background: var(--red); box-shadow: 0 6px 24px -8px rgba(255, 74, 61, .6); }
.storm .lbl { display: block; font-weight: 700; font-size: 13.5px; color: var(--dim); }
.storm .val { display: block; font-weight: 900; font-size: 18px; color: var(--green); line-height: 1.35; }
.storm.off .val { color: var(--red); }
.storm .sub2 { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.chip-btn .n { font-family: var(--lat); font-weight: 700; opacity: .7; margin-inline-start: 4px; }
.rule .ex { grid-column: 2; color: var(--dim); font-size: 14px; border-inline-start: 2px solid var(--stroke-2); padding-inline-start: 10px; }
.rule.hot { border-color: rgba(255, 74, 61, .45); }
.ban-tag { font-size: 12.5px; font-weight: 800; color: var(--red); border: 1px solid rgba(255, 74, 61, .45); border-radius: 999px; padding: 0 10px; }
.limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .limits { grid-template-columns: 1fr; } }
.limit { padding: 18px; display: grid; gap: 12px; }
.limit h3 { font-size: 18px; font-weight: 900; }
.limit .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--stroke); padding-top: 10px; }
.limit .row span { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.limit .row b { font-family: var(--lat); font-weight: 700; font-size: 26px; color: var(--orange); direction: ltr; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.zone { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 800; font-size: 16.5px; }
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ladder { grid-template-columns: 1fr; } }
.warn { padding: 16px; display: grid; gap: 6px; align-content: start; }
.warn small { color: var(--dim); font-weight: 700; }
.warn b { font-size: 20px; font-weight: 900; }
.warn p { color: var(--muted); font-size: 14px; }
.closing { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

/* rules (list) */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--card); color: var(--muted); font: 700 15px var(--ar); cursor: pointer; }
.chip-btn:hover { color: var(--text); border-color: var(--stroke-2); }
.chip-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.search { display: flex; align-items: center; gap: 8px; padding: 4px 18px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--card); flex: 1 1 240px; max-width: 360px; min-width: 0; }
.search:focus-within { border-color: var(--orange); }
.search svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.search input { background: transparent; border: 0; color: var(--text); font: 600 15px var(--ar); padding: 8px 0; width: 100%; min-width: 0; }
.search input:focus { outline: none; }
.rules { display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px 20px; }
.rule .no { grid-row: span 2; text-align: center; font-family: var(--lat); font-weight: 700; color: var(--orange); font-size: 15px; padding-top: 3px; direction: ltr; min-width: 54px; }
.rule h3 { font-size: 17.5px; font-weight: 800; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rule p { color: var(--muted); font-size: 15.5px; }
.rule .txt { grid-column: 2; color: var(--text); font-size: 16.5px; font-weight: 600; line-height: 1.8; }
.rule .txt .term, .rule .txt .tag, .rule .txt .ban-tag { vertical-align: 2px; margin-inline-start: 4px; }
.term { font-family: var(--lat); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--orange); border: 1px solid var(--stroke-2); border-radius: 999px; padding: 0 10px; direction: ltr; }
.empty { color: var(--dim); text-align: center; padding: 28px; }


/* ranking (coming soon) */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 14px; }

/* footer (the poster's social strip) */
footer.foot { border-top: 1px solid var(--stroke); background: #080605; }
footer .wrap { display: grid; gap: 14px; justify-items: center; padding-block: 26px 30px; text-align: center; }
.social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; }
.social a { display: inline-flex; gap: 8px; align-items: baseline; color: var(--muted); font-weight: 600; text-decoration: none; }
.social a b { font-family: var(--lat); font-size: 18px; color: var(--text); direction: ltr; }
.social a:hover b { color: var(--orange); }
.legal { color: var(--dim); font-size: 13px; max-width: 720px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--orange); color: var(--on-orange); font-weight: 800; padding: 10px 20px; border-radius: 999px; transition: .25s; z-index: 40; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Real site additions: account + owner panel in the header, live server
   status, ranking "soon", and the owner's rules editor drawer.
   ===================================================================== */
html { direction: rtl; }
body { margin: 0; }
[hidden] { display: none !important; }
button { font-family: var(--ar); color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* header: sections on the right, account in the middle, logo on the far left */
.bar { gap: 14px; }
.brand { margin-right: auto; direction: ltr; }
nav.menu { flex: 1 1 auto; }
nav.menu a.ext::after { content: "↗"; font-family: var(--lat); font-size: 13px; margin-inline-start: 5px; color: var(--orange); }
.panel-btn { flex: none; border-color: var(--orange); color: var(--orange); }
.login-btn { flex: none; border-color: rgba(88, 101, 242, .65); }
.login-btn:hover { border-color: #7984ff; }
.login-btn svg { color: #8f99ff; }
.me { position: relative; flex: none; }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid rgba(88, 101, 242, .65); background: var(--card); color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer; direction: ltr; max-width: 190px; }
.me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #5865f2; color: #fff; font: 700 15px var(--lat); flex: none; text-transform: uppercase; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; background: var(--card-2); border: 1px solid var(--stroke-2); border-radius: 14px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 20px 40px -20px #000; z-index: 35; }
.me-menu .hint { font-size: 13.5px; }
.enter-btn { flex: none; padding: 10px 20px; font-size: 15px; }
@media (max-width: 1100px) {
  .bar { flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  nav.menu { order: 10; flex-basis: 100%; margin-inline: -6px; padding-block: 6px 8px; border-top: 1px solid var(--stroke); }
  .bar > .btn, .me { margin-bottom: 8px; } .brand { margin-bottom: 8px; }
}
@media (max-width: 600px) {
  .bar { gap: 8px; }
  .panel-btn span, .login-btn span, .me-name { display: none; }
  .panel-btn, .login-btn { padding: 9px 12px; }
  .me-btn { padding: 4px; }
  .enter-btn { padding: 9px 14px; font-size: 14px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 20px; }
  .bar > .btn, .me, .brand { margin-bottom: 6px; }
  nav.menu a { padding: 6px 11px; font-size: 14.5px; }
  .me-menu { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; min-width: 0; }
}
@media (max-width: 380px) { .enter-btn .long { display: none; } .brand span { font-size: 18px; } }

/* live status */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); margin-inline-end: 8px; vertical-align: 2px; }
.dot.on { background: var(--green); box-shadow: 0 0 0 0 rgba(63, 208, 127, .6); animation: pulse 2s infinite; }
.dot.off { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 208, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 208, 127, 0); } }
.val.off { color: var(--red); }
.info .val small { font-size: 14px; color: var(--muted); font-weight: 700; }

/* shortcuts: the store card leaves the site */
.shortcuts .card .lbl { display: block; color: var(--orange); font-weight: 700; font-size: 14px; line-height: 1.3; }
.shortcuts .card .val { display: block; color: var(--text); font-weight: 800; font-size: 17px; line-height: 1.35; }
.shortcuts .card .ext { font-family: var(--lat); color: var(--orange); margin-inline-start: 4px; }

/* ranking coming soon */
.soon { padding: 34px 26px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.soon .tile { width: 64px; height: 64px; border-radius: 18px; }
.soon .tile svg { width: 32px; height: 32px; }
.soon h2 { font-size: 26px; font-weight: 900; }
.soon h2 span { color: var(--orange); }
.soon p { color: var(--muted); max-width: 560px; }
.ghost-board { width: min(100%, 560px); display: grid; gap: 8px; margin-top: 6px; opacity: .55; }
.ghost-board div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 10px 14px; border: 1px dashed var(--stroke-2); border-radius: 12px; }
.ghost-board b { font-family: var(--lat); color: var(--orange); font-size: 18px; }
.ghost-board i { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--stroke-2), transparent); }
.ghost-board s { height: 10px; border-radius: 999px; background: var(--stroke); text-decoration: none; }

/* rules loading / updated */
.loading { color: var(--dim); text-align: center; padding: 28px; }

/* owner editor drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(640px, 100%); background: var(--card); border-inline-start: 1px solid var(--stroke-2); z-index: 51; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: -30px 0 60px -30px #000; }
.drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--stroke); }
.drawer > header h2 { font-size: 20px; font-weight: 900; }
.drawer > header h2 small { display: block; font-size: 13px; color: var(--dim); font-weight: 600; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--stroke-2); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.x svg { width: 18px; height: 18px; }
.ed-tabs { display: flex; gap: 6px; padding: 12px 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--stroke); flex: none; }
.ed-tabs::-webkit-scrollbar { display: none; }
.ed-tabs .chip-btn { white-space: nowrap; padding: 6px 14px; font-size: 14px; }
.ed-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; display: grid; gap: 12px; align-content: start; }
.ed-body .field label, .ed-lbl { font-weight: 700; font-size: 13.5px; color: var(--orange); }
.field { display: grid; gap: 6px; min-width: 0; }
.inp { width: 100%; min-width: 0; background: #0c0906; border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 13px; font: 700 15.5px/1.7 var(--ar); color: var(--text); }
.inp:focus { outline: none; border-color: var(--orange); }
textarea.inp { resize: vertical; min-height: 76px; }
.inp.lat-in { font-family: var(--lat); letter-spacing: .04em; direction: ltr; text-align: left; }
.ed-item { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--stroke); border-radius: 14px; background: var(--card-2); }
.ed-item.hot { border-color: rgba(255, 74, 61, .45); }
.ed-top { display: flex; align-items: center; gap: 8px; }
.ed-top .no { font-family: var(--lat); font-weight: 700; color: var(--orange); font-size: 16px; min-width: 26px; }
.ed-top .grow { flex: 1; min-width: 0; }
.ib { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--stroke-2); background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--muted); font: 700 16px var(--lat); }
.ib:hover { color: var(--text); border-color: var(--orange); }
.ib.del:hover { color: var(--red); border-color: var(--red); }
.ib[disabled] { opacity: .3; cursor: default; }
.ed-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 520px) { .ed-two { grid-template-columns: 1fr; } }
.ed-checks { display: flex; flex-wrap: wrap; gap: 16px; }
.chk { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); }
.chk input { width: 17px; height: 17px; accent-color: var(--orange); }
.ed-row { display: flex; gap: 8px; align-items: center; }
.ed-row .inp { flex: 1; }
.ed-add { justify-self: start; border-style: dashed; }
.ed-note { font-size: 13.5px; color: var(--dim); font-weight: 600; }
.drawer > footer { border-top: 1px solid var(--stroke); padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.drawer > footer .msg { flex: 1 1 180px; font-size: 14px; font-weight: 700; color: var(--dim); }
.drawer > footer .msg.dirty { color: var(--orange); }
.drawer > footer .msg.ok { color: var(--green); }
.drawer > footer .msg.err { color: var(--red); }
.panel-btn .pend { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.ed-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 20px 0; }

/* home: ready to join */
.join { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 640px) { .join { grid-template-columns: 1fr; } .join .btn { justify-self: start; } }
nav.menu .short { display: none; }
@media (max-width: 600px) { nav.menu .full { display: none; } nav.menu .short { display: inline; } nav.menu ul { justify-content: space-between; } }
@media (max-width: 600px) { .bar:has(#meBox:not([hidden])) .brand span { display: none; } }
@media (max-width: 380px) { .bar:has(#panelOpen:not([hidden])) .enter-btn .long { display: none; } }
textarea.inp.grow-ta { overflow: hidden; resize: none; min-height: 0; }
/* mid widths: three status cards side by side need the room, so they drop their icons */
@media (min-width: 621px) and (max-width: 1200px) { .infos .tile { display: none; } .infos .info { padding: 12px 16px; } .infos .val { font-size: 17.5px; } }

/* ranking: Discord account + time, nothing else */
.ava { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: #5865f2; color: #fff; font: 700 18px var(--lat); text-transform: uppercase; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm { font-weight: 800; color: var(--muted); white-space: nowrap; font-size: 15px; }
.tm b { font-family: var(--lat); font-weight: 700; color: var(--orange); font-size: 1.45em; margin-inline-end: 2px; }
.lb-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 14px; }
.lb-pod.n2 { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.lb-pod.n1 { grid-template-columns: minmax(0, 340px); justify-content: center; }
.lbp { position: relative; display: grid; justify-items: center; gap: 10px; padding: 26px 18px 22px; text-align: center; overflow: hidden; }
.lbp::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--ring); }
.lbp .ava { width: 84px; height: 84px; font-size: 32px; box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--ring), 0 18px 40px -18px var(--ring); }
.lbp .medal { position: absolute; top: 14px; inset-inline-start: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ring); color: #1a1208; font: 700 16px var(--lat); }
.lbp .nm { font-weight: 800; font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
.lbp .tm { font-size: 17px; }
.lbp.r1 { --ring: #ffd36a; padding-block: 38px 28px; border-color: rgba(255, 211, 106, .55); background: radial-gradient(90% 70% at 50% 0%, rgba(255, 211, 106, .12), transparent 70%), var(--card); }
.lbp.r1 .ava { width: 104px; height: 104px; }
.lbp.r1 .tm { font-size: 20px; }
.lbp.r2 { --ring: #d6dbe2; }
.lbp.r3 { --ring: #e8a06a; }
.lbp .crown { width: 30px; height: 22px; color: #ffd36a; margin-bottom: -4px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--card); }
.lb-row .rk { width: 30px; flex: none; text-align: center; font: 700 19px var(--lat); color: var(--dim); }
.lb-row .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
.lb-row .ava { width: 38px; height: 38px; font-size: 16px; }
.lb-row.you { border-color: var(--orange); background: rgba(255, 157, 28, .07); }
.lb-empty { text-align: center; color: var(--dim); padding: 26px; }
.me-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 16px; border-color: rgba(88, 101, 242, .55); background: linear-gradient(90deg, rgba(88, 101, 242, .10), transparent 60%), var(--card); flex-wrap: wrap; }
.me-card .ava { width: 58px; height: 58px; font-size: 24px; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px #5865f2; }
.me-card .who { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.me-card .who small { color: #8f99ff; font-weight: 700; font-size: 13.5px; }
.me-card .who b { font-size: 19px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .who span { color: var(--muted); font-size: 14.5px; }
.me-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.me-stat { display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--stroke-2); background: #0c0906; min-width: 150px; }
.me-stat small { color: var(--dim); font-weight: 700; font-size: 13px; }
.me-stat .rank { color: var(--text); font-weight: 800; font-size: 13.5px; }
.me-stat .rank i { font-style: normal; font-family: var(--lat); color: var(--orange); font-size: 16px; }
@media (max-width: 700px) {
  .lb-pod, .lb-pod.n2, .lb-pod.n1 { grid-template-columns: 1fr; gap: 8px; }
  .lbp, .lbp.r1 { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-align: start; justify-items: start; }
  .lbp.r1 { order: -1; }
  .lbp .ava, .lbp.r1 .ava { width: 52px; height: 52px; font-size: 20px; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ring); }
  .lbp .medal { position: static; width: 26px; height: 26px; font-size: 14px; flex: none; }
  .lbp .crown { display: none; }
  .lbp .nm { flex: 1; min-width: 0; font-size: 16.5px; }
  .lbp .tm, .lbp.r1 .tm { font-size: 15px; }
  .lb-row { padding: 9px 12px; gap: 10px; }
  .me-card { padding: 16px; }
  .me-stats { flex: 1 1 100%; }
  .me-stat { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
}

/* start: open activation banner */
.open-note { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 16px; border-color: rgba(63, 208, 127, .5); background: linear-gradient(90deg, rgba(63, 208, 127, .09), transparent 65%), var(--card); flex-wrap: wrap; }
.open-note .tile { background: var(--green); box-shadow: 0 6px 24px -8px rgba(63, 208, 127, .6); }
.open-note > div { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.open-note b { font-size: 18px; font-weight: 900; color: var(--green); }
.open-note p { color: var(--muted); font-size: 15px; }
