/* ================================================================
   Multi-game additions. Loaded after styles.css and reuses its
   tokens (cream, orange, brown, card shadow) so the new pieces match
   the original Word Search Meow look.
   ================================================================ */

/* ── Nav: game links with icons ─────────────────────────────── */
.nav-links .nav-game {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.nav-links .nav-game img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(92,61,32,0.2);
}
.nav-links .nav-game[aria-current="page"] { color: var(--orange); }
.site-header.scrolled .nav-links .nav-game[aria-current="page"] { color: var(--gold); }
.logo { color: inherit; }

/* ── Pill buttons (same family as .nav-cta) ─────────────────── */
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    background: var(--orange);
    color: white;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 5px 0 var(--orange-dark), 0 8px 20px rgba(232,131,42,0.3);
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s;
}
.pill-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--orange-dark), 0 14px 28px rgba(232,131,42,0.3); }
.pill-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--orange-dark); }
.pill-btn.alt {
    background: #F5E6CB;
    color: var(--brown-dark);
    border: 1.5px solid #E0CBA8;
    box-shadow: 0 5px 0 #D4B88A, 0 8px 20px rgba(139,94,60,0.18);
}
.pill-btn.alt:hover { box-shadow: 0 8px 0 #D4B88A, 0 14px 28px rgba(139,94,60,0.25); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Store button: "coming soon" + compact size ─────────────── */
.store-button.soon {
    background: transparent;
    border: 2px dashed #D4B88A;
    box-shadow: none;
    cursor: default;
}
.store-button.soon:hover, .store-button.soon:active { transform: none; background: transparent; box-shadow: none; }
.store-button.soon .btn-store-icon { filter: grayscale(1); opacity: 0.55; }
.store-button.soon .btn-main { color: rgba(92,61,32,0.6); }

.download-buttons.compact { gap: 0.7rem; }
.download-buttons.compact .store-button { min-width: 0; flex: 1 1 140px; padding: 0.55rem 0.9rem; }
.download-buttons.compact .btn-store-icon { width: 26px; height: 26px; }
.download-buttons.compact .btn-main { font-size: 0.92rem; }

/* ── Hub hero: three app icons bobbing ──────────────────────── */
.icon-trio {
    position: relative;
    height: 440px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.icon-trio::before {
    content: '';
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(ellipse at center, rgba(232,131,42,0.2) 0%, transparent 70%);
}
.icon-trio a {
    position: absolute;
    display: block;
    width: 190px;
    height: 190px;
    border-radius: 44px;
    overflow: hidden;
    border: 5px solid #FFF8EC;
    box-shadow: 0 6px 0 rgba(139,94,60,0.18), 0 30px 60px rgba(139,94,60,0.3);
    animation: bobFloat 6s ease-in-out infinite;
    transition: transform 0.3s;
}
.icon-trio a img { width: 100%; height: 100%; object-fit: cover; }
.icon-trio a:nth-child(1) { left: 0;   top: 150px; animation-delay: -2s; }
.icon-trio a:nth-child(2) { left: 50%; top: 20px;  margin-left: -110px; width: 220px; height: 220px; border-radius: 50px; z-index: 2; }
.icon-trio a:nth-child(3) { right: 0;  top: 190px; animation-delay: -4s; }
.icon-trio a:hover { animation-play-state: paused; }
.icon-trio .icon-label {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
}

/* ── Games section (hub) ────────────────────────────────────── */
.games-section { background: var(--cream-dark); }
.game-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 1rem;
}
.game-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--card-r);
    padding: 1.6rem 1.5rem 1.5rem;
    box-shadow: 0 6px 0 rgba(139,94,60,0.18), 0 10px 30px rgba(0,0,0,0.09);
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 0 rgba(232,131,42,0.3), 0 20px 48px rgba(232,131,42,0.18);
    border-color: var(--orange-light);
}
.game-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.game-card-head img {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.game-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--brown-dark); line-height: 1.2; }
.game-card .game-tag { font-size: 0.85rem; font-weight: 700; color: var(--orange); margin-top: 0.2rem; }
.game-card .new-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    background: var(--orange);
    color: white;
    margin-left: 0.35rem;
    vertical-align: middle;
}
.game-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }
.game-card ul { list-style: none; margin: 1rem 0 1.4rem; display: grid; gap: 0.45rem; }
.game-card li { font-size: 0.86rem; font-weight: 600; color: var(--text-dark); display: flex; gap: 0.5rem; }
.game-card li::before { content: '🐾'; font-size: 0.8rem; opacity: 0.7; }
.game-card .game-foot { margin-top: auto; display: grid; gap: 1rem; }
.more-link {
    color: var(--orange-dark);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* ── Daily banner: expansion-banner with game links ─────────── */
.daily-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}
.daily-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    padding: 0.3rem 0.85rem 0.3rem 0.35rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.daily-links a:hover { background: rgba(255,255,255,0.3); }
.daily-links img { width: 26px; height: 26px; border-radius: 8px; }

