/* Mode selection uses the two existing illustrations and one shared visual treatment. */
html body[data-game='palace'] #creation.mode-selection {
 position:relative;display:flex;flex-direction:column;gap:2cqh;width:100%;height:100%;
 box-sizing:border-box;margin:0;padding:3cqh 7cqw 4cqh;overflow:hidden;isolation:isolate;
 background:linear-gradient(110deg,rgba(246,239,229,.72),rgba(253,250,245,.62) 50%,rgba(246,239,229,.72)),
  image-set(url('/public/assets/backgrounds/opening/人物设定.webp?v=0880a773e9d8') type('image/webp'), url('/public/assets/backgrounds/opening/人物设定.png') type('image/png')) center/cover no-repeat;
 color:var(--palace-ink);font-family:var(--game-text-font);border:0;border-radius:0;
}
#creation.mode-selection .mode-selection-heading {
 display:block;position:relative;flex:none;min-height:6cqh;text-align:center;
}
#creation.mode-selection h1 {
 margin:0;font-size:clamp(20px,4cqh,36px);letter-spacing:.2em;line-height:1.3;
}
#creation.mode-selection .mode-selection-heading button {
 position:absolute;left:-5cqw;top:0;padding:5px 10px;min-height:30px;
 border:1px solid var(--palace-gold);border-radius:6px;
 background:rgba(255,249,232,.87);color:inherit;font:inherit;font-size:var(--font-body);
}
#creation.mode-selection .mode-selection-options {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5cqw;
 width:min(90cqw,1280px);max-width:100%;min-height:0;flex:1;margin:0 auto;
 align-items:stretch;
}
#creation.mode-selection .mode-selection-card {
 display:flex;min-width:0;min-height:0;
}
html body[data-game='palace'] #creation.mode-selection .mode-selection-entry {
 appearance:none;display:flex;flex-direction:column;justify-content:center;align-items:center;
 gap:.9cqh;width:100%;height:100%;min-width:0;min-height:0;box-sizing:border-box;
 margin:0;padding:.7cqh 1cqw 1.4cqh;overflow:hidden;
 border:0;border-radius:0;background:transparent;box-shadow:none;
 color:var(--palace-ink);font-family:inherit;text-align:center;cursor:pointer;
 transition:transform .16s ease,filter .16s ease;
}
#creation.mode-selection .mode-selection-entry:hover:not(:disabled) {
 transform:translateY(-.45cqh);filter:drop-shadow(0 5px 6px rgba(77,55,38,.13));
}
#creation.mode-selection .mode-selection-entry:active:not(:disabled) {transform:none;filter:none;}
#creation.mode-selection .mode-selection-entry:disabled {cursor:default;opacity:.65;}
#creation.mode-selection .mode-selection-art {
 display:block;width:100%;height:59cqh;max-height:76%;min-height:0;
 flex:none;object-fit:contain;object-position:center;
}
#creation.mode-selection .mode-selection-name {
 display:block;flex:none;font-size:clamp(21px,4cqh,32px);
 font-weight:600;letter-spacing:.13em;line-height:1.25;
}
#creation.mode-selection .mode-selection-description {
 display:block;flex:none;max-width:23em;margin:0 auto;
 font-size:clamp(13px,2.25cqh,18px);font-weight:400;
 line-height:1.5;text-align:center;letter-spacing:0;
}
#creation.mode-selection button:focus-visible {outline:2px solid #8d6748;outline-offset:3px;}

@media (max-height:450px) {
 html body[data-game='palace'] #creation.mode-selection {padding-top:2cqh;padding-bottom:2cqh;gap:1cqh;}
 #creation.mode-selection .mode-selection-heading {min-height:5cqh;}
 #creation.mode-selection .mode-selection-options {width:min(92cqw,1280px);}
 html body[data-game='palace'] #creation.mode-selection .mode-selection-entry {padding:.4cqh .8cqw 1cqh;gap:.55cqh;}
 #creation.mode-selection .mode-selection-art {height:53cqh;max-height:75%;}
 #creation.mode-selection .mode-selection-name {font-size:clamp(18px,4.6cqh,25px);}
 #creation.mode-selection .mode-selection-description {font-size:clamp(12px,2.8cqh,16px);line-height:1.35;}
}
