/* The Late 3RDS Room Shells v0.7.4 — the clean-up layer.
   Rides on top of home-shell.css (the Home Shell plugin) and room-shells.css. */

/* ---------- HOME: phone doors ----------
   The Home Shell hides its hotspot layer under 768px and on touch screens. The phone render is a
   different picture (941 × 1672), so the six doors get their own geometry here, and the label chip
   stays visible so the doors read as doors. Percentages are of the phone render. */
@media (max-width: 767px), (hover: none) and (max-width: 1024px) {
    .tlt3rds-home-shell .tlt3rds-hotspot-layer {
        display: block !important;
    }
    .tlt3rds-home-shell .tlt3rds-hotspot {
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.10);
        background: rgba(169, 92, 255, 0.04);
    }
    .tlt3rds-home-shell .tlt3rds-hotspot span {
        opacity: 1;
        transform: none;
        top: auto;
        bottom: 0.4rem;
        left: 0.4rem;
        font-size: clamp(0.62rem, 2.6vw, 0.8rem);
        padding: 0.32rem 0.5rem;
    }
    .tlt3rds-home-shell .tlt3rds-hotspot:active {
        background: rgba(169, 92, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.7);
    }
    /* 0.7.4: the two narrow doors (Legacy Suite, Player Hub) clipped their labels to "Legacy …" / "Playe…" on a
       390-px phone (the Home Shell chip is one line with an ellipsis). The chip may wrap; the door never clips it. */
    .tlt3rds-home-shell .tlt3rds-hotspot {
        overflow: visible;
    }
    .tlt3rds-home-shell .tlt3rds-hotspot span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.15;
        border-radius: 12px;
        text-align: center;
    }
    .tlt3rds-home-shell .tlt3rds-hotspot--legacy-suite span,
    .tlt3rds-home-shell .tlt3rds-hotspot--player-hub span {
        left: 0.3rem;
        right: 0.3rem;
        bottom: 0.3rem;
        max-width: none;
        font-size: clamp(0.58rem, 2.4vw, 0.76rem);
        padding: 0.28rem 0.35rem;
    }
}
/* Under 768px the picture is the phone render, so the doors move to where the rooms are in that picture. */
@media (max-width: 767px) {
    .tlt3rds-home-shell .tlt3rds-hotspot--gm-suite     { left: 35%;  top: 7%;    width: 44%; height: 15.5%; }
    .tlt3rds-home-shell .tlt3rds-hotspot--legacy-suite { left: 74%;  top: 24.5%; width: 24%; height: 12.5%; }
    .tlt3rds-home-shell .tlt3rds-hotspot--arcade       { left: 20%;  top: 36.5%; width: 72%; height: 18.5%; }
    .tlt3rds-home-shell .tlt3rds-hotspot--player-hub   { left: 3.5%; top: 42.5%; width: 21%; height: 16%; }
    .tlt3rds-home-shell .tlt3rds-hotspot--live-mocks   { left: 24%;  top: 56%;   width: 62%; height: 13.5%; }
    .tlt3rds-home-shell .tlt3rds-hotspot--prize-counter{ left: 3.5%; top: 68.5%; width: 54%; height: 13%; }
}

/* ---------- HOME: first paint ----------
   The tiny blurred render sits behind the scene (painted from wp_head) until the big picture lands. */
.tlt3rds-home-shell .tlt3rds-scene {
    background-color: #050508;
}
.tlt3rds-home-shell .tlt3rds-scene picture {
    position: relative;
    z-index: 1;
}
.tlt3rds-home-shell .tlt3rds-scene::before {
    content: "";
    position: absolute;
    inset: -12px;
    background: inherit;
    filter: blur(14px) saturate(1.1);
    z-index: 0;
}