/* ── Game page hero visuals ─────────────────────────────────── */
.game-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brown-dark);
    line-height: 1.1;
    margin: 0;
}

/* Jigsaw: pictures in the old phone frames, centre one cut into pieces */
.phone-screen.picture { aspect-ratio: 3/5; position: relative; }
.pieces {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    pointer-events: none;
}
.pieces i { border: 1.5px solid rgba(255,248,236,0.8); }
.pieces i.out {
    background: rgba(255,248,236,0.3);
    outline: 3px solid #FFF8EC;
    outline-offset: -3px;
    transform: translate(10px, -8px) rotate(4deg);
    box-shadow: 0 10px 18px rgba(0,0,0,0.3);
}

/* Word Connect: letter wheel illustration */
.wheel-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.wheel-visual::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(232,131,42,0.18) 0%, transparent 70%);
}
.wheel-visual { min-height: 460px; }
.wheel-visual svg { position: relative; width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 20px 30px rgba(139,94,60,0.25)); }

/* ── Feature cards (step-card look, 3-up grid) ─────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-grid .step { text-align: left; }
.feature-grid .step-icon { margin-bottom: 0.6rem; }

/* ── Jigsaw postcards (story-card look, static grid) ───────── */
.postcards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.postcards .story-card { flex: none; }
.postcards .story-img img { aspect-ratio: 3/4; }

/* ── More games ─────────────────────────────────────────────── */
.more-games { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.more-games a {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: white;
    border-radius: var(--card-r);
    padding: 1.2rem 1.4rem;
    text-decoration: none;
    box-shadow: 0 6px 0 rgba(139,94,60,0.18), 0 10px 30px rgba(0,0,0,0.09);
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.more-games a:hover { transform: translateY(-6px); border-color: var(--orange-light); }
.more-games img { width: 76px; height: 76px; border-radius: 18px; }
.more-games strong { display: block; color: var(--brown-dark); font-size: 1.1rem; }
.more-games small { color: var(--text-mid); font-size: 0.86rem; }

/* ── Hub CTA: pick-a-game icons ─────────────────────────────── */
.cta-games { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-games a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--brown-dark);
    font-size: 0.82rem;
    font-weight: 800;
    transition: transform 0.2s;
}
.cta-games a:hover { transform: translateY(-4px); }
.cta-games img {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    box-shadow: 0 5px 0 rgba(139,94,60,0.18), 0 8px 20px rgba(139,94,60,0.2);
}

/* ── Footer: wrap the longer link list ──────────────────────── */
.footer-links { row-gap: 0.6rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .game-cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
    .icon-trio a { width: 150px; height: 150px; border-radius: 36px; }
    .icon-trio a:nth-child(2) { width: 180px; height: 180px; margin-left: -90px; }
}
@media (max-width: 900px) {
    .icon-trio { height: 300px; max-width: 400px; }
    .icon-trio a { width: 120px; height: 120px; border-radius: 28px; border-width: 4px; }
    .icon-trio a:nth-child(1) { top: 110px; }
    .icon-trio a:nth-child(2) { width: 150px; height: 150px; margin-left: -75px; border-radius: 34px; }
    .icon-trio a:nth-child(3) { top: 130px; }
    .hero-actions { justify-content: center; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .postcards { grid-template-columns: 1fr 1fr; }
    .cta-games { justify-content: center; }
    .game-hero-title { font-size: 2.4rem; }
}
@media (max-width: 640px) {
    /* the old stylesheet hides nav links on phones; keep the game icons */
    .nav-links.nav-games { display: flex; gap: 0.9rem; }
    .nav-links.nav-games .nav-game span { display: none; }
    .icon-trio { height: 230px; }
    .icon-trio a { width: 96px; height: 96px; border-radius: 22px; }
    .icon-trio a:nth-child(1) { top: 90px; }
    .icon-trio a:nth-child(2) { width: 120px; height: 120px; margin-left: -60px; border-radius: 28px; }
    .icon-trio a:nth-child(3) { top: 100px; }
    .feature-grid { grid-template-columns: 1fr; }
    .more-games { grid-template-columns: 1fr; }
    .game-hero-title { font-size: 2rem; }
    /* game-page hero art was hidden by the old phone rule; show a compact version */
    .wheel-visual { min-height: 0; }
    .wheel-visual svg { width: 260px; }
}
