﻿.lobby-page { --neon: #ff8a1f; --neon-hot: #ffb35a; --neon-core: #fff1dc; --neon-glow: rgba(255, 128, 20, .6); --wood: #3a2112; --panel-bg: rgba(22, 11, 6, .74); --panel-line: rgba(255, 150, 60, .2); --t-whale: #ffd166; --t-dolphin: #5fd4ff; --t-fish: #7ee08a; --t-shrimp: #ff8fa3; background: #0d0604; min-height: 100vh; }
.lobby-page ::selection { background: var(--neon); color: #1a0a02; }
.lobby-page .fx-scan::after { background: linear-gradient(to bottom, transparent, rgba(255, 150, 50, .045), transparent); }

.lodge { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lodge__logs { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 50% 108%, rgba(255, 120, 30, .28), transparent 60%),
  linear-gradient(180deg, rgba(8, 3, 1, .82) 0%, rgba(8, 3, 1, .35) 45%, rgba(8, 3, 1, .55) 100%),
  repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 37px, rgba(0, 0, 0, .09) 38px, rgba(0, 0, 0, 0) 41px, rgba(255, 200, 150, .025) 43px, rgba(0, 0, 0, 0) 47px),
  repeating-linear-gradient(180deg, #120804 0, #3b2112 5px, #55301a 16px, #603820 26px, #4c2b17 40px, #2e190c 54px, #140904 62px, #0a0402 66px); }
.lodge__beams { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 4, 2, .95) 0, #2a170b 1.6%, #3e2413 3.2%, rgba(10, 4, 2, .9) 4.4%, transparent 4.6%, transparent 95.4%, rgba(10, 4, 2, .9) 95.6%, #3e2413 96.8%, #2a170b 98.4%, rgba(10, 4, 2, .95) 100%); opacity: .9; }
.lodge__fire { position: absolute; left: 50%; bottom: -30vh; width: 140vw; height: 70vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 140, 40, .34), rgba(255, 90, 20, .12) 55%, transparent 75%); filter: blur(10px); animation: fire-breathe 3.2s ease-in-out infinite alternate; }
@keyframes fire-breathe { 0% { opacity: .75; transform: translateX(-50%) scale(1); } 40% { opacity: .95; } 70% { opacity: .82; transform: translateX(-50%) scale(1.04); } 100% { opacity: 1; transform: translateX(-50%) scale(.98); } }
.lodge__embers { position: absolute; inset: 0; width: 100%; height: 100%; }

.lb-top { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); pointer-events: none; }
.lb-top > * { pointer-events: auto; }
.lb-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(14, 7, 4, .72); border: 1px solid var(--panel-line); color: var(--ink); backdrop-filter: blur(8px); transition: border-color .2s, color .2s; }
.lb-back:hover { border-color: var(--neon); color: var(--neon-hot); }
.lb-wallet { position: relative; }
.lb-wallet .wbtn { border-radius: 999px; background: rgba(14, 7, 4, .72); border-color: var(--panel-line); backdrop-filter: blur(8px); }

.lb { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 96px var(--gutter) 90px; display: grid; gap: clamp(28px, 4vw, 48px); }

