/* ===== LoL Champion Randomizer – Hextech-Look ===== */
.lol {
  --gold: #c8aa6e; --gold-l: #f0e6d2; --gold-d: #785a28;
  --teal: #0ac8b9; --teal-d: #005a82; --navy: #010a13; --navy2: #0a1428; --navy3: #091428;
  min-height: 100vh; display: flex; flex-direction: column; position: relative;
  background: var(--navy); color: var(--gold-l); overflow: hidden;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.lol-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lol-bg .art { position: absolute; inset: -30px; background-size: cover; background-position: center 20%; filter: blur(3px) saturate(1.1); opacity: 0; transform: scale(1.05); transition: opacity 1.2s ease, transform 8s ease; }
.lol-bg .art.on { opacity: .28; transform: scale(1); }
.lol-bg .shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% -10%, #0ac8b922, transparent 55%),
  radial-gradient(ellipse at 50% 120%, #c8aa6e1f, transparent 60%),
  linear-gradient(180deg, #010a13cc, #010a13ee 70%, #010a13); }
.lol-bg .hex { position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32V66' fill='none' stroke='%23c8aa6e' stroke-width='1'/%3E%3C/svg%3E"); }
.lol-bg .mote { position: absolute; width: 3px; height: 3px; background: var(--gold); box-shadow: 0 0 8px var(--gold); opacity: 0; animation: mote linear infinite; }
@keyframes mote { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } 90% { opacity: .6; } 100% { transform: translateY(-80vh); opacity: 0; } }

.lol-top, .lol-team, .lol-dock { position: relative; z-index: 1; }

/* Topbar */
.lol-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px clamp(14px, 2.5vw, 36px); border-bottom: 1px solid #c8aa6e33; background: linear-gradient(180deg, #010a13, #010a1300); }
.lol-top .left, .lol-top .right { display: flex; align-items: center; gap: 10px; }
.lol-top .right { justify-content: flex-end; }
.lol-title { text-align: center; }
.lol-title .t { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(18px, 2.2vw, 30px); letter-spacing: 4px; background: linear-gradient(180deg, var(--gold-l), var(--gold) 60%, var(--gold-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lol-title .s { font-size: 12px; letter-spacing: 3px; color: #a09b8c; text-transform: uppercase; }
.hx-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #c8aa6e66; color: var(--gold-l); background: #010a13aa; font-size: 14px; transition: .15s; white-space: nowrap; text-decoration: none; }
.hx-btn:hover { border-color: var(--gold); background: #1e2328; }
.hx-btn svg { width: 16px; height: 16px; }
.hx-btn.teal { border-color: #0ac8b977; color: #cdfafa; }
.hx-btn.teal:hover { border-color: var(--teal); background: #0ac8b91a; }
.hx-btn:disabled { opacity: .4; cursor: not-allowed; }
.codechip { font-family: 'Cinzel'; font-weight: 800; letter-spacing: 4px; padding: 7px 14px; border: 1px solid var(--gold-d); background: linear-gradient(180deg, #1e2328, #010a13); cursor: pointer; color: var(--gold); }
.codechip:hover { border-color: var(--gold); }
.lobbyname { font-weight: 700; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Team */
.lol-team { flex: 1; display: grid; gap: clamp(8px, 1.2vw, 18px); padding: clamp(14px, 2vw, 28px) clamp(14px, 2.5vw, 36px); grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); align-items: stretch; min-height: 0; }
.lol-team.many { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; min-height: clamp(360px, calc(100vh - 290px), 760px); background: linear-gradient(180deg, #0a1428, #010a13); border: 1px solid #c8aa6e55;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); animation: cardIn .5s cubic-bezier(.2, 1, .3, 1) backwards; }
.lol-team.many .pcard { min-height: clamp(300px, calc(50vh - 160px), 420px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.pcard::before { content: ''; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, var(--gold), transparent 30%, transparent 70%, var(--gold-d)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.pcard.me { border-color: #0ac8b988; box-shadow: inset 0 0 40px #0ac8b922; }
.pcard.me::before { background: linear-gradient(180deg, var(--teal), transparent 35%, transparent 70%, var(--teal-d)) border-box; }
.pcard.offline { filter: grayscale(.7) brightness(.7); }

.pc-role { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #c8aa6e2a; background: #010a1399; z-index: 2; }
.pc-role .ricon { width: 30px; height: 30px; color: var(--gold); flex: none; }
.pc-role .ricon svg { width: 100%; height: 100%; }
.pc-role .rlabel { font-family: 'Cinzel'; font-weight: 800; letter-spacing: 2px; font-size: 15px; }
.pc-role .rsub { font-size: 11px; color: #a09b8c; letter-spacing: 1px; text-transform: uppercase; }
.pc-role.spin .ricon { animation: rflick .09s steps(1) infinite; color: var(--teal); }
@keyframes rflick { 50% { opacity: .55; } }
.pc-role.land .ricon { animation: rland .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes rland { from { transform: scale(1.7); filter: drop-shadow(0 0 12px var(--teal)); } }

.pc-art { position: relative; flex: 1; overflow: hidden; min-height: 160px; background: radial-gradient(ellipse at 50% 40%, #0a3247 0%, #010a13 75%); }
.pc-art .full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; animation: artIn .9s cubic-bezier(.2, .9, .3, 1); }
@keyframes artIn { from { transform: scale(1.25); filter: brightness(2.2) blur(6px); opacity: 0; } }
.pc-art .vignette { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #010a13 98%); pointer-events: none; z-index: 1; }
.pc-art .empty { position: absolute; inset: 0; display: grid; place-items: center; }
.pc-art .empty svg { width: 42%; max-width: 120px; color: #c8aa6e; opacity: .35; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .15; transform: scale(.94); } }
.pc-art .flash { position: absolute; inset: 0; background: radial-gradient(circle, #f0e6d2, #0ac8b9 40%, transparent 70%); z-index: 4; pointer-events: none; animation: flash .7s ease-out forwards; }
@keyframes flash { from { opacity: .95; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }

/* Reel */
.reel { position: absolute; inset: 0; overflow: hidden; z-index: 2; }
.reel-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-tile { position: relative; width: 100%; overflow: hidden; border-bottom: 2px solid #010a13; }
.reel-tile > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-tile .nm { position: absolute; inset: auto 0 0 0; height: auto; padding: 4px 8px; font-family: 'Cinzel'; font-weight: 800; font-size: 13px; background: linear-gradient(transparent, #000c); z-index: 1; }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 32%; z-index: 3; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#010a13, #010a1300); }
.reel::after { bottom: 0; background: linear-gradient(#010a1300, #010a13); }
.reel .marker { position: absolute; left: 0; right: 0; z-index: 4; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); box-shadow: 0 0 22px #c8aa6e88, inset 0 0 22px #c8aa6e44; pointer-events: none; }
.reel .marker::before, .reel .marker::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; border: 8px solid transparent; transform: translateY(-50%); }
.reel .marker::before { left: 0; border-left-color: var(--gold); }
.reel .marker::after { right: 0; border-right-color: var(--gold); }

/* Platzhalter, wenn Bilder fehlen */
.ph { display: grid; place-items: center; font-family: 'Cinzel'; font-weight: 800; color: #f0e6d2cc; text-shadow: 0 2px 10px #000; overflow: hidden; }
.ph span { font-size: clamp(20px, 3vw, 44px); letter-spacing: 2px; }
.ph.big span { font-size: clamp(34px, 5vw, 80px); opacity: .9; }

.pc-info { padding: 12px 14px 16px; z-index: 2; background: linear-gradient(180deg, #010a13 0%, #0a1428 100%); border-top: 1px solid #c8aa6e2a; }
.pc-champ { font-family: 'Cinzel'; font-weight: 800; font-size: clamp(17px, 1.6vw, 26px); line-height: 1.1; color: var(--gold-l); min-height: 1.1em; }
.pc-champ.reveal { animation: nameIn .7s cubic-bezier(.2, 1, .3, 1); }
@keyframes nameIn { from { letter-spacing: 12px; opacity: 0; } }
.pc-champ.muted { color: #5b5a56; }
.pc-ctitle { font-size: 12px; color: #a09b8c; text-transform: uppercase; letter-spacing: 1.5px; min-height: 16px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-player { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: #cdbe91; }
.pc-player .dot { width: 8px; height: 8px; background: #3a3a3a; flex: none; transform: rotate(45deg); }
.pc-player .dot.on { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.pc-player .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-player .tag { font-size: 10px; letter-spacing: 1.5px; padding: 2px 6px; border: 1px solid; flex: none; }
.pc-player .tag.you { color: var(--teal); border-color: #0ac8b977; }
.pc-player .tag.host { color: var(--gold); border-color: #c8aa6e77; }
.pc-kick { position: absolute; top: 10px; right: 10px; z-index: 5; width: 26px; height: 26px; display: grid; place-items: center; color: #a09b8c; border: 1px solid #c8aa6e44; background: #010a13cc; opacity: 0; transition: .15s; }
.pcard:hover .pc-kick { opacity: 1; }
.pc-kick:hover { color: #ff6b6b; border-color: #ff6b6b; }
.pc-rr { position: absolute; top: 58px; right: 10px; z-index: 5; font-size: 11px; letter-spacing: 1px; color: #cdfafa; background: #010a13cc; border: 1px solid #0ac8b955; padding: 3px 7px; }

/* Dock */
.lol-dock { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 16px clamp(14px, 2.5vw, 36px) 22px; border-top: 1px solid #c8aa6e33; background: linear-gradient(0deg, #010a13 40%, #010a13cc); }
.roles { display: flex; gap: 6px; flex-wrap: wrap; }
.rbtn { width: 58px; height: 58px; display: grid; place-items: center; position: relative; border: 1px solid #c8aa6e44; background: #1e2328aa; color: #a09b8c; transition: .15s; }
.rbtn svg { width: 30px; height: 30px; }
.rbtn:hover { color: var(--gold-l); border-color: var(--gold); }
.rbtn.on { color: var(--gold-l); border-color: var(--gold); background: linear-gradient(180deg, #785a2866, #1e2328); box-shadow: 0 0 18px #c8aa6e44, inset 0 0 12px #c8aa6e33; }
.rbtn .lbl { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 1px; white-space: nowrap; color: #a09b8c; opacity: 0; transition: .15s; pointer-events: none; }
.rbtn:hover .lbl, .rbtn.on .lbl { opacity: 1; }
.rbtn.on .lbl { color: var(--gold); }
.rbtn.taken::after { content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; background: #ff6b6b; transform: rotate(45deg); }

.bigbtn { position: relative; min-width: clamp(220px, 22vw, 340px); padding: 18px 36px; font-family: 'Cinzel'; font-weight: 800; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: 5px; color: #f0e6d2;
  background: linear-gradient(180deg, #0a323c, #01131b); border: 2px solid transparent; overflow: hidden;
  border-image: linear-gradient(180deg, #f0e6d2, #c8aa6e 40%, #785a28) 1; box-shadow: 0 0 30px #0ac8b933, inset 0 0 26px #0ac8b944; transition: transform .12s, box-shadow .2s; }
.bigbtn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, #cdfafa33, transparent); transform: skewX(-20deg); animation: sweep 3.2s ease-in-out infinite; }
@keyframes sweep { 60%, 100% { left: 130%; } }
.bigbtn:hover { box-shadow: 0 0 46px #0ac8b966, inset 0 0 34px #0ac8b977; transform: translateY(-1px); }
.bigbtn:active { transform: translateY(1px) scale(.99); }
.bigbtn:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; }
.bigbtn small { display: block; font-family: 'Space Grotesk'; font-weight: 500; font-size: 11px; letter-spacing: 2px; color: #a3c9c6; margin-top: 2px; }
.dock-right { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Settings-Panel */
.lol-settings { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 60; background: linear-gradient(180deg, #0a1428, #010a13); border-left: 1px solid var(--gold-d); padding: 26px; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .9, .3, 1); overflow-y: auto; box-shadow: -30px 0 60px #000a; }
.lol-settings.open { transform: none; }
.lol-settings h3 { font-family: 'Cinzel'; color: var(--gold); letter-spacing: 3px; margin: 0 0 4px; font-size: 22px; }
.lol-settings .hint { color: #a09b8c; font-size: 13px; margin-bottom: 22px; }
.lol-settings .grp { margin-bottom: 24px; }
.lol-settings .grp > .gl { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #a09b8c; margin-bottom: 10px; }
.opt { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid #c8aa6e33; background: #1e232866; margin-bottom: 8px; transition: .15s; }
.opt b { display: block; font-family: 'Cinzel'; color: var(--gold-l); letter-spacing: 1px; }
.opt span { font-size: 13px; color: #a09b8c; }
.opt.on { border-color: var(--gold); background: linear-gradient(90deg, #785a2844, #1e232866); box-shadow: inset 3px 0 0 var(--gold); }
.opt:disabled { cursor: default; }
.stepper { display: flex; align-items: center; gap: 0; }
.stepper button { width: 44px; height: 44px; border: 1px solid #c8aa6e55; color: var(--gold); font-size: 20px; }
.stepper div { width: 64px; height: 44px; display: grid; place-items: center; border-top: 1px solid #c8aa6e55; border-bottom: 1px solid #c8aa6e55; font-family: 'Cinzel'; font-weight: 800; font-size: 20px; }
.lol .switch input:checked + i { background: var(--teal); }
.poolinfo { font-size: 13px; color: #a3c9c6; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px; }
.poolinfo div { border: 1px solid #0ac8b933; padding: 8px 4px; text-align: center; }
.poolinfo svg { width: 20px; height: 20px; display: block; margin: 0 auto 4px; color: var(--gold); }
.lol-scrim { position: fixed; inset: 0; z-index: 55; background: #0008; opacity: 0; pointer-events: none; transition: .3s; }
.lol-scrim.open { opacity: 1; pointer-events: auto; }

@media (max-width: 1100px) {
  .lol-team, .lol-team.many { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .pcard, .lol-team.many .pcard { min-height: 380px; }
  .lol-dock { grid-template-columns: 1fr; justify-items: center; }
  .dock-right { justify-content: center; }
}
@media (max-width: 640px) {
  .lol-top { grid-template-columns: 1fr auto; }
  .lol-title { display: none; }
  .lobbyname { display: none; }
  .rbtn { width: 50px; height: 50px; }
}
