/* ================================================================
   style.css — Solitaire-en-ligne (partagé toutes pages)
   Ambiance : tapis de casino feutré, cosy, lisible (45-80 ans)
   Mobile-first · Animations GPU · Accessibilité
   ================================================================ */

/* ---------- Police titre ---------- */

@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/* ---------- Vue plein écran du jeu ---------- */

.game-viewport {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    /* tapis de feutrine velours : base vert profond + texture fibres tissées */
    background-color: #1a5c1a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3Cpath d='M0 50L200 50M0 100L200 100M0 150L200 150M0 200L200 200' stroke='%23fff' stroke-width='0.3' opacity='0.04'/%3E%3Cpath d='M0 0L200 200M200 0L0 200' stroke='%23fff' stroke-width='0.2' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    position: relative;
}

/* Légère vignette bords (très subtile) */
.game-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    z-index: 0;
}

.game-viewport>* {
    position: relative;
    z-index: 1;
}

/* ---------- Jeu ---------- */

#game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 4px;
    position: relative;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#game-container::-webkit-scrollbar {
    display: none;
}

#game {
    position: relative;
    width: 100%;
    flex: 1;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}



/* Cartes individuelles */
#game playing-card {
    position: absolute;
    width: var(--card-w, 100px);
    height: var(--card-h, 140px);
    transition: transform var(--transition), opacity var(--transition);
    will-change: transform;
    cursor: grab;
    z-index: 1;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.35));
}

#game playing-card[cid="00"] {
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.45));
}

#game playing-card img {
    width: 100%;
    height: 100%;
    border-radius: var(--slot-radius);
    pointer-events: none;
}

#game playing-card.dragging {
    cursor: grabbing;
    transition: none !important;
}

/* Placeholders (emplacements vides pour visualiser le jeu) */
.slot {
    position: absolute;
    width: var(--card-w, 100px);
    height: var(--card-h, 140px);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--slot-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    z-index: 0;
    pointer-events: none;
}

.slot-stock {
    cursor: pointer;
    pointer-events: auto;
}

.slot-stock.can-recycle {
    border-color: rgba(255, 200, 50, 0.5);
    color: rgba(255, 200, 50, 0.5);
}

.slot-red span {
    color: rgba(255, 80, 80, 0.25);
}

/* ---------- HUD ---------- */

#hud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 4px 8px 2px;
    font-size: 0.8125rem;
    flex-shrink: 0;
    width: 100%;
}

