:root {
    --navy-950: #080e25;
    --navy-900: #0c1431;
    --navy-850: #111b3d;
    --navy-800: #172344;
    --navy-700: #243258;
    --blue-600: #167fd2;
    --blue-500: #2498ed;
    --green-500: #38c85a;
    --green-400: #52e778;
    --white: #f7f9ff;
    --muted: #aeb7d2;
    --line: rgba(161, 179, 229, 0.14);
    --shadow: 0 20px 55px rgba(1, 5, 19, 0.34);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--white);
    background: var(--navy-950);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
}

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

.pl-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.pl-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 999;
    padding: 10px 14px;
    color: #071328;
    background: var(--green-400);
    border-radius: 8px;
    transform: translateY(-150%);
}

.pl-skip-link:focus {
    transform: translateY(0);
}

/* Header */
.pl-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 27, 61, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.pl-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pl-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.pl-logo-mark {
    width: 31px;
    height: 38px;
}

.pl-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.pl-nav-link,
.pl-icon-button,
.pl-header-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    text-decoration: none;
    cursor: pointer;
    transition: 180ms ease;
}

.pl-nav-link {
    padding: 0 16px;
    color: #dfe5f8;
    font-weight: 700;
}

.pl-nav-link:hover,
.pl-nav-link:focus-visible {
    color: #fff;
    background: var(--navy-700);
}

.pl-icon-button {
    width: 48px;
    color: #eff3ff;
    background: var(--navy-700);
}

.pl-icon-button:hover,
.pl-icon-button:focus-visible {
    background: #314069;
    transform: translateY(-1px);
}

.pl-header-button {
    min-width: 108px;
    padding: 0 22px;
    color: #fff;
    background: var(--navy-700);
}

.pl-header-button--primary {
    background: var(--blue-600);
}

.pl-header-button--primary:hover,
.pl-header-button--primary:focus-visible {
    background: var(--blue-500);
}

.pl-menu-toggle {
    display: none;
}

/* Main content */
.pl-main {
    background:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        var(--navy-950);
    background-size: 44px 44px;
}

.pl-section {
    padding-block: 78px;
}

.pl-section--panel {
    background: rgba(17, 27, 61, 0.76);
    border-block: 1px solid var(--line);
}

.pl-section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.pl-section-heading h2,
.pl-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.pl-section-heading p,
.pl-copy p,
.pl-copy li {
    color: var(--muted);
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pl-info-card {
    padding: 25px;
    background: linear-gradient(145deg, rgba(30, 45, 85, 0.94), rgba(15, 25, 55, 0.94));
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.15);
}

.pl-info-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue-500), #595ddf);
    border-radius: 12px;
    font-size: 1.25rem;
}

.pl-info-card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.pl-info-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.pl-step-list {
    display: grid;
    gap: 15px;
    margin-top: 25px;
    list-style: none;
    counter-reset: steps;
}

.pl-step-list li {
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 13px 16px 13px 66px;
    background: rgba(31, 46, 86, 0.72);
    border: 1px solid var(--line);
    border-radius: 11px;
    counter-increment: steps;
}

.pl-step-list li::before {
    content: counter(steps);
    position: absolute;
    left: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #061126;
    background: var(--green-400);
    border-radius: 50%;
    font-weight: 900;
}

.pl-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.pl-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(14, 23, 51, 0.9);
}

.pl-table th,
.pl-table td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.pl-table th {
    color: #fff;
    background: #1d2b52;
    white-space: nowrap;
}

.pl-table td {
    color: #c2cae1;
}

.pl-table tr:last-child td {
    border-bottom: 0;
}

.pl-table td:first-child {
    color: #fff;
    font-weight: 800;
}

.pl-note {
    margin-top: 22px;
    padding: 18px 20px;
    color: #c8d5ee;
    background: rgba(22, 127, 210, 0.12);
    border: 1px solid rgba(36, 152, 237, 0.35);
    border-left: 4px solid var(--blue-500);
    border-radius: 10px;
}

.pl-copy h3 {
    margin: 28px 0 8px;
    color: #fff;
    font-size: 1.25rem;
}

.pl-copy p {
    margin-bottom: 17px;
}

.pl-copy ul {
    margin: 0 0 20px 22px;
}

.pl-copy a {
    color: #8dd1ff;
}

.pl-faq {
    display: grid;
    gap: 13px;
}

