/*
 * RecPlay - Core Stylesheet
 * Domain: recp.top
 * Warm indigo theme with top navigation layout
 */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rp-bg: #0f172a;
    --rp-bg-card: #1e293b;
    --rp-bg-card-hover: #273548;
    --rp-bg-surface: #1a2332;
    --rp-bg-glass: rgba(30, 41, 59, 0.85);
    --rp-primary: #f59e0b;
    --rp-primary-rgb: 245, 158, 11;
    --rp-primary-dark: #d97706;
    --rp-accent: #14b8a6;
    --rp-accent-rgb: 20, 184, 166;
    --rp-accent-dark: #0d9488;
    --rp-highlight: #8b5cf6;
    --rp-highlight-rgb: 139, 92, 246;
    --rp-success: #22c55e;
    --rp-text: #f1f5f9;
    --rp-text-mid: #94a3b8;
    --rp-text-soft: #64748b;
    --rp-border: rgba(255, 255, 255, 0.08);
    --rp-border-light: rgba(255, 255, 255, 0.04);
    --rp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --rp-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --rp-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --rp-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --rp-glow-primary: 0 0 16px rgba(245, 158, 11, 0.15);
    --rp-glow-accent: 0 0 16px rgba(20, 184, 166, 0.15);
    --rp-radius: 12px;
    --rp-radius-sm: 8px;
    --rp-radius-lg: 16px;
    --rp-radius-xl: 24px;
    --rp-radius-full: 9999px;
    --rp-ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --rp-max-w: 1280px;
    --rp-nav-h: 64px;
    --rp-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--rp-font);
    color: var(--rp-text);
    background: var(--rp-bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(245, 158, 11, 0.04), transparent),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(20, 184, 166, 0.03), transparent);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--rp-ease);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ==========================================
   TOP NAVIGATION BAR
   ========================================== */

.rp-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--rp-nav-h);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rp-border);
    z-index: 300;
    display: flex;
    align-items: center;
}

.rp-navbar-inner {
    width: 100%;
    max-width: var(--rp-max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rp-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rp-navbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rp-navbar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--rp-text);
    letter-spacing: -0.5px;
}

.rp-navbar-title span {
    color: var(--rp-primary);
}

.rp-navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rp-navbar-links::-webkit-scrollbar { display: none; }

.rp-nav-link {
    padding: 8px 16px;
    color: var(--rp-text-mid);
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: var(--rp-radius-sm);
    white-space: nowrap;
    transition: var(--rp-ease);
}

.rp-nav-link:hover {
    color: var(--rp-text);
    background: rgba(255, 255, 255, 0.06);
}

.rp-nav-link.is-active {
    color: var(--rp-primary);
    background: rgba(245, 158, 11, 0.1);
    font-weight: 600;
}

.rp-navbar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--rp-bg-card);
    border-radius: var(--rp-radius-sm);
    border: 1px solid var(--rp-border);
    flex-shrink: 0;
}

.rp-navbar-toggle-icon {
    width: 18px;
    height: 2px;
    background: var(--rp-text);
    position: relative;
    transition: var(--rp-ease);
}

.rp-navbar-toggle-icon::before,
.rp-navbar-toggle-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--rp-text);
    left: 0;
    transition: var(--rp-ease);
}

.rp-navbar-toggle-icon::before { top: -6px; }
.rp-navbar-toggle-icon::after { top: 6px; }

/* Mobile nav drawer */
.rp-mobile-nav {
    display: none;
    position: fixed;
    top: var(--rp-nav-h);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rp-border);
    z-index: 299;
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
}

.rp-mobile-nav.is-open { display: flex; }

.rp-mobile-nav .rp-nav-link {
    padding: 12px 16px;
    font-size: 0.9rem;
}

/* ==========================================
   MAIN LAYOUT
   ========================================== */

.rp-container {
    width: 100%;
    max-width: var(--rp-max-w);
    margin: 0 auto;
    padding: 0 24px;
    overflow: hidden;
}

.rp-main {
    padding: 28px 0 60px;
    min-height: calc(100vh - 200px);
}

