:root {
    --background-main: #0D0D15;
    --background-surface: #1A1A2E;
    --background-elevated: #252545;
    --primary-brand: #00F0FF;
    --secondary-brand: #BC00FF;
    --accent-gaming: #FFD700;
    --success: #39FF14;
    --error: #FF3131;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-pixel: #334155;
    --gradient-retro: linear-gradient(135deg, #00F0FF 0%, #BC00FF 100%);
}

body {
    background-color: var(--background-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
.pixel-font {
    font-family: 'Press Start 2P', system-ui;
    line-height: 1.2;
}

.text-muted {
    color: #94A3B8 !important;
}

.pixel-border {
    border: 4px solid var(--border-pixel);
    position: relative;
}

.pixel-card {
    background-color: var(--background-surface);
    border: 4px solid var(--border-pixel);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    transition: transform 0.300s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.300s cubic-bezier(0.4, 0, 0.2, 1);
}

.pixel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border-color: var(--primary-brand);
}

.pixel-btn {
    background: var(--gradient-retro);
    color: #FFFFFF;
    font-family: 'Press Start 2P', cursive;
    padding: 1rem 2rem;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.300s, filter 0.300s;
    display: inline-block;
    text-align: center;
}

.pixel-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.pixel-btn:active {
    transform: scale(0.95);
}

.neon-text {
    color: var(--primary-brand);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.scanline {
    width: 100%;
    height: 2px;
    background: rgba(0, 240, 255, 0.1);
    position: absolute;
    pointer-events: none;
}

/* ===== header ===== */
.coinz-header .js-dropdown-container {
    position: relative;
    z-index: 9999;
}

.coinz-header .js-dropdown-menu.is-visible {
    display: block !important;
    animation: dropdownFade 0.2s ease-out;
    z-index: 9999;
    pointer-events: auto;
}

.coinz-header .js-dropdown-menu a {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 10000;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coinz-header .js-mobile-menu {
    pointer-events: none;
}

.coinz-header .js-mobile-menu.is-active {
    transform: translateX(0);
    pointer-events: auto;
}

.coinz-header .nav-link-active {
    color: #00F0FF;
    text-decoration: underline wavy #FFD700;
}

.coinz-header .js-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.coinz-header .js-dropdown-toggle i {
    transition: transform 0.3s ease;
}

/* ===== hero ===== */
.hero-section {
    position: relative;
    padding: 80px 0;
}

.hero-section .hero-bg-overlay {
    background-position: center;
    background-size: cover;
}

.hero-section .hero-title {
    text-shadow: 4px 4px 0px rgba(188, 0, 255, 0.5), 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-section .hero-description {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.7);
}

.hero-section .hero-content {
    direction: rtl;
}

.hero-section .js-hero-cta {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero-section .hero-visual img {
    filter: brightness(1.1) contrast(1.1);
}

.hero-section .hero-visual::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px dashed rgba(0, 240, 255, 0.3);
    pointer-events: none;
}

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section .hero-title {
        text-align: center;
    }

    .hero-section .hero-description {
        text-align: center;
    }
}

/* ===== features ===== */
.coinz-features-v1 .js-feature-card {
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.coinz-features-v1 .js-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.coinz-features-v1 .js-feature-card:hover::before {
    opacity: 1;
}

.coinz-features-v1 i {
    filter: drop-shadow(0 0 5px currentColor);
}

@media (max-width: 767px) {
    .coinz-features-v1 h2 {
        font-family: 'Inter', sans-serif;
        letter-spacing: normal;
    }

    .coinz-features-v1 .js-feature-card {
        padding: 24px 16px;
    }
}

/* ===== games_preview ===== */
.games-grid-block {
    background-color: #0D0D15;
}

.games-grid-block .game-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.games-grid-block .game-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.games-grid-block .game-card:hover img {
    transform: scale(1.1);
}

.games-grid-block .game-card h3 {
    line-height: 1.3;
    hyphens: auto;
}

@media (max-width: 767px) {
    .games-grid-block .game-card {
        margin-bottom: 8px;
    }
}

/* ===== how_to_play ===== */
.how-to-play-block .how-to-play-card {
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    height: 100%;
}

.how-to-play-block .how-to-play-card:hover {
    border-color: #00F0FF;
    transform: translateY(-8px);
    box-shadow: 12px 12px 0px rgba(0, 240, 255, 0.2);
}

.how-to-play-block .icon-container {
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}

.how-to-play-block .ri-loader-4-line {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .how-to-play-block .how-to-play-card {
        padding: 20px 16px;
    }
}

/* ===== family_friendly ===== */
.family-friendly-section {
    background-color: #0D0D15;
    font-family: 'Inter', sans-serif;
}

.family-friendly-section h2,
.family-friendly-section h3 {
    line-height: 1.3;
}

.family-friendly-section .game-card {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.family-friendly-section .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border-color: #00F0FF;
}

.family-friendly-section .feature-card:hover {
    border-color: #00F0FF;
}

.family-friendly-section .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== footer ===== */
.footer-block {
    position: relative;
    background-image: radial-gradient(circle at 50% 100%, rgba(188, 0, 255, 0.05) 0%, transparent 50%);
}

.footer-block .js-footer-link:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    text-decoration: underline wavy #BC00FF;
}

.footer-block h3 {
    font-family: 'Press Start 2P', system-ui;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .footer-block {
        text-align: center;
    }

    .footer-block ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-block .footer-info img {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== PAGE: about ===== */
.about-page-content {
  font-family: 'Inter', sans-serif;
  direction: rtl;
}
.about-page-content h2,
.about-page-content h3 {
  line-height: 1.3;
}
.about-page-content .team-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-page-content .team-card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 8px 0px rgba(0, 240, 255, 0.2);
}
.about-page-content .about-mission img {
  image-rendering: pixelated;
}
.about-page-content .about-choose {
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
  .about-page-content h2 {
    text-align: center;
  }
  .about-page-content p {
    text-align: center;
    hyphens: auto;
  }
}

/* ===== PAGE: game-room ===== */
.game-room-all-games .game-card {
  box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
  border-radius: 0px;
}
.game-room-all-games .game-card:hover {
  box-shadow: 0 0 20px rgba(0,240,255,0.4);
}
.game-room-new-games .new-game-card {
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
  border-radius: 0px;
}
.game-room-new-games .new-game-card:hover {
  box-shadow: 0 0 15px rgba(188,0,255,0.4);
}
@media (max-width: 768px) {
  .game-room-all-games h2, .game-room-new-games h2 {
    hyphens: auto;
  }
}

/* ===== PAGE: leaderboard ===== */
.coinz-leaderboard .js-tab-trigger.active {
  background: #00F0FF;
  color: #0D0D15;
  border-color: #00F0FF;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.coinz-leaderboard .podium-card--1 {
  z-index: 10;
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .coinz-leaderboard .podium-card--1 {
    transform: scale(1);
    order: 1 !important;
  }
  .coinz-leaderboard .podium-card--2 {
    order: 2 !important;
  }
  .coinz-leaderboard .podium-card--3 {
    order: 3 !important;
  }
}

.coinz-leaderboard .js-leaderboard-row {
  display: grid;
}

.coinz-leaderboard .js-leaderboard-row.hidden,
.coinz-leaderboard .js-leaderboard-item.hidden {
  display: none !important;
}

.coinz-ranking .ranking-stat i {
  vertical-align: middle;
}

/* ===== PAGE: online-players ===== */
.online-players-page .player-card {
  position: relative;
  overflow: hidden;
}
.online-players-page .player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.03) 0px, rgba(0, 240, 255, 0.03) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
}
.online-players-page input::placeholder {
  color: #94A3B8;
  opacity: 0.7;
}
.online-players-page .js-player-item {
  display: flex;
}
.online-players-page .hidden {
  display: none !important;
}

/* ===== PAGE: guide ===== */
.guides-section .js-guide-card { transform-origin: center; }
.guides-section .line-height-tight { line-height: 1.2; }
.guides-section .line-height-relaxed { line-height: 1.6; }
.tips-section .font-bold { font-weight: 700; }
.guides-section .js-search-input:focus { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }

/* ===== PAGE: contact ===== */
.contact-page-container {
  direction: rtl;
}
.contact-info-block .info-card {
  box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
  border-radius: 0;
}
.contact-info-block .info-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0px rgba(0,240,255,0.2);
}
.faq-block .faq-item {
  box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
  border-radius: 0;
}
.faq-block .faq-item.active {
  border-color: #00F0FF;
}
.faq-block .faq-item.active .ri-add-line {
  transform: rotate(45deg);
  color: #BC00FF;
}
.contact-info-block iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== PAGE: privacy ===== */
.privacy-policy-container { direction: rtl; }
.privacy-policy-container .policy-text-block p { text-align: justify; }
.privacy-policy-container .usage-card { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.privacy-policy-container .icon-box { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
.privacy-policy-container h1, .privacy-policy-container h2, .privacy-policy-container h3 { letter-spacing: 0.05em; }
@media (max-width: 767px) {
  .privacy-policy-container h1 { line-height: 1.5; }
  .privacy-policy-container .policy-text-block { padding: 1.5rem; }
}

/* ===== PAGE: terms ===== */
.terms-page-block {
  direction: rtl;
  text-align: right;
}
.terms-page-block .responsibility-card {
  box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.5);
}
.terms-page-block .terms-item {
  position: relative;
  padding-right: 20px;
  border-right: 3px solid #334155;
}
.terms-page-block .terms-item::before {
  content: '';
  position: absolute;
  right: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  background: #00F0FF;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.terms-page-block .icon-box {
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-section .pixel-corner-tl, .disclaimer-section .pixel-corner-tr, .disclaimer-section .pixel-corner-bl, .disclaimer-section .pixel-corner-br { position: absolute; width: 12px; height: 12px; background: #00F0FF; z-index: 10; } .disclaimer-section .pixel-corner-tl { top: 0; left: 0; } .disclaimer-section .pixel-corner-tr { top: 0; right: 0; } .disclaimer-section .pixel-corner-bl { bottom: 0; left: 0; } .disclaimer-section .pixel-corner-br { bottom: 0; right: 0; } .disclaimer-section .disclaimer-card:hover { transform: translateY(-4px); transition: transform 0.3s ease; border-color: #00F0FF; } .disclaimer-section .liability-card:hover { transform: translateY(-4px); transition: transform 0.3s ease; border-color: #BC00FF; } .disclaimer-section .liability-item { transition: background 0.3s ease; } .disclaimer-section .liability-item:hover { background: #334155; } .disclaimer-section h1, .disclaimer-section h2, .disclaimer-section h3 { line-height: 1.3; } .disclaimer-section p { line-height: 1.6; }

.main-comment-card:hover {
    border-color: #00F0FF;
    transform: translateY(-4px);
    box-shadow: 12px 12px 0px rgba(0, 240, 255, 0.2);
}

.avatar-box {
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}

.comment-action-btn i {
    font-size: 1.1rem;
}

.reply-comment-card:hover {
    background-color: #2b2b52;
    border-right-width: 6px;
}

.avatar-box-small {
    clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 85%, 0 15%);
}


/* ===== PAGE TEMPLATE: game-room ===== */
.coinz-header .js-dropdown-menu.is-visible {
    display: block !important;
    animation: dropdownFade 0.2s ease-out;
    z-index: 9999;
    pointer-events: auto;
}

.coinz-header .js-mobile-menu.is-active {
    transform: translateX(0);
    pointer-events: auto;
}

.coinz-header .js-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-player-section .js-game-container.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    border: none;
}

.game-detail-template .prose-container h1,
.game-detail-template .prose-container h2,
.game-detail-template .prose-container h3 {
    font-family: 'Press Start 2P', system-ui;
    line-height: 1.3;
    color: #00F0FF;
    margin-bottom: 1.5rem;
}

.game-detail-template .prose-container p {
    font-size: 1rem;
    line-height: 1.625;
    color: #94A3B8;
    margin-bottom: 1.25rem;
}

.game-detail-template .prose-container ul {
    list-style: none;
    padding-right: 0;
    margin-bottom: 1.5rem;
}

.game-detail-template .prose-container ul li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    color: #F8FAFC;
}

.game-detail-template .prose-container ul li::before {
    content: '■';
    position: absolute;
    right: 0;
    color: #BC00FF;
    font-size: 10px;
    top: 4px;
}

.footer-block {
    position: relative;
    background-image: radial-gradient(circle at 50% 100%, rgba(188, 0, 255, 0.05) 0%, transparent 50%);
}

.footer-block .js-footer-link:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    text-decoration: underline wavy #BC00FF;
}

