/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--text-link);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 var(--space-md);
}

p {
    margin: 0 0 var(--space-md);
}

ul,
ol {
    margin: 0 0 var(--space-md);
    padding-left: 1.25rem;
}

li {
    margin-bottom: var(--space-sm);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

::selection {
    background: rgba(64, 224, 208, 0.35);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(210, 105, 30, 0.45);
    border: 1px solid var(--bg);
}

main {
    flex: 1 0 auto;
    padding-bottom: var(--space-2xl);
}

[hidden] {
    display: none !important;
}

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --primary: #1f1a14;
    --primary-rgb: 31, 26, 20;
    --secondary: #d2691e;
    --secondary-rgb: 210, 105, 30;
    --accent: #40e0d0;
    --accent-rgb: 64, 224, 208;
    --bg: #15100c;
    --bg-rgb: 21, 16, 12;
    --text-primary: #f5efe8;
    --text-secondary: rgba(245, 239, 232, 0.78);
    --text-muted: rgba(245, 239, 232, 0.5);
    --text-link: #40e0d0;
    --line: rgba(210, 105, 30, 0.28);
    --line-subtle: rgba(210, 105, 30, 0.14);
    --line-accent: rgba(64, 224, 208, 0.35);
    --glow-accent: 0 0 14px rgba(64, 224, 208, 0.4);
    --glow-secondary: 0 0 12px rgba(210, 105, 30, 0.35);
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --header-height: 68px;
    --font-heading: 'Barlow', system-ui, -apple-system, sans-serif;
    --font-body: 'Libre Franklin', system-ui, -apple-system, sans-serif;
    --container: 1140px;
    --container-wide: 1240px;
    --container-narrow: 760px;
    --z-header: 100;
    --z-mobile-menu: 110;
    --z-cookie: 150;
    --z-modal: 200;
    --z-notify: 300;
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.p-container,
.p-container--wide,
.p-container--narrow,
.m-container,
.m-container--wide,
.m-container--narrow,
.l-wrap {
    width: min(var(--container), calc(100% - var(--space-lg) * 2));
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.p-container--wide,
.m-container--wide,
.l-wrap.m-container--wide {
    width: min(var(--container-wide), calc(100% - var(--space-lg) * 2));
    max-width: var(--container-wide);
}

.p-container--narrow,
.p-narrow,
.m-container--narrow,
.l-wrap.m-container--narrow {
    width: min(var(--container-narrow), calc(100% - var(--space-lg) * 2));
    max-width: var(--container-narrow);
}

.p-flex,
.m-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.p-flex--between {
    justify-content: space-between;
}

.p-flex--center {
    justify-content: center;
}

.p-flex--col {
    flex-direction: column;
    align-items: stretch;
}

.p-gap-sm,
.m-gap-sm {
    gap: var(--space-sm);
}

.p-gap-md,
.m-gap-md {
    gap: var(--space-md);
}

.p-gap-lg {
    gap: var(--space-lg);
}

.p-grid {
    display: grid;
    gap: var(--space-lg);
}

.p-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.p-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.p-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Typography utilities
   ========================================================================== */

.p-muted,
.m-muted {
    color: var(--text-muted);
}

.p-small,
.m-small {
    font-size: 0.82rem;
    line-height: 1.55;
}

.p-text-center {
    text-align: center;
}

.p-page-title,
.m-pageTitle {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: 0.01em;
}

.p-page-lead,
.m-pageLead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 720px;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.p-section-title,
.m-sectionTitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    letter-spacing: 0.03em;
    margin-bottom: var(--space-lg);
}

.p-section-title--spaced,
.m-sectionTitle--spaced {
    margin-top: var(--space-2xl);
}

.p-section-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.p-section-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 640px;
    margin-bottom: var(--space-xl);
}

.p-mt-sm { margin-top: var(--space-sm); }
.p-mt-md { margin-top: var(--space-md); }
.p-mt-lg { margin-top: var(--space-lg); }
.p-mt-xl { margin-top: var(--space-xl); }
.p-mb-md { margin-bottom: var(--space-md); }
.p-mb-lg { margin-bottom: var(--space-lg); }
.p-mb-xl { margin-bottom: var(--space-xl); }

