/* =========================================================
   NWRPLAY design stylesheet
   Prefix: w0f92-  (all custom classes and CSS variables)
   Palette: #800080 | #1A1A1A | #7B68EE | #0000FF | #DA70D6
   Canvas: 320-430px mobile portrait
   ========================================================= */

:root {
    --w0f92-purple: #800080;
    --w0f92-ink: #1A1A1A;
    --w0f92-violet: #7B68EE;
    --w0f92-blue: #0000FF;
    --w0f92-orchid: #DA70D6;
    --w0f92-bg: #140414;
    --w0f92-bg-2: #1f0a22;
    --w0f92-card: #261031;
    --w0f92-card-2: #2f1539;
    --w0f92-line: #3c1f48;
    --w0f92-text: #f5e9fb;
    --w0f92-muted: #c6a8dc;
    --w0f92-gold: #ffd56b;
    --w0f92-radius: 14px;
    --w0f92-radius-lg: 18px;
    --w0f92-header-h: 64px;
    --w0f92-bottomnav-h: 68px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--w0f92-bg);
    color: var(--w0f92-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

a { color: var(--w0f92-orchid); text-decoration: none; }
a:hover { color: var(--w0f92-gold); }

/* Phone canvas wrapper: keeps a phone portrait column on wide screens */
.w0f92-canvas {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(123, 104, 238, 0.30), transparent 60%),
        radial-gradient(120% 40% at 50% 110%, rgba(218, 112, 214, 0.22), transparent 60%),
        linear-gradient(180deg, #160817 0%, #120313 100%);
    position: relative;
    overflow: hidden;
}

/* ============ Header ============ */
.w0f92-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--w0f92-header-h);
    background: linear-gradient(100deg, rgba(26, 8, 30, 0.95), rgba(40, 10, 48, 0.95));
    border-bottom: 1px solid var(--w0f92-line);
    backdrop-filter: blur(8px);
}

.w0f92-header-row {
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

.w0f92-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.w0f92-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--w0f92-orchid);
    box-shadow: 0 0 12px rgba(218, 112, 214, 0.5);
    flex: 0 0 auto;
}

.w0f92-brand-name {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.05;
    color: var(--w0f92-text);
    letter-spacing: 0.4px;
}

.w0f92-brand-name b {
    color: var(--w0f92-gold);
    font-weight: 800;
}

.w0f92-brand-tag {
    display: block;
    font-size: 10px;
    color: var(--w0f92-muted);
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.w0f92-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.w0f92-btn {
    -webkit-tap-highlight-color: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    color: #fff;
}

.w0f92-btn:focus-visible {
    outline: 2px solid var(--w0f92-gold);
    outline-offset: 2px;
}

.w0f92-btn-register {
    background: linear-gradient(135deg, var(--w0f92-orchid), var(--w0f92-purple));
    box-shadow: 0 4px 14px rgba(218, 112, 214, 0.35);
}

.w0f92-btn-register:hover { transform: translateY(-1px); }

.w0f92-btn-login {
    background: transparent;
    color: var(--w0f92-text);
    border: 1px solid var(--w0f92-violet);
}

.w0f92-btn-login:hover {
    background: rgba(123, 104, 238, 0.18);
}

.w0f92-icon-btn {
    background: transparent;
    border: 1px solid var(--w0f92-line);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    color: var(--w0f92-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.w0f92-icon-btn svg { width: 20px; height: 20px; }

/* ============ Compact route panel (expandable menu) ============ */
.w0f92-route-panel {
    position: fixed;
    top: var(--w0f92-header-h);
    left: 0;
    right: 0;
    z-index: 49;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #220a28, #160516);
    border-bottom: 1px solid var(--w0f92-line);
    padding: 10px 12px 14px;
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    visibility: hidden;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.w0f92-route-panel.pro21f-route-open,
.w0f92-route-panel.w0f92-route-open {
    transform: translateY(0);
    visibility: visible;
}

.w0f92-route-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.w0f92-route-cell {
    background: var(--w0f92-card);
    border: 1px solid var(--w0f92-line);
    border-radius: 12px;
    padding: 9px 6px;
    text-align: center;
    color: var(--w0f92-text);
    font-size: 11.5px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.w0f92-route-cell:hover {
    background: var(--w0f92-card-2);
    color: var(--w0f92-gold);
    border-color: var(--w0f92-orchid);
}

.w0f92-route-current { color: var(--w0f92-gold); border-color: var(--w0f92-orchid); }

/* ============ Layout containers ============ */
.w0f92-main {
    padding: 14px 12px calc(var(--w0f92-bottomnav-h) + 24px);
}

.w0f92-section {
    margin-top: 22px;
}

.w0f92-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.w0f92-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--w0f92-text);
    margin: 0;
    position: relative;
    padding-left: 12px;
}

.w0f92-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--w0f92-orchid), var(--w0f92-violet));
}

