/* 建立角色 V8 橫版黑銀（CREATE-BUTTONS-HANDOFF V8, create-preview.css）接入遊戲。
   設計稿規則原樣保留，只做三件事：範圍限制在遊戲的建角畫面；不帶入預覽外殼（:root/body/main/.preview-…/.creation-viewport）；
   選擇器一律是 #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen …，優先度高於正式 V6 skin-stone 的
   #dialog #dialogbody :is(button…) 各狀態規則，所以設計稿的顏色、選取、停用狀態都生效。
   .creation-screen 不再自行縮放（遊戲舞台本來就是 800x450 並整體縮放），背景不載入 2 MB 的 backdrop.png。 */
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen{color-scheme:dark;font-family:"Microsoft JhengHei","PingFang TC",sans-serif;color:#dce1e2}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen *{box-sizing:border-box}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen button,.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen input{-webkit-tap-highlight-color:transparent;font-family:inherit}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen button{cursor:pointer}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen button:disabled{cursor:default}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen{position:absolute;left:0;top:0;width:800px;height:450px;margin:0;background:radial-gradient(ellipse at 28% 44%,#141b2025,transparent 58%),linear-gradient(#010204 0%,#030609 65%,#0b1015 100%);isolation:isolate}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(90deg,#fff0, #87959e17 50%,#fff0) top center/78% 1px no-repeat,linear-gradient(0deg,#0000,#04070a 88%);opacity:.17}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen::after{content:"";position:absolute;left:436px;top:75px;width:1px;height:342px;background:linear-gradient(transparent,#7c8c9638 20%,#7c8c9638 80%,transparent);pointer-events:none}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-heading{position:absolute;top:24px;left:60px;width:680px;display:flex;align-items:center;gap:24px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-heading h1{margin:0;font-size:15px;font-weight:500;letter-spacing:4px;color:#c3cccf;white-space:nowrap;text-shadow:0 1px 2px #000}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-heading>span{height:1px;flex:1;background:linear-gradient(90deg,transparent,#6e7d855e)}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-heading>span:last-child{transform:rotate(180deg)}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-character{position:absolute;left:160px;top:67px;width:132px;height:292px;pointer-events:none;mix-blend-mode:screen}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-character img{display:block;width:132px;height:292px;object-fit:contain;image-rendering:auto}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choices{position:absolute;inset:0;pointer-events:none}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button{--button-ink:#bec8ce;--edge:#606c76;--button-light:#ffffff1f;position:relative;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--edge);border-radius:2px;color:var(--button-ink);background:linear-gradient(135deg,#48515820,transparent 43%),linear-gradient(#30383f 0%,#1e262d 13%,#11181f 60%,#0c1117 100%);box-shadow:inset 0 1px 0 var(--button-light),inset 0 -2px 0 #0009,0 2px 5px #0006;text-shadow:0 1px 2px #000;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .1s;user-select:none;touch-action:manipulation}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button::before{content:"";position:absolute;inset:3px;pointer-events:none;border:1px solid #c3d0d80b;border-top-color:#c3d0d816}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button::after{content:"";position:absolute;left:7px;right:7px;top:0;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#cdd9e64a,transparent)}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button:hover:not(:disabled){--edge:#91a0aa;--button-ink:#e6edef;box-shadow:inset 0 1px 0 #ffffff30,inset 0 -2px 0 #0009,0 3px 7px #0008}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button:active:not(:disabled){transform:translateY(1px);background:linear-gradient(#0e141a,#1b242c);box-shadow:inset 0 2px 5px #000b;--edge:#aebcc4}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button:focus-visible{outline:2px solid #e6d3a1;outline-offset:3px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button[aria-pressed=true]{--button-ink:#eee0b8;--edge:#b9a77d;--button-light:#efdab640;background:linear-gradient(130deg,#9c937121,transparent 55%),linear-gradient(#353b3c,#1a2228 36%,#10171d);box-shadow:inset 0 1px 0 #e9d5a84f,inset 0 -2px 0 #000a,0 2px 7px #0009}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button[aria-pressed=true]::after{background:linear-gradient(90deg,transparent,#f0dcaa9c,transparent)}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button:disabled{--button-ink:#5d6973;--edge:#303b43;background:linear-gradient(#1a2229,#10171d);box-shadow:inset 0 1px 0 #d9e1e807;opacity:1}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button:disabled::before,.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button:disabled::after{opacity:.25}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice{position:absolute;width:62px;height:64px;flex-direction:column;gap:0;padding:4px 3px 3px;pointer-events:auto}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice .choice-art{display:block;width:36px;height:36px;filter:drop-shadow(0 1px 1px #000b)}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice .choice-art svg{display:block;width:100%;height:100%}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice .choice-label{font-size:12px;line-height:18px;letter-spacing:2px;margin-left:2px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-role="0"]{left:52px;top:113px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-role="1"]{left:52px;top:210px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-role="2"]{left:336px;top:113px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-role="3"]{left:336px;top:210px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-sex]{width:52px;height:54px;top:364px;padding:3px;gap:0}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-sex="0"]{left:166px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-sex="1"]{left:234px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-choice[data-sex] .choice-art{width:27px;height:27px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name-label{position:absolute;top:88px;left:480px;color:#aebbc3;font-size:14px;line-height:34px;letter-spacing:2px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name{position:absolute;left:548px;top:88px;width:206px;height:34px;border:1px solid #52616b;border-radius:2px;background:linear-gradient(#080d12,#111922);box-shadow:inset 0 2px 5px #000c,0 1px 0 #c8d4dd15;color:#e7edf0;text-align:center;font-size:12px;outline:0;padding:0 8px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name::placeholder{color:#707e89;font-size:11px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name:focus{border-color:#bdad85;box-shadow:inset 0 2px 5px #000c,0 0 0 1px #bdad851c}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name[aria-invalid=true]{border-color:#b27c76}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-stats{position:absolute;left:480px;top:142px;width:274px;display:flex;flex-direction:column;gap:6px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-stat{height:27px;display:grid;grid-template-columns:80px 32px 130px 32px;align-items:center}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .stat-label{font-size:14px;color:#acbbc5;letter-spacing:2px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .stat-value{font-size:18px;line-height:27px;font-variant-numeric:tabular-nums;font-family:Georgia,"Microsoft JhengHei",serif;font-weight:bold;text-align:center;color:#e4e9e9;text-shadow:0 1px 3px #000}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .stat-adjust{height:27px;width:32px;padding:0;min-height:0;font-size:20px;font-weight:300;line-height:1;text-shadow:0 1px 2px #000}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .stat-adjust svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;fill:none}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .stat-adjust::before{inset:2px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .stat-adjust::after{left:5px;right:5px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-balance{position:absolute;top:351px;left:480px;width:274px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;letter-spacing:1px;color:#8d9da6}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-balance output{font-family:Georgia,serif;font-size:17px;color:#e3d4ac;font-variant-numeric:tabular-nums}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .balance-rule{position:absolute;left:0;right:0;bottom:-9px;height:1px;background:linear-gradient(90deg,transparent,#69798537,transparent)}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-actions{position:absolute;left:480px;top:396px;display:flex;gap:8px;width:274px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-actions .forged-button{height:36px;padding:0 13px;font-size:14px;letter-spacing:1px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-back{width:112px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-submit{width:154px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .button-symbol{width:17px;height:17px;display:flex;align-items:center;justify-content:center}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .button-symbol svg{width:100%;height:100%}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-submit:not(:disabled){--edge:#bfae83;--button-ink:#f1e0b5;--button-light:#eddbb34a;background:linear-gradient(135deg,#958b701a,transparent 60%),linear-gradient(#353d40,#1a242b 40%,#111920)}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-status{position:absolute;left:480px;right:46px;top:125px;margin:0;font-size:10px;line-height:12px;text-align:center;color:#d5ae9e;pointer-events:none}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-status.success{top:378px;color:#dbd2b5;background:#0b1118dc;padding:2px}
@media(prefers-reduced-motion:reduce){.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .forged-button{transition:none}}
/* ---- In-game additions (not in the preview) ----
   推薦配點 (existing game feature) sits at the right end of the 剩餘點數 row; the game's dialog skins are kept off this
   screen (it is an android-lobby-dialog, which V6/V9 already exclude). */
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-balance .creation-suggest{position:absolute;right:0;top:-4px;height:26px;min-height:0;padding:0 9px;font-size:12px;letter-spacing:1px;line-height:1}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen button{margin:0;min-width:0;font-weight:normal;text-transform:none}

/* Keep the name input and dice in one positioned row; the input must leave absolute positioning. */
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name-row{position:absolute;left:548px;top:88px;width:206px;height:34px;display:flex;gap:6px;align-items:stretch}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name-row .creation-name{position:static;left:auto;top:auto;flex:1 1 0;width:0;min-width:0;height:34px}
.game.pc-layout.android-layout #dialog.android-lobby-dialog.create-v8 #dialogbody .creation-screen .creation-name-row .name-dice{position:static;flex:0 0 34px;width:34px;min-width:34px;height:34px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;border:1px solid #52616b;border-radius:2px;background:linear-gradient(#17222b,#0c131a);color:#e7edf0}