/* ==========================================================================
   Section shell
   ========================================================================== */

.p-section,
.m-page {
    padding: var(--space-2xl) 0;
}

.p-section--tight {
    padding: var(--space-xl) 0;
}

.p-section--hero {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
}

.p-section__head {
    margin-bottom: var(--space-xl);
}

.p-section__head--center {
    text-align: center;
}

.p-section__head--center .p-section-lead {
    margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.p-header,
.m-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(var(--bg-rgb), 0.96);
    border-bottom: 1px solid var(--line);
    overflow: visible;
}

.p-header__inner,
.m-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: var(--space-md);
}

.p-brand,
.m-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    flex-shrink: 0;
}

.p-brand:hover,
.m-brand:hover {
    color: var(--secondary);
}

.p-brand__mark,
.m-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--line-accent);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: var(--glow-accent);
}

.p-brand--footer .p-brand__mark,
.m-brand--footer .m-brand__mark {
    width: 30px;
    height: 30px;
    font-size: 0.62rem;
}

.p-brand__name,
.m-brand__name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-nav,
.m-nav {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.p-nav__link,
.m-nav__link {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid transparent;
}

.p-nav__link:hover,
.p-nav__link.is-active,
.m-nav__link:hover,
.m-nav__link.is-active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.p-header__actions,
.m-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.p-header__account,
.m-header__account {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
}

.p-burger,
.m-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
}

.p-burger span,
.m-burger span {
    display: block;
    height: 1px;
    background: var(--accent);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.p-burger.is-open span:nth-child(1),
.m-burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.p-burger.is-open span:nth-child(2),
.m-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.p-burger.is-open span:nth-child(3),
.m-burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.p-mobileMenu,
.p-mobile-menu,
.m-mobileMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: calc(var(--z-header) - 1);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: rgba(var(--bg-rgb), 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.p-mobileMenu:not([hidden]),
.p-mobile-menu:not([hidden]),
.m-mobileMenu:not([hidden]) {
    display: flex;
}

body.is-mobileMenu-open {
    overflow: hidden;
}

.p-mobileMenu__link,
.p-mobile-menu__link,
.m-mobileMenu__link {
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line-subtle);
    text-decoration: none;
}

.p-mobileMenu__link:hover,
.p-mobile-menu__link:hover,
.m-mobileMenu__link:hover {
    color: var(--accent);
    background: rgba(var(--secondary-rgb), 0.08);
}

.p-mobileMenu__link.is-active,
.p-mobile-menu__link.is-active,
.m-mobileMenu__link.is-active {
    color: var(--secondary);
    border-left: 2px solid var(--secondary);
    background: rgba(var(--secondary-rgb), 0.06);
}

/* ==========================================================================
   Buttons — neon border
   ========================================================================== */

.p-btn,
.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--glow-accent);
    cursor: pointer;
    text-decoration: none;
}

.p-btn:hover,
.m-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.55);
}

.p-btn--primary,
.m-btn--primary {
    color: var(--accent);
    border-color: var(--accent);
}

.p-btn--secondary,
.m-btn--secondary {
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
}

.p-btn--secondary:hover,
.m-btn--secondary:hover {
    box-shadow: 0 0 18px rgba(var(--secondary-rgb), 0.5);
}

.p-btn--ghost,
.m-btn--ghost {
    color: var(--text-secondary);
    border-color: var(--line);
    box-shadow: none;
}

.p-btn--ghost:hover,
.m-btn--ghost:hover {
    color: var(--text-primary);
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
}

.p-btn--block,
.m-btn--block {
    width: 100%;
}

.p-btn--lg,
.m-btn--lg {
    padding: 0.9rem 1.75rem;
    font-size: 0.88rem;
}

.p-btn.is-active,
.m-btn.is-active {
    color: var(--text-primary);
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
}

/* ==========================================================================
   Cards — line art
   ========================================================================== */