.lb-hero { text-align: center; display: grid; justify-items: center; gap: 14px; }
.lb-kicker { color: var(--neon-hot); letter-spacing: .3em; opacity: .85; }
.lb-sign { margin: 0; font: 900 clamp(56px, 11vw, 150px)/.86 var(--f-display); font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: .02em; color: var(--neon-core);
  text-shadow: 0 0 2px #fff, 0 0 8px var(--neon-hot), 0 0 22px var(--neon), 0 0 48px var(--neon-glow), 0 0 110px rgba(255, 100, 10, .45); }
.lb-sign span { display: inline-block; }
.lb-sign__b i { font-style: normal; animation: tube-flicker 7s linear infinite; }
@keyframes tube-flicker { 0%, 61%, 64%, 66%, 100% { opacity: 1; } 62%, 65% { opacity: .25; text-shadow: none; } }
.lb-lede { margin: 0; max-width: 520px; color: rgba(255, 228, 205, .78); font-size: clamp(15px, 1.4vw, 18px); }

.lb-panels { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(16px, 2vw, 24px); }
.lb-card { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: var(--panel-bg); border: 1px solid var(--panel-line); backdrop-filter: blur(12px); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 190, 120, .08); display: grid; align-content: start; gap: 12px; overflow: hidden; }
.lb-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: .55; }
.lb-card__eyebrow { margin: 0; color: var(--neon-hot); }
.lb-card__title { margin: 0; font-size: clamp(34px, 4vw, 52px); color: #fff2e4; }
.lb-card__text { margin: 0; color: rgba(255, 228, 205, .7); max-width: 560px; }
.lb-mint { align-content: space-between; background: linear-gradient(160deg, rgba(40, 18, 6, .8), rgba(18, 8, 4, .8)); }
.lb-mint .lb-neon { margin-top: 8px; }

.lb-neon { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 14px; font: italic 900 clamp(17px, 1.6vw, 21px)/1 var(--f-display); font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: .02em; color: #1c0b02;
  background: linear-gradient(180deg, #ffe0a8 0%, #ffb24a 45%, #ff7a12 100%); box-shadow: 0 0 0 1px rgba(255, 220, 170, .6) inset, 0 0 18px rgba(255, 140, 30, .55), 0 0 46px rgba(255, 110, 10, .35), 0 12px 24px -10px rgba(0, 0, 0, .7); overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s; justify-self: start; }
.lb-neon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%) 0 0 / 250% 100% no-repeat; animation: neon-sheen 5s ease-in-out infinite; }
@keyframes neon-sheen { 0%, 25% { background-position: 130% 0; } 65%, 100% { background-position: -130% 0; } }
.lb-neon:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgba(255, 230, 190, .8) inset, 0 0 26px rgba(255, 150, 40, .75), 0 0 70px rgba(255, 110, 10, .45), 0 16px 28px -10px rgba(0, 0, 0, .7); }
.lb-neon--soon { cursor: default; color: var(--neon-core); background: rgba(40, 16, 4, .6); box-shadow: 0 0 0 1.5px var(--neon) inset, 0 0 14px rgba(255, 130, 20, .5), 0 0 40px rgba(255, 110, 10, .25), inset 0 0 18px rgba(255, 130, 20, .25);
  text-shadow: 0 0 6px var(--neon), 0 0 16px var(--neon-glow); animation: soon-pulse 2.6s ease-in-out infinite; }