.pl-faq details {
    overflow: hidden;
    background: #121d3e;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.pl-faq details[open] {
    border-color: rgba(36, 152, 237, 0.62);
}

.pl-faq summary {
    position: relative;
    padding: 19px 54px 19px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.pl-faq summary::-webkit-details-marker {
    display: none;
}

.pl-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    color: var(--green-400);
    font-size: 1.5rem;
    transform: translateY(-50%);
}

.pl-faq details[open] summary::after {
    content: "−";
}

.pl-faq-answer {
    padding: 0 20px 20px;
    color: var(--muted);
}

.pl-bottom-cta {
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    background:
        radial-gradient(circle at 80% 20%, rgba(82, 231, 120, 0.16), transparent 30%),
        linear-gradient(120deg, #18295a, #102044);
    border: 1px solid rgba(74, 151, 240, 0.35);
    border-radius: 17px;
    box-shadow: var(--shadow);
}

.pl-bottom-cta h2 {
    margin-bottom: 7px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.pl-bottom-cta p {
    color: var(--muted);
}

.pl-cta {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #fff;
    background: var(--green-500);
    box-shadow: 0 10px 24px rgba(56, 200, 90, 0.18);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: 180ms ease;
}

.pl-cta:hover {
    background: var(--green-400);
    transform: translateY(-2px);
}

.pl-cta--blue {
    background: var(--blue-600);
    box-shadow: 0 10px 24px rgba(22, 127, 210, 0.18);
}

.pl-cta--blue:hover {
    background: var(--blue-500);
}

/* Footer */
.pl-footer {
    padding: 42px 0;
    background: #070c1d;
    border-top: 1px solid var(--line);
}

.pl-footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 34px;
    align-items: start;
}

.pl-footer-copy {
    max-width: 720px;
    margin-top: 13px;
    color: #8f99b8;
    font-size: 0.84rem;
}

.pl-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pl-footer-links a {
    color: #bec7de;
    text-decoration: none;
}

.pl-footer-links a:hover {
    color: #fff;
}

.pl-footer-bottom {
    margin-top: 28px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #7f8aa8;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
}

.pl-age {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: none;
    border: 2px solid #e15f69;
    border-radius: 50%;
    color: #ff9da4;
    font-weight: 900;
}

@keyframes pl-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(82, 231, 120, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(82, 231, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(82, 231, 120, 0);
    }
}

/* Interactive Originals pages */
.pl-game-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 42px;
    background:
        radial-gradient(circle at 72% 30%, rgba(36, 152, 237, 0.24), transparent 28%),
        linear-gradient(115deg, #0a1331 0%, #142451 55%, #0a1432 100%);
    border-bottom: 1px solid var(--line);
}

.pl-game-hero::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -240px;
    border: 80px solid rgba(82, 231, 120, 0.035);
    border-radius: 50%;
}

.pl-game-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: end;
}

.pl-game-hero h1 {
    max-width: 800px;
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.pl-game-hero p {
    max-width: 720px;
    margin-top: 18px;
    color: #c3cbe2;
    font-size: 1.06rem;
}

.pl-game-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(105px, 1fr));
    gap: 10px;
}

.pl-game-fact {
    min-width: 112px;
    padding: 14px;
    background: rgba(28, 43, 82, 0.86);
    border: 1px solid var(--line);
    border-radius: 11px;
}

.pl-game-fact small,
.pl-game-fact strong {
    display: block;
}

.pl-game-fact small {
    color: #929dbb;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pl-game-fact strong {
    margin-top: 3px;
    color: #fff;
    font-size: 1.1rem;
}

.pl-demo-zone {
    padding: 34px 0 72px;
    background: #090f25;
}

.pl-demo-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.pl-demo-label h2 {
    font-size: 1.35rem;
}

.pl-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #bce8ff;
    background: rgba(36, 152, 237, 0.12);
    border: 1px solid rgba(36, 152, 237, 0.3);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pl-demo-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--green-400);
    border-radius: 50%;
    animation: pl-pulse 1.6s infinite;
}

.pl-game-frame {
    overflow: hidden;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 630px;
    background: #111b3d;
    border: 1px solid #344878;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.pl-game-controls {
    padding: 22px;
    background: #151f40;
    border-right: 1px solid var(--line);
}

.pl-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    background: #0c1532;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.pl-balance-card span {
    color: #9ca7c4;
    font-size: 0.78rem;
}

.pl-balance-card strong {
    color: var(--green-400);
    font-size: 1.12rem;
}