/* ---------- HOME: the one line + footer ---------- */
.tlt3rds-home-line,
.tlt3rds-home-foot {
    width: min(100%, 1280px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
    color: #f7f3ea;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    box-sizing: border-box;
}
body:not(.tlt3rds-canvas-page) .tlt3rds-home-line,
body:not(.tlt3rds-canvas-page) .tlt3rds-home-foot {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(1rem, calc(50vw - 640px + 1rem));
    background: #050508;
}
.tlt3rds-home-line {
    padding-top: 0;
    padding-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.tlt3rds-home-line p {
    margin: 0;
    max-width: 62ch;
    color: #b8b1bf;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.55;
}
.tlt3rds-home-line b {
    color: #f7f3ea;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.tlt3rds-home-foot {
    padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
    padding-bottom: max(1.6rem, env(safe-area-inset-bottom, 0px) + 1.2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.tlt3rds-home-foot__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
}
.tlt3rds-home-foot__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin: 0;
    padding: 0;
}
.tlt3rds-home-foot__nav a {
    color: #f7f3ea !important;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0;
    border-bottom: 1px solid transparent;
}
.tlt3rds-home-foot__nav--fine a {
    color: #b8b1bf !important;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
}
.tlt3rds-home-foot__nav a:hover,
.tlt3rds-home-foot__nav a:focus-visible {
    border-bottom-color: #a95cff;
    outline: none;
}
.tlt3rds-home-foot__line {
    margin: 1rem 0 0;
    color: rgba(184, 177, 191, 0.75);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

/* ---------- ARCADE ROOM: the floor strip under the painted room ---------- */
.tlt3rds-arcade-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    width: min(100%, 1280px);
    margin: 1rem auto 2.2rem;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tlt3rds-arcade-strip a {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(27, 24, 34, 0.98), rgba(13, 12, 18, 0.94));
    color: #f7f3ea !important;
    text-decoration: none !important;
    transition: transform 140ms ease, border-color 140ms ease;
}
.tlt3rds-arcade-strip a:hover,
.tlt3rds-arcade-strip a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}
.tlt3rds-arcade-strip small {
    color: #d7b76c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.tlt3rds-arcade-strip b {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
}
.tlt3rds-arcade-strip span {
    color: #b8b1bf;
    font-size: 0.86rem;
    line-height: 1.4;
}
@media (max-width: 860px) {
    .tlt3rds-arcade-strip {
        grid-template-columns: 1fr;
    }
}

/* ---------- PRIZE COUNTER: three cards, and the two lanes ---------- */
.tlt3rds-prize-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 0.9.8: four lanes (the names space joined) */
.tlt3rds-prize-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 960px) {
    .tlt3rds-prize-grid--three {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .tlt3rds-prize-grid--four {
        grid-template-columns: 1fr;
    }
}

.tlt3rds-lane {
    --lane-bg: #050508;
    --lane-panel: rgba(13, 12, 18, 0.96);
    --lane-border: rgba(255, 255, 255, 0.16);
    --lane-text: #f7f3ea;
    --lane-muted: #b8b1bf;
    --lane-orange: #f47b32;
    --lane-gold: #d7b76c;
    display: block;
    width: min(100%, 780px);
    margin: 0 auto;
    padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1rem, 3vw, 2rem) 3rem;
    color: var(--lane-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    box-sizing: border-box;
}
.tlt3rds-lane * {
    box-sizing: border-box;
}
.tlt3rds-lane__back {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: var(--lane-muted) !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tlt3rds-lane__back:hover { color: var(--lane-text) !important; }
.tlt3rds-lane__kicker {
    margin: 0 0 0.5rem;
    color: var(--lane-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.tlt3rds-lane h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: var(--lane-text);
}
.tlt3rds-lane__lede {
    margin: 0 0 1.6rem;
    max-width: 62ch;
    color: var(--lane-muted);
    font-size: 1rem;
    line-height: 1.55;
}
.tlt3rds-lane__form {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border: 1px solid var(--lane-border);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(27, 24, 34, 0.98), var(--lane-panel));
}
.tlt3rds-lane__field {
    display: grid;
    gap: 0.35rem;
}
.tlt3rds-lane__field span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lane-text);
}
.tlt3rds-lane__field input,
.tlt3rds-lane__field select,
.tlt3rds-lane__field textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(5, 5, 8, 0.7);
    color: var(--lane-text);
    font: inherit;
    font-size: 1rem;
}
.tlt3rds-lane__field input:focus,
.tlt3rds-lane__field select:focus,
.tlt3rds-lane__field textarea:focus {
    outline: none;
    border-color: var(--lane-orange);
    box-shadow: 0 0 0 3px rgba(244, 123, 50, 0.25);
}
.tlt3rds-lane__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
}
.tlt3rds-lane__go {
    justify-self: start;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--lane-orange);
    color: #140a04;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.tlt3rds-lane__go:hover,
.tlt3rds-lane__go:focus-visible {
    background: #ff9a5a;
    outline: none;
}
.tlt3rds-lane__fine {
    margin: 0;
    color: rgba(184, 177, 191, 0.8);
    font-size: 0.78rem;
    line-height: 1.45;
}
.tlt3rds-lane__done,
.tlt3rds-lane__warn {
    margin: 0 0 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(158, 200, 125, 0.5);
    background: rgba(158, 200, 125, 0.12);
    color: var(--lane-text);
    font-weight: 600;
}
.tlt3rds-lane__warn {
    border-color: rgba(255, 95, 111, 0.5);
    background: rgba(255, 95, 111, 0.12);
}
.tlt3rds-lane__more a {
    color: var(--lane-text) !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* ---------- PLAYER HUB: the signed-out line ---------- */
.tlt3rds-hub-note {
    margin: 0 0 0.9rem;
    color: #b8b1bf;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.92rem;
}
.tlt3rds-hub-note a {
    color: #f7f3ea !important;
    font-weight: 700;
    text-decoration: underline !important;
}

/* ---------- LEGACY SUITE: the two waiting doors read as waiting, not broken ---------- */
.tlt3rds-legacy-door.is-pending .tlt3rds-legacy-door__status b {
    letter-spacing: 0.12em;
}
.tlt3rds-legacy-door.is-pending .tlt3rds-legacy-door__enter {
    opacity: 0.35;
}

/* 0.11.2 (Oct 9): on a phone the full-bleed trick pushed the home line and footer 30px past the right edge — keep them inside the screen */
@media (max-width: 782px) {
    body:not(.tlt3rds-canvas-page) .tlt3rds-home-line,
    body:not(.tlt3rds-canvas-page) .tlt3rds-home-foot {
        width: auto;
        max-width: 100%;
        margin-inline: 0;
        padding-inline: 1rem;
    }
}
