@font-face{font-family:PotaHomeRound;src:url('/assets/atelier/home-round.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:PotaHomeRound;src:url('/fonts/ZenMaruGothic-Bold-core.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
/* Portal-only layout. Shared game files and font files remain unchanged. */
.pota-home{--paper:#fffaf3;--surface:#fffdfa;--ink:#513d37;--muted:#7b655c;--accent:#a95472;--accent-dark:#893f5b;--accent-soft:#f8e8ed;--line:#e7d7d2;--radius:22px;margin:0;background:var(--paper);color:var(--ink);font:500 16px/1.8 PotaHomeRound,"Yu Gothic",Meiryo,sans-serif;-webkit-font-smoothing:antialiased}
.pota-home *{box-sizing:border-box}
.pota-home a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:#eac4ce66}
.pota-home img{display:block;max-width:100%;height:auto}
.pota-home a:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.pota-home [tabindex="-1"]:focus{outline:none}
.pota-home .page-width{width:min(1120px,calc(100% - 64px));margin-inline:auto}
.pota-home .skip-link{position:fixed;z-index:20;top:12px;left:12px;padding:12px 24px;background:var(--surface);border:1px solid var(--accent);border-radius:12px;transform:translateY(-180%)}
.pota-home .skip-link:focus{transform:none}
.pota-home .site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:96px;border-bottom:1px solid var(--line)}
.pota-home .header-brand{display:flex;align-items:center;min-height:48px;width:180px;flex-shrink:0;border-radius:8px}
.pota-home nav{display:flex;align-items:center;gap:8px;font-size:15px;line-height:1.5}
.pota-home nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:999px;white-space:nowrap;transition:background-color .16s,color .16s}
.pota-home nav a:hover,.pota-home nav a:focus-visible{background:var(--accent-soft);color:var(--accent-dark)}
.pota-home nav a:active{background:#efd5df;color:var(--accent-dark)}
.pota-home:has(#games:target) nav a[href="#games"],.pota-home:has(#about:target) nav a[href="#about"]{background:var(--accent-soft);color:var(--accent-dark)}
.pota-home .nav-social{min-width:44px}
.pota-home .social-icon{display:block;flex-shrink:0;width:18px;height:18px}
.pota-home .hero-inner{display:grid;grid-template-columns:minmax(0,1fr) 480px;align-items:center;gap:64px;padding-block:56px 64px}
.pota-home .hero-intro{min-width:0}
.pota-home .hero-intro h1{margin:0;width:100%;max-width:540px}
.pota-home .hero-feature{display:block;min-width:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface);transition:border-color .16s,background-color .16s}
.pota-home .hero-image{aspect-ratio:3/2;background:#f2ece6;overflow:hidden;display:flex;align-items:center;justify-content:center}
.pota-home .hero-image img{width:100%;height:100%;object-fit:contain;transition:transform .18s}
.pota-home .hero-feature-copy{padding:20px}
.pota-home .hero-feature h2{font-size:20px;font-weight:700;line-height:1.5;margin:0}
.pota-home .hero-feature:hover,.pota-home .hero-feature:focus-visible{border-color:var(--accent)}
.pota-home .hero-feature:active{background:var(--accent-soft)}
.pota-home .games-section{position:relative;padding-block:24px 64px;scroll-margin-top:24px}
.pota-home .legacy-anchor{position:absolute;top:0;scroll-margin-top:24px}
.pota-home .section-heading{margin-bottom:32px}
.pota-home .section-heading h2,.pota-home .about-copy h2{font-size:30px;font-weight:700;line-height:1.4;letter-spacing:.02em;margin:0}
.pota-home .work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
.pota-home .work-card{min-width:0}
.pota-home .work-link{display:flex;flex-direction:column;height:100%;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface);transition:border-color .16s,background-color .16s}
.pota-home .work-image{aspect-ratio:3/2;margin:0;overflow:hidden;background:#f2ece6}
.pota-home .work-image img{width:100%;height:100%;object-fit:cover;transition:transform .18s}
.pota-home .work-copy{flex:1;padding:20px}
.pota-home .work-copy h3{width:100%;font-size:18px;font-weight:700;line-height:1.65;margin:0;overflow-wrap:break-word;line-break:strict}
.pota-home .title-part{display:inline-block;white-space:nowrap;max-width:100%}
.pota-home .work-link:hover,.pota-home .work-link:focus-visible{border-color:var(--accent);background:#fff7f8}
.pota-home .work-link:active{border-color:var(--accent-dark);background:#f6e5eb}
.pota-home .about-section{background:#f5eae7;border-top:1px solid var(--line);border-bottom:1px solid var(--line);scroll-margin-top:24px}
.pota-home .about-inner{padding-block:48px}
.pota-home .about-copy{display:grid;grid-template-columns:1fr 2fr;gap:32px;align-items:start}
.pota-home .about-details p{font-size:16px;line-height:1.8;margin:0}
.pota-home .about-social{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;margin-top:16px;padding:8px 16px;border:1px solid #c79ba5;border-radius:999px;color:var(--accent-dark);font-size:15px;line-height:1.5;transition:background-color .16s,border-color .16s}
.pota-home .about-social:hover,.pota-home .about-social:focus-visible{background:var(--surface);border-color:var(--accent)}
.pota-home .about-social:active{background:#efd5df}
.pota-home .site-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:96px;padding-block:24px}
.pota-home .site-footer small{font-size:13px;color:var(--muted)}
.pota-home .back-top{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border-radius:999px;font-size:14px;line-height:1.5;transition:background-color .16s}
.pota-home .back-top:hover,.pota-home .back-top:focus-visible{background:var(--accent-soft)}
.pota-home .back-top:active{background:#efd5df}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.pota-home .work-link:hover .work-image img,.pota-home .hero-feature:hover .hero-image img{transform:scale(1.015)}}
@media(max-width:1000px){
.pota-home .hero-inner{gap:32px;grid-template-columns:1.15fr 1fr;padding-block:48px}
.pota-home .hero-feature-copy{padding:16px}
.pota-home .hero-feature h2{font-size:18px}
.pota-home .work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pota-home .work-copy{padding:20px}
}
@media(max-width:600px){
.pota-home .page-width{width:calc(100% - 40px)}
.pota-home .site-header{min-height:80px;gap:12px}
.pota-home .header-brand{width:140px;min-height:44px}
.pota-home nav{gap:0;font-size:14px}
.pota-home nav a{padding-inline:8px}
.pota-home .nav-long{display:none}
.pota-home .hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:32px;padding-block:40px}
.pota-home .hero-intro h1{width:100%;max-width:440px;margin-inline:auto}
.pota-home .hero-feature-copy{padding:16px}
.pota-home .hero-feature h2{font-size:18px}
.pota-home .games-section{padding-block:16px 48px}
.pota-home .section-heading{margin-bottom:24px}
.pota-home .section-heading h2,.pota-home .about-copy h2{font-size:28px}
.pota-home .work-grid{grid-template-columns:1fr;gap:24px}
.pota-home .work-copy{padding:20px}
.pota-home .work-copy h3{font-size:18px}
.pota-home .about-inner{padding-block:32px}
.pota-home .about-copy{grid-template-columns:1fr;gap:16px}
.pota-home .about-details p{font-size:15px}
.pota-home .site-footer{min-height:88px;gap:16px;padding-block:16px}
.pota-home .site-footer small{font-size:12px}
.pota-home .back-top{font-size:14px;padding-inline:8px}
}
@media(max-width:359px){.pota-home .page-width{width:calc(100% - 32px)}.pota-home .header-brand{width:132px}.pota-home .site-header{gap:8px}.pota-home nav a{min-width:44px;padding-inline:1px}.pota-home .hero-feature-copy{padding:16px}.pota-home .hero-feature h2{font-size:16px}.pota-home .work-copy{padding:16px}}
@media(prefers-reduced-motion:reduce){.pota-home *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