.w0f92-section-sub {
    font-size: 12px;
    color: var(--w0f92-muted);
    margin-left: auto;
}

/* ============ Carousel ============ */
.w0f92-carousel {
    position: relative;
    border-radius: var(--w0f92-radius-lg);
    overflow: hidden;
    background: #0a010c;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.w0f92-slides {
    position: relative;
    height: 200px;
}

.w0f92-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w0f92-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w0f92-slide-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 14px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.w0f92-slide-caption b {
    display: block;
    font-size: 17px;
    color: var(--w0f92-gold);
}

.w0f92-slide-caption span {
    font-size: 12px;
    color: #f3e7ff;
}

.w0f92-slide-active { opacity: 1; }

.w0f92-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(218, 112, 214, 0.6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.w0f92-carousel-arrow:hover { background: rgba(218, 112, 214, 0.4); }

.w0f92-arrow-prev { left: 8px; }
.w0f92-arrow-next { right: 8px; }

.w0f92-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}

.w0f92-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.w0f92-dot-active { background: var(--w0f92-gold); width: 16px; border-radius: 4px; }

/* ============ Quick category chips ============ */
.w0f92-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
}

.w0f92-chip {
    background: var(--w0f92-card);
    border: 1px solid var(--w0f92-line);
    color: var(--w0f92-text);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.w0f92-chip:hover {
    background: var(--w0f92-card-2);
    border-color: var(--w0f92-orchid);
    color: var(--w0f92-gold);
}

/* ============ Game grid ============ */
.w0f92-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (min-width: 375px) {
    .w0f92-game-grid { grid-template-columns: repeat(4, 1fr); gap: 9px; }
}

@media (min-width: 415px) {
    .w0f92-game-grid { grid-template-columns: repeat(5, 1fr); }
}

.w0f92-game-card {
    background: linear-gradient(180deg, var(--w0f92-card), #190719);
    border: 1px solid var(--w0f92-line);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease;
    display: block;
    color: var(--w0f92-text);
}

.w0f92-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--w0f92-orchid);
}

.w0f92-game-thumb {
    aspect-ratio: 1 / 1;
    background: #0c0210;
    overflow: hidden;
}

.w0f92-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w0f92-game-name {
    font-size: 11.2px;
    text-align: center;
    padding: 5px 4px 7px;
    color: var(--w0f92-text);
    line-height: 1.25;
    min-height: 30px;
    word-break: break-word;
}

.w0f92-game-card:hover .w0f92-game-name { color: var(--w0f92-gold); }

/* ============ Promo cards (3 inline promos) ============ */
.w0f92-promo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.w0f92-promo-card {
    background: linear-gradient(135deg, #2a0e35, #421558);
    border: 1px solid var(--w0f92-line);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    transition: transform 0.15s ease;
}

.w0f92-promo-card:hover { transform: translateY(-2px); border-color: var(--w0f92-orchid); }

.w0f92-promo-card b {
    display: block;
    font-size: 14px;
    color: var(--w0f92-gold);
}

.w0f92-promo-card span {
    display: block;
    font-size: 11px;
    color: var(--w0f92-muted);
    margin-top: 3px;
}

/* ============ Info panels (Game Tricks, Achievements, Security, Concept) ============ */
.w0f92-panel {
    background: var(--w0f92-card);
    border: 1px solid var(--w0f92-line);
    border-radius: var(--w0f92-radius);
    padding: 14px;
    margin: 0 0 12px;
}

.w0f92-panel h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--w0f92-gold);
}

.w0f92-panel p {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: var(--w0f92-text);
}

.w0f92-panel ul {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--w0f92-muted);
}

.w0f92-panel li { margin: 0 0 4px; }

.w0f92-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 400px) {
    .w0f92-info-grid { grid-template-columns: 1fr 1fr; }
}

