/*
Theme Name: Rioloiuy Game Room
Theme URI: https://rioloiuy.com/
Author: Rioloiuy
Description: A responsive, Gutenberg-ready theme for Rioloiuy game tables.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: rioloiuy
*/

:root {
    --ink: #102129;
    --muted: #58666c;
    --paper: #f7f7f2;
    --white: #fff;
    --mist: #e8edf0;
    --blue: #136ef7;
    --blue-dark: #0954c7;
    --lime: #c7ef45;
    --sand: #eee9dc;
    --line: rgba(16, 33, 41, .13);
    --shadow: 0 18px 60px rgba(16, 33, 41, .10);
    --radius: 24px;
    --radius-sm: 14px;
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 .65em; font-weight: 800; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.3vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
ul, ol { margin: 0; padding-left: 1.15rem; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section-tight { padding: clamp(50px, 6vw, 78px) 0; }
.section-dark { color: var(--white); background: var(--ink); }
.section-blue { color: var(--white); background: var(--blue); }
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.section-dark .eyebrow, .section-blue .eyebrow { color: var(--lime); }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.7; }
.section-dark .lead, .section-blue .lead { color: rgba(255,255,255,.76); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-heading > div { max-width: 790px; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading p { color: rgba(255,255,255,.7); }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; padding: 12px 18px; color: var(--white); background: var(--blue); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,247,242,.94); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(16,33,41,.06); }
.nav-shell { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; min-height: 82px; gap: 28px; }
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand img { width: 176px; max-height: 52px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 42px); }
.desktop-nav a { position: relative; padding: 28px 0; font-size: .94rem; font-weight: 700; }
.desktop-nav a::after { position: absolute; bottom: 20px; left: 0; width: 0; height: 2px; content: ""; background: var(--blue); transition: width .2s; }
.desktop-nav a:hover::after { width: 100%; }
.nav-shop, .button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; color: var(--white); background: var(--blue); border: 1px solid var(--blue); border-radius: 999px; font-size: .93rem; font-weight: 800; line-height: 1.2; transition: transform .2s, background .2s, border-color .2s; }
.nav-shop:hover, .button:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.button-ghost { color: var(--white); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.6); }
.button-ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.button-outline:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-light { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.button-light:hover { color: var(--ink); background: #d9fa6b; border-color: #d9fa6b; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; border-bottom: 1px solid currentColor; }
.text-link.light { color: var(--lime); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 82px 0 0; min-height: calc(100vh - 82px); background: var(--paper); border-top: 1px solid var(--line); }
.mobile-menu nav { display: grid; padding-top: 28px; }
.mobile-menu a { padding: 16px 4px; font-size: 1.32rem; font-weight: 800; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-amazon { margin-top: 20px; padding: 16px 20px; color: var(--white); background: var(--blue); border: 0; border-radius: 14px; text-align: center; }

.hero { position: relative; min-height: min(790px, calc(100vh - 82px)); display: grid; align-items: end; overflow: hidden; background: #101c23; }
.hero::before { position: absolute; inset: 0; z-index: 1; content: ""; background: linear-gradient(90deg, rgba(4,14,20,.91) 0%, rgba(4,14,20,.63) 45%, rgba(4,14,20,.12) 78%), linear-gradient(0deg, rgba(4,14,20,.52), transparent 46%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: clamp(88px, 12vw, 146px) 0 clamp(70px, 9vw, 110px); color: var(--white); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--lime); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker::before { width: 34px; height: 2px; content: ""; background: currentColor; }
.hero h1 { max-width: 760px; margin-bottom: 24px; }
.hero-copy { max-width: 700px; margin-bottom: 0; color: rgba(255,255,255,.82); font-size: clamp(1.07rem, 2vw, 1.34rem); }
.hero-note { margin-top: 20px; color: rgba(255,255,255,.6); font-size: .86rem; }
.trust-strip { background: var(--lime); border-bottom: 1px solid rgba(16,33,41,.14); }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.trust-item { display: flex; min-height: 76px; align-items: center; justify-content: center; gap: 9px; padding: 12px 16px; font-size: .78rem; font-weight: 800; line-height: 1.25; text-align: center; border-right: 1px solid rgba(16,33,41,.14); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { flex: 0 0 18px; width: 18px; }

.brand-intro { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(48px, 7vw, 100px); }
.brand-intro-copy h2 { max-width: 600px; }
.brand-intro-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.image-frame { position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.image-frame img { width: 100%; aspect-ratio: 1.1; object-fit: cover; }
.image-frame::after { position: absolute; right: 22px; bottom: 22px; width: 62px; height: 62px; content: "PLAY"; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-stats div { padding: 20px 16px 20px 0; }
.intro-stats strong { display: block; font-size: 1.45rem; line-height: 1.1; }
.intro-stats span { color: var(--muted); font-size: .76rem; }

.value-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 120px); }
.value-sticky { position: sticky; top: 120px; align-self: start; }
.value-sticky h2 { max-width: 520px; }
.value-list { display: grid; gap: 14px; }
.value-item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.16); }
.value-item:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.value-number { color: var(--lime); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.value-item h3 { margin-bottom: 9px; font-size: 1.35rem; }
.value-item p { margin: 0; color: rgba(255,255,255,.67); }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar-card { min-height: 275px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.pillar-card:hover { border-color: rgba(19,110,247,.35); box-shadow: 0 16px 40px rgba(16,33,41,.08); transform: translateY(-5px); }
.icon-box { display: grid; width: 46px; height: 46px; margin-bottom: 45px; place-items: center; color: var(--blue); background: rgba(19,110,247,.09); border-radius: 12px; }
.icon-box svg { width: 25px; }
.pillar-card p { color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.product-image { position: relative; overflow: hidden; background: #f1f3f3; }
.product-image img { width: 100%; aspect-ratio: 1.12; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-type { position: absolute; top: 16px; left: 16px; padding: 7px 11px; color: var(--ink); background: rgba(255,255,255,.91); border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.product-body { padding: 25px; }
.product-body h3 { min-height: 2.4em; margin-bottom: 14px; }
.product-points { display: grid; gap: 8px; min-height: 112px; margin-bottom: 22px; padding: 0; list-style: none; }
.product-points li { position: relative; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.product-points li::before { position: absolute; top: .62em; left: 0; width: 6px; height: 6px; content: ""; background: var(--blue); border-radius: 50%; }
.product-link { display: flex; align-items: center; justify-content: space-between; padding-top: 17px; color: var(--blue); border-top: 1px solid var(--line); font-size: .9rem; font-weight: 800; }
.product-link span { font-size: 1.15rem; transition: transform .2s; }
.product-card:hover .product-link span { transform: translate(3px,-3px); }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.game-card { position: relative; min-height: 420px; display: flex; align-items: end; overflow: hidden; border-radius: 18px; }
.game-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(6,18,25,.84), rgba(6,18,25,.05) 70%); }
.game-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game-card:hover img { transform: scale(1.05); }
.game-card-content { position: relative; z-index: 2; width: 100%; padding: 26px; color: var(--white); }
.game-card-content h3 { margin-bottom: 5px; }
.game-card-content p { margin: 0; color: rgba(255,255,255,.72); font-size: .84rem; }
.game-card-content span { display: inline-block; margin-top: 14px; color: var(--lime); font-size: .8rem; font-weight: 800; }

.inspiration-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.inspiration-card { min-height: 310px; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.inspiration-card:first-child { color: var(--white); background: var(--blue); border-color: var(--blue); }
.inspiration-num { display: block; margin-bottom: 70px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.inspiration-card:first-child .inspiration-num { color: var(--lime); }
.inspiration-card p { color: var(--muted); }
.inspiration-card:first-child p { color: rgba(255,255,255,.78); }

.scenario-grid { display: grid; grid-template-columns: 1.35fr .85fr .85fr; grid-template-rows: repeat(2, 280px); gap: 16px; }
.scenario-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.scenario-card:first-child { grid-row: 1 / 3; }
.scenario-card:last-child { grid-column: 2 / 4; }
.scenario-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(7,18,24,.78), transparent 63%); }
.scenario-card img { width: 100%; height: 100%; object-fit: cover; }
.scenario-caption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 25px; color: var(--white); }
.scenario-caption h3 { margin-bottom: 4px; }
.scenario-caption p { margin: 0; color: rgba(255,255,255,.72); font-size: .88rem; }

.quality-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.quality-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quality-visual img { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius); }
.quality-visual img:last-child { margin-top: 58px; height: 330px; }
.check-list { display: grid; gap: 0; margin-top: 30px; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list svg { width: 22px; color: var(--blue); }
.check-list strong { display: block; margin-bottom: 2px; }
.check-list span { color: var(--muted); font-size: .9rem; }

.support-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; padding: clamp(38px, 6vw, 78px); color: var(--white); background: var(--ink); border-radius: 32px; }
.support-panel h2 { max-width: 650px; }
.support-panel p { color: rgba(255,255,255,.72); }
.support-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-badge { min-height: 174px; padding: 25px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.support-badge strong { display: block; margin-bottom: 8px; color: var(--lime); font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.1; }
.support-badge span { color: rgba(255,255,255,.72); font-size: .9rem; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; display: grid; grid-template-columns: 1fr 40px; align-items: center; padding: 24px 0; color: var(--ink); background: transparent; border: 0; cursor: pointer; font-weight: 800; text-align: left; }
.faq-item button span:last-child { display: grid; width: 32px; height: 32px; place-items: center; color: var(--blue); border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; transition: transform .2s; }
.faq-item.is-open button span:last-child { transform: rotate(45deg); }
.faq-answer { max-width: 860px; padding: 0 50px 24px 0; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.cta-band { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 100px); color: var(--white); background: var(--blue); border-radius: 30px; }
.cta-band::after { position: absolute; top: -90px; right: -60px; width: 330px; height: 330px; content: ""; border: 56px solid rgba(199,239,69,.24); border-radius: 50%; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 750px; }
.cta-band p { max-width: 660px; color: rgba(255,255,255,.78); }

.page-hero { padding: clamp(70px, 10vw, 125px) 0 clamp(60px, 8vw, 92px); background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1000px; font-size: clamp(2.7rem, 6vw, 5.3rem); }
.breadcrumb { display: flex; gap: 9px; margin-bottom: 42px; color: var(--muted); font-size: .78rem; }
.breadcrumb a { color: var(--blue); font-weight: 800; }
.collection-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.collection-nav a { padding: 9px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.collection-section { scroll-margin-top: 110px; }
.collection-group { margin-bottom: 80px; }
.collection-group:last-child { margin-bottom: 0; }
.collection-title { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-bottom: 26px; }
.collection-title h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.collection-title::after { height: 1px; content: ""; background: var(--line); }
.collection-count { order: 3; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.collection-card { display: grid; grid-template-columns: minmax(260px, .75fr) 1.25fr; overflow: hidden; margin-bottom: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.collection-card img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; background: #f1f3f3; }
.collection-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 60px); }
.collection-content .eyebrow { margin-bottom: 12px; }
.collection-content h3 { font-size: clamp(1.5rem, 3vw, 2.45rem); }
.collection-content > p { color: var(--muted); font-size: 1.04rem; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 24px; margin: 18px 0 28px; padding: 0; list-style: none; }
.spec-grid li { position: relative; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.spec-grid li::before { position: absolute; top: .65em; left: 0; width: 6px; height: 6px; content: ""; background: var(--blue); border-radius: 50%; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(48px, 8vw, 100px); align-items: start; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { display: grid; gap: 10px; margin: 16px 0 28px; }
.info-aside { position: sticky; top: 112px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.info-aside h2 { font-size: 1.2rem; }
.info-aside p { color: var(--muted); font-size: .88rem; }
.info-aside .button { width: 100%; margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.detail-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.detail-card h3 { font-size: 1.18rem; }
.detail-card p { margin: 0; color: var(--muted); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-card { padding: 32px; background: var(--white); border-radius: 18px; }
.process-card .step { color: var(--blue); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.process-card p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.contact-card { padding: clamp(30px, 5vw, 55px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card.primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.contact-card.primary p { color: rgba(255,255,255,.78); }
.contact-list { display: grid; gap: 0; margin-top: 25px; }
.contact-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.contact-card.primary .contact-row { border-color: rgba(255,255,255,.2); }
.contact-row strong { font-size: .82rem; }
.contact-row span, .contact-row a { color: var(--muted); }
.contact-card.primary .contact-row span, .contact-card.primary .contact-row a { color: rgba(255,255,255,.86); }
.not-found { min-height: 70vh; display: grid; place-items: center; padding: 100px 0; text-align: center; }
.not-found p:not(.eyebrow) { max-width: 650px; margin-inline: auto; color: var(--muted); }
.not-found .button-row { justify-content: center; }
.wp-content { margin-top: 54px; padding-top: 54px; border-top: 1px solid var(--line); }

.site-footer { color: rgba(255,255,255,.72); background: #0a161c; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(34px, 6vw, 80px); padding-top: 78px; padding-bottom: 68px; }
.footer-brand p { max-width: 390px; margin: 24px 0 20px; }
.brand-light { padding: 6px 12px; background: var(--white); border-radius: 8px; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links h2 { margin-bottom: 11px; color: var(--white); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { font-size: .9rem; }
.footer-links a:hover { color: var(--lime); }
.support-note { margin-top: 12px; color: var(--lime); font-size: .82rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.11); font-size: .75rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1050px) {
    .desktop-nav { gap: 20px; }
    .nav-shell { grid-template-columns: 190px 1fr auto; }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-item:nth-child(3) { border-right: 0; }
    .trust-item:nth-child(-n+3) { border-bottom: 1px solid rgba(16,33,41,.14); }
    .pillar-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .game-card { min-height: 360px; }
    .scenario-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 310px); }
    .scenario-card:first-child { grid-row: auto; }
    .scenario-card:last-child { grid-column: auto; }
    .support-panel { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 2fr 1fr 1fr; }
    .footer-links:last-child { grid-column: 2; }
}

@media (max-width: 820px) {
    .container { width: min(calc(100% - 32px), var(--container)); }
    .nav-shell { grid-template-columns: 1fr auto; min-height: 72px; }
    .desktop-nav, .nav-shop { display: none; }
    .menu-toggle { display: block; }
    .mobile-menu { inset: 72px 0 0; min-height: calc(100vh - 72px); }
    .hero { min-height: 700px; }
    .hero::before { background: linear-gradient(0deg, rgba(4,14,20,.9) 0%, rgba(4,14,20,.56) 72%, rgba(4,14,20,.32)); }
    .hero-content { padding-top: 140px; }
    .brand-intro, .value-layout, .quality-layout, .content-layout, .contact-grid { grid-template-columns: 1fr; }
    .value-sticky, .info-aside { position: static; }
    .inspiration-grid { grid-template-columns: 1fr; }
    .inspiration-card { min-height: 260px; }
    .inspiration-num { margin-bottom: 38px; }
    .quality-visual { order: 2; }
    .collection-card { grid-template-columns: 1fr; }
    .collection-card img { min-height: 0; aspect-ratio: 1.25; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-links:last-child { grid-column: auto; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .section { padding: 66px 0; }
    .section-heading { align-items: start; flex-direction: column; margin-bottom: 32px; }
    .brand img { width: 150px; }
    .hero { min-height: 690px; }
    .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    .hero-content { padding-bottom: 58px; }
    .button-row .button { width: 100%; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-right: 1px solid rgba(16,33,41,.14); }
    .trust-item:nth-child(even) { border-right: 0; }
    .trust-item:nth-child(-n+4) { border-bottom: 1px solid rgba(16,33,41,.14); }
    .intro-stats { grid-template-columns: 1fr; }
    .intro-stats div { border-bottom: 1px solid var(--line); }
    .intro-stats div:last-child { border-bottom: 0; }
    .pillar-grid, .product-grid, .game-grid, .scenario-grid, .detail-grid, .process-grid { grid-template-columns: 1fr; }
    .pillar-card { min-height: 240px; }
    .product-points { min-height: 0; }
    .game-card { min-height: 360px; }
    .scenario-grid { grid-template-rows: repeat(4, 330px); }
    .support-panel { padding: 34px 24px; border-radius: 22px; }
    .support-badges, .spec-grid { grid-template-columns: 1fr; }
    .quality-visual img { height: 340px; }
    .quality-visual img:last-child { height: 260px; }
    .cta-band { padding: 48px 25px; border-radius: 22px; }
    .page-hero { padding-top: 58px; }
    .breadcrumb { margin-bottom: 28px; }
    .collection-title { grid-template-columns: 1fr auto; }
    .collection-title::after { display: none; }
    .collection-content { padding: 28px 22px 32px; }
    .contact-row { grid-template-columns: 1fr; gap: 4px; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-brand, .footer-links:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