.p-card,
.m-card {
    position: relative;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.p-card--tight {
    padding: var(--space-lg);
}

.p-card--flat {
    padding: var(--space-md) var(--space-lg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.p-hero,
.m-hero {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    border-bottom: 1px solid var(--line-subtle);
    overflow: hidden;
}

.p-hero__inner,
.m-hero__inner {
    position: relative;
    max-width: 800px;
}

.p-hero__accent,
.m-hero__accent {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 180px;
    height: 180px;
    border: 1px solid var(--line-accent);
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
}

.p-hero__kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--line);
}

.p-hero__title,
.m-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: var(--space-md);
    letter-spacing: 0.01em;
}

.p-hero__subtitle,
.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.p-hero__text,
.m-hero__text {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 640px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.p-hero__stats,
.m-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
}

.p-hero__stats span,
.m-hero__stats span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.p-hero__stats strong,
.m-hero__stats strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}

.p-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* ==========================================================================
   Benefits
   ========================================================================== */

.p-benefits,
.m-benefits {
    padding: var(--space-2xl) 0;
}

.p-benefits__title,
.m-benefits__title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.p-benefits__grid,
.m-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.p-benefits__card,
.m-benefits__card {
    text-align: center;
    padding: var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-benefits__icon,
.m-benefits__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--line-accent);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--accent);
}

