/* Crimson main-site theme. Loaded only for the configured public information pages. */
body.site-dark {
    --ink:#f4eee8; --muted:#bcb2a9; --accent:#b92121; --border:#342b27;
    --paper:#14100e; --radius:4px;
    margin:0; color:var(--ink); background:#040200;
    font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;
    line-height:1.7; color-scheme:dark;
}
.site-dark ::selection{color:#fff;background:#940000}
.site-dark a{color:#dfc2b1;text-decoration:none}
.site-dark a:hover{color:#fff}
.site-dark :is(button,.button,input,select,textarea,details,fieldset){border-radius:4px}
.site-dark :is(button,.button){color:#e7ddd5;background:#191310;border:1px solid #514036;padding:9px 17px;transition:background .18s,border-color .18s}
.site-dark :is(button,.button):hover{background:#2b1a16;border-color:#a94736}
.site-dark :is(button.primary,.button.primary){color:#fff;background:#940000;border-color:#b71919;padding:11px 26px;font-weight:700}
.site-dark :is(button.primary,.button.primary):hover{background:#b01616;border-color:#d23030}
.site-dark :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #dc8065;outline-offset:4px}
.site-dark .skip-link{color:#fff;background:#940000}
.site-dark .site-header{background:#080503;border-bottom:1px solid #38201a;padding:20px 24px}
.site-dark .site-header nav{gap:14px 27px;font-size:.87rem}
.site-dark .site-header nav a{color:#bcb2a9;position:relative}
.site-dark .site-header nav a:hover,.site-dark .site-header nav [aria-current]{color:#fff}
.site-dark .site-header nav [aria-current]::after{content:'';position:absolute;height:2px;bottom:-21px;left:0;right:0;background:#b71919}
.site-dark .preview-switch{width:min(1200px,calc(100% - 48px));margin:22px auto 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:.74rem;letter-spacing:.08em;color:#a29388}
.site-dark .preview-switch>span::before{content:'';display:inline-block;width:5px;height:5px;background:#b71919;margin-right:9px;vertical-align:middle}
.site-dark .preview-switch a{color:#bcb2a9;letter-spacing:0}
.site-dark .site-content{width:min(1200px,calc(100% - 48px));margin:0 auto 64px;gap:52px}
.site-dark .home-banner{border-radius:3px;border:1px solid #786257;box-shadow:0 14px 40px #0009}
.site-dark .home-banner::after{background:linear-gradient(180deg,#a6491508,transparent 45%,#17060018);box-shadow:inset 0 1px 0 #fff5,inset 0 0 0 1px #3e231933}
.site-dark .glass-card{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-width:0}
.site-dark .section-heading{align-items:center;margin-bottom:22px}
.site-dark :is(.home-villages h1,.home-announcement h2,.home-create h2){font-size:1.55rem;font-weight:700;letter-spacing:.08em;color:#f4eee8;line-height:1.4}
.site-dark :is(.home-villages h1,.home-announcement h2,.home-create h2)::before{content:'';display:inline-block;width:4px;height:.9em;vertical-align:-.02em;margin-right:13px;background:#940000}
.site-dark :is(.home-announcement h2,.home-create h2){margin-bottom:24px}
.site-dark #refreshRooms{font-size:.8rem;padding:7px 14px}
.site-dark .home-room-list{gap:13px}
.site-dark .home-room{border:1px solid #3f3029;border-radius:4px;background:linear-gradient(110deg,#1c1410,#100d0b);box-shadow:none;color:#e7ddd5;transition:border-color .18s,background .18s}
.site-dark .home-room:hover{transform:none;border-color:#925347;background:linear-gradient(110deg,#271713,#17100d);box-shadow:none}
.site-dark .home-room::before{width:3px;background:#940000}
.site-dark .home-room.is-playing::before{background:#cdb08a}
.site-dark .home-room-head{padding:20px 24px 8px;flex-direction:row-reverse;justify-content:space-between;gap:16px}
.site-dark .home-room-title{margin:0 auto 0 0;font-size:1.06rem;font-weight:600;letter-spacing:.025em;color:#f0e7df}
.site-dark .home-room-meta{color:#a99587;font-size:.75rem;gap:12px}
.site-dark .home-room-status{background:#38120e;border:1px solid #63231a;border-radius:3px;color:#efaa96;padding:1px 8px;font-weight:500}
.site-dark .is-playing .home-room-status{background:#33291c;border-color:#645036;color:#dfc39a}
.site-dark .home-room .home-room-description{margin:0;padding:0 24px 16px;font-size:.82rem;color:#ac9c90;font-weight:400}
.site-dark .home-room-foot{padding:11px 24px;border-color:#30221b;background:#0002}
.site-dark .home-room-count{color:#bcb2a9;font-size:.77rem}
.site-dark .home-size{background:#ece6df;border-radius:2px;font-size:.72rem;padding:1px 6px}
.site-dark .home-announcement{border-top:1px solid #382820;border-bottom:1px solid #382820;padding:30px 0}
.site-dark .home-announcement .announcement-content{font-family:inherit;font-weight:400;color:#bcb2a9;font-size:.9rem;line-height:1.9;max-height:210px}
.site-dark .home-announcement .announcement-content.expanded{max-height:none}
.site-dark .announcement-content :is(h1,h2,h3,strong,b){color:#f0e7df}
.site-dark .announcement-content a{color:#e1b5a0;text-decoration:underline;text-underline-offset:3px}
.site-dark #announcementToggle{font-size:.8rem;margin-top:20px}
.site-dark .home-create{background:#110c09;border:1px solid #3f3029;border-top:2px solid #7b2119;padding:30px}
.site-dark .home-create form{gap:24px}
.site-dark .home-basic-fields{grid-template-columns:1fr 1.3fr 170px;gap:20px}
.site-dark label{color:#d2c3b7;font-weight:500;font-size:.85rem;gap:9px}
.site-dark :is(input,textarea,select){background:#080503;color:#f4eee8;border:1px solid #544035;padding:10px 12px;accent-color:#b71919}
.site-dark :is(input,textarea)::placeholder{color:#8f8076}
.site-dark :is(input,textarea,select):focus{background:#17100b;border-color:#b16950}
.site-dark :is(input,textarea){-webkit-text-fill-color:currentColor}
.site-dark input[type=checkbox]{width:17px;height:17px}
.site-dark .home-create :is(small,.muted){color:#aa9789}
.site-dark .home-create details{background:#090604;border:1px solid #3f3029;padding:16px 18px}
.site-dark summary{color:#d2c3b7;font-size:.87rem;font-weight:500}
.site-dark .home-create fieldset{background:#130d09;border-color:#3f3029}
.site-dark .home-create legend{color:#d2bba5;font-weight:500}
.site-dark .home-create .legacy-options th{font-weight:500}
.site-dark .home-create .legacy-options td>label{color:#d2c3b7}
.site-dark .create-preview #optionDescription{background:#271a13;border-color:#6a4635;color:#f4eee8;box-shadow:0 6px 20px #0009}
.site-dark .home-footer{width:min(1200px,calc(100% - 48px));border-radius:3px;border:1px solid #59453b;box-shadow:0 12px 36px #0008}
.site-dark .home-footer-art::after{background:linear-gradient(180deg,#18090012,transparent 40%,#19090021);box-shadow:inset 0 1px 0 #fff4}
.site-dark .footer-credits{background:#0c0805eb;border:1px solid #795f4d;color:#c2b3a6;border-radius:3px;box-shadow:0 4px 12px #0003;font-size:.73rem}
.site-dark .footer-credits a{color:#e3c7b1}
.site-dark .home-sponsor{padding:28px 20px 36px;color:#a99587}
.site-dark .home-sponsor button{font-size:.8rem}
.site-dark .notice{background:#291a11;color:#f2d5ba;border-color:#835338}
.site-dark .notice.error{background:#371411;color:#ffd4c7;border-color:#9d3527}
.site-dark .empty-state{background:#110c09;border:1px solid #3f3029;border-radius:3px;color:#bcb2a9;padding:36px 20px}
@media(max-width:750px){
    .site-dark .site-header{padding:16px 20px}
    .site-dark .site-header nav{gap:10px 18px;font-size:.79rem}
    .site-dark .site-header nav [aria-current]::after{bottom:-4px}
    .site-dark :is(.preview-switch,.site-content,.home-footer){width:calc(100% - 32px)}
    .site-dark .preview-switch{margin-top:18px;font-size:.68rem}
    .site-dark .site-content{gap:32px;margin-bottom:32px}
    .site-dark :is(.home-villages h1,.home-announcement h2,.home-create h2){font-size:1.25rem}
    .site-dark .home-basic-fields{grid-template-columns:1fr;gap:18px}
    .site-dark .home-create{padding:22px 18px}
    .site-dark .home-announcement{padding:24px 0}
    .site-dark .home-room-head{flex-direction:column;align-items:flex-start;padding:16px 16px 8px;gap:9px}
    .site-dark .home-room-title{flex-basis:auto;font-size:1rem}
    .site-dark .home-room .home-room-description{padding:0 16px 13px}
    .site-dark .home-room-foot{padding:10px 16px;gap:9px}
    .site-dark .footer-credits{position:static;max-width:none;border:0;border-top:1px solid #59453b;border-radius:0;padding:16px}
}
/* Production frame: full user-supplied 4:1 images, without filters or overlays. */
body.higu-site.site-dark{--text:#e7ddd5;--text-muted:#bcb2a9;--shadow:none;--shadow-hover:none;background:#040200;color:#e7ddd5}
.site-dark .site-header,.site-dark .site-header nav{justify-content:center}
.site-dark .site-content{margin-top:24px;gap:38px}
.site-dark :is(.home-banner,.home-footer){border:0;border-radius:0;box-shadow:none}
.site-dark :is(.home-banner,.home-footer-art)::after{display:none}
.site-dark :is(.home-banner img,.footer-art){aspect-ratio:4/1;object-fit:contain;filter:none}
.site-dark .home-footer{margin-top:10px}
.site-dark .footer-credits{left:28px;bottom:26px;max-width:64%;padding:12px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#bcb2a9;text-shadow:0 1px 4px #000;font-size:.73rem}
.site-dark .footer-credits p{margin:7px 0}
.site-dark .glass-card{backdrop-filter:none;transition:none;transform:none}
.site-dark .glass-card::before,.site-dark .glass-card::after{display:none}
.site-dark .glass-card:hover{transform:none;box-shadow:none}
.site-dark :is(h1,h2,h3,h4,legend){color:#f4eee8}
.site-dark :is(.glass-card p,.muted,small){color:#bcb2a9}
.site-dark .glass-card a{color:#dfc2b1}
.site-dark .glass-card a:hover{color:#fff}
.site-dark :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#080503!important;border-color:#544035!important;color:#f4eee8;-webkit-text-fill-color:currentColor;box-shadow:none}
.site-dark :is(input,textarea,select):focus{border-color:#b16950!important;box-shadow:0 0 0 2px #b1695033}
.site-dark :is(input,textarea):-webkit-autofill{-webkit-text-fill-color:#f4eee8;box-shadow:0 0 0 1000px #17100b inset}
.site-dark input[type=checkbox],.site-dark input[type=radio]{padding:0;accent-color:#b71919}
.site-dark input[type=file]::file-selector-button{background:#2b1a16;color:#f4eee8;border:1px solid #735044;border-radius:4px;padding:6px 10px;margin-right:12px}
.site-dark :is(button,.button):disabled{opacity:.55}
.site-dark :is(button,.button){box-shadow:none;text-shadow:none}
.site-dark :is(button,.button):hover{box-shadow:none;transform:none}
.site-dark .home-create .legacy-options :is(th,td){background:transparent;color:#d2c3b7;border-color:#443127}
.site-dark .home-create .legacy-options{background:#130d09;border-color:#443127;border-radius:4px;box-shadow:none}
.site-dark .home-create .legacy-options tr:hover{background:#211610}
.site-dark :is(.rule-page>strong,.old-log-meta strong,.icon-count strong){color:#f4eee8}
.site-dark .sub-actions a{background:#211610;border-color:#624332;color:#dfc2b1;border-radius:4px;box-shadow:none;backdrop-filter:none}
.site-dark .sub-actions a:hover{background:#3a2017;color:#fff;transform:none}
.site-dark .trip-page legend{background:#2a1b12;border-color:#66442f;color:#e2c0a0;border-radius:4px;box-shadow:none}
.site-dark .icon-upload-preview-panel{background:#130d09;border-color:#443127;border-radius:4px;box-shadow:none}
.site-dark .version-entry.is-latest .version-item-number{background:#48251b;color:#ffd3b3}
.site-dark :is(.script-info-page,.rule-page,.version-page,.stats-page,.icon-page,.trip-page,.gaol-list-page){padding:26px clamp(16px,3vw,32px) 30px;border:1px solid #3f3029;border-top:2px solid #7b2119;border-radius:4px;background:#110c09;min-width:0}
.site-dark :is(.info-card,.feature-list article,.option-columns ul,.faq-section details,.version-entry-body,.stats-summary-card,.stats-table-wrap,.stats-empty,.icon-card,.icon-toolbar,.icon-upload-panel,.icon-upload-preview-card,.trip-profile,.trip-profile-stats>div,.trip-summary-card,.trip-edit-form,.trip-search){background:#1b130f;border-color:#443127;box-shadow:none;border-radius:4px}
.site-dark :is(.script-info-head h1,.info-section h2,.info-card strong,.feature-list h3,.version-page-head h1,.version-title-stack h2,.stats-head h1,.stats-room-head h2,.stats-summary-card strong,.icon-name,.icon-upload-topline h1,.icon-upload-preview-name,.icon-upload-result-info strong,.trip-summary-heading h2,.trip-profile-stats dd,.trip-metrics dd){color:#f4eee8}
.site-dark :is(.info-card span,.feature-list p,.option-columns ul,.faq-section details p,.version-item-text,.version-entry-meta,.stats-room-head span,.stats-summary-card em,.stats-query-count,.icon-id,.icon-meta,.icon-count,.icon-upload-field>span,.icon-upload-result-info span,.trip-eyebrow,.trip-section-heading p,.trip-profile-stats dt,.trip-profile-stats small,.trip-metrics dt,.trip-metrics small){color:#bcb2a9}
.site-dark :is(.server-clock,.setting-pills span,.legacy-note,.stats-note,.stats-total,.version-count,.version-range,.version-period span,.version-date,.version-raw-date,.version-item-number,.icon-upload-specs span,.trip-score,.trip-form-note,.old-log-kicker,.old-log-meta,.gaol-count-chip){background:#2a1b12;color:#e2c0a0;border-color:#66442f;box-shadow:none;border-radius:4px}
.site-dark :is(.version-latest-badge,.version-entry.is-latest .version-marker){background:#940000;color:#fff;box-shadow:none}
.site-dark .version-entry.is-latest .version-entry-body{background:#251410;border-color:#8a3d2d}
.site-dark .version-marker{background:#806052;border-color:#2a1b12;box-shadow:none}
.site-dark .version-entry::before{background:#443127}
.site-dark .version-period::before{background:#9b6a52;box-shadow:0 0 0 5px #44312766}
.site-dark :is(.info-section,.stats-room,.stats-query-count,.trip-metrics>div){border-color:#443127}
/* Tables keep their existing column widths, paging and mobile scroll containers. */
.site-dark :is(.trip-table,.old-log-table,.stats-table,.rule-page table){background:#130d09;border-color:#443127;box-shadow:none;color:#e7ddd5}
.site-dark :is(.trip-table,.old-log-table,.stats-table,.rule-page table) :is(th,td){border-color:#443127;color:#d2c3b7}
.site-dark :is(.trip-table,.old-log-table,.stats-table,.rule-page table) th{background:#2a1b12;color:#e9d8c6}
.site-dark :is(.trip-table,.old-log-table,.stats-table,.rule-page table) tbody tr:nth-child(even){background:#1b130f}
.site-dark :is(.trip-table,.old-log-table,.stats-table,.rule-page table) tbody tr:hover{background:#2b1a16}
.site-dark .trip-table tbody tr.trip-sudden{background:#351611}
/* Give legacy role colors a light surface without recoloring the game palette. */
.site-dark .trip-history-table .trip-role-label{display:inline-block;min-width:4em;padding:2px 7px;border:1px solid #d2c5b8;border-radius:4px;background:#f4eee8;font-weight:700;line-height:1.5;text-align:center;white-space:nowrap;text-shadow:none}
.site-dark :is(.log-no,.log-time,.log-count,.old-log-titlebox p,.old-log-meta,.log-text-muted){color:#bcb2a9}
.site-dark :is(.trip-back a,.trip-pager a,.trip-pager strong,.trip-capacity a,.trip-profile-actions a,.old-log-back,.old-log-clear,.old-log-pager a,.old-log-pager span,.icon-upload-link){background:#211610;border:1px solid #624332;color:#dfc2b1;border-radius:4px;box-shadow:none}
.site-dark :is(.trip-pager [aria-current],.trip-capacity [aria-current],.trip-profile-actions a:first-child,.trip-form-actions button,.trip-search button,.old-log-pager .current){background:#940000;border-color:#b71919;color:#fff}
.site-dark :is(.trip-back a,.trip-pager a,.trip-capacity a,.old-log-back,.old-log-pager a):hover{background:#3a2017;border-color:#a94736;color:#fff}
.site-dark :is(.old-log-search,.old-log-empty){background:#1b130f;border-color:#443127;color:#bcb2a9}
.site-dark .gaol-win-human{color:#a2dfb4;background:#153323}
.site-dark .gaol-win-wolf{color:#ffb6ae;background:#421a18}
.site-dark .gaol-win-fox{color:#d7b2ff;background:#301e43}
.site-dark .gaol-win-lover{color:#ffb9dc;background:#421b32}
.site-dark .gaol-win-draw{color:#cfbfb5;background:#29211d}
.site-dark .gaol-win-custo{color:#accfff;background:#192d45}
/* Preserve avatar colors, the swatch palette and the actual game-panel examples. */
.site-dark #iconSearchClear{background:#211610!important;color:#dfc2b1;border-color:#624332!important}
.site-dark #iconSearch{background:#080503!important;border-color:#544035!important;color:#f4eee8}
.site-dark #iconSearch:focus{outline:2px solid #dc8065;outline-offset:2px}
.site-dark .icon-color-swatch{padding:0;border:1px solid #796352;border-radius:3px}
.site-dark .icon-color-swatch[aria-pressed=true]{outline-color:#f0c3a5}
.site-dark :is(.icon-upload-alert-success,.icon-upload-result){background:#152c20;border-color:#426e51;color:#bce8cb}
.site-dark :is(.icon-upload-result-pending,.icon-upload-confirm-note){background:#302010;color:#efd0a3!important;border-color:#77552e}
.site-dark :is(.icon-upload-alert-error,.icon-upload-disabled,#tripFormStatus:not(:empty)){background:#371411;border-color:#9d3527;color:#ffd4c7}
.site-dark .rule-page td[bgcolor]{background:#20311d;color:#d8e9cb}
.site-dark .rule-page td[style*="#3300CC"],.site-dark .rule-page td[style*="#000080"]{color:#b7baff!important}
.site-dark .rule-page td[style*="#cc0000"]{color:#ff9992!important}
.site-dark .rule-page td[style*="purple"]{color:#d8a7fa!important}
.site-dark .rule-ability-sample{background:#1b130f;border-color:#443127;box-shadow:none}
.site-dark .rule-ability-sample-head strong{color:#f4eee8}
.site-dark .rule-ability-sample-head span{background:#2a1b12;color:#e2c0a0;border-color:#66442f}
.site-dark .rule-ability-sample-note{color:#bcb2a9}
.site-dark .version-notes{color:#bcb2a9}
.site-dark :is(.trip-table,.old-log-table) thead{background:#2a1b12}
.site-dark .old-log-table-wrap{background:#130d09;border-color:#443127;border-radius:4px;box-shadow:none}
.site-dark .old-log-row{background:#130d09}
.site-dark .old-log-meta{background:transparent}
.site-dark .old-log-meta span{background:#2a1b12;border-color:#66442f;border-radius:4px}
.site-dark :is(.log-room-link,.old-log-back,.old-log-clear,.old-log-pager a){color:#dfc2b1!important}
.site-dark :is(.log-room-link,.old-log-back,.old-log-clear,.old-log-pager a):hover{color:#fff!important}
.site-dark .old-log-pager strong{background:#940000;border-color:#b71919;border-radius:4px;box-shadow:none}
.site-dark .rule-page>strong:first-of-type,.site-dark .rule-page p{background:#1b130f;border-color:#443127;border-radius:4px;box-shadow:none;color:#d2c3b7}
.site-dark .rule-page>font[color=red]{background:#371411;border-color:#9d3527;color:#ffd4c7!important;border-radius:4px;box-shadow:none}
.site-dark .rule-page>table[border="0"][style*="margin:0"] strong{background:#20311d;border-color:#405a37;color:#d8e9cb;border-radius:4px;box-shadow:none}
.site-dark .rule-page>table:is(.table-left,[align=left]){background:#130d09;border-color:#443127;border-radius:4px;box-shadow:none}
.site-dark .rule-page>table:is(.table-left,[align=left]) thead{background:#2a1b12}
.site-dark .rule-page>table:is(.table-left,[align=left]) tbody tr:hover{background:#2b1a16}
@media(max-width:750px){
 .site-dark .site-content{gap:28px}
 .site-dark :is(.site-content,.home-footer){width:calc(100% - 32px)}
 .site-dark .footer-credits{position:static;max-width:none;padding:8px 2px 16px;font-size:.7rem;border:0}
 .site-dark :is(.script-info-page,.rule-page,.version-page,.stats-page,.icon-page,.trip-page,.gaol-list-page){padding:18px 12px 22px}
}
@media(prefers-reduced-motion:reduce){.site-dark *{transition:none!important}}
