:root {
  color-scheme: dark;
  --bg: #10140f;
  --raise: #1a2118;
  --line: #31402c;
  --text: #f4f1e6;
  --muted: #b7c2ad;
  --gold: #e2b657;
  --gold-2: #8d6a24;
  --ok: #b7e3a1;
  --bad: #ffb4a8;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top, #243222, var(--bg) 42%); color: var(--text); }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit;
  color: var(--text);
  background: #121810;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
button, .pill {
  background: linear-gradient(180deg, var(--gold), #c7963a);
  color: #1b1406;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand bell who" "nav nav nav"; gap: 12px 16px; align-items: center; padding: 18px 6vw 8px; }
.top nav { grid-area: nav; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-bottom: 8px; }
.bell { position: relative; grid-area: bell; width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; background: rgba(226, 182, 87, .08); transform-origin: 50% 6px; }
.bell.live { animation: bell-ring 1.5s ease-in-out infinite; }
.bell svg { width: 22px; height: 22px; }
.bell .badge { position: absolute; top: -6px; right: -8px; margin: 0; background: #141910; color: var(--gold); border: 1px solid var(--gold); box-shadow: 0 0 8px rgba(226, 182, 87, .7); }
.nav-chat { display: inline-flex; align-items: center; gap: 4px; }
.nav-chat .badge[hidden] { display: none; }
.chat-x { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #c8453c; color: #fff; font-size: 18px; font-weight: 800; line-height: 28px; cursor: pointer; }
@keyframes bell-ring {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(16deg); }
  70% { transform: rotate(-14deg); }
  74% { transform: rotate(10deg); }
  78% { transform: rotate(-6deg); }
  82% { transform: rotate(3deg); }
}
.who { grid-area: who; justify-self: end; display: flex; align-items: center; gap: 14px; }
.who-name { display: grid; justify-items: end; line-height: 1.15; text-align: right; }
.who-name strong { color: white; font-weight: 800; }
.who-name span { color: var(--gold); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.brand { grid-area: brand; justify-self: start; color: white; font-weight: 800; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.app-mark { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; }
.app-mark img { width: 72px; height: 72px; border-radius: 16px; display: block; }
.app-mark strong { display: block; color: white; font-size: 20px; }
.app-mark span { color: var(--muted); font-size: 14px; }
.link { background: none; color: var(--gold); padding: 0; }
main { padding: 8px 6vw 64px; display: grid; gap: 18px; }
.callout {
  padding: 18px;
  border: 2px solid var(--gold);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(226, 182, 87, .28), rgba(18, 24, 16, .94));
  box-shadow: 0 0 28px rgba(226, 182, 87, .45);
}
.callout h2 { margin: 4px 0 8px; font-size: clamp(28px, 4vw, 44px); }
.callout .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.callout .actions a { box-shadow: 0 0 16px rgba(226, 182, 87, .55); }
.hero h1, h1 { font-size: clamp(32px, 5vw, 58px); line-height: .95; margin: 0 0 8px; }
h2 { margin: 0 0 8px; }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.apps { background: rgba(26, 33, 24, .92); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.apps summary { cursor: pointer; color: var(--gold); font-weight: 800; font-size: 18px; }
.app-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.app-downloads h2 { font-size: 22px; }
.qr { background: white; padding: 10px; border-radius: 12px; width: fit-content; }
.qr svg { display: block; width: 168px; height: 168px; }
.lead, .muted, .empty { color: var(--muted); }
button.danger { background: #c8453c; color: white; }
.card-flag { display: inline-block; margin: 6px 0; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 13px; }
.card-flag.yellow { background: var(--gold); color: #1b1406; }
.card-flag.red { background: #c8453c; color: white; }
.grid, .boards, .split, .stats { display: grid; gap: 16px; }
.grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { grid-template-columns: 1.3fr .8fr; align-items: start; }
.boards, .stats { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card, .panel, .court, .fifa, .stats article {
  background: rgba(26, 33, 24, .92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.complex img, .cover { height: 180px; width: 100%; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.narrow { max-width: 460px; }
.stack, .search, .inline, .slots, .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cal { display: grid; gap: 10px; margin: 8px 0 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-head strong { text-transform: capitalize; letter-spacing: .04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow, .cal .day, .cal a { display: grid; place-items: center; min-height: 40px; border-radius: 10px; text-align: center; }
.cal-dow { color: var(--muted); font-size: 12px; min-height: 24px; }
.cal .day { color: var(--muted); opacity: .35; }
.cal a { border: 1px solid var(--line); color: var(--text); }
.cal a.today { border-color: var(--gold); }
.cal a.on { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 800; }
.stack { flex-direction: column; }
.secret { position: relative; display: block; }
.secret input { width: 100%; padding-right: 46px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--gold); display: grid; place-items: center; cursor: pointer; padding: 0; }
.eye svg { width: 22px; height: 22px; }
.eye.open { opacity: .55; }
.slots button, .slot { min-width: 92px; display: grid; }
.slots button, .slot.live {
  box-shadow: 0 0 14px rgba(226, 182, 87, .45);
  animation: pulse 1.5s ease-in-out infinite;
  background: linear-gradient(180deg, var(--gold), #c7963a);
  color: #1b1406;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
}
.court { animation: slide-in .45s ease both; }
.slot.off { opacity: .45; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.slot.wait, .slot.reserved { padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; color: var(--gold); }
a.slot.live { text-decoration: none; color: #1b1406; }
.slot .reserve, .slots button .reserve { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.request-scroll { display: grid; gap: 12px; }
.thread-pane { display: flex; flex-direction: column; max-height: min(72vh, 720px); min-height: 420px; }
.rank-scroll { max-height: min(68vh, 720px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #121810; }
.thread-pane h2 { flex: 0 0 auto; font-size: 18px; line-height: 1.2; margin: 0 0 10px; }
.thread-log { flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 8px; min-height: 260px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #121810; }
.thread-compose { position: static; flex: 0 0 auto; margin-top: 8px; background: #1a2118; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.row, .linkrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.chips span, .pill { border-radius: 999px; padding: 8px 12px; background: #2a3824; color: var(--text); }
.pill.on, a.pill { background: linear-gradient(180deg, var(--gold), #c7963a); color: #1b1406; }
.flash { padding: 12px 14px; border-radius: 12px; background: #243222; }
.flash.ok { color: var(--ok); }
.flash.error { color: var(--bad); }
.fifa { background: linear-gradient(160deg, #3c4d28, #161b13 55%); min-height: 280px; }
.overall { font-size: 64px; font-weight: 800; color: var(--gold); margin: 0; }
.attrs { list-style: none; padding: 0; display: grid; gap: 6px; }
.attrs li { display: flex; justify-content: space-between; }
.stats strong { display: block; font-size: 32px; color: var(--gold); }
.period a.pill { background: #2a3824; color: var(--text); }
.period a.pill.on { background: linear-gradient(180deg, var(--gold), #c7963a); color: #1b1406; }
.money-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.money-table th, .money-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.money-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-table .fee { color: var(--gold); font-weight: 800; }
.money-table tr.skip td { color: var(--muted); }
.ledger { max-height: min(52vh, 520px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; background: #121810; }
.visit-row { display: grid; grid-template-columns: 84px 1fr 28px; gap: 8px; align-items: center; margin: 6px 0; }
.visit-bar { height: 8px; border-radius: 999px; background: #2a3824; overflow: hidden; }
.visit-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #c7963a); }
.bill-block { margin: 8px 0 22px; }
.charge-list { display: grid; gap: 12px; margin: 8px 0 18px; }
.charge { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; }
a.charge { color: inherit; }
.charge-card { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-row { display: flex; gap: 8px; margin-top: 8px; }
.pay-row form { margin: 0; }
.pay-row button { padding: 8px 12px; }
.pay-row button.danger { background: var(--bad); color: #2a1210; }
.charge h2 { margin: 0; }
.charge strong { display: block; font-size: 28px; color: var(--gold); text-align: right; }
.charge-fold > summary { cursor: pointer; list-style: none; }
.charge-fold > summary::-webkit-details-marker { display: none; }
.fold-body { margin-top: 12px; }
.visit-row { grid-template-columns: 84px auto 1fr auto 1fr; }
.visit-split { color: var(--muted); font-size: 13px; white-space: nowrap; }
.visit-bar.web span { background: #b7e3a1; }
.bill-block h3 { margin: 16px 0 4px; font-size: 16px; }
.bill-block summary { cursor: pointer; color: var(--muted); margin: 6px 0; }
@media print {
  .ledger { max-height: none; overflow: visible; }
  .no-print { display: none !important; }
}
.game-title {
  background: linear-gradient(90deg, #fff6d8, var(--gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: title-in .6s ease both;
}
.glow { color: var(--gold); text-shadow: 0 0 12px rgba(226, 182, 87, .75); }
.arena { position: relative; overflow: hidden; }
.arena:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent, transparent 3px, rgba(0,0,0,.12) 4px);
  pointer-events: none;
}
.rank-row {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  animation: slide-in .28s ease both;
}
.rank-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.rank-num { font-size: 22px; font-weight: 800; color: var(--gold); min-width: 28px; text-shadow: 0 0 10px rgba(226, 182, 87, .8); }
.rank-name { flex: 1; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rank-pos { color: var(--muted); }
.member-note { margin: -4px 8px 12px; color: var(--muted); }
.badge { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1a1408; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.reply-now { margin: 8px 0 16px; padding: 12px; border: 1px solid var(--gold); border-radius: 16px; background: rgba(226, 182, 87, .08); }
.reply-now .inline { display: flex; gap: 8px; align-items: center; }
.reply-now input { flex: 1; }
.note { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.note.unread { border-left: 3px solid var(--gold); background: rgba(226, 182, 87, .08); }
.note time { display: block; color: var(--gold); font-size: 12px; letter-spacing: .04em; margin-top: 4px; }
.note small { display: block; color: var(--muted); margin-top: 4px; }
.bubble { max-width: 80%; background: #243022; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.bubble-name { display: block; color: var(--gold); font-size: 12px; margin-bottom: 2px; }
.bubble.mine { margin-left: auto; background: #3a3118; border-color: var(--gold); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-head .photo-frame { margin-left: auto; }
.photo-frame {
  flex: 0 0 140px;
  width: 140px;
  height: 176px;
  aspect-ratio: 4 / 5;
  padding: 6px;
  border-radius: 18px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(226, 182, 87, .18), inset 0 0 18px rgba(226, 182, 87, .2);
  background: linear-gradient(180deg, #2a2416, #12180f);
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 12px; display: block; }
.photo-frame.empty img { object-fit: contain; object-position: center; padding: 22px; box-sizing: border-box; }
.photo-frame.big { width: 140px; height: 176px; }
.photo-frame.logo { flex: 0 0 140px; width: 140px; height: 140px; aspect-ratio: 1; }
.photo-frame.logo.empty img { padding: 18px; }
.rank-row .photo-frame img { width: 100%; height: 100%; border: 0; border-radius: 7px; }
.photo-frame.tiny { flex: 0 0 42px; width: 42px; height: 42px; padding: 2px; border-radius: 10px; box-shadow: none; aspect-ratio: 1; }
.photo-frame.tiny img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; border-radius: 7px; padding: 0; }
.photo-frame.tiny.crest img { object-fit: contain; object-position: center; padding: 3px; }
.photo-frame.tiny.empty img { object-fit: contain; object-position: center; padding: 6px; }
.presence { position: relative; display: inline-flex; flex: none; }
.online-dot { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2px solid #10140f; box-shadow: 0 0 8px rgba(61, 220, 132, .85); }
.presence:has(.photo-frame.big) .online-dot { width: 16px; height: 16px; right: -4px; bottom: -4px; }
.body-line { display: flex; gap: 14px; color: var(--gold); font-weight: 800; letter-spacing: .04em; }
button:hover, .pill:hover { filter: brightness(1.08); transform: translateY(-1px); }
.slot, button, .pill { transition: transform .15s ease, filter .15s ease; }
.count { animation: pop .5s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes title-in { from { opacity: 0; letter-spacing: .2em; } to { opacity: 1; letter-spacing: 0; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 50% { filter: brightness(1.18); box-shadow: 0 0 22px rgba(226, 182, 87, .85); } }
.legal { margin: 28px auto 40px; max-width: 980px; padding: 0 16px; color: var(--muted); text-align: center; }
.legal p { margin: 4px 0; }
.terms-scroll { max-height: min(70vh, 640px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #121810; }
.contract article { border-top: 1px solid var(--line); padding-top: 12px; }
.contract h3 { margin: 0 0 6px; font-size: 16px; }
.contract p { margin: 0; line-height: 1.45; }
.check { display: flex; align-items: flex-start; }
.check input { width: auto; margin-top: 4px; padding: 0; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}
