/* waitlist-app.css — Option 2A "Raised RESERVE tab" theme for the app-style
   /WaitlistApp page. Dark + gold, Chakra Petch display font. Framework-free so
   it wraps cleanly into a PWA/APK later. Paired with /js/waitlist-app.js. */

:root {
    --wl-bg: #0b0c0e;
    --wl-panel: #101215;
    --wl-card: #14161a;
    --wl-border: #23262c;
    --wl-border-soft: #1e2126;
    --wl-text: #f2f3f5;
    --wl-dim: #c8ccd2;
    --wl-muted: #8b929c;
    --wl-faint: #6c737d;
    --wl-gold: #FFC24B;
    --wl-green: #4ade80;
    --wl-red: #ef4444;
    --wl-teal: #6fe3d4;
    --wl-disp: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #050506; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--wl-text);
    -webkit-font-smoothing: antialiased;
}

/* Phone-width app column, centered on desktop. */
.wl-app {
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--wl-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wl-disp { font-family: var(--wl-disp); font-weight: 700; letter-spacing: .02em; }

/* --- top bar --- */
.wl-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 8px;
}
.wl-top .brand { display: flex; align-items: center; gap: 11px; }
.wl-top .brand img { width: 34px; height: 34px; object-fit: contain; }
.wl-top .brand .name { font-family: var(--wl-disp); font-weight: 700; font-size: 21px; }
.wl-chip {
    border: 1px solid var(--wl-border); background: var(--wl-card);
    border-radius: 999px; padding: 8px 12px; display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700; color: var(--wl-dim);
}
.wl-chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--wl-green); }
.wl-bell { position: relative; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--wl-border); background: var(--wl-card); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; }
.wl-bell.has-notif::after { content: ''; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 999px; background: var(--wl-red); border: 2px solid var(--wl-bg); }