.hud-left,
.hud-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hud-item {
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-stats {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Pile / pioche restante */
.hud-draw {
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hud-draw .num {
    font-weight: 700;
    font-size: 0.8rem;
    color: #f5e6c8;
}

/* ---------- Boutons ---------- */

.btn {
    background: var(--btn-bg);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s, box-shadow var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
    transform: none !important;
}

.btn:disabled:hover {
    background: var(--btn-bg);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2d7d2d 0%, #1f5e1f 100%);
    border-color: rgba(45, 125, 45, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a9a3a 0%, #2d7d2d 100%);
}

/* Bouton Indice (violet casino) */
.btn-hint {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-color: rgba(124, 58, 237, 0.4);
}

.btn-hint:hover {
    background: linear-gradient(135deg, #8f54f0 0%, #7c3aed 100%);
}

/* Bouton Annuler (ambre / orange doux) */
.btn-undo {
    background: linear-gradient(135deg, #c8821e 0%, #9a6518 100%);
    border-color: rgba(200, 130, 30, 0.4);
}

.btn-undo:hover {
    background: linear-gradient(135deg, #d4891e 0%, #c8821e 100%);
}

/* Bouton Rejouer (bleu acier) */
.btn-replay {
    background: linear-gradient(135deg, #1e7ab0 0%, #155c8a 100%);
    border-color: rgba(30, 122, 176, 0.4);
}

.btn-replay:hover {
    background: linear-gradient(135deg, #2e94d4 0%, #1e7ab0 100%);
}

/* Bouton Fin auto (vert émeraude) */
.btn-auto {
    background: linear-gradient(135deg, #1a7a5a 0%, #115c42 100%);
    border-color: rgba(26, 122, 90, 0.4);
}

.btn-auto:hover {
    background: linear-gradient(135deg, #219a72 0%, #1a7a5a 100%);
}

/* ---------- Barre d'actions bas de jeu ---------- */

#game-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.btn-outline:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

.btn-outline-comment {
    background: #d4891e;
    border-color: #d4891e;
    color: #fff;
}

.btn-outline-comment:hover {
    background: #e8a137;
    border-color: #e8a137;
    color: #fff;
}

.btn-outline-faq {
    background: #1e7ab0;
    border-color: #1e7ab0;
    color: #fff;
}

.btn-outline-faq:hover {
    background: #2e94d4;
    border-color: #2e94d4;
    color: #fff;
}

/* ---------- Titre ---------- */

.game-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 6px 12px 2px;
    color: #ffe484;
    flex-shrink: 0;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Écran victoire ---------- */

#win-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.4s ease;
}

#win-overlay[hidden] {
    display: none !important;
}

.win-box {
    background: linear-gradient(145deg, #0f2f0f 0%, #0a1f0a 100%);
    border: 2px solid rgba(212, 137, 30, 0.4);
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.win-box h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #f0e6d0;
}

.win-box p {
    margin-bottom: 20px;
    opacity: 0.85;
    color: #e0d8c8;
}

.win-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contenu SEO ---------- */

.seo-content {
    max-width: 720px;
    margin: 24px auto 32px;
    padding: 0 16px;
}

.seo-content h2 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
    color: #e0e0e0;
}

.seo-content h3 {
    font-size: 1.05rem;
    margin: 20px 0 8px;
    color: #ccc;
}

.seo-content p {
    margin-bottom: 12px;
    color: #c8c8c8;
}

.seo-content ul {
    margin: 8px 0 16px 20px;
    color: #c8c8c8;
}

.seo-content li {
    margin-bottom: 6px;
}

.seo-content strong {
    color: #e8e8e8;
}

/* ---------- Comment jouer (paper-box) ---------- */

#comment_jouer {
    margin-bottom: 32px;
}

.paper-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 28px 24px;
}

.paper-box h2 {
    font-size: 1.3rem !important;
    color: #e8e8e8 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.paper-box p {
    color: #c8c8c8;
    margin-bottom: 12px;
    line-height: 1.7;
}

.paper-box ul {
    margin: 8px 0 16px 20px;
    color: #c8c8c8;
    line-height: 1.65;
}

.paper-box li {
    margin-bottom: 8px;
    color: #c8c8c8;
}

.paper-box strong {
    color: #e8e8e8;
}

.paper-box h3 {
    font-size: 1.1rem;
    color: #ddd;
    margin: 24px 0 10px;
}

/* ---------- Footer ---------- */

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

/* ---------- Navigation ---------- */

nav {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0d2f0d 0%, #1a4a1a 50%, #0d2f0d 100%);
    border-bottom: 3px solid rgba(255, 228, 132, 0.15);
    flex-shrink: 0;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1rem;
    font-weight: 600;
    color: #f0e6d0 !important;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    margin-right: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Bouton Installer (PWA) */
.btn-install {
    background: linear-gradient(135deg, #2d7d2d 0%, #1f5e1f 100%);
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 8px;
    animation: pulse-install 2.5s ease-in-out infinite;
    border-color: rgba(45, 125, 45, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-install:hover {
    background: linear-gradient(135deg, #3a9a3a 0%, #2d7d2d 100%);
    animation: none;
}

@keyframes pulse-install {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(45, 125, 45, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(45, 125, 45, 0), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Bouton Favoris */
.btn-bookmark {
    background: linear-gradient(135deg, rgba(255, 228, 132, 0.08) 0%, rgba(255, 228, 132, 0.02) 100%);
    border: 1.5px solid rgba(255, 228, 132, 0.3);
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 8px;
    color: #ffe484;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    font-weight: 500;
}

.btn-bookmark:hover {
    background: rgba(255, 228, 132, 0.15);
    border-color: rgba(255, 228, 132, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-bookmark svg {
    flex-shrink: 0;
    display: block;
    margin-top: -1px;
}

/* ---------- Popup Favoris ---------- */

#bookmark-popup {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

#bookmark-popup[hidden] {
    display: none !important;
}

.bookmark-popup-box {
    background: linear-gradient(160deg, #0f2f0f 0%, #081808 100%);
    border: 1px solid rgba(255, 228, 132, 0.2);
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    position: relative;
}

.bookmark-popup-box h2 {
    font-size: 1.2rem;
    color: #ffe484;
    margin-bottom: 6px;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.bookmark-popup-box p {
    color: #c8c8b8;
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Représentation SVG de la barre d'URL */
.bookmark-urlbar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 20px;
    gap: 8px;
    text-align: left;
}

.bookmark-urlbar .urlbar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: #1a5c1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.bookmark-urlbar .urlbar-url {
    flex: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: left;
    font-family: system-ui, -apple-system, sans-serif;
}

.bookmark-urlbar .urlbar-star {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 200, 50, 0.12);
    border: 1.5px solid rgba(255, 200, 50, 0.35);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.bookmark-urlbar .urlbar-star:hover {
    background: rgba(255, 200, 50, 0.2);
    border-color: rgba(255, 200, 50, 0.6);
    transform: scale(1.05);
}

.bookmark-urlbar .urlbar-star svg {
    display: block;
}

.bookmark-steps {
    text-align: left;
    margin-bottom: 20px;
}

.bookmark-steps strong {
    color: #e0d8c8;
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.bookmark-steps .step {
    color: #b0b0a0;
    font-size: 0.78rem;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.bookmark-steps .step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 228, 132, 0.4);
}

.bookmark-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.bookmark-popup-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    font-size: 1.1rem;
}

.nav-current {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq-page {
    max-width: 740px;
    margin: 24px auto 32px;
    padding: 0 16px;
}

.faq-page h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #f0f0f0;
}

.faq-intro {
    margin-bottom: 28px;
    color: #bbb;
    font-size: 0.95rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px 24px;
}

.faq-item h2 {
    font-size: 1.1rem;
    color: #e8e8e8;
    margin-bottom: 10px;
}

.faq-item p {
    color: #c8c8c8;
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-item ul,
.faq-item ol {
    margin: 6px 0 10px 20px;
    color: #c8c8c8;
    line-height: 1.6;
}

.faq-item li {
    margin-bottom: 4px;
}

.faq-item strong {
    color: #e8e8e8;
}

.faq-contact {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.faq-contact h2 {
    font-size: 1.1rem;
    color: #e8e8e8;
    margin-bottom: 8px;
}

.faq-contact p {
    color: #bbb;
    margin-bottom: 6px;
}

.faq-share {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ---------- Accessibilité ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Animations ---------- */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------- Cookie Banner RGPD ---------- */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(10, 20, 10, 0.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    animation: slideUp 0.35s ease;
}

#cookie-banner[hidden] {
    display: none !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cookie-text {
    flex: 1;
    min-width: 240px;
}

.cookie-text strong {
    color: #f0e6d0;
    font-size: 0.85rem;
}

.cookie-text p {
    color: #b8b8a8;
    font-size: 0.78rem;
    margin: 4px 0 0;
    line-height: 1.4;
}

#cookie-details {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 0 4px;
}

#cookie-details[hidden] {
    display: none;
}

.cookie-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #d0d0c0;
    cursor: pointer;
}

.cookie-opt input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2d7d2d;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-actions .btn {
    font-size: 0.75rem;
    padding: 5px 12px;
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .game-title {
        font-size: 0.95rem;
        padding: 4px 8px 1px;
    }

    #hud {
        font-size: 0.7rem;
        padding: 2px 4px 1px;
        gap: 4px;
    }

    .btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .hud-item {
        padding: 2px 6px;
    }

    .hud-draw {
        padding: 2px 6px;
        font-size: 0.65rem;
    }

    .hud-draw .num {
        font-size: 0.7rem;
    }

    .seo-content {
        padding: 0 10px;
    }

    #game-bottom-bar {
        gap: 8px;
        padding: 6px 8px;
    }

    nav {
        padding: 6px 8px;
    }

    .logo {
        font-size: 0.85rem;
    }

    .btn-install {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .btn-bookmark {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .btn-bookmark svg {
        width: 16px;
        height: 16px;
    }

    .btn-outline {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    /* Cookie banner mobile */
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-text {
        min-width: 0;
    }

    .cookie-actions {
        justify-content: center;
    }

    /* Bookmark popup mobile */
    .bookmark-popup-box {
        padding: 20px 16px;
    }

    .bookmark-popup-box h2 {
        font-size: 1rem;
    }

    .bookmark-urlbar {
        flex-wrap: wrap;
        padding: 6px 10px;
    }

    .bookmark-urlbar .urlbar-url {
        font-size: 0.7rem;
    }

    .bookmark-steps .step {
        font-size: 0.72rem;
        padding-left: 14px;
    }
}

@media (min-width: 901px) {

    #game-container,
    #hud {
        padding-left: 0;
        padding-right: 0;
    }
}