.w0f92-step-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-top: 1px dashed var(--w0f92-line);
}

.w0f92-step-row:first-of-type { border-top: 0; }

.w0f92-step-num {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--w0f92-orchid), var(--w0f92-purple));
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w0f92-step-text { font-size: 13px; color: var(--w0f92-text); line-height: 1.5; }

/* ============ Achievement strip ============ */
.w0f92-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.w0f92-stat {
    background: var(--w0f92-card-2);
    border: 1px solid var(--w0f92-line);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
}

.w0f92-stat b {
    display: block;
    color: var(--w0f92-gold);
    font-size: 16px;
}

.w0f92-stat span {
    color: var(--w0f92-muted);
    font-size: 11px;
}

/* ============ Extended footer (homepage only) ============ */
.w0f92-extended {
    margin-top: 26px;
    padding: 16px 12px;
    background: linear-gradient(180deg, #1a061f, #100110);
    border-top: 1px solid var(--w0f92-line);
    border-bottom: 1px solid var(--w0f92-line);
}

.w0f92-extended h3 {
    margin: 0 0 6px;
    color: var(--w0f92-gold);
    font-size: 15px;
}

.w0f92-extended p {
    margin: 0 0 10px;
    color: var(--w0f92-muted);
    font-size: 12.5px;
}

.w0f92-directory {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin: 8px 0 12px;
}

.w0f92-directory a {
    font-size: 12.5px;
    color: var(--w0f92-text);
}

.w0f92-directory a:hover { color: var(--w0f92-gold); }

.w0f92-promo-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0 12px;
}

.w0f92-promo-actions button,
.w0f92-promo-actions a {
    padding: 9px 4px;
    font-size: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--w0f92-purple), var(--w0f92-violet));
    color: #fff;
    border: 0;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w0f92-promo-actions button:hover,
.w0f92-promo-actions a:hover { filter: brightness(1.1); }

.w0f92-disclaimer {
    font-size: 11.5px;
    color: var(--w0f92-muted);
    border-top: 1px dashed var(--w0f92-line);
    padding-top: 10px;
    line-height: 1.55;
}

/* ============ Footer (copyright only) ============ */
.w0f92-footer {
    text-align: center;
    padding: 14px 12px calc(var(--w0f92-bottomnav-h) + 16px);
    color: var(--w0f92-muted);
    font-size: 11.5px;
}

/* ============ Bottom navigation (5 roles, segmented) ============ */
.w0f92-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-width: 430px;
    margin: 0 auto;
    height: var(--w0f92-bottomnav-h);
    background: linear-gradient(180deg, rgba(30, 8, 36, 0.96), rgba(15, 2, 18, 0.98));
    border-top: 1px solid var(--w0f92-line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
}

.w0f92-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--w0f92-muted);
    font-size: 10.5px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 4px 2px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.w0f92-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--w0f92-orchid), var(--w0f92-gold));
    transition: transform 0.2s ease;
}

.w0f92-nav-item:hover { transform: translateY(-2px); color: var(--w0f92-text); }

.w0f92-nav-item:hover::before { transform: translateX(-50%) scaleX(1); }

.w0f92-nav-item svg {
    width: 22px;
    height: 22px;
    color: currentColor;
}

.w0f92-nav-item.w0f92-nav-current {
    color: var(--w0f92-gold);
}

.w0f92-nav-item.w0f92-nav-current::before {
    transform: translateX(-50%) scaleX(1);
}

.w0f92-nav-label {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ============ H1 hero ============ */
.w0f92-hero {
    margin: 4px 0 12px;
}

.w0f92-hero h1 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--w0f92-text);
}

.w0f92-hero h1 b { color: var(--w0f92-gold); }

.w0f92-hero p {
    margin: 0;
    color: var(--w0f92-muted);
    font-size: 13px;
}

/* ============ Inline link paragraph ============ */
.w0f92-prose {
    font-size: 13.5px;
    color: var(--w0f92-text);
    line-height: 1.7;
}

.w0f92-prose a {
    color: var(--w0f92-gold);
    border-bottom: 1px dashed rgba(255, 213, 107, 0.6);
}

.w0f92-prose a:hover { color: var(--w0f92-orchid); }

/* small helpers */
.w0f92-hide-on-desktop { display: block; }
