/* Tela de personagens (jogar.html) no visual do site Seiken World: madeira escura, moldura dourada, Cinzel. */
body.lobbypage {
  --gold: #e8c165; --gold-2: #b8862e; --gold-3: #7a5418; --wood: #2a1a10; --wood-2: #3d2616; --parch: #f3e6c8; --parch-2: #e8d5aa;
  font-family: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif; color: var(--parch);
}
/* fundo: Jad mais escura e desfocada, com degradê nas bordas */
body.lobbypage #bg { filter: blur(2px) brightness(.55) saturate(.85); transform: scale(1.03); }
body.lobbypage .vignette { background: radial-gradient(ellipse at 50% 35%, rgba(10, 8, 20, .15), rgba(6, 4, 12, .85) 75%), linear-gradient(180deg, rgba(10, 6, 4, .55), transparent 25%, transparent 70%, rgba(10, 6, 4, .8)); }
body.lobbypage .logo, body.lobbypage .sitelink { display: none; }
body.lobbypage .muted { color: #c8b48a; }

/* ---------- barra de cima ---------- */
.lbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 18px;
  background: linear-gradient(180deg, var(--wood-2), var(--wood)); border-bottom: 2px solid var(--gold-3);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(232, 193, 101, .25);
}
.lback { justify-self: start; color: var(--gold); text-decoration: none; font: 700 14px 'Cinzel', serif; letter-spacing: .05em; padding: 6px 12px; border: 1px solid var(--gold-3); border-radius: 5px; }
.lback:hover { background: rgba(232, 193, 101, .12); border-color: var(--gold); }
.lmark svg { display: block; width: 210px; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .8)); }
.lright { justify-self: end; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
body.lobbypage #langbox { position: static; }
body.lobbypage #langbox button { padding: 3px 9px !important; font-size: 12px !important; }
.lacct { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lacct b { color: var(--gold); }

/* ---------- botões ---------- */
body.lobbypage button.lbtn, body.lobbypage .lbtn {
  background: transparent; color: var(--gold); border: 1px solid var(--gold-3); border-radius: 5px; padding: 5px 12px; font: 700 13px 'Cinzel', serif; box-shadow: none;
}
body.lobbypage button.lbtn:hover { border-color: var(--gold); background: rgba(232, 193, 101, .12); }
body.lobbypage button.lplay {
  font: 700 16px 'Cinzel', serif; letter-spacing: .05em; padding: 10px 22px; border-radius: 6px; color: #04261c;
  background: linear-gradient(180deg, #b9ffe8, #44c9a3 55%, #1f8a6c); border: 1px solid #9ff0d8; box-shadow: 0 2px 0 #0e4d3c, 0 0 16px rgba(89, 224, 192, .35);
}
body.lobbypage button.lplay:hover { filter: brightness(1.08); }

/* ---------- molduras (login, criação, aviso) ---------- */
.lframe { background: linear-gradient(180deg, rgba(61, 38, 22, .96), rgba(42, 26, 16, .96)); border: 2px solid var(--gold-3); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(232, 193, 101, .25); padding: 6px; }
.lhead { margin: 0; padding: 8px 14px; color: var(--gold); font: 700 15px 'Cinzel', serif; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(180deg, #6b2a18, #3b140b); border: 1px solid var(--gold-2); border-radius: 5px; text-shadow: 0 1px 2px #000; }
.lhead::before { content: '◆ '; color: var(--gold-2); font-size: 11px; }
.lin { padding: 12px 12px 6px; }
body.lobbypage .authwin { width: min(92vw, 400px); margin: 9vh auto 0; }
body.lobbypage .tabs2 button { font-family: 'Cinzel', serif; }
body.lobbypage input { background: #1a100a; border: 1px solid var(--gold-3); color: #fff; }
body.lobbypage input:focus { border-color: var(--gold); }
body.lobbypage .authwin label { color: var(--parch-2); }

/* ---------- título ---------- */
.lobby { padding-top: 6px; }
.ltitle { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 26px 0 4px; }
.ltitle h2 { margin: 0; font: 900 30px 'Cinzel', serif; color: #fff1c8; letter-spacing: .06em; text-shadow: 0 2px 0 #3a2208, 0 6px 18px #000; }
.ltitle .orn { height: 2px; width: min(18vw, 160px); background: linear-gradient(90deg, transparent, var(--gold)); position: relative; }
.ltitle .orn.r { background: linear-gradient(270deg, transparent, var(--gold)); }
.ltitle .orn::after { content: '◆'; position: absolute; right: -6px; top: -9px; color: var(--gold); font-size: 12px; }
.ltitle .orn.r::after { left: -6px; right: auto; }
.lstatus { text-align: center; margin-bottom: 18px; color: var(--parch-2); font-size: 14px; }
.lstatus .dotlive, body.lobbypage .dotlive { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ad06a; box-shadow: 0 0 8px #3ad06a; margin-right: 4px; }

/* ---------- cartões dos personagens ---------- */
body.lobbypage .slots2 { grid-template-columns: repeat(auto-fill, minmax(230px, 250px)); gap: 18px; }
body.lobbypage .slot2.card {
  padding: 0; gap: 0; overflow: hidden; border-radius: 10px; color: var(--parch);
  background: linear-gradient(180deg, #3d2616, #22140b); border: 2px solid var(--gold-3);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(232, 193, 101, .22); transition: transform .15s, box-shadow .15s, border-color .15s;
}
body.lobbypage .slot2.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold), 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
.card .cbanner { width: 100%; padding: 8px 10px 7px; background: linear-gradient(180deg, #6b2a18, #3b140b); border-bottom: 1px solid var(--gold-2); }
.card .cname { font: 700 19px 'Cinzel', serif; color: #fff1c8; text-shadow: 0 1px 2px #000; }
.card .cclass { font: 600 13px 'Alegreya Sans', sans-serif; letter-spacing: .03em; }
.card .stage { position: relative; width: 100%; height: 150px; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 62%, color-mix(in srgb, var(--c) 45%, transparent), transparent 62%), radial-gradient(ellipse at 50% 100%, rgba(232, 193, 101, .18), transparent 60%); }
.card .stage::after { content: ''; position: absolute; bottom: 20px; left: 50%; width: 96px; height: 18px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 193, 101, .55), rgba(122, 84, 24, .35) 55%, transparent 72%); box-shadow: 0 0 18px rgba(232, 193, 101, .35); }
.card .stage canvas { width: 120px; height: 120px; image-rendering: pixelated; position: relative; z-index: 1; margin-bottom: 14px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); }
.card .lvl { position: absolute; top: 10px; left: 10px; z-index: 2; font: 900 13px 'Cinzel', serif; color: #2a1404; background: linear-gradient(180deg, #ffe7a0, #e0a83a); border: 1px solid #7a5418; border-radius: 999px; padding: 2px 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.card .gtag { font: 700 11px system-ui; color: #9bc8ff; margin-left: 4px; }
.card .cinfo { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 8px 14px; font-size: 13px; color: var(--parch-2); border-top: 1px solid rgba(232, 193, 101, .18); }
.card .cinfo span { display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cinfo span:first-child { grid-column: 1 / -1; }
.card .cact { width: 100%; padding: 4px 14px 14px; }
.card .cact button.lplay { width: 100%; }
body.lobbypage .slot2 .del { position: absolute; top: 8px; right: 8px; z-index: 3; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; font-size: 14px; border-radius: 6px;
  background: rgba(20, 10, 6, .7); color: #e0b0a0; border: 1px solid rgba(232, 193, 101, .3); opacity: 0; transition: opacity .15s; }
body.lobbypage .slot2.card:hover .del, body.lobbypage .slot2 .del:focus { opacity: 1; }
body.lobbypage .slot2 .del:hover { color: #fff; background: #8a1f1a; border-color: #ff8a7a; }
body.lobbypage .slot2.empty {
  min-height: 330px; border-radius: 10px; background: rgba(42, 26, 16, .55) !important; border: 2px dashed rgba(232, 193, 101, .55) !important;
  color: var(--parch-2) !important; font: 700 15px 'Cinzel', serif; box-shadow: none; transition: background .15s, border-color .15s;
}
body.lobbypage .slot2.empty:hover { background: rgba(61, 38, 22, .8) !important; border-color: var(--gold) !important; }
body.lobbypage .slot2.empty .plus { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 10px; font-size: 40px; color: #2a1404; background: radial-gradient(circle at 40% 35%, #ffe7a0, #c08a20); box-shadow: 0 0 18px rgba(232, 193, 101, .45); }

/* ---------- criação ---------- */
body.lobbypage .createwin { margin: 24px auto 0; max-width: 1000px; }
body.lobbypage .createwin h3 { font-family: 'Cinzel', serif; }
body.lobbypage .hero2 { background: linear-gradient(180deg, #3d2616, #22140b) !important; border: 2px solid var(--gold-3) !important; border-radius: 8px; color: var(--parch) !important; padding: 8px 4px !important; }
body.lobbypage .hero2:hover { border-color: var(--gold) !important; }
body.lobbypage .hero2.on { border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(232, 193, 101, .4), inset 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
body.lobbypage .hero2 b { font-family: 'Cinzel', serif; }
body.lobbypage .hero2 span { color: #c8b48a; }
body.lobbypage .herodesc { color: var(--parch); }
body.lobbypage .lookpick { background: rgba(0, 0, 0, .25); border-radius: 8px; padding: 8px; }
body.lobbypage .lookprev { background: radial-gradient(ellipse at 50% 70%, rgba(232, 193, 101, .25), rgba(20, 12, 6, .6) 70%) !important; border: 1px solid var(--gold-3) !important; }

.lfoot { position: relative; z-index: 2; text-align: center; color: #8a7458; font-size: 12px; padding: 30px 10px 24px; }

@media (max-width: 760px) {
  .lbar { grid-template-columns: auto 1fr; }
  .lmark { grid-row: 1; grid-column: 2; justify-self: end; }
  .lmark svg { width: 140px; }
  .lright { grid-column: 1 / -1; justify-content: space-between; }
  .ltitle h2 { font-size: 22px; }
  body.lobbypage .slots2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* abas do login e botões do seletor de visual no tema do site */
body.lobbypage .tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
body.lobbypage .tabs2 button { background: rgba(20, 12, 6, .6) !important; color: var(--parch-2) !important; border: 1px solid var(--gold-3) !important; box-shadow: none !important; }
body.lobbypage .tabs2 button.on { background: linear-gradient(180deg, #ffe7a0, #e0a83a) !important; color: #2a1404 !important; border-color: var(--gold) !important; }
body.lobbypage .lookpick button.cb, body.lobbypage .lookpick [data-rand] {
  background: rgba(20, 12, 6, .65) !important; color: var(--parch-2) !important; border: 1px solid var(--gold-3) !important; box-shadow: none !important; font-weight: 600;
}
body.lobbypage .lookpick button.cb:hover, body.lobbypage .lookpick [data-rand]:hover { border-color: var(--gold) !important; color: #fff !important; }
body.lobbypage .lookpick button.cb.on { background: linear-gradient(180deg, #ffe7a0, #e0a83a) !important; color: #2a1404 !important; border-color: var(--gold) !important; }
body.lobbypage .lookpick .lrow > span { color: var(--gold); font-family: 'Cinzel', serif; letter-spacing: .06em; }
body.lobbypage .lookpick .sw.on { box-shadow: 0 0 0 2px var(--gold) !important; }
@media (max-width: 760px) { .ltitle .orn { display: none; } .ltitle { margin-top: 18px; } }
