/* ============ League of Intoxication — classic-client theme ============ */
:root {
  --ink: #2a1c0d; --ink-soft: #5c4222;
  --gold: #c8aa6e; --gold-bright: #f0e6d2; --gold-dark: #785a28; --gold-deep: #463714;
  --parch-1: #efe2c0; --parch-2: #ddc89c; --parch-3: #cbae7c;
  --bg-0: #010a13; --bg-1: #0a1320; --panel-dk: #091625;
  --red-1: #e84057; --red-2: #8c1320; --blue: #2f6fb0; --purple: #8a2bbf;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "EB Garamond", Georgia, serif; font-size: 16px; color: var(--ink);
  background:
    radial-gradient(900px 500px at 50% -8%, #1c3450 0%, transparent 60%),
    radial-gradient(1400px 800px at 50% 120%, #102036 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  background-attachment: fixed; min-height: 100vh; padding: 2rem 1.5rem;
}
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 0 0 280px 80px #000c; }

/* ===================== the client window ===================== */
.client {
  position: relative; z-index: 2; max-width: 1140px; margin: 0 auto;
  border: 2px solid var(--gold-dark); border-radius: 6px; overflow: hidden;
  background: var(--panel-dk);
  box-shadow: 0 0 0 1px #000, 0 0 0 4px #1b1206, 0 36px 80px -16px #000d, 0 0 90px #c8aa6e18;
}

/* ---- top bar ---- */
.client-top {
  display: flex; align-items: center; gap: 1.2rem; padding: .7rem 1.2rem;
  background: linear-gradient(180deg, #0d1c2e, #060f1a);
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: inset 0 -1px 0 #c8aa6e22, 0 4px 14px #0008;
}
.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand-mark { font-family: "Marcellus", serif; font-weight: 400; font-size: 1.35rem; color: var(--bg-0);
  width: 54px; height: 54px; display: grid; grid-auto-flow: column; place-items: center; letter-spacing: -2px;
  border-radius: 50%; border: 2px solid var(--gold-bright);
  background: radial-gradient(circle at 32% 28%, var(--gold-bright), var(--gold) 52%, var(--gold-dark));
  box-shadow: 0 0 18px #c8aa6e55, inset 0 0 14px #0007; }
.brand-mark small { font-size: .72rem; }
.brand-text h1 { font-family: "Marcellus", serif; font-weight: 400; letter-spacing: 1.5px; margin: 0;
  font-size: 1.15rem; line-height: 1; color: var(--gold); text-transform: uppercase; text-shadow: 0 2px 6px #000; }
.tagline { font-family: "Marcellus", serif; font-size: .58rem; letter-spacing: 4px; color: var(--gold-dark); text-transform: uppercase; }

/* champion roster strip */
.champ-strip { flex: 1 1 auto; display: flex; gap: .35rem; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 .5rem; min-width: 0; }
.portrait { position: relative; width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--gold-dark); cursor: default; transition: transform .12s, box-shadow .12s, border-color .12s;
  background: radial-gradient(circle at 35% 28%, hsl(var(--h) 55% 58%), hsl(var(--h) 60% 26%));
  box-shadow: inset 0 0 8px #0008, 0 2px 5px #0007; display: grid; place-items: center; }
.portrait span { font-family: "Marcellus", serif; font-weight: 400; font-size: .8rem; color: #fff;
  text-shadow: 0 1px 2px #000b; text-transform: uppercase; }
.portrait:hover { transform: translateY(-3px) scale(1.08); border-color: var(--gold-bright);
  box-shadow: inset 0 0 8px #0008, 0 0 14px #c8aa6e88; z-index: 3; }

/* profile chip */
.profile { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.currency { display: flex; flex-direction: column; gap: .15rem; font-family: "Marcellus", serif; font-size: .68rem; }
.currency .rp { color: #9fd0ff; } .currency .ip { color: var(--gold); }
.me { position: relative; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--bg-0);
  border: 2px solid var(--gold-bright);
  background: radial-gradient(circle at 35% 30%, #6fa8d8, #244a73);
  box-shadow: 0 0 14px #2f6fb066, inset 0 0 10px #0006; }
.level { position: absolute; bottom: -6px; right: -6px; font-family: "Marcellus", serif; font-weight: 400; font-size: .64rem;
  color: var(--gold-bright); background: var(--bg-0); border: 1px solid var(--gold-dark); border-radius: 10px;
  padding: .05rem .35rem; box-shadow: 0 1px 4px #000; }
.gear { background: none; border: 1px solid var(--gold-dark); color: var(--gold); width: 34px; height: 34px; border-radius: 4px;
  cursor: pointer; font-size: 1rem; transition: .15s; }
.gear:hover { color: var(--gold-bright); border-color: var(--gold); box-shadow: 0 0 10px #c8aa6e55; }

/* ---- tabs ---- */
.tabs { display: flex; align-items: flex-end; gap: 2px; padding: .35rem .8rem 0; background: linear-gradient(180deg, #07111d, #0a1626);
  border-bottom: 2px solid var(--gold-dark); }
.tab { font-family: "Marcellus", serif; font-weight: 600; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-dark); background: linear-gradient(180deg, #14233621, #0a162600); border: 1px solid transparent;
  border-bottom: none; padding: .55rem 1.1rem; border-radius: 5px 5px 0 0; cursor: pointer; transition: .15s; }
.tab em { font-style: normal; font-size: .55rem; color: #6f5a2e; letter-spacing: 0; }
.tab:not([disabled]):hover { color: var(--gold); background: #14253a; }
.tab.active { color: var(--bg-0); border-color: var(--gold-dark);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #b6924c);
  box-shadow: 0 -2px 10px #c8aa6e44; }
.tab[disabled] { opacity: .5; cursor: default; }
.tabs-fill { flex: 1; }

/* ===================== parchment content ===================== */
.parchment { position: relative; padding: 2.4rem 2.2rem 1.8rem;
  background: linear-gradient(180deg, var(--parch-1), var(--parch-2) 62%, var(--parch-3));
  box-shadow: inset 0 0 70px #00000026, inset 0 2px 0 #fff6; }
.parchment::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 18% 12%, #5c422218 0 1.5px, transparent 2px) 0 0/38px 38px,
    radial-gradient(circle at 66% 58%, #5c422214 0 1.5px, transparent 2px) 9px 9px/52px 52px; }
.ornament { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 1.4rem; color: var(--gold-dark); }
.corner { position: absolute; width: 26px; height: 26px; pointer-events: none; opacity: .8; }
.corner.tl { top: 10px; left: 10px; border-top: 2px solid var(--gold-dark); border-left: 2px solid var(--gold-dark); }
.corner.tr { top: 10px; right: 10px; border-top: 2px solid var(--gold-dark); border-right: 2px solid var(--gold-dark); }
.corner.bl { bottom: 10px; left: 10px; border-bottom: 2px solid var(--gold-dark); border-left: 2px solid var(--gold-dark); }
.corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--gold-dark); border-right: 2px solid var(--gold-dark); }

/* panels */
.panel { position: relative; margin-bottom: 1.4rem; padding: 1.2rem 1.4rem 1.4rem; border: 1px solid #785a2855; border-radius: 3px;
  background: linear-gradient(180deg, #ffffff26, #00000010); box-shadow: inset 0 1px 0 #ffffff66, 0 1px 4px #00000018; }
.panel-title { font-family: "Marcellus", serif; font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .98rem; color: #5a3614; margin: 0 0 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--gold-dark), #785a2800) 1; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 820px) { .columns { grid-template-columns: 1fr; } .champ-strip { display: none; } }

/* fields */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.field-row { display: flex; gap: .8rem; } .field-row .field { flex: 1; margin-bottom: .85rem; }
.field.skin { max-width: 5.5rem; }
label { font-family: "Marcellus", serif; font-size: .6rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
input, select { font-family: "EB Garamond", serif; font-size: 1rem; color: var(--ink); width: 100%; padding: .5rem .6rem;
  border: 1px solid var(--gold-dark); border-radius: 2px; background: linear-gradient(180deg, #fffdf3, #efe1bf);
  box-shadow: inset 0 1px 3px #0000001f; }
input::placeholder { color: #9a8049; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px #c8aa6e55, inset 0 1px 3px #0000001f; }

/* buttons */
.actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.btn { font-family: "Marcellus", serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  padding: .6rem 1.15rem; font-size: .76rem; border-radius: 2px; border: 1px solid var(--gold-dark);
  transition: filter .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-gold { color: #2a1c0d; border-color: var(--gold-bright);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-dark)); box-shadow: 0 2px 8px #0005, inset 0 1px 0 #fff9; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost { color: #5a3614; background: linear-gradient(180deg, #ffffff33, #00000010); }
.btn-ghost:hover { background: #ffffff44; border-color: var(--gold); }
.btn-play { position: relative; display: block; width: 100%; margin-top: 1.1rem; text-align: center; text-decoration: none; overflow: hidden;
  font-family: "Marcellus", serif; font-weight: 400; font-size: 1.4rem; letter-spacing: 5px; color: #fff5f6; padding: .9rem;
  border: 2px solid #ffb3bd; border-radius: 3px; text-shadow: 0 2px 6px #000a;
  background: linear-gradient(180deg, #ff6a79, var(--red-1) 46%, var(--red-2));
  box-shadow: 0 5px 20px #8c132077, inset 0 1px 0 #fff7, inset 0 -10px 24px #00000044; }
.btn-play span { position: relative; z-index: 2; }
.btn-play::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, #ffffff66, transparent); transform: skewX(-20deg); animation: sheen 3.4s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { left: -60%; } 85%, 100% { left: 160%; } }
.btn-play:hover { filter: brightness(1.07); box-shadow: 0 8px 26px #e8405799, inset 0 1px 0 #fff9, inset 0 -10px 24px #00000044; }

/* players */
.players { display: flex; flex-direction: column; gap: .5rem; }
.player-card { display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; border-radius: 2px;
  background: linear-gradient(90deg, #ffffff33, #ffffff0a); border: 1px solid #785a2840; border-left: 4px solid var(--gold-dark);
  box-shadow: inset 0 1px 0 #ffffff55; animation: cardIn .25s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateX(-8px); } }
.player-card.blue { border-left-color: var(--blue); } .player-card.purple { border-left-color: var(--purple); }
.player-card .pid { font-family: "Marcellus", serif; color: var(--gold-dark); font-size: .8rem; min-width: 2.4em; }
.player-card .pname { font-weight: 600; font-size: 1.1rem; }
.player-card .pchamp { color: var(--ink-soft); font-style: italic; }
.player-card .pteam { margin-left: auto; font-family: "Marcellus", serif; font-size: .6rem; letter-spacing: 1px; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 2px; background: #0000000f; border: 1px solid #785a2840; }
.empty { color: var(--ink-soft); font-style: italic; text-align: center; padding: .9rem; opacity: .8; }

/* messages */
.msg { min-height: 1.3em; text-align: center; font-family: "Marcellus", serif; font-weight: 600; font-size: .8rem; letter-spacing: .5px; margin-bottom: 1rem; }
.msg.err:not(:empty) { color: #7a0f1d; padding: .5rem; border-radius: 2px; background: #e8405722; border: 1px solid #8c132066; }
.msg.info:not(:empty) { color: #3c5a18; padding: .5rem; border-radius: 2px; background: #5a7a2022; border: 1px solid #5a7a2055; }

/* launch */
.launch-text { text-align: center; font-size: 1.05rem; color: var(--ink-soft); }

/* ---- bottom bar ---- */
.client-bottom { display: flex; align-items: center; gap: 1.5rem; padding: .5rem 1.4rem;
  background: linear-gradient(180deg, #0a1626, #060f1a); border-top: 2px solid var(--gold-dark);
  font-family: "Marcellus", serif; font-size: .72rem; letter-spacing: 1px; color: var(--gold); }
.client-bottom .status { color: var(--gold-bright); }
.client-bottom .online { margin-left: auto; } .client-bottom .online strong { color: var(--gold-bright); }
.client-bottom .chat { color: var(--gold-dark); }