.lb-neon--soon::before { opacity: .35; }
@keyframes soon-pulse { 0%, 100% { box-shadow: 0 0 0 1.5px var(--neon) inset, 0 0 12px rgba(255, 130, 20, .45), 0 0 34px rgba(255, 110, 10, .2), inset 0 0 14px rgba(255, 130, 20, .2); } 50% { box-shadow: 0 0 0 1.5px var(--neon-hot) inset, 0 0 22px rgba(255, 150, 40, .7), 0 0 60px rgba(255, 110, 10, .35), inset 0 0 22px rgba(255, 150, 40, .35); } }
.lb-ghost { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255, 200, 150, .22); color: rgba(255, 228, 205, .8); transition: border-color .2s, color .2s; }
.lb-ghost:hover { border-color: var(--neon); color: #fff; }

.lb-mine__keys { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.lb-mine__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.lb-mine .key { width: 170px; }

.lb-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.lb-stat { padding: 16px 18px; border-radius: 14px; background: rgba(18, 9, 5, .66); border: 1px solid rgba(255, 150, 60, .12); backdrop-filter: blur(8px); display: grid; gap: 4px; }
.lb-stat b { font: 900 clamp(26px, 2.6vw, 36px)/1 var(--f-display); font-variation-settings: "wdth" 62; color: #fff2e4; }
.lb-stat span { color: rgba(255, 228, 205, .6); }
.lb-stat i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); vertical-align: 1px; }

.lb-board { display: grid; gap: 22px; }
.lb-board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; }
.lb-board__head > div:first-child { display: grid; gap: 10px; }
.lb-board__title { margin: 0; font-size: clamp(38px, 5vw, 64px); color: #fff2e4; }
.lb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(14, 7, 4, .78); border: 1px solid var(--panel-line); min-width: min(300px, 100%); transition: border-color .2s; }
.lb-search:focus-within { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255, 138, 31, .15); }
.lb-search svg { width: 16px; height: 16px; fill: none; stroke: var(--neon-hot); stroke-width: 2; flex: none; }
.lb-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 500 14px var(--f-ui); }
.lb-search input::placeholder { color: rgba(255, 228, 205, .4); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 200, 150, .18); background: rgba(14, 7, 4, .7); color: rgba(255, 228, 205, .75); font: 600 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; transition: border-color .2s, color .2s, background .2s; }
.lb-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--neon)); box-shadow: 0 0 8px var(--c, var(--neon)); }
.lb-chip:hover { border-color: rgba(255, 200, 150, .45); color: #fff; }
.lb-chip.is-on { border-color: var(--c, var(--neon)); color: #fff; background: rgba(255, 138, 31, .12); }
.lb-sort { height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(14, 7, 4, .78); border: 1px solid var(--panel-line); color: var(--ink); }

.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 30px 18px; padding-top: 14px; }
.key { --c: var(--neon); position: relative; display: grid; gap: 7px; align-content: start; padding: 34px 14px 16px; min-height: 168px; text-align: left; color: #2a1406; transform-origin: 50% -10px; transition: transform .45s var(--ease), filter .3s; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .55)); }
.key::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px 6px 12px 12px; clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  background: radial-gradient(circle at 50% 13px, #0d0604 0 7px, transparent 8px), repeating-linear-gradient(92deg, rgba(90, 45, 15, .0) 0 9px, rgba(90, 45, 15, .16) 10px, rgba(90, 45, 15, 0) 13px), linear-gradient(180deg, #f1cf98 0%, #e0b173 55%, #c98f4f 100%); }
.key::after { content: ""; position: absolute; left: 50%; top: -12px; width: 18px; height: 30px; margin-left: -9px; border-radius: 9px; border: 3px solid #c89a3c; border-bottom-color: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.key__band { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 0 0 12px 12px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.key__num { font: 900 30px/1 var(--f-display); font-variation-settings: "wdth" 62; letter-spacing: .01em; color: #3a1a06; }
.key__num small { font-size: 12px; letter-spacing: .12em; margin-right: 4px; opacity: .6; vertical-align: 6px; }
.key__name { font: 800 15px/1.15 var(--f-ui); color: #2a1406; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; min-height: 2.3em; }
.key__name.is-plain { color: rgba(42, 20, 6, .5); font-weight: 700; }
.key__foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 2px; font: 600 10px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: rgba(42, 20, 6, .62); }
.key__tier { display: inline-flex; align-items: center; gap: 5px; }
.key__tier i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.key__mine { position: absolute; top: 6px; right: 8px; padding: 3px 7px; border-radius: 999px; background: #1c0b02; color: var(--neon-hot); font: 700 9px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 10px rgba(255, 138, 31, .5); }
.key:hover, .key:focus-visible { transform: rotate(-4deg) translateY(-3px); filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(255, 140, 30, .45)); outline: none; }
.key:nth-child(even):hover, .key:nth-child(even):focus-visible { transform: rotate(4deg) translateY(-3px); }
.key[data-tier="whale"] { --c: var(--t-whale); }
.key[data-tier="dolphin"] { --c: var(--t-dolphin); }
.key[data-tier="fish"] { --c: var(--t-fish); }
.key[data-tier="shrimp"] { --c: var(--t-shrimp); }
.key.is-in { animation: key-in .5s var(--ease) both; }
@keyframes key-in { from { opacity: 0; transform: translateY(14px) rotate(-3deg); } }
.lb-empty { margin: 10px 0 0; text-align: center; color: rgba(255, 228, 205, .6); }

.lb-door { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.lb-door[hidden] { display: none; }
.lb-door__scrim { position: absolute; inset: 0; background: rgba(5, 2, 1, .72); backdrop-filter: blur(6px); animation: fade-in .3s both; }
@keyframes fade-in { from { opacity: 0; } }
.lb-door__box { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: 220px 1fr; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #26120a, #140905); border: 1px solid rgba(255, 150, 60, .28); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95), 0 0 60px -20px rgba(255, 120, 20, .4); animation: door-in .45s var(--ease) both; }
@keyframes door-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.lb-door__x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; color: rgba(255, 228, 205, .7); }
.lb-door__x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lb-door__frame { position: relative; display: block; width: 80%; min-height: 240px; margin: auto; margin-left: calc(10% + 11px); align-self: center; border-radius: 100px 100px 6px 6px; background: #120804; box-shadow: inset 0 0 0 7px #3a2112, 0 18px 40px -18px rgba(0, 0, 0, .9); overflow: hidden; perspective: 700px; cursor: pointer; isolation: isolate; }
.lb-door__frame::before { content: ""; position: absolute; inset: 7px; z-index: 0; border-radius: 93px 93px 2px 2px; background: radial-gradient(60% 55% at 32% 62%, rgba(255, 190, 90, .95), rgba(255, 120, 25, .45) 55%, rgba(60, 20, 5, .9) 100%); }
.lb-door__panel { position: absolute; inset: 7px; z-index: 1; border-radius: 93px 93px 2px 2px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 14%, transparent 86%, rgba(0, 0, 0, .3)), repeating-linear-gradient(90deg, #5a3218 0 2px, #7a4623 3px 34px, #4a2a14 36px); box-shadow: inset -10px 0 16px rgba(0, 0, 0, .35); transform-origin: 0 50%; animation: lb-door-swing 3.2s ease-in-out infinite; transition: filter .3s; }
@keyframes lb-door-swing { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(-52deg); } }
.lb-door__frame:hover .lb-door__panel, .lb-door__frame:focus-visible .lb-door__panel { animation: lb-door-open .7s var(--ease) forwards; filter: brightness(1.05); }
@keyframes lb-door-open { to { transform: rotateY(-68deg); } }
.lb-door__frame:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.lb-door__body { padding: 30px 30px 26px; display: grid; align-content: start; gap: 12px; }
.lb-door__num { margin: 0; color: var(--neon-hot); }
.lb-door__name { margin: 0; font-size: clamp(34px, 4.4vw, 50px); color: #fff2e4; word-break: break-word; padding-right: 30px; }
.lb-door__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-pill { --c: var(--neon); display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 200, 150, .18); color: rgba(255, 228, 205, .85); font: 600 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; }
.lb-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.lb-pill--copy { cursor: pointer; letter-spacing: .04em; text-transform: none; font-size: 12px; }
.lb-pill--copy:hover { border-color: var(--neon); color: #fff; }
.lb-pill--mine { border-color: var(--neon); color: var(--neon-hot); }
.lb-door__desc { margin: 4px 0 0; padding: 12px 16px; border-left: 3px solid var(--neon); border-radius: 0 10px 10px 0; background: rgba(255, 138, 31, .06); color: rgba(255, 236, 220, .88); font-style: italic; word-break: break-word; max-height: 9.5em; overflow: auto; }
.lb-door__hint { margin: 0; color: rgba(255, 228, 205, .5); font-size: 13px; }
.lb-door__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lb-door__actions .lb-ghost { height: 54px; padding: 0 24px; border-radius: 14px; }

@media (max-width: 980px) {
  .lb-panels { grid-template-columns: 1fr; }
  .lb-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .lb { padding-top: 78px; }
  .lb-stats { grid-template-columns: repeat(2, 1fr); }
  .lb-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 26px 12px; }
  .key { min-height: 150px; padding: 32px 11px 14px; }
  .key__num { font-size: 26px; }
  .lb-search { flex: 1 1 100%; }
  .lb-door__box { grid-template-columns: 1fr; }
  .lb-door__frame { margin: 18px auto 0; width: 120px; min-height: 160px; }
  .lb-door__actions .lb-ghost { width: 100%; justify-content: center; }
  .lb-door__body { padding: 20px; }
  .lb-neon { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lodge__fire, .lb-sign__b i, .lb-neon::before, .lb-neon--soon, .key.is-in, .lb-door__panel { animation: none; }
}
