:root {
  --bg: #120a24; --bg2: #1d1236; --card: #241743; --line: #3a2a63; --ink: #0c0618;
  --text: #fff7ec; --mute: #b9acd6; --orange: #ff7a1f; --yellow: #ffd23a; --pink: #ff2fa0; --green: #2fd36b; --red: #ff5a5a; --cyan: #3fe0ff;
  --head: 'Lilita One', 'Arial Black', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(1200px 600px at 20% -10%, #3a1a6a, transparent), radial-gradient(900px 500px at 110% 10%, #5a1a3a, transparent), var(--bg); color: var(--text); font-family: var(--body); }
a { color: var(--yellow); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.5px; margin: 0 0 10px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand { font-family: var(--head); font-size: 26px; text-decoration: none; color: var(--text); }
.brand b { color: var(--orange); }
.nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 18px var(--head); color: var(--text); background: linear-gradient(180deg, #4a2a8a, #2a1250); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 18px; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: transform .08s; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.go { background: linear-gradient(180deg, #ff9d3a, #e0560f); }
.btn.green { background: linear-gradient(180deg, #2fd36b, #138a3e); }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; font-family: var(--body); font-weight: 800; font-size: 15px; }
.btn.small { font-size: 14px; padding: 6px 10px; border-radius: 9px; box-shadow: 0 3px 0 var(--ink); }
.btn.danger { background: linear-gradient(180deg, #ff6a6a, #b81d1d); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 18px; }
.grid { display: grid; gap: 14px; }
.cols2 { grid-template-columns: 1.2fr 1fr; } @media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 800; font-size: 14px; color: var(--mute); margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: 16px var(--body); color: var(--text); background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mute { color: var(--mute); } .small { font-size: 13px; }
.err { color: var(--red); font-weight: 800; min-height: 20px; margin-top: 8px; }
.ok { color: var(--green); font-weight: 800; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 900; background: #ffffff1a; }
.pill.green { background: #2fd36b33; color: #7dffaa; } .pill.red { background: #ff5a5a33; color: #ffaaaa; } .pill.yellow { background: #ffd23a33; color: var(--yellow); } .pill.cyan { background: #3fe0ff26; color: var(--cyan); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan { position: relative; background: var(--bg2); border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color .1s, transform .1s; }
.plan:hover { transform: translateY(-2px); } .plan.sel { border-color: var(--orange); box-shadow: 0 0 0 3px #ff7a1f44; }
.plan .pn { font: 22px var(--head); } .plan .pp { font: 34px var(--head); color: var(--yellow); } .plan .pp small { font-size: 14px; color: var(--mute); font-family: var(--body); }
.plan .tag { position: absolute; top: -10px; right: 12px; background: var(--pink); color: #fff; font: 12px var(--head); padding: 3px 10px; border-radius: 99px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.game { border-radius: 14px; padding: 14px 12px; font: 17px var(--head); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); min-height: 74px; display: flex; flex-direction: column; justify-content: flex-end; }
.game small { font-family: var(--body); font-weight: 800; font-size: 11px; opacity: .85; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { font: 16px var(--head); background: transparent; color: var(--mute); border: 2px solid var(--line); border-radius: 10px; padding: 7px 14px; cursor: pointer; }
.tab.on { color: var(--text); border-color: var(--orange); background: #ff7a1f22; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--mute); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 8px; border-bottom: 2px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #ffffff06; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.stat { background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font: 30px var(--head); color: var(--yellow); } .stat span { color: var(--mute); font-weight: 800; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 900; }
.switch input { display: none; } .switch i { width: 46px; height: 26px; border-radius: 99px; background: #4a3a70; position: relative; transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + i { background: var(--green); } .switch input:checked + i::after { left: 23px; }
.banner { border-radius: 14px; padding: 12px 16px; font-weight: 800; margin-bottom: 14px; border: 2px solid; }
.banner.warn { background: #ffd23a1a; border-color: #ffd23a66; } .banner.good { background: #2fd36b1a; border-color: #2fd36b66; } .banner.bad { background: #ff5a5a1a; border-color: #ff5a5a66; }
.modal { position: fixed; inset: 0; background: #0009; display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal .card { width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.copy { cursor: pointer; } .copy:hover { color: var(--yellow); }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.chart div { flex: 1; background: linear-gradient(180deg, var(--orange), #b0400a); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); padding: 3px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; }

.game { position: relative; }
.age { position: absolute; top: 8px; right: 8px; font: 900 11px var(--body); background: #ffffffe6; color: #1a1420; border-radius: 6px; padding: 2px 6px; }
.age.teen { background: #ff5a5a; color: #fff; }
