/* Personal navigation, using the existing Soft Cards palette and spacing. */
:root{--home-nav-height:108px}
.home-link .github-mark{display:inline-block;width:18px;height:18px;flex:none;background:currentColor;mask:url('/assets/github-mark.svg') center/contain no-repeat}
html,body{height:auto;min-height:100%}
body{overflow:auto}
#root{height:auto;min-height:0}
.home-nav{width:min(1220px,calc(100% - 40px));min-height:var(--home-nav-height);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 10px 10px;border-bottom:1px solid #7a4b2c20;font-family:"Microsoft YaHei","PingFang SC",sans-serif}
.home-brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:#7a4b2c;border-radius:16px}
.home-portrait{position:relative;display:block;flex:none;width:80px;height:80px;isolation:isolate}
.home-portrait img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .22s ease;pointer-events:none}
.home-portrait-filled{opacity:0}
.home-brand-copy{display:flex;flex-direction:column;gap:4px}
.home-brand-name{font-size:23px;font-weight:600;letter-spacing:.07em;line-height:1.4}
.home-brand-domain{font-family:"Patrick Hand Local","Segoe Print",cursive;font-size:15px;line-height:1.4;color:#8e6e58}
.home-links{display:flex;align-items:center;gap:12px}
.home-link{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:44px;padding:11px 20px;border:1px solid #b98b5c55;border-radius:999px;background:#f2e3d188;text-decoration:none;color:#7a4b2c;font-size:14px;font-weight:500;line-height:1.5;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s}
.home-link span{color:#b8652e;font-size:17px;line-height:1}
.home-link:hover{background:#e5c8a7;border-color:#b98b5c;transform:translateY(-1px)}
.home-brand:focus-visible,.home-link:focus-visible{outline:3px solid #b8652e;outline-offset:5px}
.home-brand:focus-visible .home-portrait-filled,.home-brand:active .home-portrait-filled{opacity:1}
.home-brand:focus-visible .home-portrait-outline,.home-brand:active .home-portrait-outline{opacity:0}
.game-shell{min-height:calc(100dvh - var(--home-nav-height));padding-top:16px}
.game-surface{height:min(860px,calc(100dvh - var(--home-nav-height) - 36px));min-height:600px}
@media(hover:hover) and (pointer:fine){.home-brand:hover .home-portrait-filled{opacity:1}.home-brand:hover .home-portrait-outline{opacity:0}}
@media(max-width:900px){.game-surface{height:calc(100dvh - var(--home-nav-height) - 28px)}.game-shell{padding-top:12px}}
@media(max-width:560px){:root{--home-nav-height:88px}.home-nav{width:calc(100% - 32px);padding:10px 0;gap:12px}.home-portrait{width:64px;height:64px}.home-brand{gap:8px}.home-brand-name{font-size:18px;letter-spacing:.03em}.home-brand-domain{display:none}.home-links{gap:8px}.home-link{font-size:12px;min-height:42px;padding:10px 12px;gap:7px}.home-link span{font-size:14px}.game-shell{padding:0;min-height:0}.game-surface{height:auto;min-height:calc(100dvh - var(--home-nav-height));padding-top:20px}.game-layout{flex:none}.game-main{flex:none}.board-card{flex:none;display:block}.board{width:100%;height:auto;max-height:none;aspect-ratio:1}.mobile-panel{margin-top:12px}}
@media(max-width:359px){.home-portrait{width:58px;height:58px}.home-brand{gap:5px}.home-brand-name{font-size:16px}.home-link{padding-inline:10px;gap:5px}.home-links{gap:6px}.home-nav{gap:10px}}
@media(prefers-reduced-motion:reduce){.home-portrait img,.home-link{transition:none}.home-link:hover{transform:none}}
@media(max-width:560px){
  :root{--home-nav-height:140px}
  .home-nav{flex-wrap:wrap;gap:4px;padding-bottom:12px}
  .home-links{width:100%;justify-content:space-between;gap:6px}
  .home-link{gap:7px;padding-inline:12px}
  .home-link .github-mark{width:16px;height:16px}
}
@media(max-width:359px){.home-link{padding-inline:8px;gap:5px}}