@media (max-width: 767px) {
    .footer-block {
        text-align: center;
    }

    .footer-block ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .game-detail-template .prose-container {
        padding: 1.5rem;
    }
}

/* ===== PAGE TEMPLATE: guide ===== */
.guide-template-wrapper .guide-rich-text h2 {
    color: #00F0FF;
    font-size: 16px;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .guide-template-wrapper .guide-rich-text h2 {
        font-size: 32px;
    }
}

.guide-template-wrapper .guide-rich-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #94A3B8;
}

.guide-template-wrapper .guide-rich-text ul {
    list-style: none;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.guide-template-wrapper .guide-rich-text li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    color: #F8FAFC;
}

.guide-template-wrapper .guide-rich-text li::before {
    content: '>';
    position: absolute;
    right: 0;
    color: #BC00FF;
    font-weight: bold;
}

.coinz-header .js-dropdown-menu.is-visible {
    display: block !important;
    animation: dropdownFade 0.2s ease-out;
    z-index: 9999;
    pointer-events: auto;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coinz-header .js-mobile-menu.is-active {
    transform: translateX(0);
}

.coinz-header .js-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.coinz-header .js-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.footer-block {
    position: relative;
    background-image: radial-gradient(circle at 50% 100%, rgba(188, 0, 255, 0.05) 0%, transparent 50%);
}

.footer-block .js-footer-link:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    text-decoration: underline wavy #BC00FF;
}

.main-comment-card,
.reply-comment-card {
    border-radius: 0;
}

#js-main-game-iframe:fullscreen {
    border: none;
    width: 100vw;
    height: 100vh;
}