.rp-section {
    margin-bottom: 44px;
}

.rp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rp-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--rp-primary), var(--rp-accent));
    border-radius: 2px;
}

.rp-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rp-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--rp-radius-full);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    transition: var(--rp-ease);
}

.rp-section-more:hover {
    background: rgba(245, 158, 11, 0.15);
    box-shadow: var(--rp-glow-primary);
}

/* ==========================================
   GAME CARD GRID
   ========================================== */

.rp-game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.rp-game-grid--compact {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.rp-game-card {
    background: var(--rp-bg-card);
    border-radius: var(--rp-radius);
    overflow: hidden;
    transition: var(--rp-ease);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rp-border);
    position: relative;
}

.rp-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: var(--rp-shadow-md);
}

.rp-game-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--rp-bg-surface);
}

.rp-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rp-game-card:hover .rp-game-thumb img {
    transform: scale(1.06);
}

.rp-game-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    backdrop-filter: blur(6px);
}

.rp-tag-sports { background: linear-gradient(135deg, var(--rp-accent), #0ea5e9); }
.rp-tag-puzzle { background: linear-gradient(135deg, var(--rp-highlight), #a78bfa); }
.rp-tag-casual { background: linear-gradient(135deg, var(--rp-primary), #fb923c); color: #1e293b; }
.rp-tag-strategy { background: linear-gradient(135deg, #ef4444, var(--rp-primary)); }
.rp-tag-boys { background: linear-gradient(135deg, #3b82f6, var(--rp-accent)); }
.rp-tag-girls { background: linear-gradient(135deg, #ec4899, #f472b6); }
.rp-tag-latest { background: linear-gradient(135deg, var(--rp-success), #4ade80); color: #1e293b; }
.rp-tag-popular { background: linear-gradient(135deg, var(--rp-primary), var(--rp-highlight)); }
.rp-tag-motive { background: linear-gradient(135deg, #f97316, #ef4444); }

.rp-game-mark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--rp-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    z-index: 3;
}

.rp-game-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--rp-bg-card);
    position: relative;
    z-index: 3;
}

.rp-game-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2em;
    color: var(--rp-text);
}

.rp-game-desc {
    color: var(--rp-text-soft);
    font-size: 0.68rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-game-card--cover .rp-game-body { display: none; }
.rp-game-card--cover .rp-game-thumb { aspect-ratio: 4 / 5; }
.rp-game-card--compact { border-radius: var(--rp-radius-sm); }
.rp-game-card--compact .rp-game-thumb { aspect-ratio: 3 / 4; }
.rp-game-card--compact .rp-game-name {
    font-size: 0.74rem;
    min-height: auto;
    -webkit-line-clamp: 1;
}

/* ==========================================
   BREADCRUMB
   ========================================== */

.rp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--rp-text-soft);
    flex-wrap: wrap;
}

.rp-breadcrumb a {
    color: var(--rp-primary);
    transition: var(--rp-ease);
}

.rp-breadcrumb a:hover { color: var(--rp-accent); }

.rp-breadcrumb-sep {
    color: var(--rp-text-soft);
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ==========================================
   GAME DETAIL PAGE
   ========================================== */

.rp-game-detail {
    padding: 8px 0 24px;
}

.rp-game-detail-main {
    display: flex;
    gap: 28px;
    background: var(--rp-bg-card);
    border-radius: var(--rp-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--rp-border);
    box-shadow: var(--rp-shadow);
    position: relative;
    overflow: hidden;
}

.rp-game-detail-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rp-primary), var(--rp-accent), var(--rp-highlight));
    opacity: 0.7;
}

.rp-game-detail-cover {
    width: 220px;
    flex-shrink: 0;
    border-radius: var(--rp-radius);
    overflow: hidden;
    box-shadow: var(--rp-shadow);
    border: 1px solid var(--rp-border);
}

.rp-game-detail-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.rp-game-detail-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.rp-game-detail-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--rp-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.rp-game-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.rp-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--rp-primary);
    padding: 5px 14px;
    border-radius: var(--rp-radius-full);
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.rp-tag--date {
    background: rgba(20, 184, 166, 0.1);
    color: var(--rp-accent);
    border-color: rgba(20, 184, 166, 0.15);
}

.rp-game-detail-desc {
    color: var(--rp-text-mid);
    font-size: 0.88rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.rp-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-primary-dark));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--rp-radius-full);
    transition: var(--rp-ease);
    width: fit-content;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.rp-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* Info chips */
.rp-detail-info-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rp-detail-info-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    font-size: 0.82rem;
    color: var(--rp-text-mid);
    flex: 1;
    min-width: 140px;
    transition: var(--rp-ease);
}

.rp-detail-info-chip:hover {
    border-color: rgba(245, 158, 11, 0.2);
}

.rp-detail-info-chip-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.rp-detail-info-chip strong {
    color: var(--rp-text);
    font-weight: 600;
}

/* Content sections (How to Play / Tips) */
.rp-detail-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.rp-detail-section-card {
    background: var(--rp-bg-card);
    border-radius: var(--rp-radius);
    padding: 22px;
    border: 1px solid var(--rp-border);
    transition: var(--rp-ease);
}

.rp-detail-section-card:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.rp-detail-section-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-detail-section-card h3 span {
    font-size: 1.1rem;
}

.rp-detail-section-card p {
    color: var(--rp-text-mid);
    font-size: 0.84rem;
    line-height: 1.8;
}

/* Block title */
.rp-detail-block-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-detail-block-title span { font-size: 1.1rem; }

/* Game Features */
.rp-detail-features {
    margin-bottom: 24px;
}

.rp-detail-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.rp-feature-item {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--rp-ease);
}

.rp-feature-item:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.rp-feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.rp-feature-text strong {
    display: block;
    color: var(--rp-text);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.rp-feature-text p {
    color: var(--rp-text-soft);
    font-size: 0.76rem;
    line-height: 1.6;
    margin: 0;
}

/* Game Controls */
.rp-detail-controls {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 22px;
    margin-bottom: 24px;
}

.rp-controls-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rp-control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--rp-bg-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    padding: 10px 16px;
    flex: 1;
    min-width: 180px;
}

.rp-control-key {
    background: rgba(245, 158, 11, 0.1);
    color: var(--rp-primary);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.rp-control-action {
    color: var(--rp-text-mid);
    font-size: 0.78rem;
}

/* Related games */
.rp-detail-related {
    background: var(--rp-bg-card);
    border-radius: var(--rp-radius-lg);
    padding: 22px;
    border: 1px solid var(--rp-border);
    margin-bottom: 24px;
}

.rp-detail-related-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-detail-related-title span { font-size: 1.1rem; }

/* ==========================================
   LEGAL / ARTICLE PAGES
   ========================================== */

.rp-article {
    max-width: 840px;
    margin: 0 auto;
    background: var(--rp-bg-card);
    border-radius: var(--rp-radius);
    padding: 36px;
    border: 1px solid var(--rp-border);
    box-shadow: var(--rp-shadow);
}

.rp-article h1 {
    font-size: 1.5rem;
    color: var(--rp-text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rp-border);
    font-weight: 800;
}

.rp-article h1::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--rp-primary), var(--rp-accent));
    margin-top: 10px;
    border-radius: 2px;
}

.rp-article h2 {
    font-size: 1.1rem;
    color: var(--rp-text);
    margin: 26px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--rp-primary);
    font-weight: 700;
}

.rp-article h3 {
    font-size: 0.95rem;
    color: var(--rp-text);
    margin: 18px 0 10px;
    font-weight: 600;
}

.rp-article p {
    color: var(--rp-text-mid);
    font-size: 0.88rem;
    line-height: 1.9;
    margin-bottom: 14px;
}

.rp-article ul, .rp-article ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.rp-article li {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
    color: var(--rp-text-mid);
}

.rp-article ol li { list-style: decimal; }
.rp-article a { color: var(--rp-primary); text-decoration: underline; }
.rp-article a:hover { color: var(--rp-accent); }
.rp-article strong { color: var(--rp-text); }

.rp-article-date {
    color: var(--rp-text-soft);
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.rp-contact-email {
    display: inline-block;
    background: rgba(245, 158, 11, 0.08);
    color: var(--rp-primary);
    padding: 8px 18px;
    border-radius: var(--rp-radius-sm);
    font-weight: 600;
    margin: 8px 0 14px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    font-size: 0.86rem;
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */

.rp-faq-item {
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--rp-ease);
    background: var(--rp-bg-card);
}

.rp-faq-item:hover { border-color: rgba(245, 158, 11, 0.2); }

.rp-faq-question {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--rp-text);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--rp-ease);
}

