/* =========================================================
   PLAYTEKRA
   REAL PLAYTEKRA EXPERIENCE
   PART 2 — CSS
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f7f8fb;

    color: #111827;

    line-height: 1.5;
}


a {
    color: inherit;

    text-decoration: none;
}


button {
    font: inherit;

    cursor: pointer;
}


img {
    max-width: 100%;

    display: block;
}


/* =========================================================
   GLOBAL CONTAINER
========================================================= */

header,
main,
footer {
    width: 100%;
}


.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
    width: min(1200px, 92%);

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}


.header-inner {
    min-height: 72px;

    display: flex;

    align-items: center;

    gap: 30px;
}


/* =========================================================
   LOGO AREA
========================================================= */

.logo-area {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


.logo-area img {
    width: 42px;

    height: 42px;

    object-fit: contain;
}


.logo-area h2 {
    font-size: 20px;

    line-height: 1;
}


.logo-area span {
    display: block;

    margin-top: 4px;

    color: #777777;

    font-size: 10px;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

header nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 22px;

    flex: 1;
}


header nav a {
    position: relative;

    padding: 25px 0;

    color: #555555;

    font-size: 13px;

    font-weight: 600;
}


header nav a:hover,
header nav a.active {
    color: #6c2bd9;
}


header nav a.active::after {
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 14px;

    height: 3px;

    border-radius: 10px;

    background: #6c2bd9;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}


.hero-inner {
    min-height: 480px;

    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr;

    align-items: center;

    gap: 60px;

    padding-top: 55px;

    padding-bottom: 55px;
}


.hero-content {
    max-width: 650px;
}


.hero-tag {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 5px;

    background: #eee7ff;

    color: #6c2bd9;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.hero-content h1 {
    margin-top: 15px;

    font-size: clamp(42px, 6vw, 68px);

    line-height: 1.02;

    letter-spacing: -3px;
}


.hero-content p {
    max-width: 560px;

    margin-top: 22px;

    color: #6b7280;

    font-size: 16px;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 28px;
}


.hero-buttons button {
    min-height: 44px;

    padding: 0 20px;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 700;
}


.hero-buttons button:first-child {
    border: none;

    background: #6c2bd9;

    color: #ffffff;
}


.hero-buttons button:last-child {
    border: 1px solid #d1d5db;

    background: #ffffff;

    color: #111827;
}


.hero-buttons button:hover {
    transform: translateY(-1px);
}


/* =========================================================
   FEATURED GAME
========================================================= */

.hero-featured {
    min-height: 320px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    border-radius: 12px;

    background: #151827;

    color: #ffffff;

    overflow: hidden;

    position: relative;
}


.hero-featured::before {
    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    right: -70px;

    top: -70px;

    border-radius: 50%;

    background: #6c2bd9;

    opacity: 0.5;
}


.hero-featured > * {
    position: relative;

    z-index: 1;
}


.hero-featured h3 {
    font-size: 24px;

    line-height: 1.2;
}


.hero-featured p {
    margin-top: 7px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 12px;
}


.hero-featured button {
    align-self: flex-start;

    margin-top: 18px;

    padding: 9px 15px;

    border: none;

    border-radius: 6px;

    background: #ffffff;

    color: #151827;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {
    padding: 25px 0;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}


.quick-actions .section-inner {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 10px;
}


.quick-actions button {
    min-height: 48px;

    padding: 10px;

    border: 1px solid #e5e7eb;

    border-radius: 7px;

    background: #ffffff;

    color: #374151;

    font-size: 12px;

    font-weight: 700;
}


.quick-actions button:hover {
    border-color: #6c2bd9;

    color: #6c2bd9;

    background: #faf8ff;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

section {
    width: 100%;
}


.section-inner {
    padding-top: 65px;

    padding-bottom: 65px;
}


.section-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.section-title h2 {
    font-size: 28px;

    line-height: 1.2;

    letter-spacing: -0.5px;
}


.section-title a {
    color: #6c2bd9;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   POPULAR GAMES
========================================================= */

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.game-card {
    min-height: 220px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;

    position: relative;

    overflow: hidden;
}


.game-card::before {
    content: "";

    position: absolute;

    width: 130px;

    height: 130px;

    right: -45px;

    top: -45px;

    border-radius: 50%;

    background: #eee7ff;
}


.game-card > * {
    position: relative;

    z-index: 1;
}


.game-card .game-category {
    align-self: flex-start;

    margin-bottom: auto;

    padding: 5px 8px;

    border-radius: 4px;

    background: #f3f4f6;

    color: #6b7280;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;
}


.game-card h3 {
    margin-top: 20px;

    font-size: 20px;
}


.game-card p {
    margin-top: 5px;

    color: #6b7280;

    font-size: 12px;
}


.game-card .game-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 15px;
}


.game-card .game-status {
    color: #6c2bd9;

    font-size: 10px;

    font-weight: 700;
}


.game-card button {
    padding: 7px 10px;

    border: none;

    border-radius: 5px;

    background: #111827;

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   CONTINUE PLAYING / PERSONAL ACTIVITY
========================================================= */

.continue-section {
    background: #ffffff;
}


.continue-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.continue-card {
    padding: 20px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;
}


.continue-card .continue-label {
    color: #6c2bd9;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


.continue-card h3 {
    margin-top: 8px;

    font-size: 18px;
}


.continue-card p {
    margin-top: 6px;

    color: #6b7280;

    font-size: 12px;
}


.continue-card button {
    margin-top: 16px;

    padding: 9px 13px;

    border: none;

    border-radius: 6px;

    background: #6c2bd9;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   LIVE TOURNAMENTS
========================================================= */

.tournament-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.tournament-card {
    padding: 22px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;
}


.tournament-card .tournament-status {
    color: #dc2626;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


.tournament-card h3 {
    margin-top: 9px;

    font-size: 19px;
}


.tournament-card p {
    margin-top: 6px;

    color: #6b7280;

    font-size: 12px;
}


.tournament-card .tournament-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 15px;
}


.tournament-card .tournament-meta span {
    padding: 6px 8px;

    border-radius: 5px;

    background: #f3f4f6;

    color: #4b5563;

    font-size: 10px;

    font-weight: 700;
}


.tournament-card button {
    width: 100%;

    margin-top: 18px;

    padding: 10px;

    border: none;

    border-radius: 6px;

    background: #111827;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   UPCOMING LIVE MATCHES
========================================================= */

.live-section {
    background: #111827;

    color: #ffffff;
}


.live-section .section-title h2 {
    color: #ffffff;
}


.live-match-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.live-match-card {
    padding: 22px;

    border: 1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    background: #1a2030;
}


.live-match-card .live-match-status {
    color: #c4a7ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


.live-match-card h3 {
    margin-top: 10px;

    font-size: 18px;
}


.live-match-card p {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 12px;
}


.live-match-players {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 18px;
}


.live-player {
    flex: 1;

    padding: 12px;

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.06);

    text-align: center;

    font-size: 11px;

    font-weight: 700;
}


.live-vs {
    color: rgba(255, 255, 255, 0.4);

    font-size: 10px;

    font-weight: 800;
}


.live-match-card button {
    width: 100%;

    margin-top: 15px;

    padding: 9px;

    border: 1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 6px;

    background: transparent;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   OPEN CHALLENGES
========================================================= */

.challenge-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.challenge-card {
    padding: 22px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;
}


.challenge-card .challenge-type {
    color: #6c2bd9;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


.challenge-card h3 {
    margin-top: 9px;

    font-size: 18px;
}


.challenge-card p {
    margin-top: 6px;

    color: #6b7280;

    font-size: 12px;
}


.challenge-card .challenge-prize {
    margin-top: 16px;

    font-size: 20px;

    font-weight: 800;
}


.challenge-card .challenge-meta {
    margin-top: 5px;

    color: #6b7280;

    font-size: 10px;
}


.challenge-card button {
    width: 100%;

    margin-top: 17px;

    padding: 10px;

    border: none;

    border-radius: 6px;

    background: #6c2bd9;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   GLOBAL LEADERBOARD
========================================================= */

.leaderboard {
    border: 1px solid #e5e7eb;

    border-radius: 10px;

    overflow: hidden;

    background: #ffffff;
}


.leaderboard-item {
    min-height: 65px;

    display: grid;

    grid-template-columns:
        60px
        1fr
        140px
        120px;

    align-items: center;

    gap: 15px;

    padding: 10px 18px;

    border-bottom: 1px solid #eeeeee;
}


.leaderboard-item:last-child {
    border-bottom: none;
}


.leaderboard-rank {
    font-weight: 800;

    color: #6c2bd9;
}


.leaderboard-player strong {
    display: block;

    font-size: 13px;
}


.leaderboard-player span {
    display: block;

    color: #777777;

    font-size: 10px;
}


.leaderboard-game {
    color: #6b7280;

    font-size: 11px;
}


.leaderboard-score {
    text-align: right;

    font-weight: 800;

    font-size: 12px;
}


/* =========================================================
   FRIENDS ONLINE
========================================================= */

.friends-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}


.friend-card {
    padding: 18px;

    display: flex;

    align-items: center;

    gap: 12px;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    background: #ffffff;
}


.friend-avatar {
    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eee7ff;

    color: #6c2bd9;

    font-size: 13px;

    font-weight: 800;
}


.friend-info {
    min-width: 0;
}


.friend-info strong {
    display: block;

    font-size: 12px;
}


.friend-info span {
    display: block;

    margin-top: 2px;

    color: #16a34a;

    font-size: 10px;
}


/* =========================================================
   UPCOMING EVENTS / WATCH
========================================================= */

.watch-section {
    background: #ffffff;
}


.watch-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.watch-card {
    padding: 22px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;
}


.watch-card .watch-label {
    color: #6c2bd9;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


.watch-card h3 {
    margin-top: 8px;

    font-size: 18px;
}


.watch-card p {
    margin-top: 6px;

    color: #6b7280;

    font-size: 12px;
}


.watch-card button {
    margin-top: 16px;

    padding: 9px 13px;

    border: 1px solid #d1d5db;

    border-radius: 6px;

    background: #ffffff;

    color: #111827;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #111827;

    color: #ffffff;
}


.footer-inner {
    padding-top: 45px;

    padding-bottom: 30px;
}


.footer-brand strong {
    display: block;

    font-size: 20px;
}


.footer-brand p {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 11px;
}


.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 25px;
}


.footer-links a {
    color: rgba(255, 255, 255, 0.65);

    font-size: 11px;
}


.footer-links a:hover {
    color: #ffffff;
}


.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 30px;

    padding-top: 18px;

    border-top: 1px solid
        rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.4);

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    header nav {
        gap: 12px;
    }


    header nav a {
        font-size: 11px;
    }


    .hero-inner {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .hero-featured {
        min-height: 280px;
    }


    .games-grid,
    .friends-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .tournament-grid,
    .challenge-grid,
    .live-match-grid,
    .continue-grid,
    .watch-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .quick-actions .section-inner {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .leaderboard-item {
        grid-template-columns:
            50px
            1fr
            100px;
    }


    .leaderboard-game {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .header-inner {
        min-height: 62px;
    }


    header nav {
        display: none;
    }


    .hero-inner {
        padding-top: 40px;

        padding-bottom: 40px;
    }


    .hero-content h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }


    .hero-content p {
        font-size: 14px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .hero-buttons button {
        width: 100%;
    }


    .section-inner {
        padding-top: 50px;

        padding-bottom: 50px;
    }


    .section-title {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .section-title h2 {
        font-size: 25px;
    }


    .quick-actions .section-inner {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .games-grid,
    .continue-grid,
    .tournament-grid,
    .challenge-grid,
    .live-match-grid,
    .friends-grid,
    .watch-grid {
        grid-template-columns: 1fr;
    }


    .leaderboard-item {
        grid-template-columns:
            40px
            1fr
            80px;

        padding: 10px 12px;
    }


    .leaderboard-score {
        font-size: 10px;
    }


    .live-match-players {
        flex-direction: column;
    }


    .live-player {
        width: 100%;
    }


    .live-vs {
        display: block;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .hero-content h1 {
        font-size: 36px;
    }


    .quick-actions .section-inner {
        grid-template-columns: 1fr;
    }


    .quick-actions button {
        width: 100%;
    }


    .hero-featured {
        min-height: 250px;

        padding: 20px;
    }

}