.ui-theme-entry { display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius,4px);background:var(--bg-2); }
.ui-theme-entry p { font-size:12px;color:var(--text-lo);margin-top:6px; }
.ui-theme-entry .set-row__label { gap:5px; }
.ui-theme-entry.is-compact { padding:12px;margin-bottom:14px; }
.theme-picker { max-height:94svh; }
.theme-picker__battlefield { margin:0 0 14px;padding:12px;border:1px solid var(--line);background:var(--bg-2);border-radius:8px; }
.theme-picker__battlefield label { display:flex;align-items:center;gap:9px;min-height:32px;font-size:13px;font-weight:700; }
.theme-picker__battlefield input { width:20px;height:20px;flex:none;accent-color:var(--mint-500); }
.theme-picker__battlefield p { margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--text-lo); }
.theme-picker__intro { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;font-size:13px;line-height:1.6;margin-bottom:18px; }
.theme-picker__reset { border:0;background:transparent;color:var(--mint-400);font-size:12px;white-space:nowrap;padding:3px; }
.theme-picker__layout { display:grid;grid-template-columns:244px minmax(0,1fr);gap:24px;align-items:start; }
.theme-picker__list { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.theme-option { position:relative;display:flex;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:6px;padding:8px;background:var(--bg-2);color:var(--text-md);min-width:0;text-align:left;min-height:114px; }
.theme-option.is-selected { border-color:var(--mint-500);outline:1px solid var(--mint-500);background:var(--mint-a10); }
.theme-option strong { display:block;font-size:13px;font-weight:700; }
.theme-option__code { display:block;font-family:var(--font-num);font-size:9px;letter-spacing:.12em;color:var(--text-lo);margin-bottom:2px; }
.theme-option > .icon { position:absolute;right:7px;bottom:8px;width:13px;height:13px;color:var(--mint-400); }
.theme-option__current { position:absolute;right:6px;top:6px;font-size:9px;background:var(--bg-0);color:var(--text-md);padding:1px 4px; }
.theme-option__mini { position:relative;width:100%;height:47px;overflow:hidden;background:var(--swatch-bg);border:1px solid var(--swatch-line);border-radius:var(--swatch-radius); }
.theme-option__mini i { position:absolute;left:6px;top:7px;bottom:7px;width:17%;border-right:1px solid var(--swatch-line);background:var(--swatch-panel); }
.theme-option__mini span { position:absolute;left:30%;top:8px;width:55%;height:3px;background:var(--swatch-accent); }
.theme-option__mini b { position:absolute;left:30%;top:18px;width:55%;height:15px;background:var(--swatch-panel);border:1px solid var(--swatch-line);border-radius:var(--swatch-radius); }
.theme-option__mini em { position:absolute;right:12%;bottom:6px;width:22%;height:4px;background:var(--swatch-accent); }
.theme-picker__preview { min-width:0; }
.theme-picker__caption { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px; }
.theme-picker__caption h2 { color:var(--text-hi);font-size:25px;line-height:1.2;margin:7px 0; }
.theme-picker__caption p { color:var(--text-lo);font-size:12px; }
.theme-picker__caption > span { white-space:nowrap;padding:4px 7px;border:1px solid var(--line);color:var(--mint-400);font-size:10px; }
.theme-picker__footnote { margin-right:auto;align-self:center;font-size:11px;color:var(--text-lo);max-width:35ch; }
.theme-picker__preview > .set-hint { margin-top:10px;font-size:11px; }
/* The preview is live CSS, built with the same palette tokens as the actual game. */
.theme-specimen { font-family:var(--font-cjk);background:var(--ui-pattern),var(--bg-0);background-size:50px 50px;color:var(--text-hi);border:var(--ui-border-width) solid var(--line-2);border-radius:var(--ui-radius);overflow:hidden;box-shadow:var(--ui-panel-shadow);font-size:12px; }
.theme-specimen__head { display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid var(--line);background:var(--bg-1); }
.theme-specimen__seal { display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid var(--mint-500);color:var(--mint-400);font:20px var(--font-num);border-radius:var(--ui-radius); }
.theme-specimen__head small { font:9px var(--font-num);letter-spacing:.15em;color:var(--text-lo); }
.theme-specimen__head h3 { margin:3px 0 0;font-size:17px;letter-spacing:var(--ui-tracking); }
.theme-specimen__status { display:flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap;font-size:10px;color:var(--text-lo); }
.theme-specimen__status i { display:block;width:5px;height:5px;background:var(--mint-500);border-radius:50%; }
.theme-specimen__layout { display:grid;grid-template-columns:104px minmax(0,1fr); }
.theme-specimen__nav { display:flex;flex-direction:column;padding:14px 8px;border-right:1px solid var(--line);gap:8px; }
.theme-specimen__nav span { display:flex;align-items:center;gap:7px;padding:9px 6px;font-size:11px;color:var(--text-lo);border:1px solid transparent;border-radius:var(--ui-radius); }
.theme-specimen__nav .icon { width:12px;height:12px; }
.theme-specimen__nav .is-on { color:var(--mint-400);border-color:var(--mint-800);background:var(--mint-a10); }
.theme-specimen__body { padding:16px;min-width:0;background:var(--bg-1); }
.theme-specimen__section { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px; }
.theme-specimen__section b { font-size:12px; }.theme-specimen__section small { font:8px var(--font-num);letter-spacing:.08em;color:var(--text-lo); }
.theme-specimen__row { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--bg-2); }
.theme-specimen__row strong { font-size:12px; }.theme-specimen__row p { font-size:10px;color:var(--text-lo);margin-top:4px; }
.theme-switch { position:relative;width:34px;height:20px;border:1px solid var(--line-3);background:var(--bg-0);border-radius:14px;flex:none;padding:0; }
.theme-switch i { position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:var(--text-lo);transition:transform .15s; }
.theme-switch.is-on { background:var(--mint-500);border-color:var(--mint-500); }.theme-switch.is-on i { background:var(--text-on-mint);transform:translateX(14px); }
.theme-specimen__metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 18px; }
.theme-specimen__metrics span { display:flex;align-items:center;justify-content:space-between;gap:5px;padding:8px 10px;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--ui-radius);font-size:10px;color:var(--text-lo); }
.theme-specimen__metrics b { font:15px var(--font-num);color:var(--text-hi); }
.theme-specimen__cards { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.theme-specimen__card { position:relative;display:flex;flex-direction:column;gap:7px;align-items:flex-start;min-width:0;min-height:125px;padding:12px;text-align:left;background:var(--bg-2);color:var(--text-hi);border:1px solid var(--line);border-radius:var(--ui-radius); }
.theme-specimen__card .icon { width:21px;height:21px;color:var(--mint-400); }
.theme-specimen__cardno { align-self:flex-end;color:var(--text-lo);font:10px var(--font-num); }.theme-specimen__card b { font-size:12px; }.theme-specimen__card small { font-size:9px;color:var(--text-lo); }
.theme-specimen__card.is-selected { border-color:var(--mint-500);box-shadow:inset 0 0 0 1px var(--mint-500);background:var(--mint-a10); }
.theme-specimen__card .theme-specimen__check { position:absolute;right:8px;top:9px;width:13px;height:13px; }
.theme-specimen__card.is-selected .theme-specimen__cardno { visibility:hidden; }
.theme-specimen__footer { display:flex;justify-content:space-between;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line); }
.theme-demo-secondary,.theme-demo-primary { min-height:32px;padding:6px 12px;font-size:11px;font-weight:700;letter-spacing:var(--ui-tracking);border-radius:var(--ui-radius); }
.theme-demo-secondary { background:transparent;color:var(--text-md);border:1px solid var(--line-2); }
.theme-demo-primary { display:flex;gap:14px;align-items:center;background:var(--mint-500);color:var(--text-on-mint);border:1px solid var(--mint-500); }.theme-demo-primary .icon { width:12px;height:12px; }
.theme-specimen__battle { display:flex;align-items:center;gap:14px;padding:12px 16px;background:#14202a;color:#e4ecef;border-top:2px solid var(--mint-500);font-size:11px; }
.theme-specimen__battle > span { padding:4px 7px;border:1px solid #536470;border-radius:var(--ui-radius);white-space:nowrap; }.theme-specimen__round b { font:17px var(--font-num); }.theme-specimen__timer { margin-left:auto;font-size:21px; }.theme-specimen__battle small { font-size:9px;color:#b6c7cf; }
@media(max-width:1000px) { .theme-picker__layout { grid-template-columns:200px minmax(0,1fr);gap:16px; }.theme-specimen__layout { grid-template-columns:84px minmax(0,1fr); }.theme-specimen__nav span { font-size:10px;padding:8px 3px;gap:4px; }.theme-specimen__body { padding:12px; }.theme-specimen__battle small { display:none; } }
@media(max-height:620px),(max-width:700px) { .theme-picker__layout { display:block; }.theme-picker__list { display:flex;overflow-x:auto;padding:3px 2px 10px;margin-bottom:12px;scrollbar-width:thin; }.theme-option { flex:0 0 112px;min-height:70px;flex-direction:row;align-items:center;gap:7px; }.theme-option__mini { width:35px;height:40px;flex:none; }.theme-option__current { display:none; }.theme-option__code { font-size:8px; }.theme-option strong { font-size:11px; }.theme-picker__caption { margin-bottom:10px; }.theme-picker__caption h2 { font-size:20px;margin:4px 0; }.theme-picker__caption p { font-size:11px; }.theme-picker__intro { font-size:11px;margin-bottom:10px; }.theme-specimen__head { padding:12px; }.theme-specimen__card { min-height:105px; }.theme-picker__footnote { display:none; } }
@media(max-width:460px) { .theme-specimen__layout { grid-template-columns:64px minmax(0,1fr); }.theme-specimen__nav span { font-size:9px; }.theme-specimen__nav .icon { display:none; }.theme-specimen__body { padding:8px; }.theme-specimen__cards { gap:5px; }.theme-specimen__card { padding:8px;font-size:10px;min-height:112px; }.theme-specimen__metrics { gap:4px; }.theme-specimen__metrics span { padding:6px;font-size:9px; }.theme-picker__caption > span { display:none; } }