.rp-faq-question:hover { background: rgba(245, 158, 11, 0.05); }

.rp-faq-question::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--rp-primary);
    transition: transform 0.3s;
    font-weight: 300;
}

.rp-faq-item.is-open .rp-faq-question::after { transform: rotate(45deg); }

.rp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rp-faq-item.is-open .rp-faq-answer { max-height: 600px; }

.rp-faq-answer-inner {
    padding: 16px 20px;
    color: var(--rp-text-mid);
    font-size: 0.86rem;
    line-height: 1.85;
    background: var(--rp-bg-card);
    border-top: 1px solid var(--rp-border);
}

/* ==========================================
   SITE FOOTER
   ========================================== */

.rp-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--rp-border);
    padding: 44px 0 22px;
    margin-top: 56px;
    backdrop-filter: blur(10px);
}

.rp-footer-inner {
    max-width: var(--rp-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.rp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.rp-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rp-footer-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rp-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.rp-footer-brand-name img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.rp-footer-brand-desc {
    color: var(--rp-text-soft);
    font-size: 0.82rem;
    line-height: 1.7;
}

.rp-footer-col-title {
    color: var(--rp-text);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rp-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-footer-links a {
    color: var(--rp-text-soft);
    font-size: 0.8rem;
    transition: var(--rp-ease);
}

.rp-footer-links a:hover {
    color: var(--rp-primary);
    padding-left: 4px;
}

.rp-footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid var(--rp-border);
    color: var(--rp-text-soft);
    font-size: 0.76rem;
    line-height: 1.8;
}

.rp-footer-bottom a { color: var(--rp-text-mid); }
.rp-footer-bottom a:hover { color: var(--rp-primary); }

/* ==========================================
   404 ERROR PAGE
   ========================================== */

.rp-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 20px;
    min-height: 55vh;
}

.rp-error-code {
    font-size: 6.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 14px;
}

.rp-error-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 10px;
}