/* --- profile header (avatar + name) --- */
.wl-prof-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 6px; }
.wl-avatar { width: 62px; height: 62px; border-radius: 18px; flex: 0 0 auto; overflow: hidden; background: var(--wl-card); border: 1px solid var(--wl-border); display: flex; align-items: center; justify-content: center; font-family: var(--wl-disp); font-weight: 700; font-size: 22px; color: var(--wl-gold); }
.wl-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- news feed --- */
.wl-news-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.wl-news-tab { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 9px 6px; border-radius: 11px; background: var(--wl-card); border: 1px solid var(--wl-border); color: var(--wl-dim); font-family: var(--wl-disp); font-weight: 600; font-size: 11px; letter-spacing: .02em; cursor: pointer; }
.wl-news-tab.active { background: var(--wl-text); color: #0b0c0e; border-color: var(--wl-text); }
.wl-news-hero { position: relative; height: 210px; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; background-color: #14161a; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; cursor: pointer; }
.wl-news-cat { font-family: var(--wl-disp); font-weight: 700; font-size: 11px; letter-spacing: .1em; }
.wl-news-hero-title { font-family: var(--wl-disp); font-weight: 700; font-size: 22px; line-height: 1.15; margin-top: 6px; }
.wl-news-hero-date { font-size: 13px; color: var(--wl-dim); margin-top: 4px; }
.wl-news-row { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--wl-border-soft); cursor: pointer; }
.wl-news-thumb { width: 92px; height: 68px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: #14161a; }
.wl-news-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- views --- */
.wl-body { flex: 1; overflow-y: auto; padding: 6px 20px 120px; }
.wl-view { display: none; }
.wl-view.active { display: block; }

.wl-h1 { font-family: var(--wl-disp); font-weight: 700; font-size: 24px; margin: 8px 0 4px; }
.wl-sub { font-size: 14px; color: var(--wl-muted); margin-bottom: 14px; }

/* --- cards / buttons --- */
.wl-card { background: var(--wl-card); border: 1px solid var(--wl-border); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.wl-btn {
    display: block; width: 100%; text-align: center; cursor: pointer; border: 1px solid var(--wl-border);
    background: var(--wl-card); color: var(--wl-text); border-radius: 15px; padding: 16px;
    font-family: var(--wl-disp); font-weight: 700; font-size: 15px; letter-spacing: .1em;
}
.wl-btn:active { transform: scale(.99); }
.wl-btn.gold { background: var(--wl-gold); color: #0b0c0e; border: none; }
.wl-btn.danger { background: rgba(239,68,68,.09); color: var(--wl-red); border: 1px solid #7a2b2b; }
.wl-btn[disabled] { opacity: .45; pointer-events: none; }

/* --- reserve sheet --- */
.wl-any {
    background: var(--wl-gold); border-radius: 16px; padding: 18px;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-bottom: 16px;
}
.wl-any .t { font-family: var(--wl-disp); font-weight: 700; font-size: 18px; letter-spacing: .08em; color: #0b0c0e; }
.wl-any .s { font-size: 13px; font-weight: 600; color: rgba(11,12,14,.65); }
.wl-any .arr { font-size: 22px; color: #0b0c0e; }
.wl-label { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: #5a616b; margin: 4px 0 10px; }

.wl-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-tier {
    border: 1px solid var(--wl-border); background: var(--wl-panel); border-radius: 13px; padding: 13px;
    display: flex; flex-direction: column; gap: 4px; cursor: pointer;
}
.wl-tier.hot { border-color: #3a3117; background: rgba(255,194,75,.07); }
.wl-tier .tn { font-family: var(--wl-disp); font-weight: 700; font-size: 15px; }
.wl-tier .vac { font-size: 12px; font-weight: 700; color: var(--wl-green); }
.wl-tier .vac.none { color: var(--wl-faint); }

.wl-specific-toggle {
    border: 1px solid var(--wl-border); background: var(--wl-card); border-radius: 16px; padding: 16px;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-top: 12px;
}
.wl-note { display: flex; gap: 9px; align-items: center; background: var(--wl-card); border: 1px solid var(--wl-border-soft); border-radius: 13px; padding: 13px 15px; margin-top: 14px; font-size: 13px; color: var(--wl-muted); }
.wl-note b { color: var(--wl-text); }

/* --- specific PC grid --- */
.wl-sec { margin-top: 16px; }
.wl-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.wl-sec-head .sn { font-family: var(--wl-disp); font-weight: 700; font-size: 14px; }
.wl-sec-head .tier-chip { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.wl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.wl-tile {
    height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; border: 1px solid var(--wl-border);
}
.wl-tile.vacant { background: rgba(74,222,128,.16); border-color: var(--wl-green); color: var(--wl-green); cursor: pointer; }
.wl-tile.busy { background: rgba(255,194,75,.13); border-color: #6b5320; color: var(--wl-gold); cursor: pointer; }
.wl-tile.reserved { background: rgba(111,227,212,.12); border-color: var(--wl-teal); color: var(--wl-teal); }
.wl-tile.offline { background: #101215; border-color: #2b2f36; color: #4a5058; }
.wl-tile.broken { background: rgba(239,68,68,.12); border-color: #7a2b2b; color: var(--wl-red); }
.wl-tile.empty { visibility: hidden; }

/* --- queue status --- */
.wl-pos-wrap {
    border: 1px solid #3a3117; background: linear-gradient(180deg, rgba(255,194,75,.1), rgba(255,194,75,.02));
    border-radius: 22px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.wl-pos-lbl { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--wl-gold); }
.wl-pos-num { font-family: var(--wl-disp); font-weight: 700; font-size: 78px; line-height: .9; }
.wl-progress { width: 100%; height: 8px; border-radius: 999px; background: var(--wl-border-soft); overflow: hidden; margin-top: 4px; }
.wl-progress > i { display: block; height: 100%; background: var(--wl-gold); border-radius: 999px; }
.wl-two { display: flex; gap: 12px; margin: 14px 0; }
.wl-two > div { flex: 1; background: var(--wl-card); border: 1px solid var(--wl-border); border-radius: 16px; padding: 16px; }
.wl-two .k { font-size: 11px; letter-spacing: .12em; color: var(--wl-faint); font-weight: 700; }
.wl-two .v { font-family: var(--wl-disp); font-weight: 700; font-size: 20px; margin-top: 4px; }
.wl-qrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.wl-qrow .n { width: 30px; height: 30px; border-radius: 9px; background: var(--wl-border-soft); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--wl-muted); }
.wl-qrow.me .n { background: var(--wl-gold); color: #0b0c0e; }
.wl-qrow .u { flex: 1; font-size: 15px; color: var(--wl-dim); }

/* reserved / ready */
.wl-ready { border: 1px solid #3a3117; background: rgba(255,194,75,.09); border-radius: 20px; padding: 22px; text-align: center; }
.wl-ready .big { font-family: var(--wl-disp); font-weight: 700; font-size: 22px; color: var(--wl-gold); }
.wl-ready .cd { font-family: var(--wl-disp); font-weight: 700; font-size: 40px; margin: 8px 0; }

/* --- profile --- */
.wl-sess { border: 1px solid var(--wl-border); background: var(--wl-card); border-radius: 20px; padding: 20px; }
.wl-sess .row { display: flex; justify-content: space-between; align-items: center; }
.wl-sess .time { font-family: var(--wl-disp); font-weight: 700; font-size: 48px; line-height: .9; }
.wl-list { border: 1px solid var(--wl-border); background: var(--wl-card); border-radius: 18px; overflow: hidden; margin-top: 14px; }
.wl-list > div { padding: 16px 18px; display: flex; justify-content: space-between; font-size: 15px; border-bottom: 1px solid #1a1d22; cursor: pointer; }
.wl-list > div:last-child { border-bottom: none; }

/* --- bottom tab bar (raised centre RESERVE) --- */
.wl-tabbar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 460px;
    padding: 0 20px 24px; z-index: 50;
    background: linear-gradient(to top, rgba(11,12,14,.98) 58%, rgba(11,12,14,0));
    display: flex; justify-content: center; pointer-events: none;
}
.wl-tabbar-inner {
    position: relative; width: 100%; display: flex; justify-content: space-between; align-items: center;
    background: var(--wl-panel); border: 1px solid var(--wl-border-soft); border-radius: 22px; padding: 13px 40px;
    pointer-events: auto;
}
.wl-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--wl-faint); cursor: pointer; }
.wl-tab .ico { font-size: 19px; }
.wl-tab .lb { font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.wl-tab.active { color: var(--wl-gold); }
.wl-tab-spacer { width: 82px; }
.wl-fab {
    position: absolute; left: 50%; transform: translateX(-50%); top: -32px;
    width: 84px; height: 84px; border-radius: 999px; background: var(--wl-gold);
    border: 5px solid var(--wl-bg); box-shadow: 0 14px 34px rgba(255,194,75,.34);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer;
}
.wl-fab .ico { font-size: 22px; }
.wl-fab .lb { font-family: var(--wl-disp); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: #0b0c0e; }

/* --- login --- */
.wl-login { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 28px; gap: 30px; }
.wl-login .logo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wl-login .logo img { width: 100px; height: 100px; object-fit: contain; }
.wl-login .logo .name { font-family: var(--wl-disp); font-weight: 700; font-size: 27px; text-align: center; }
.wl-login .logo .tag { font-size: 15px; color: var(--wl-muted); }
.wl-in {
    width: 100%; background: var(--wl-card); border: 1px solid var(--wl-border); border-radius: 14px;
    padding: 17px 18px; font-size: 16px; color: var(--wl-text); outline: none;
}
.wl-in::placeholder { color: var(--wl-faint); }
.wl-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.wl-or > i { flex: 1; height: 1px; background: var(--wl-border-soft); }
.wl-or > span { font-size: 12px; letter-spacing: .14em; color: #5a616b; font-weight: 600; }
.wl-foot { text-align: center; font-size: 14px; color: var(--wl-faint); line-height: 1.5; }

/* --- toast + confirm --- */
.wl-toast {
    position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%) translateY(10px);
    background: #1c1f24; border: 1px solid var(--wl-border); color: var(--wl-text);
    padding: 13px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
    opacity: 0; transition: opacity .2s, transform .2s; z-index: 300; max-width: 88%; text-align: center;
}
.wl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.wl-toast.ok { border-color: #2f6b45; } .wl-toast.err { border-color: #7a2b2b; }
.wl-modal { position: fixed; inset: 0; background: rgba(4,5,6,.7); display: none; align-items: center; justify-content: center; z-index: 320; padding: 28px; }
.wl-modal.show { display: flex; }
.wl-modal .box { background: var(--wl-panel); border: 1px solid var(--wl-border); border-radius: 20px; padding: 22px; max-width: 360px; width: 100%; }
.wl-modal .box h3 { font-family: var(--wl-disp); font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.wl-modal .box p { font-size: 14px; color: var(--wl-muted); line-height: 1.5; margin: 0 0 18px; }
.wl-modal .box .actions { display: flex; gap: 10px; }
.wl-modal .box .actions .wl-btn { padding: 13px; }
.wl-hidden { display: none !important; }

/* --- fullscreen floor plan (x/y layout, PC-Management style) --- */
.wl-floor { position: fixed; inset: 0; background: #06070a; z-index: 400; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wl-fp { width: 100%; max-width: 360px; padding: 0 22px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.wl-fp h3 { margin: 0; font-size: 20px; color: #eaf2ff; }
.wl-fp p { margin: 0 0 4px; font-size: 13px; color: #9aa7b4; line-height: 1.5; }
.wl-fp .wl-in { text-align: center; }
.wl-fp-msg { min-height: 16px; font-size: 12.5px; color: #ff8f8f; }
.wl-floor-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 999px; background: var(--wl-card); border: 1px solid var(--wl-border); color: var(--wl-text); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.wl-floor-legend { position: absolute; top: 18px; left: 18px; display: flex; gap: 14px; font-size: 11px; font-weight: 700; color: var(--wl-muted); z-index: 2; flex-wrap: wrap; max-width: 60%; }
.wl-floor-legend span { display: flex; align-items: center; gap: 5px; }
.wl-floor-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.wl-floor-canvas { position: relative; }
.wl-fsec { position: absolute; }
.wl-fsec-head { font-family: var(--wl-disp); font-weight: 700; font-size: 13px; margin-bottom: 6px; white-space: nowrap; }
.wl-fgrid { display: grid; }
.wl-ftile { border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 1px solid var(--wl-border); }
.wl-ftile.vacant { background: rgba(74,222,128,.16); border-color: var(--wl-green); color: var(--wl-green); cursor: pointer; }
.wl-ftile.busy { background: rgba(255,194,75,.13); border-color: #6b5320; color: var(--wl-gold); cursor: pointer; }
.wl-ftile.reserved { background: rgba(111,227,212,.12); border-color: var(--wl-teal); color: var(--wl-teal); }
.wl-ftile.offline { background: #101215; border-color: #2b2f36; color: #4a5058; }
.wl-ftile.broken { background: rgba(239,68,68,.12); border-color: #7a2b2b; color: var(--wl-red); }
.wl-ftile.empty { visibility: hidden; }

/* scrollable floor-plan overlay (mobile can pan the whole layout) */
.wl-floorplan { position: fixed; inset: 0; background: #06070a; z-index: 400; overflow: auto; -webkit-overflow-scrolling: touch; padding: 60px 14px 40px; }
.wl-floorplan .wl-floor-canvas { position: relative; margin: 0 auto; }
.wl-floorplan .wl-floor-close, .wl-floorplan .wl-floor-legend { position: fixed; }

/* 2026-08-24 — custom tile skin on the fullscreen floor plan (mirrors staff). */
.wl-ftile--skin { position: relative; background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; overflow: visible; }
.wl-ftile-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wl-ftile-lbl { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-weight: 800; color: #eaf2ff; text-shadow: 0 1px 2px rgba(0,0,0,.85); pointer-events: none; letter-spacing: .03em; }

/* 2026-08-24 — skinned tile state chip + hover interaction + info popover. */
.wl-ftile-state { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); z-index: 3; font-weight: 900; letter-spacing: .05em; color: #fff; background: rgba(10,14,20,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 5px; padding: 2px 6px; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.wl-ftile-state--broken { color: #ff6b6b; border-color: rgba(239,68,68,.5); }
.wl-ftile-state--reserved { color: #ffd479; border-color: rgba(255,194,75,.5); }
.wl-ftile-state--guest-times-up { color: #ff9d6b; }

.wl-floor-canvas .wl-ftile[data-pc] { cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.wl-floor-canvas .wl-ftile[data-pc]:hover { transform: scale(1.08); filter: brightness(1.12) drop-shadow(0 4px 10px rgba(0,0,0,.5)); z-index: 5; }

.wl-tilepop { position: fixed; z-index: 100000; width: 190px; background: #12161d; border: 1px solid #2d333b; border-radius: 12px; padding: 10px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.6); color: #e7ebf2; font-family: system-ui, "Segoe UI", sans-serif; }
.wl-tp-hd { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.wl-tp-st { font-size: 11px; font-weight: 800; letter-spacing: .06em; margin-top: 3px; color: #9aa7b4; }
.wl-tp-st--vacant { color: #4ade80; } .wl-tp-st--busy { color: #FFC24B; } .wl-tp-st--reserved { color: #6fe3d4; } .wl-tp-st--offline { color: #8b929c; } .wl-tp-st--broken { color: #ff6b6b; }
.wl-tp-user { font-size: 12.5px; font-weight: 700; color: #ffd479; margin-top: 6px; }
.wl-tp-game { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.wl-tp-banner { width: 54px; height: 32px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.wl-tp-game span { font-size: 12px; color: #cbd3df; font-weight: 700; }
.wl-tp-btn { width: 100%; margin-top: 10px; background: linear-gradient(90deg,#ffc24b,#ffb01f); color: #1a1400; border: none; border-radius: 9px; padding: 9px; font-weight: 800; cursor: pointer; }
.wl-tp-btn:hover { filter: brightness(1.06); }