.p-benefits__heading,
.m-benefits__heading {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.p-benefits__text,
.m-benefits__text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.p-faq,
.m-faq {
    padding: var(--space-2xl) 0;
}

.p-faq__title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.p-faq__list,
.m-faq__list {
    max-width: 760px;
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.p-faq__item,
.m-faq__item {
    border-bottom: 1px solid var(--line-subtle);
}

.p-faq__item:last-child,
.m-faq__item:last-child {
    border-bottom: none;
}

.p-faq__question,
.m-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.p-faq__question::after,
.m-faq__question::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--secondary);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.p-faq__item.is-open .p-faq__question::after,
.m-faq__item.is-open .m-faq__question::after {
    content: '\2212';
}

.p-faq__answer,
.m-faq__answer {
    display: none;
    padding: 0 var(--space-lg) var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.p-faq__item.is-open .p-faq__answer,
.m-faq__item.is-open .m-faq__answer {
    display: block;
}

.p-faq__answer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Daily chest
   ========================================================================== */

.p-chest,
.m-chest {
    padding: var(--space-2xl) 0;
}

.p-chest__box,
.m-chest__box {
    max-width: 480px;
    margin-inline: auto;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-chest__icon,
.m-chest__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.p-chest__icon svg {
    width: 48px;
    height: 48px;
}

.p-chest__status,
.m-chest__status {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.p-chest__reward,
.m-chest__reward {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--line-subtle);
}

.p-chest__xp,
.m-chest__xp {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: var(--glow-accent);
    margin-bottom: var(--space-sm);
}

.p-chest__level,
.m-chest__level {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Recently played
   ========================================================================== */

.p-recent {
    padding: var(--space-xl) 0;
}

.p-recent__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.p-recent__tile {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.p-recent__visual {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 50%;
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.p-recent__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-recent__name {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-recent__empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--space-xl);
    border: 1px dashed var(--line-subtle);
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Blog preview
   ========================================================================== */

.p-blog-preview {
    padding: var(--space-2xl) 0;
}

.p-blog-preview__grid,
.p-blog-grid,
.m-blogGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.p-blog-card,
.p-blog-preview__card,
.m-blogCard {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-blog-card:hover,
.p-blog-preview__card:hover,
.m-blogCard:hover {
    color: inherit;
    border-color: var(--secondary);
}

.p-blog-card__badge,
.m-blogCard__badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border: 1px solid var(--line);
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.p-blog-card h3,
.p-blog-preview__card h3,
.m-blogCard h3 {
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.p-blog-card p,
.p-blog-preview__card p,
.m-blogCard p {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.p-blog-card__link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.p-blog-preview__cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.p-disclaimer,
.m-disclaimer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--line-subtle);
}

.p-disclaimer p,
.m-disclaimer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
}

.p-disclaimer strong,
.m-disclaimer strong {
    color: var(--secondary);
}

.p-disclaimer a,
.m-disclaimer a {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   Games page
   ========================================================================== */

.p-pageHero {
    padding: var(--space-2xl) 0 var(--space-lg);
    border-bottom: 1px solid var(--line-subtle);
    background: linear-gradient(180deg, rgba(var(--secondary-rgb), 0.06), transparent);
}

.p-pageHero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-xl);
}

.p-pageHero__eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.p-pageHero__title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.p-pageHero__lead {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 62ch;
    margin: 0;
    line-height: 1.6;
}

.p-pageHero__guest {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    flex-shrink: 0;
    align-items: center;
}

.p-games-page {
    padding: var(--space-2xl) 0;
}

#gamesContainer {
    margin-top: var(--space-lg);
}

.p-filters,
.p-filter-row,
.m-filterRow {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.p-filterBtn,
.p-filter-btn,
.m-filterBtn {
    padding: 0.45rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
}

.p-filterBtn:hover,
.p-filter-btn:hover,
.m-filterBtn:hover {
    border-color: var(--secondary);
    color: var(--text-primary);
}

.p-filterBtn.is-active,
.p-filter-btn.is-active,
.m-filterBtn.is-active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--glow-accent);
}

.p-unlock,
.p-unlock-banner,
.m-unlockBanner {
    margin-bottom: var(--space-xl);
    text-align: center;
    border-color: var(--line-accent);
    padding: var(--space-xl);
}

.p-unlock h2,
.p-unlock-banner h2,
.m-unlockBanner h2 {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.p-unlock p,
.p-unlock-banner p,
.m-unlockBanner p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.p-unlock__actions,
.p-unlock-banner .p-flex,
.m-unlockBanner .m-flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.p-providerBlock,
.p-provider-section,
.m-providerSection {
    margin-bottom: var(--space-2xl);
}

.p-providerBlock__head,
.p-provider-section__head,
.m-providerSection__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--line);
}

.p-providerBlock__title,
.p-provider-section__title,
.m-providerSection__title {
    font-size: 1.15rem;
    margin: 0;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.p-providerBlock__count,
.p-provider-section__count,
.m-providerSection__count {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.p-games-grid,
.m-gamesGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ==========================================================================
   Game tiles — circle mask
   ========================================================================== */

.p-game-tile,
.m-game-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.p-game-tile__visual,
.m-game-tile__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 50%;
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgba(var(--primary-rgb), 0.5);
}

.p-game-tile__visual .p-game-tile__image,
.p-game-tile__visual .m-game-tile__image,
.m-game-tile__visual .m-game-tile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
}

.m-game-tile:not(.m-game-tile--locked):hover .m-game-tile__visual,
.p-game-tile:not(.p-game-tile--locked):hover .p-game-tile__visual {
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
}

.p-game-tile__info,
.m-game-tile__info {
    width: 100%;
    padding-top: var(--space-sm);
}

.p-game-tile__name,
.m-game-tile__name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-game-tile__tags,
.m-game-tile__tags {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 3;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.p-game-tile__tag,
.m-game-tile__tag {
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(var(--bg-rgb), 0.85);
}

.p-game-tile__tag--hot,
.m-game-tile__tag--hot {
    color: var(--secondary);
    border-color: var(--secondary);
}

.p-game-tile__tag--new,
.m-game-tile__tag--new {
    color: var(--accent);
    border-color: var(--accent);
}

.p-game-tile__provider,
.m-game-tile__provider {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border: 1px solid var(--line);
    color: var(--text-muted);
    background: rgba(var(--bg-rgb), 0.85);
    border-radius: var(--radius-sm);
}

.m-game-tile--locked,
.p-game-tile--locked {
    cursor: default;
}

.p-game-tile--locked .p-game-tile__visual,
.p-game-tile--locked .m-game-tile__visual,
.m-game-tile--locked .m-game-tile__visual {
    filter: grayscale(0.6) brightness(0.55);
}

.p-game-tile__lock,
.m-game-tile__lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--bg-rgb), 0.55);
    z-index: 2;
}

.p-game-tile__lock-text,
.m-game-tile__lock-text {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-align: center;
    padding: var(--space-sm);
}

.p-game-tile__lock-overlay,
.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    border-radius: 50%;
    background: rgba(var(--bg-rgb), 0.72);
    border: 1px solid var(--line-accent);
    padding: var(--space-sm);
    z-index: 3;
}