.rp-error-desc {
    color: var(--rp-text-mid);
    font-size: 0.9rem;
    margin-bottom: 28px;
    max-width: 440px;
}

.rp-error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-primary-dark));
    color: #fff;
    font-weight: 600;
    border-radius: var(--rp-radius-full);
    transition: var(--rp-ease);
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.rp-error-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* ==========================================
   BACK TO TOP
   ========================================== */

.rp-back-top {
    position: fixed;
    right: 22px;
    bottom: 70px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.rp-back-top.is-visible { display: flex; }

.rp-back-btn {
    width: 42px;
    height: 42px;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--rp-ease);
    box-shadow: var(--rp-shadow);
}

.rp-back-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.rp-back-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1) brightness(0.8);
}

/* ==========================================
   IFRAME GAME PLAYER
   ========================================== */

.rp-iframe-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
}

.rp-iframe-back {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--rp-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--rp-ease);
    box-shadow: var(--rp-shadow);
    backdrop-filter: blur(10px);
}

.rp-iframe-back:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.rp-iframe-back img { width: 20px; height: 20px; filter: invert(1) brightness(0.8); }

.rp-game-iframe {
    display: block;
    width: 100%;
    height: 100vh;
    border: 0;
    overflow: hidden;
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */

@keyframes rp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rp-fade-in { animation: rp-fade-in 0.4s ease-out; }

.rp-text-center { text-align: center; }
.rp-mt-2 { margin-top: 16px; }
.rp-mb-2 { margin-bottom: 16px; }

/* ==========================================
   RESPONSIVE: TABLET
   ========================================== */

@media (max-width: 1024px) {
    .rp-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .rp-game-detail-main {
        flex-direction: column;
        align-items: center;
    }

    .rp-game-detail-cover { width: 180px; }

    .rp-detail-sections {
        grid-template-columns: 1fr;
    }

    .rp-detail-info-bar { flex-wrap: wrap; }

    .rp-detail-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ==========================================
   RESPONSIVE: MOBILE
   ========================================== */

@media (max-width: 768px) {
    .rp-navbar-links { display: none; }
    .rp-navbar-toggle { display: flex; }

    .rp-container { padding: 0 14px; }

    .rp-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .rp-game-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .rp-game-body { padding: 10px 12px 12px; }
    .rp-game-name { font-size: 0.72rem; min-height: 2em; }
    .rp-game-desc { display: none; }
    .rp-game-tag { font-size: 0.55rem; padding: 3px 7px; }

    .rp-section { margin-bottom: 30px; }
    .rp-section-head { margin-bottom: 14px; }
    .rp-section-title { font-size: 1rem; }
    .rp-section-more { font-size: 0.72rem; padding: 5px 12px; }

    .rp-game-detail-main {
        flex-direction: column;
        align-items: center;
        padding: 18px;
        gap: 16px;
    }

    .rp-game-detail-cover { width: 150px; }
    .rp-game-detail-cover img { aspect-ratio: 3 / 4; }
    .rp-game-detail-meta { align-items: center; text-align: center; }
    .rp-game-detail-title { font-size: 1.15rem; margin-bottom: 10px; }
    .rp-game-detail-tags { justify-content: center; margin-bottom: 12px; }
    .rp-game-detail-desc { font-size: 0.84rem; line-height: 1.7; margin-bottom: 16px; }
    .rp-play-btn { width: 100%; max-width: none; padding: 13px 28px; font-size: 0.88rem; }

    .rp-detail-info-bar { gap: 10px; flex-wrap: wrap; }
    .rp-detail-info-chip { padding: 10px 14px; font-size: 0.76rem; min-width: 0; flex: 1 1 45%; }
    .rp-detail-sections { grid-template-columns: 1fr; gap: 14px; }
    .rp-detail-section-card { padding: 16px; }
    .rp-detail-related { padding: 16px; }

    .rp-detail-features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .rp-feature-item { padding: 14px; }
    .rp-feature-icon { font-size: 1.1rem; }
    .rp-feature-text strong { font-size: 0.78rem; }
    .rp-feature-text p { font-size: 0.7rem; }

    .rp-controls-list { flex-direction: column; }
    .rp-control-item { min-width: 0; }
    .rp-detail-controls { padding: 16px; }

    .rp-breadcrumb {
        font-size: 0.72rem;
        gap: 6px;
        padding: 10px 0;
        margin-bottom: 12px;
    }

    .rp-footer-brand-desc { font-size: 0.78rem; }
    .rp-footer-col-title { font-size: 0.72rem; }

    .rp-article { padding: 20px; }
    .rp-article h1 { font-size: 1.2rem; }
    .rp-article h2 { font-size: 0.95rem; }
    .rp-article p { font-size: 0.84rem; line-height: 1.75; }
    .rp-article li { font-size: 0.84rem; }

    .rp-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .rp-error-code { font-size: 4rem; }
    .rp-error-title { font-size: 1.05rem; }
    .rp-back-top { right: 14px; bottom: 60px; }
    .rp-back-btn { width: 40px; height: 40px; }
    .rp-back-btn img { width: 16px; height: 16px; }

    .rp-game-detail-desc,
    .rp-article p,
    .rp-article li {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ==========================================
   RESPONSIVE: EXTRA SMALL
   ========================================== */

@media (max-width: 380px) {
    .rp-container { padding: 0 10px; }
    .rp-footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .rp-game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rp-game-grid--compact { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .rp-detail-info-chip { flex: 1 1 100%; }
    .rp-navbar { padding: 0 10px; }
    .rp-navbar-title { font-size: 1.1rem; }
}