.pl-control-group {
    margin-bottom: 18px;
}

.pl-control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #c4cce1;
    font-size: 0.82rem;
    font-weight: 800;
}

.pl-control-label output {
    color: #fff;
}

.pl-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    overflow: hidden;
    background: #0b1430;
    border: 1px solid #33436e;
    border-radius: 99px;
}

.pl-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 12px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
}

.pl-input-wrap button {
    min-width: 46px;
    color: #d5dcf0;
    background: #202e56;
    border: 0;
    border-left: 1px solid #33436e;
    cursor: pointer;
    font-weight: 800;
}

.pl-input-wrap button:hover {
    background: #2d4072;
}

.pl-segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 5px;
    background: #0b1430;
    border: 1px solid #33436e;
    border-radius: 10px;
}

.pl-segmented button {
    min-height: 38px;
    padding: 5px;
    color: #aeb8d3;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.pl-segmented button.is-active {
    color: #fff;
    background: var(--blue-600);
    box-shadow: 0 8px 18px rgba(22, 127, 210, 0.22);
}

.pl-range {
    width: 100%;
    accent-color: var(--blue-500);
}

.pl-game-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    color: #061126;
    background: var(--green-400);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 950;
    letter-spacing: 0.02em;
    transition: 180ms ease;
}

.pl-game-button:hover:not(:disabled) {
    background: #72f296;
    transform: translateY(-2px);
}

.pl-game-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pl-game-note {
    margin-top: 14px;
    color: #8792af;
    font-size: 0.75rem;
    text-align: center;
}

.pl-game-canvas {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 24%, rgba(35, 147, 235, 0.2), transparent 32%),
        #0c1531;
}

.pl-game-statusbar {
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 22px;
    color: #aab4ce;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
}

.pl-game-statusbar strong {
    color: #fff;
}

.pl-round-history {
    display: flex;
    gap: 6px;
    overflow: hidden;
}

.pl-history-chip {
    min-width: 48px;
    padding: 4px 8px;
    color: #bde9ff;
    background: rgba(36, 152, 237, 0.13);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.pl-history-chip.is-win {
    color: #baffca;
    background: rgba(82, 231, 120, 0.13);
}

.pl-history-chip.is-loss {
    color: #ffadb4;
    background: rgba(255, 102, 114, 0.12);
}

.pl-result-toast {
    position: absolute;
    top: 76px;
    left: 50%;
    z-index: 10;
    min-width: 185px;
    padding: 13px 18px;
    color: #fff;
    background: rgba(13, 23, 51, 0.94);
    border: 1px solid #415680;
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    text-align: center;
    transform: translate(-50%, -12px);
    transition: 200ms ease;
    pointer-events: none;
}

.pl-result-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pl-result-toast strong {
    display: block;
    color: var(--green-400);
    font-size: 1.2rem;
}

/* Plinko */
.pl-plinko-wrap {
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 28px 22px;
}

.pl-plinko-board {
    width: min(100%, 720px);
    height: 510px;
    overflow: visible;
}

.pl-plinko-peg {
    fill: #dce8ff;
    filter: drop-shadow(0 0 3px rgba(110, 194, 255, 0.6));
}

.pl-plinko-ball {
    fill: var(--green-400);
    filter: drop-shadow(0 0 8px rgba(82, 231, 120, 0.9));
}

.pl-plinko-slot {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
}

.pl-plinko-slot-label {
    fill: #fff;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 900;
    text-anchor: middle;
}

@media (max-width: 980px) {
    .pl-game-hero-layout {
        grid-template-columns: 1fr;
    }

    .pl-game-facts {
        width: min(100%, 520px);
    }

    .pl-game-frame {
        grid-template-columns: 1fr;
    }

    .pl-game-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .pl-balance-card,
    .pl-control-group,
    .pl-game-button,
    .pl-game-note {
        margin: 0;
    }

    .pl-game-note {
        align-self: center;
    }
}

@media (max-width: 680px) {
    .pl-game-hero {
        padding-top: 46px;
    }

    .pl-game-facts {
        grid-template-columns: 1fr;
    }

    .pl-game-controls {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .pl-game-statusbar {
        min-height: 74px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .pl-round-history {
        width: 100%;
    }

    .pl-plinko-wrap {
        min-height: 430px;
        padding: 18px 10px;
    }

    .pl-plinko-board {
        height: 410px;
    }
}