.p-game-tile__lock-icon,
.m-game-tile__lock-icon {
    position: relative;
    width: 18px;
    height: 22px;
}

.p-game-tile__lock-icon::before,
.m-game-tile__lock-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    border: 1px solid var(--accent);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.p-game-tile__lock-icon::after,
.m-game-tile__lock-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 10px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 2px;
}

.p-game-tile__lock-btn,
.m-game-tile__lock-btn {
    font-size: 0.6rem;
    padding: 0.35rem 0.6rem;
}

.p-game-tile--featured,
.m-game-tile--featured {
    max-width: 200px;
}

/* ==========================================================================
   Featured games row
   ========================================================================== */

.p-featured {
    padding: var(--space-2xl) 0;
}

.p-featured__grid,
.m-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 200px));
    gap: var(--space-lg);
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
}

.p-featured__cta,
.m-featured__cta {
    text-align: center;
    margin-top: var(--space-xl);
}

#featuredGames {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

/* ==========================================================================
   Live feed & streak
   ========================================================================== */

.p-live-feed,
.m-liveFeed {
    padding: var(--space-md) 0;
}

.p-live-feed__bar,
.m-liveFeed__bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-live-feed__dot,
.m-liveFeed__dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--glow-accent);
}

.p-live-feed__text,
.m-liveFeed__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.p-streak,
.m-streak {
    padding: var(--space-md) 0;
}

.p-streak__banner,
.m-streak__banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--line-accent);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-streak__text,
.m-streak__text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.p-streak__bonus,
.m-streak__bonus {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border: 1px solid var(--line-accent);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Ranking
   ========================================================================== */

.p-ranking,
.m-ranking {
    padding: var(--space-2xl) 0;
}

.p-ranking__table-wrap,
.m-ranking__tableWrap {
    max-width: 720px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.p-ranking__table,
.m-ranking__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.p-ranking__table th,
.p-ranking__table td,
.m-ranking__table th,
.m-ranking__table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--line-subtle);
}

