/* Shared shell palette; board artwork and meaningful game colors stay readable. */
:root{--accent:#856015;--soft:#ffe6a0;--planet-bg:#fffcf3;--planet-gold:#ffd26b;color:#51452d;background:#fffcf3}
html.home-theme,html:has(.game-app),body,.home-theme body,body.game-app{background-color:#fffcf3;color:#51452d}
body{position:relative;isolation:isolate;background-image:none}
body::before,body::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-repeat:repeat;background-size:360px 360px;filter:invert(1);mix-blend-mode:multiply}
body::before{background-image:url('/brand-planet-v2.webp?v=9fc67e804605');background-position:0 0;filter:grayscale(1) brightness(.57) contrast(30) invert(1);opacity:.14}
body::after{background-image:url('/brand-rocket.webp?v=9fc67e804605');background-position:180px 180px;opacity:.12}
body>main,body>header{position:relative;z-index:1}
.home-theme .logo span{background:#ffd26b;box-shadow:0 4px 0 #dfb653}
.home-theme .fruit-bowl{background:#feeaa8;box-shadow:inset 0 0 0 16px #fff8e1,0 16px 0 #e8c779}
.community-section,.home-theme .community-section,.home-theme .article{background:#fff9e5;border-color:#e5cf90;box-shadow:0 5px 0 #eddda9}
.community-section p,.home-theme .community-section p,.home-theme .article p,.home-theme .article li{color:#716044}
.community-button,.home-theme .community-button{background:#ffd26b;border-color:#dbb353;color:#584315}
.community-button:hover:not(:disabled),.home-theme .community-button:hover:not(:disabled){background:#f4c458}
.community-button:focus-visible{outline-color:#926710}
.home-theme .article a{color:#825b10}
.feedback-dialog,.home-theme .feedback-dialog,.game-app .game-dialog{background:#fff9e5;color:#51452d;border-color:#d6bc75}
.feedback-dialog::backdrop,.game-dialog::backdrop{background:#493b2066}
.feedback-dialog input,.feedback-dialog select,.feedback-dialog textarea,.home-theme .feedback-dialog input,.home-theme .feedback-dialog select,.home-theme .feedback-dialog textarea,.game-app select,.game-app input{background:#fffdf4;color:#51452d;border-color:#d9c592}
.game-app .screen-header{background:#fff5d6;border-bottom-color:#e3cc8a}
.game-app .screen-header h1,.game-app a{color:#51452d}
.game-app button{background:#ffedb4;border-color:#d9bf7b;color:#5c471d}
.game-app button:hover:not(:disabled){background:#ffe39a}
.game-app button:focus-visible,.game-app a:focus-visible{outline-color:#926710}
.game-app .center-result button,.game-app #start,.game-app .scene-launch button{background:#ffd26b;border-color:#dbb353;color:#584315}
.game-app .dialog-content button.selected{background:#ffd26b;border-color:#98721c;color:#51401c}
.game-app .game-stage{border-color:#d8c187}
.game-app .center-result,.game-app .overlay{background-color:#fff8e3ed;color:#51452d}
.game-app .scene-launch{background-color:#fff5d64d}
.game-app .overlay p,.game-app .center-result p{color:#716044}
@media(max-width:720px){body::before,body::after{background-size:280px 280px}body::after{background-position:140px 140px}}

.home-theme .home-shortcuts .community-button{background:#feeaa8}
.home-theme .home-shortcuts .community-button:hover:not(:disabled){background:#feeaa8}

#gomoku-welcome{width:min(92vw,440px)}
#gomoku-welcome .welcome-modes{display:grid;gap:10px;margin:20px 0}
#gomoku-welcome .welcome-modes p{margin:0;padding:12px 14px;background:#fff0bd;border:1px solid #e4ce94;border-radius:12px;font-size:17px;line-height:1.5}
#gomoku-welcome .welcome-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
#gomoku-welcome .welcome-actions button{flex:1}
#gomoku-welcome #welcome-settings{background:#feeaa8;font-weight:700}

.home-theme .promise{background:#feeaa8}

.logo .brand-planet::before{background:#ffd26b url('/brand-planet-v2.webp?v=9fc67e804605') center/contain no-repeat;-webkit-mask:none;mask:none;border-radius:50%}

/* Short information pages must paint the full viewport too. */
body:not(.game-app){min-height:100vh;min-height:100dvh;display:flow-root}

@media(max-width:600px){.home-theme nav .logo{font-size:14px;letter-spacing:0;white-space:nowrap}.home-theme nav .logo span{width:34px;height:34px;margin-right:5px}.home-theme nav>div{gap:12px}}
