:root {
  --paper: #f7f2e8;
  --paper-deep: #eee5d5;
  --ink: #181511;
  --muted: #5f5950;
  --line: #d7cdba;
  --studio: #12675b;
  --focus: #126bff;
  --white: #fffdf8;
  --shadow: 0 26px 70px rgba(65, 48, 27, .14);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(circle at 1px 1px, rgba(76,62,39,.095) 1px, transparent 1.2px); background-size: 24px 24px; font-family: var(--sans); line-height: 1.6; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 18px; top: 12px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 10px; transform: translateY(-140%); transition: transform .15s; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; height: 68px; padding: 0 max(24px, calc((100vw - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid rgba(103,85,56,.22); backdrop-filter: blur(18px); }
.brand { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-dd { font: 900 29px/1 var(--serif); letter-spacing: -2px; }
.brand-dd span { color: var(--studio); }
.brand-games { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .22em; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 750; }
.site-header nav > a:hover { color: var(--ink); }
.header-play { gap: 12px; padding: 0 18px; color: var(--white) !important; background: var(--ink); border-radius: 999px; }
.header-play svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

main { overflow: clip; }
.hero { max-width: 1240px; min-height: 610px; margin: 0 auto; padding: 78px 24px 44px; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "copy art" "facts facts"; gap: 38px 72px; align-items: center; }
.hero-copy { grid-area: copy; max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--studio); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 800 clamp(60px, 7vw, 106px)/.9 var(--serif); letter-spacing: -.07em; }
.hero h1 span { color: var(--studio); }
.hero-copy > p:not(.eyebrow) { max-width: 630px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions, .actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.primary-button { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--studio); border-radius: 999px; text-decoration: none; font-weight: 850; box-shadow: 0 13px 30px rgba(31,125,111,.22); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(31,125,111,.28); }
.plain-link, .text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 800; }
.hero-art { grid-area: art; position: relative; height: 420px; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 22px 0 8px 28px; z-index: -2; border: 1px solid var(--line); background: rgba(255,253,248,.48); border-radius: 50% 46% 48% 42%; transform: rotate(-4deg); }
.dd-field { position: absolute; inset: 76px auto auto 64px; z-index: -1; color: rgba(24,21,17,.075); font: 900 180px/1 var(--serif); letter-spacing: -.12em; }
.dd-field span { color: rgba(31,125,111,.17); }
.hero-icon { position: absolute; width: 188px; height: 188px; border-radius: 38px; box-shadow: 0 24px 50px rgba(48,35,19,.23); border: 5px solid rgba(255,255,255,.76); }
.hero-icon-1 { left: 28px; top: 22px; transform: rotate(-6deg); }
.hero-icon-2 { right: 22px; top: 98px; transform: rotate(6deg); }
.hero-icon-3 { left: 142px; bottom: 2px; width: 172px; height: 172px; transform: rotate(-2deg); }
.hero-facts { grid-area: facts; margin: 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-facts div { padding: 0 28px; border-right: 1px solid var(--line); }
.hero-facts div:first-child { padding-left: 0; }
.hero-facts div:last-child { border: 0; }
.hero-facts dt { font: 800 25px/1.2 var(--serif); }
.hero-facts dd { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.games-section, .library-section, .related-section { max-width: 1240px; margin: 0 auto; padding: 110px 24px 0; }
.section-heading { max-width: 690px; margin-bottom: 52px; }
.section-heading h2 { margin: 0; font: 800 clamp(38px, 5vw, 64px)/1 var(--serif); letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.showcase-list { display: grid; gap: 92px; }
.showcase { --accent: var(--studio); --panel: #f4ecdd; min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); border: 1px solid rgba(91,73,44,.24); border-radius: 34px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.showcase-reverse .media-stage { order: 2; }
.showcase-copy { padding: clamp(42px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.showcase-copy .eyebrow { color: var(--accent); }
.showcase h2 { margin: 0; font: 800 clamp(36px, 4vw, 58px)/1.02 var(--serif); letter-spacing: -.045em; }
.showcase h2 a { text-decoration: none; }
.showcase h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tagline { margin: 23px 0 0; font-size: clamp(20px, 2vw, 27px); font-weight: 850; line-height: 1.24; }
.summary { margin: 17px 0 0; color: var(--muted); font-size: 17px; }
.chips { margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 7px 12px; color: var(--ink); background: rgba(255,255,255,.52); border: 1px solid rgba(70,57,38,.17); border-radius: 999px; font-size: 12px; font-weight: 800; }
.text-link { color: var(--accent); }
.play-button { min-height: 52px; padding: 7px 15px; display: inline-flex; align-items: center; gap: 11px; color: #fff; background: #171717; border: 1px solid #353535; border-radius: 12px; text-decoration: none; box-shadow: 0 9px 22px rgba(0,0,0,.13); transition: transform .2s; }
.play-button:hover { transform: translateY(-2px); }
.play-button small { display: block; font-size: 8px; line-height: 1; letter-spacing: .12em; }
.play-button span:last-child { font-size: 14px; font-weight: 750; line-height: 1.25; }
.play-mark { position: relative; width: 25px; height: 28px; display: block; clip-path: polygon(0 0,100% 50%,0 100%); background: linear-gradient(150deg,#35d480 0 44%,#2d74f6 45% 61%,#f5cf38 62% 77%,#f2534a 78%); }

.media-stage { --accent: var(--studio); position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 15%, #fff) 0%, color-mix(in srgb, var(--accent) 44%, #1b2c34) 100%); isolation: isolate; }
.media-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .26; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1.5px); background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.stage-orbit { position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.33); border-radius: 50%; }
.orbit-a { transform: translate(-36%, -30%); }
.orbit-b { transform: translate(38%, 34%) scale(.74); }
.phone-frame { width: min(58%, 285px); height: 435px; padding: 7px; position: relative; z-index: 2; overflow: hidden; border: 2px solid rgba(255,255,255,.78); border-radius: 24px; background: #fff; box-shadow: 0 28px 55px rgba(14,18,23,.34); transform: rotate(-2deg); transition: transform .3s; }
.showcase:hover .phone-frame, .creative-section:hover .phone-frame { transform: translateY(-3px) rotate(-1deg); }
.game-shot { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 17px; }
.floating-app-icon { position: absolute; right: 8%; bottom: 7%; z-index: 4; width: 96px; height: 96px; border-radius: 23px; border: 4px solid rgba(255,255,255,.86); box-shadow: 0 16px 36px rgba(10,14,18,.3); transform: rotate(5deg); }
.icon-field { position: relative; width: 72%; aspect-ratio: 1; display: grid; place-items: center; }
.icon-only { width: 64%; border-radius: 28%; box-shadow: 0 28px 55px rgba(14,18,23,.34); }
.grid-nine { position: absolute; inset: 0; border-radius: 28px; background-image: linear-gradient(rgba(255,255,255,.3) 2px,transparent 2px),linear-gradient(90deg,rgba(255,255,255,.3) 2px,transparent 2px); background-size: 33.333% 33.333%; opacity: .45; }

.theme-crosswise { --accent: #b91f3d; --panel: #f7f2e6; }
.theme-aeolian { --accent: #875000; --panel: #e8f2ee; }
.theme-aeolian .media-stage { background: linear-gradient(155deg,#0b5362,#367dd6); }
.theme-mahjong { --accent: #93352c; --panel: #f2eee5; }
.theme-mahjong .media-stage { background: linear-gradient(145deg,#d7d9cd,#8d9683); }
.theme-wallkade { --accent: #9c1d66; --panel: #eee9f5; }
.theme-wallkade .media-stage, .theme-wallkade .library-visual { background: linear-gradient(145deg,#171329,#3d1351); }
.theme-wallz { --accent: #00737d; --panel: #e8f2f1; }
.theme-wallz .media-stage, .theme-wallz .library-visual { background: linear-gradient(145deg,#07131d,#122d31); }
.theme-sudoku { --accent: #2458a8; --panel: #e9eef8; }
.theme-sudoku .media-stage, .theme-sudoku .library-visual { background: linear-gradient(145deg,#eef7ff,#90b5e8); }
.theme-petart { --accent: #934326; --panel: #f5e9d3; }
.theme-petart .media-stage { background: linear-gradient(145deg,#e9c8a6,#9b543e); }

.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.library-card { --accent: var(--studio); --panel: #fff; min-height: 470px; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid rgba(91,73,44,.24); border-radius: 28px; box-shadow: 0 18px 44px rgba(65,48,27,.1); }
.library-visual { min-height: 245px; position: relative; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--accent) 22%, #ede3d4); }
.library-visual img { position: relative; width: 138px; height: 138px; border-radius: 29px; box-shadow: 0 18px 38px rgba(16,20,24,.28); transition: transform .25s; }
.library-card:hover .library-visual img { transform: translateY(-4px) rotate(-1deg); }
.mini-pattern { position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(circle at 1px 1px,#fff 1px,transparent 1.5px); background-size: 16px 16px; }
.library-copy { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.library-copy .eyebrow { color: var(--accent); }
.library-copy h3 { margin: 0; font: 800 28px/1.06 var(--serif); letter-spacing: -.035em; }
.library-copy h3 a { text-decoration: none; }
.library-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.library-links { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.library-links a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-size: 13px; font-weight: 850; text-underline-offset: 4px; }

.creative-section { --accent: #934326; --panel: #f5e9d3; max-width: 1240px; min-height: 560px; margin: 110px auto 0; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: var(--panel); border: 1px solid rgba(91,73,44,.24); border-radius: 34px; box-shadow: var(--shadow); }
.creative-copy { padding: clamp(42px,6vw,76px); display: flex; flex-direction: column; justify-content: center; }
.creative-icon { width: 82px; height: 82px; margin-bottom: 24px; border-radius: 18px; box-shadow: 0 12px 25px rgba(70,45,25,.16); }
.creative-copy h2 { margin: 0; font: 800 clamp(40px,5vw,64px)/1 var(--serif); letter-spacing: -.05em; }
.creative-copy > p:not(.eyebrow,.tagline) { color: var(--muted); font-size: 17px; }
.studio-section { max-width: 1240px; margin: 110px auto; padding: 78px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; color: #f8f1e5; background: var(--ink); border-radius: 34px; }
.studio-section h2 { margin: 0; font: 800 clamp(42px,5vw,66px)/1 var(--serif); letter-spacing: -.05em; }
.studio-section .eyebrow { color: #79cbbd; }
.studio-section > p { margin: 0; color: #c7beb0; font-size: 20px; line-height: 1.7; }

.site-footer { padding: 72px max(24px,calc((100vw - 1240px)/2)) 46px; background: var(--paper-deep); border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: var(--muted); font-size: 11px; letter-spacing: .2em; }
.site-footer > p { max-width: 620px; color: var(--muted); }
.footer-links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 750; text-underline-offset: 4px; }
.copyright { margin-top: 36px; font-size: 12px; }

.breadcrumbs { max-width: 1240px; margin: 0 auto; padding: 30px 24px 10px; display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumbs span { display: inline-flex; align-items: center; }
.detail-hero { --accent: var(--studio); max-width: 1240px; min-height: 650px; margin: 0 auto; padding: 42px 24px 80px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 68px; align-items: center; }
.detail-copy { padding-left: 24px; }
.detail-copy .eyebrow { color: var(--accent); }
.detail-icon { width: 92px; height: 92px; margin-bottom: 30px; border-radius: 22px; box-shadow: 0 14px 30px rgba(55,39,21,.2); }
.detail-copy h1 { max-width: 660px; margin: 0; font: 800 clamp(48px,6vw,82px)/.98 var(--serif); letter-spacing: -.055em; }
.detail-summary { max-width: 600px; color: var(--muted); font-size: 17px; }
.detail-copy .play-button { width: fit-content; margin-top: 28px; }
.detail-stage { min-height: 610px; border-radius: 34px; box-shadow: var(--shadow); }
.detail-stage .phone-frame { width: min(59%,330px); height: 520px; }
.detail-stage .floating-app-icon { width: 110px; height: 110px; }
.detail-article { max-width: 1080px; margin: 0 auto; padding: 50px 24px 100px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; }
.story h2 { margin: 0 0 26px; font: 800 clamp(40px,5vw,64px)/1 var(--serif); letter-spacing: -.05em; }
.story > p:not(.eyebrow) { color: #4e4941; font: 20px/1.8 var(--serif); }
.feature-panel { height: fit-content; padding: 30px; position: sticky; top: 96px; background: rgba(255,253,248,.72); border: 1px solid var(--line); border-radius: 22px; }
.feature-panel ul { margin: 0 0 24px; padding: 0; list-style: none; }
.feature-panel li { padding: 12px 0; display: flex; gap: 10px; border-bottom: 1px solid var(--line); font-weight: 750; }
.feature-panel li span { color: var(--accent); }
.feature-panel > a { min-height: 44px; display: flex; align-items: center; color: var(--accent); font-size: 13px; font-weight: 800; text-underline-offset: 4px; }
.seo-context { max-width: 1080px; margin: 0 auto; padding: 66px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 30px; }
.seo-context h2 { margin: 0; font: 800 clamp(36px,4vw,55px)/1 var(--serif); letter-spacing: -.04em; }
.seo-context > p { max-width: 790px; color: var(--muted); font-size: 17px; }
.seo-context .play-button { width: fit-content; margin-top: 24px; }
.related-section { padding-bottom: 110px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.related-card { --accent: var(--studio); min-height: 106px; padding: 16px; display: grid; grid-template-columns: 72px 1fr 26px; gap: 16px; align-items: center; color: var(--ink); background: rgba(255,253,248,.72); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; transition: transform .2s,border-color .2s; }
.related-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.related-card img { width: 72px; height: 72px; border-radius: 16px; }
.related-card small { display: block; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.related-card strong { display: block; margin-top: 4px; font: 800 18px/1.15 var(--serif); }
.not-found main { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.not-found main section { padding: 24px; }
.not-found h1 { margin: 0; font: 800 clamp(48px,7vw,84px)/1 var(--serif); }
.not-found p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.not-found .primary-button { margin-top: 20px; }

.has-js .reveal { transform: translateY(8px); transition: transform .42s ease; }
.has-js .reveal.is-visible { transform: none; }

@media (max-width: 900px) {
  .site-header { padding: 0 18px; }
  .site-header nav > a:not(.header-play) { display: none; }
  .hero { min-height: auto; padding-top: 58px; grid-template-columns: 1fr; grid-template-areas: "copy" "art" "facts"; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .showcase, .creative-section, .detail-hero, .detail-article, .studio-section { grid-template-columns: 1fr; }
  .showcase-reverse .media-stage { order: 0; }
  .showcase-copy { order: 2; }
  .library-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .creative-section { margin-inline: 24px; }
  .creative-section .media-stage { order: -1; }
  .studio-section { margin-inline: 24px; padding: 52px; gap: 28px; }
  .detail-copy { padding-left: 0; }
  .detail-stage { order: -1; min-height: 540px; }
  .feature-panel { position: static; }
}

@media (max-width: 620px) {
  .site-header { height: 58px; }
  .brand-games, .header-play span, .header-play svg { display: none; }
  .header-play { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .header-play::before { content: ""; width: 18px; height: 21px; clip-path: polygon(0 0,100% 50%,0 100%); background: linear-gradient(150deg,#35d480 0 44%,#2d74f6 45% 61%,#f5cf38 62% 77%,#f2534a 78%); }
  .hero { padding: 48px 16px 26px; gap: 34px; }
  .hero h1 { font-size: clamp(54px,16vw,72px); }
  .hero-art { height: 322px; }
  .hero-icon { width: 132px; height: 132px; border-radius: 28px; }
  .hero-icon-2 { right: 7px; top: 75px; }
  .hero-icon-3 { left: 102px; width: 124px; height: 124px; }
  .dd-field { left: 35px; top: 65px; font-size: 125px; }
  .hero-facts { grid-template-columns: 1fr; gap: 0; }
  .hero-facts div { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts div:last-child { border: 0; }
  .games-section, .library-section, .related-section { padding: 78px 16px 0; }
  .section-heading { margin-bottom: 34px; }
  .showcase-list { gap: 48px; }
  .showcase { min-height: 0; border-radius: 24px; }
  .media-stage { min-height: 330px; }
  .phone-frame { width: 48%; height: 290px; border-radius: 18px; }
  .floating-app-icon { width: 72px; height: 72px; border-radius: 17px; }
  .showcase-copy { padding: 34px 26px 38px; }
  .showcase h2 { font-size: 38px; }
  .tagline { font-size: 21px; }
  .actions { align-items: stretch; }
  .actions .play-button { width: 100%; justify-content: center; }
  .library-grid, .related-grid { grid-template-columns: 1fr; }
  .library-card { min-height: 0; }
  .creative-section { margin: 78px 16px 0; border-radius: 24px; }
  .creative-copy { padding: 34px 26px 38px; }
  .studio-section { margin: 78px 16px; padding: 38px 28px; border-radius: 24px; }
  .detail-hero { padding: 22px 16px 70px; gap: 40px; }
  .detail-stage { min-height: 410px; border-radius: 24px; }
  .detail-stage .phone-frame { width: 52%; height: 350px; }
  .detail-stage .floating-app-icon { width: 76px; height: 76px; }
  .detail-copy h1 { font-size: 46px; }
  .detail-copy .play-button { width: 100%; justify-content: center; }
  .detail-article { padding: 20px 16px 70px; gap: 36px; }
  .story > p:not(.eyebrow) { font-size: 18px; }
  .seo-context { margin: 0 16px; padding: 38px 26px; border-radius: 24px; }
  .seo-context .play-button { width: 100%; justify-content: center; }
  .related-section { padding-bottom: 78px; }
  .site-footer { padding: 56px 18px 38px; }
}

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