.p-ranking__table th,
.m-ranking__table th {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.p-ranking__user,
.m-ranking__user {
    max-width: 720px;
    margin: var(--space-xl) auto 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Guides preview
   ========================================================================== */

.p-guides-preview,
.m-guidesPreview {
    padding: var(--space-2xl) 0;
}

.p-guides-preview__grid,
.m-guidesPreview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.p-guides-preview__card,
.m-guidesPreview__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-guides-preview__card:hover,
.m-guidesPreview__card:hover {
    color: inherit;
    border-color: var(--secondary);
}

.p-guides-preview__card h3,
.m-guidesPreview__card h3 {
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

.p-guides-preview__card p,
.m-guidesPreview__card p {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.p-guides-preview__link,
.m-guidesPreview__link {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.p-guides-preview__cta,
.m-guidesPreview__cta {
    text-align: center;
}

/* ==========================================================================
   Reviews grid
   ========================================================================== */

.p-reviews-grid,
.m-reviewsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.p-review-card,
.m-reviewCard {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-review-card__head,
.m-reviewCard__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.p-review-card__head h2,
.p-review-card__head h3,
.m-reviewCard__head h2,
.m-reviewCard__head h3 {
    font-size: 1.05rem;
    margin: 0;
    flex: 1;
}

.p-review-card__rating,
.m-reviewCard__rating {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary);
    white-space: nowrap;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.p-breadcrumb,
.m-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.p-breadcrumb a,
.m-breadcrumb a {
    color: var(--text-secondary);
}

.p-breadcrumb a:hover,
.m-breadcrumb a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Article & prose
   ========================================================================== */

.p-article,
.m-prose {
    line-height: 1.7;
}

.p-article h2,
.m-prose h2 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--line-subtle);
}

.p-article h2:first-child,
.m-prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.p-article h3,
.m-prose h3 {
    color: var(--accent);
    font-size: 1.05rem;
    margin-top: var(--space-lg);
}

.p-article p,
.p-article li,
.m-prose p,
.m-prose li {
    color: var(--text-secondary);
}

.p-article a,
.m-prose a {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   Account page
   ========================================================================== */

.p-page--account,
.m-page--account {
    padding-bottom: var(--space-3xl);
}

.p-account-head,
.m-accountHead {
    margin-bottom: var(--space-xl);
}

.p-accountGrid,
.p-account-grid,
.m-accountGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.p-accountGrid .p-card h2,
.p-account-grid .p-card h2,
.m-accountGrid .m-card h2 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--secondary);
}

.p-accountGrid .p-card > p,
.p-account-grid .p-card > p,
.m-accountGrid .m-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.p-accountGrid form,
.p-account-grid form,
.m-accountGrid form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.p-accountGrid .p-field,
.p-account-grid .p-field,
.m-accountGrid .m-field {
    margin-bottom: 0;
}

.p-accountWhy,
.p-account-benefits,
.m-accountBenefits {
    margin-top: var(--space-lg);
    border-left: 4px solid var(--secondary);
}

.p-accountWhy h2,
.p-account-benefits h2,
.m-accountBenefits h2 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.p-accountWhy ul,
.p-account-benefits ul,
.m-accountBenefits ul {
    margin: 0;
    padding-left: 1.25rem;
}

.p-accountWhy li,
.p-account-benefits li,
.m-accountBenefits li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.55;
}

.p-accountWhy li strong,
.p-account-benefits li strong {
    color: var(--text-primary);
}

.p-acct-card,
.m-acctCard h2 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.p-acct-form,
.m-acctForm {
    margin-top: var(--space-lg);
}

.p-profile,
.p-account-dash,
.m-accountDash {
    max-width: 720px;
    margin: 0 auto;
}

.p-profile__head,
.p-account-dash__hero,
.m-accountDash__hero {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--line-subtle);
}

.p-profile__badge,
.p-level-badge,
.m-levelBadge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    width: 72px;
    height: 72px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: var(--glow-accent);
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.p-profile__head h2,
.p-account-dash__name,
.m-accountDash__name {
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.p-profile__section,
.p-account-dash__section,
.m-accountDash__section {
    margin-bottom: var(--space-xl);
}

.p-profile__section h3,
.p-account-dash__section h3,
.m-accountDash__section h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.p-xpBar__meta,
.p-account-dash__xp-row,
.m-accountDash__xpRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.p-xpBar,
.p-progress,
.m-progress {
    height: 8px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.p-xpBar__fill,
.p-progress__fill,
.m-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    box-shadow: var(--glow-accent);
    width: 0%;
    border-radius: var(--radius-sm);
}

.p-statsGrid,
.p-account-stats,
.m-accountStats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.p-statsGrid__item,
.p-stat-card,
.m-statCard {
    text-align: center;
    padding: var(--space-md);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
}

.p-statsGrid__value,
.p-stat-card strong,
.m-statCard strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.p-statsGrid__label,
.p-stat-card span,
.m-statCard span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.p-profile__actions,
.p-account-dash__actions,
.m-accountDash__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.p-level-badge__num,
.m-levelBadge__num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.p-level-badge__label,
.m-levelBadge__label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.p-account-dash__welcome,
.m-accountDash__welcome {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-xs);
}

.p-account-dash__email,
.m-accountDash__email {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.p-field,
.m-field {
    margin-bottom: var(--space-md);
}

.p-field label,
.m-field label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.p-field input,
.p-field select,
.p-field textarea,
.m-field input,
.m-field select,
.m-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.p-field input:focus,
.p-field select:focus,
.p-field textarea:focus,
.m-field input:focus,
.m-field select:focus,
.m-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
}

.p-field input::placeholder,
.m-field input::placeholder {
    color: var(--text-muted);
}

.p-authTabs,
.p-auth-tabs,
.m-authTabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--line-subtle);
}

.p-authTabs__btn,
.p-auth-tabs__btn,
.m-authTabs__btn {
    flex: 1;
    padding: var(--space-md);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: -1px;
}

.p-authTabs__btn:hover,
.p-auth-tabs__btn:hover,
.m-authTabs__btn:hover {
    color: var(--text-secondary);
}

.p-authTabs__btn.is-active,
.p-auth-tabs__btn.is-active,
.m-authTabs__btn.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.15);
}

.p-authForm,
.p-auth-form,
.m-authForm {
    display: none;
    flex-direction: column;
    gap: var(--space-md);
}

.p-authForm.is-active,
.p-auth-form.is-active,
.m-authForm.is-active {
    display: flex;
}

.p-authForm[hidden],
.p-auth-form[hidden],
.m-authForm[hidden] {
    display: none !important;
}

.p-authForm .p-field,
.p-auth-form .p-field,
.m-authForm .m-field {
    margin-bottom: 0;
}

.p-modal__panel > .p-muted:first-of-type,
.m-modal__panel > .m-muted:first-of-type {
    margin-bottom: var(--space-lg);
}

.p-modal__panel > .p-small,
.p-modal__panel > .p-muted.p-small,
.m-modal__panel > .m-small {
    margin-top: var(--space-md);
    font-size: 0.78rem;
    line-height: 1.5;
}

.p-modal__panel > .p-small a,
.p-modal__panel > .p-muted.p-small a,
.m-modal__panel > .m-small a {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.p-modal,
.m-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(var(--bg-rgb), 0.88);
}

.p-modal.is-open,
.m-modal.is-open {
    display: flex;
}

.p-modal__panel,
.m-modal__panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - var(--space-2xl));
    overflow-y: auto;
    padding: var(--space-xl);
    border: 1px solid var(--line-accent);
    border-radius: var(--radius-md);
    background: var(--primary);
    box-shadow: var(--glow-accent);
}

.p-modal__panel--wide,
.m-modal__panel--wide {
    max-width: 960px;
}

.p-modal__panel h2,
.m-modal__panel h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.p-modal__panel p,
.m-modal__panel p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.p-modal__close,
.m-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.p-modal__close:hover,
.m-modal__close:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.p-modal__actions,
.m-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.p-modal__game-title,
.p-modal__gameTitle,
.m-modal__gameTitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.p-modal iframe,
.m-modal iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
}

/* ==========================================================================
   Cookie consent
   ========================================================================== */

.p-cookie,
.m-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-cookie);
    padding: var(--space-md) 0;
    background: rgba(var(--primary-rgb), 0.96);
    border-top: 1px solid var(--line);
}

.p-cookie__inner,
.m-cookie__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.p-cookie p,
.m-cookie p {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    min-width: 200px;
}

/* ==========================================================================
   Notifications
   ========================================================================== */

.p-notification,
.m-notification {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    z-index: var(--z-notify);
    max-width: 360px;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--line-accent);
    border-radius: var(--radius-md);
    background: var(--primary);
    box-shadow: var(--glow-accent);
    opacity: 0;
    pointer-events: none;
}

.p-notification.show,
.m-notification.show {
    opacity: 1;
    pointer-events: auto;
}

.p-notification--success,
.m-notification--success {
    border-color: var(--accent);
}

.p-notification--error,
.m-notification--error {
    border-color: #c45c4a;
}

.p-notification--info,
.m-notification--info {
    border-color: var(--secondary);
}

.p-notification__content,
.m-notification__content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.p-notification__message,
.m-notification__message {
    font-size: 0.88rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.p-footer,
.m-footer {
    margin-top: auto;
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--line);
    background: transparent;
}

.p-footer__grid,
.m-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.p-footer__col,
.m-footer__col {
    min-width: 0;
}

.p-footer__desc,
.m-footer__desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: var(--space-md);
}

.p-footer__title,
.m-footer__title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.p-footer__links,
.m-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-footer__links li,
.m-footer__links li {
    margin-bottom: var(--space-sm);
}

.p-footer__links a,
.m-footer__links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.p-footer__links a:hover,
.m-footer__links a:hover {
    color: var(--accent);
}

.p-footer__badges,
.m-footer__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.p-footer__badge,
.m-footer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.p-footer__badge img,
.m-footer__badge img {
    height: 28px;
    width: auto;
    min-width: 70px;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.p-footer__age,
.m-footer__age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 0 var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
}

.p-footer__copy,
.m-footer__copy {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--line-subtle);
    text-align: center;
}

.p-footer__copy p,
.m-footer__copy p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

/* ==========================================================================
   404 page
   ========================================================================== */

.p-404 {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.p-404__code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--secondary);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.p-404__title {
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
}

.p-404__text {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   Responsive — 992px
   ========================================================================== */

@media (max-width: 992px) {
    .p-benefits__grid,
    .m-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-blog-preview__grid,
    .p-blog-grid,
    .m-blogGrid,
    .p-guides-preview__grid,
    .m-guidesPreview__grid,
    .p-reviews-grid,
    .m-reviewsGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-recent__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .p-footer__grid,
    .m-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-games-grid,
    .m-gamesGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Responsive — 768px
   ========================================================================== */

@media (max-width: 768px) {
    .p-pageHero__row {
        flex-direction: column;
    }

    .p-pageHero__guest {
        width: 100%;
    }

    .p-nav,
    .m-nav {
        display: none;
    }

    .p-burger,
    .m-burger {
        display: flex;
    }

    .p-header__account,
    .m-header__account {
        display: none;
    }

    .p-header__inner,
    .m-header__inner {
        gap: var(--space-sm);
    }

    .p-brand__name,
    .m-brand__name {
        max-width: 140px;
        font-size: 0.88rem;
    }

    .p-hero,
    .m-hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .p-accountGrid,
    .p-account-grid,
    .m-accountGrid {
        grid-template-columns: 1fr;
    }

    .p-statsGrid,
    .p-account-stats,
    .m-accountStats {
        grid-template-columns: 1fr;
    }

    .p-profile__head,
    .p-account-dash__hero,
    .m-accountDash__hero {
        flex-direction: column;
        text-align: center;
    }

    .p-modal__panel--wide,
    .m-modal__panel--wide {
        max-width: 100%;
    }

    .p-cookie__inner,
    .m-cookie__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .p-featured__grid,
    .m-featured__grid {
        grid-template-columns: repeat(2, minmax(120px, 180px));
    }
}

@media (min-width: 769px) {
    .p-mobileMenu,
    .p-mobile-menu,
    .m-mobileMenu,
    .p-mobileMenu:not([hidden]),
    .p-mobile-menu:not([hidden]),
    .m-mobileMenu:not([hidden]) {
        display: none !important;
    }
}

/* ==========================================================================
   Responsive — 480px
   ========================================================================== */

@media (max-width: 480px) {
    .p-container,
    .p-container--wide,
    .p-container--narrow,
    .m-container,
    .m-container--wide,
    .m-container--narrow,
    .l-wrap {
        padding-inline: var(--space-md);
    }

    .p-benefits__grid,
    .m-benefits__grid {
        grid-template-columns: 1fr;
    }

    .p-blog-preview__grid,
    .p-blog-grid,
    .m-blogGrid,
    .p-guides-preview__grid,
    .m-guidesPreview__grid,
    .p-reviews-grid,
    .m-reviewsGrid {
        grid-template-columns: 1fr;
    }

    .p-recent__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .p-footer__grid,
    .m-footer__grid {
        grid-template-columns: 1fr;
    }

    .p-hero__stats,
    .m-hero__stats {
        gap: var(--space-md);
    }

    .p-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .p-hero__actions .p-btn,
    .p-hero__actions .m-btn {
        width: 100%;
    }

    .p-featured__grid,
    .m-featured__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .p-card,
    .m-card {
        padding: var(--space-lg);
    }

    .p-modal,
    .m-modal {
        padding: var(--space-md);
    }

    .p-modal__panel,
    .m-modal__panel {
        padding: var(--space-lg);
    }
}

/* ==========================================================================
   Responsive — 360px
   ========================================================================== */

@media (max-width: 360px) {
    .p-brand__mark,
    .m-brand__mark {
        width: 30px;
        height: 30px;
        font-size: 0.58rem;
    }

    .p-brand__name,
    .m-brand__name {
        max-width: 110px;
        font-size: 0.8rem;
    }

    .p-btn,
    .m-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .p-recent__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-games-grid,
    .m-gamesGrid {
        gap: var(--space-md);
    }

    .p-game-tile__name,
    .m-game-tile__name {
        font-size: 0.7rem;
    }

    .p-notification,
    .m-notification {
        left: var(--space-sm);
        right: var(--space-sm);
        max-width: none;
    }
}
