@import url('/tokens.css?v=95b99e3f4c53a8c6');

/* Shared navigation: geometry and menu surfaces follow account.css (main341),
   including its >=900px 372px override. It never changes saved preferences. */
#platform-shell,#platform-shell *{box-sizing:border-box}
.platform-header{position:relative;z-index:50;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:12px 4vw;border-bottom:1px solid var(--edge);background:var(--surface);color:var(--text);font-family:var(--sans)}
.platform-menu-trigger{display:inline-flex;align-items:center;gap:11px;min-height:44px;padding:4px 14px 4px 10px;border:0;border-radius:14px;background:none;box-shadow:none;color:var(--text-2);text-align:left;cursor:pointer}
.platform-brand{display:block;font:600 23px/1.2 "Brass Serif",var(--serif);letter-spacing:.22em;color:var(--gold-hi)}
.platform-brand small{display:block;margin-top:4px;font:400 12px/1.3 var(--sans);letter-spacing:.08em;color:var(--muted)}
.platform-icon{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.platform-header-actions>:is(button,a){display:inline-flex;align-items:center;min-height:40px;text-decoration:none;padding:6px 12px;border:0;border-radius:14px;background:var(--surface-2);color:var(--text-2);font:400 13px/1.3 var(--sans)}
.platform-menu-trigger:hover,.platform-menu-trigger[aria-expanded=true]{background:color-mix(in srgb,var(--text) 5%,transparent)}
.platform-menu-trigger:focus-visible,.platform-header-actions>button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
dialog.platform-drawer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:transparent;color:var(--text);font:400 16px/1.4 var(--sans)}
dialog.platform-drawer:not([open]){display:none}
/* no blur and no fade of its own: the scrim is the shade, and it fades with the slide (polish.css blurs every dialog's backdrop;
   surface-motion.css lifts a dialog opened straight) as on birmingham's sheet */
#platform-navigation::backdrop{background:transparent;backdrop-filter:none;animation:none}
dialog#platform-navigation[open]{animation:none}
.platform-drawer-scrim{position:absolute;inset:0;z-index:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:color-mix(in srgb,var(--ink) 46%,transparent);cursor:default}
html[data-table-theme=light] .platform-drawer-scrim{background:var(--ui-backdrop)}
.platform-drawer-panel{--m-bg:var(--surface);--m-soft:color-mix(in srgb,var(--surface-2) 62%,var(--surface));--m-thumb:var(--surface);--m-hover:color-mix(in srgb,var(--text) 5%,transparent);--m-press:color-mix(in srgb,var(--text) 9%,transparent);--m-here:color-mix(in srgb,var(--gold) 10%,var(--surface));--m-ink-3:var(--muted);--m-shade:var(--text);--m-lift:0 1px 2px color-mix(in srgb,var(--m-shade) 10%,transparent),0 1px 6px color-mix(in srgb,var(--m-shade) 6%,transparent);--m-frame:0 0 0 0 transparent;--m-ease:cubic-bezier(.22,.75,.25,1);position:relative;z-index:1;width:min(352px,90vw);height:100%;min-width:0;overflow:hidden;border:0;border-radius:0 22px 22px 0;background:var(--m-bg);box-shadow:12px 0 48px -12px color-mix(in srgb,var(--m-shade) 26%,transparent)}
html[data-table-theme=dark] .platform-drawer-panel{--m-soft:color-mix(in srgb,var(--surface-2) 90%,var(--surface));--m-thumb:var(--surface-4);--m-here:color-mix(in srgb,var(--gold) 14%,var(--surface));--m-shade:var(--ink);--m-lift:0 1px 2px color-mix(in srgb,var(--m-shade) 45%,transparent);box-shadow:12px 0 48px -12px color-mix(in srgb,var(--m-shade) 75%,transparent)}
html[data-table-theme=original] .platform-drawer-panel{--m-bg:var(--surface-2);--m-soft:var(--surface-3);--m-thumb:var(--surface-4);--m-here:color-mix(in srgb,var(--gold) 14%,var(--surface-2));--m-hover:color-mix(in srgb,var(--text) 7%,transparent);--m-shade:var(--ink);--m-lift:0 1px 2px color-mix(in srgb,var(--m-shade) 45%,transparent);--m-frame:0 0 0 0 transparent;box-shadow:12px 0 48px -12px color-mix(in srgb,var(--m-shade) 75%,transparent)}
.platform-menu-views{display:flex;width:200%;height:100%;transition:transform .36s var(--m-ease)}
.platform-drawer:not([data-view=main]) .platform-menu-views{transform:translateX(-50%)}
.platform-menu-view{flex:0 0 50%;display:flex;flex-direction:column;min-width:0;height:100%;padding:0 12px max(22px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain;visibility:hidden;transition:visibility 0s .36s}
/* the view leaving stays in sight until the slide is over, as in birmingham's sheet */
.platform-drawer[data-view=main] .platform-menu-main,.platform-drawer:not([data-view=main]) .platform-menu-sub{visibility:visible;transition-delay:0s}
.platform-menu-sub-content{display:flex;flex:1;flex-direction:column;min-height:100%}
.platform-menu-sub-content[hidden]{display:none}
.platform-menu-bar{position:sticky;top:0;z-index:2;display:flex;flex:none;align-items:center;height:calc(64px + env(safe-area-inset-top));margin:0 -12px;padding:env(safe-area-inset-top) 64px 0 24px;background:var(--m-bg)}
.platform-menu-bar::after{content:'';position:absolute;top:100%;left:0;right:0;height:14px;background:linear-gradient(var(--m-bg),transparent);pointer-events:none}
.platform-menu-bar .platform-brand{font-size:23px;letter-spacing:.26em}
.platform-menu-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin-left:-10px;padding:0 12px 0 6px;border:0;border-radius:12px;background:none;color:var(--text);font:600 22px/1 "Brass Serif",var(--serif);letter-spacing:.08em}
.platform-avatar{display:grid;place-items:center;flex:none;width:60px;height:60px;border-radius:50%;background:var(--m-soft);color:var(--gold-hi);font:600 24px/1 "Brass Serif",var(--serif)}
.platform-account-who{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}
.platform-account-who strong{overflow-wrap:anywhere;font:600 21px/1.25 "Brass Serif",var(--serif);color:var(--text)}
.platform-account-who small{font-size:13px;color:var(--text-2)}
.platform-menu-list{display:flex;flex-direction:column;gap:2px}
.platform-menu-row{position:relative;display:flex;align-items:center;gap:15px;width:100%;min-height:50px;margin:0;padding:0 12px;border:0;border-radius:13px;background:none;box-shadow:none;color:var(--text);font:400 16px/1.3 var(--sans);text-align:left;text-decoration:none;cursor:pointer}
.platform-menu-row>.platform-icon{color:var(--m-ink-3)}
.platform-menu-row>span{flex:1;min-width:0;overflow-wrap:anywhere}
.platform-menu-row[aria-current=page]{background:var(--m-here);box-shadow:var(--m-frame);color:var(--gold-hi);font-weight:600}
.platform-menu-row[aria-current=page]>.platform-icon{color:var(--gold-hi)}
.platform-menu-help .platform-menu-row,.platform-menu-foot .platform-menu-row{min-height:46px;font-size:15px;color:var(--text-2)}
/* the site's address under the QQ 群 (li 2026-11-16, option 2): birmingham's .menu-site (account.css) */
#platform-navigation .platform-menu-site{display:block;width:calc(100% - 24px);margin:10px 12px 4px;padding:15px 0 8px .32em;border:0;border-top:1px solid color-mix(in srgb,var(--gold) 28%,transparent);border-radius:0;background:none;box-shadow:none;text-align:center;font:600 12px/1 "Brass Serif",var(--serif);letter-spacing:.32em;text-transform:uppercase;color:var(--gold);cursor:pointer}
#platform-navigation .platform-menu-site:hover{color:var(--gold-hi)}
#platform-navigation .platform-menu-site:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.platform-menu-gap{flex:1 0 18px;min-height:18px}
.platform-menu-foot{margin-top:12px}
.platform-menu-label{display:block;margin:0;padding:26px 12px 8px;font-size:12px;letter-spacing:.14em;line-height:1;color:var(--m-ink-3)}
.platform-menu-row:hover,.platform-menu-back:hover{background:var(--m-hover)}
.platform-menu-row:active{background:var(--m-press)}
.platform-menu-row:focus-visible,.platform-menu-back:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.platform-menu-settings .table-appearance{margin:0;padding:0;border:0}
.platform-menu-settings .table-appearance>.menu-label{display:block;margin:0;padding:26px 12px 8px;font-size:12px;letter-spacing:.14em;color:var(--m-ink-3)}
.platform-menu-settings .platform-menu-bar+.table-appearance>.menu-label{padding-top:6px}
.platform-menu-settings .seg{display:flex;gap:2px;margin:0 12px;padding:3px;border-radius:13px;background:var(--m-soft);box-shadow:var(--m-frame)}
#platform-navigation .platform-menu-settings .seg button{display:inline-flex;flex:1 1 auto;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:0 6px;border:0;border-radius:10px;background:none;box-shadow:none;color:var(--text-2);font:500 14.5px/1.3 var(--sans);white-space:nowrap}
#platform-navigation .platform-menu-settings .seg button[aria-pressed=true]{background:var(--m-thumb);box-shadow:var(--m-lift),var(--m-frame);color:var(--gold-hi);font-weight:600}
#platform-navigation .platform-menu-settings .seg button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.platform-menu-settings .seg i{flex:none;width:12px;height:12px;border-radius:50%;background:var(--swatch-original);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 18%,transparent)}
.platform-menu-settings [data-theme-choice=light] i{background:var(--swatch-light)}
.platform-menu-settings [data-theme-choice=dark] i{background:var(--swatch-dark)}
.platform-menu-settings [data-theme-choice=auto] i{background:linear-gradient(135deg,var(--swatch-light) 50%,var(--swatch-dark) 50%)}
@media(min-width:900px){.platform-drawer-panel{width:372px}}
@media(max-width:600px){.platform-header{padding:8px 16px}.platform-header-actions>button{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:350px){.platform-menu-settings .seg i{display:none}}
@media(prefers-reduced-motion:reduce){:is(.platform-menu-views,.platform-menu-view){transition:none}}
html[data-motion=off] :is(.platform-menu-views,.platform-menu-view){transition:none}

/* Existing account/profile/friend surfaces remain available. */
.platform-dialog,.account-dialog{max-width:min(760px,94vw);max-height:90dvh;overflow:auto;padding:24px;background:var(--surface);color:var(--text);border:1px solid var(--edge-strong);border-radius:10px}.account-dialog{width:min(420px,94vw)}.platform-dialog::backdrop,.account-dialog::backdrop{background:#0009}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-head h2{font-size:20px}.platform-dialog a,.account-dialog a{color:var(--gold)}.account-dialog input[type=checkbox]{width:auto}.account-dialog .account-actions{display:flex;gap:12px;align-items:baseline}.account-dialog .link-button{padding:4px 8px;margin-left:6px}.account-dialog .account-error{color:var(--danger)}.platform-dialog h3{font-size:15px;margin-top:24px}.platform-dialog p{font-size:13px;line-height:1.8}.platform-dialog ul{list-style:none;padding:0}.platform-dialog li{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--edge)}.platform-dialog li>span{flex:1;overflow-wrap:anywhere}.platform-achievements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.platform-achievements article{display:flex;gap:12px;padding:14px;border:1px solid var(--edge);border-radius:6px}.platform-achievements img{object-fit:contain;flex-shrink:0}.platform-achievements p{margin:6px 0}.platform-achievements small{color:var(--muted)}.platform-achievements .locked img{filter:grayscale(1);opacity:.55}.platform-achievements .earned{border-color:var(--gold-lo)}.platform-rooms{display:flex;flex-wrap:wrap;gap:8px}.platform-records p{border-bottom:1px solid var(--edge);padding-bottom:10px}.platform-records small{color:var(--muted)}
@media(max-width:600px){.platform-dialog,.account-dialog{padding:18px}.platform-achievements{grid-template-columns:1fr}}

.platform-menu-row>span>.platform-icon{float:right;width:18px;height:18px;margin-left:8px}

.platform-dialog,.account-dialog{font-family:var(--sans);font-size:14px}


/* Existing shared musicControlsHtml / soundControlsHtml, scoped to this drawer. */
.platform-audio-settings{margin:18px 0 0;--m-switch-off:color-mix(in srgb,var(--text) 15%,var(--surface))}
html:is([data-table-theme=dark],[data-table-theme=original]) .platform-audio-settings{--m-switch-off:var(--surface-4)}
.platform-audio-settings .menu-row{display:flex;align-items:center;gap:15px;width:100%;min-height:50px;margin:0;padding:0 12px;border:0;border-radius:13px;background:none;color:var(--text);font:400 16px/1.3 var(--sans);text-align:left}
.platform-audio-settings .menu-row>span{flex:1;min-width:0}
.platform-audio-settings .menu-row:hover:not(:disabled){background:var(--m-hover)}
.platform-audio-settings .menu-row:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.platform-audio-settings .menu-row:disabled{cursor:default;opacity:.65}
.platform-audio-settings .menu-switch .sw{position:relative;flex:none;width:48px;height:29px;margin-left:auto;border-radius:15px;background:var(--m-switch-off);transition:background .22s}
.platform-audio-settings .menu-switch .sw::after{content:'';position:absolute;top:3px;left:3px;width:23px;height:23px;border-radius:50%;background:var(--switch-knob);box-shadow:0 1px 3px color-mix(in srgb,var(--m-shade) 20%,transparent);transition:transform .26s cubic-bezier(.3,1.25,.4,1)}
.platform-audio-settings .menu-switch[aria-checked=true] .sw{background:var(--gold)}
.platform-audio-settings .menu-switch[aria-checked=true] .sw::after{transform:translateX(19px)}
.platform-audio-settings .menu-switch:focus-visible .sw{box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 38%,transparent)}
.platform-audio-settings .menu-more{display:grid;grid-template-rows:1fr;transition:grid-template-rows .28s var(--m-ease),opacity .2s,visibility 0s}
.platform-audio-settings .menu-more>div{min-height:0;overflow:hidden}
.platform-audio-settings :is(.sound-controls:has(#sound-toggle[aria-checked=false]),.music-controls:has(#music-toggle[aria-checked=false])) .menu-more{grid-template-rows:0fr;opacity:0;visibility:hidden;pointer-events:none;transition:grid-template-rows .28s var(--m-ease),opacity .2s,visibility 0s .28s}
.platform-audio-settings :is(.sound-controls,.music-controls){margin:0;padding:0;border:0;--range-fill:var(--gold);--range-track:var(--m-switch-off);--range-knob:var(--switch-knob)}
.platform-audio-settings .menu-volume{display:flex;align-items:center;gap:12px;padding:0 12px 10px}
.platform-audio-settings .menu-volume label{display:flex;flex:none;margin:0;color:var(--m-ink-3)}
.platform-audio-settings .menu-volume label svg{width:20px;height:20px}
.platform-audio-settings .menu-volume input{flex:1;width:auto;min-width:0;height:28px;min-height:28px;margin:0;padding:0;background:transparent}
.platform-audio-settings .menu-volume input[type=range]{appearance:none;-webkit-appearance:none;border:0;cursor:pointer}
.platform-audio-settings .menu-volume input::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--range-fill) var(--fill,50%),var(--range-track) 0)}
.platform-audio-settings .menu-volume input::-moz-range-track{height:4px;border-radius:2px;background:var(--range-track)}
.platform-audio-settings .menu-volume input::-moz-range-progress{height:4px;border-radius:2px;background:var(--range-fill)}
.platform-audio-settings .menu-volume input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin-top:-9px;border:0;border-radius:50%;background:var(--range-knob);box-shadow:0 1px 4px color-mix(in srgb,var(--m-shade) 26%,transparent)}
.platform-audio-settings .menu-volume input::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:var(--range-knob);box-shadow:0 1px 4px color-mix(in srgb,var(--m-shade) 26%,transparent)}
.platform-audio-settings .menu-volume input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.platform-audio-settings .menu-volume output{flex:none;min-width:3.2ch;font-size:13px;text-align:right;color:var(--m-ink-3);font-variant-numeric:tabular-nums}
.platform-audio-settings .sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.platform-audio-settings .menu-retry{display:block;min-height:30px;margin:-2px 12px 10px 44px;padding:0 12px;border:0;border-radius:15px;background:var(--m-here);color:var(--gold-hi);font:600 13px/1.4 var(--sans)}
.platform-audio-settings .menu-retry[hidden],.platform-audio-settings #music-track:empty,.platform-audio-fields[hidden]{display:none}
.platform-audio-settings #music-track{display:block;max-width:none;margin:-2px 12px 10px 44px;font-size:13px;line-height:1.4;color:var(--m-ink-3)}
.platform-audio-status{margin:12px;font-size:13px;line-height:1.6;color:var(--muted)}
.platform-audio-status:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.platform-audio-settings :is(.menu-more,.sw),.platform-audio-settings .sw::after{transition:none}}
html[data-motion=off] .platform-audio-settings :is(.menu-more,.sw),html[data-motion=off] .platform-audio-settings .sw::after{transition:none}


/* ---- the sidebar (docs/PLATFORM-IA-2026-11-06.md section 2) ----
   table-appearance.css paints every button in 浅色 and 深色 as a filled control (html[data-table-theme]... :is(button:where(...)),
   0,3,2) and every dialog as a card (1,2,1: its :is() names #inspector): the drawer's own parts take the dialog's id to stay flat */
html[data-table-theme] dialog#platform-navigation.platform-drawer{border:0;background:transparent;box-shadow:none;color:var(--text)}
#platform-navigation .platform-drawer-scrim{border:0;box-shadow:none;background:color-mix(in srgb,var(--ink) 46%,transparent)}
html[data-table-theme=light] #platform-navigation .platform-drawer-scrim{background:var(--ui-backdrop)}
#platform-navigation :is(.platform-menu-row,.platform-menu-back,.platform-audio-settings .menu-row){border:0;background:none;box-shadow:none;color:var(--text)}
#platform-navigation :is(.platform-menu-help .platform-menu-row,.platform-menu-foot .platform-menu-row){color:var(--text-2)}
#platform-navigation .platform-menu-foot .platform-admin,#platform-navigation .platform-menu-foot .platform-admin>svg{color:var(--gold-hi)}
#platform-navigation .platform-menu-row[aria-current=page]{background:var(--m-here);box-shadow:var(--m-frame);color:var(--gold-hi)}
/* the game one is in, on one of its own pages: named in brass, the page itself carries the fill */
#platform-navigation .platform-menu-row[aria-current=true]{color:var(--gold-hi);font-weight:600}
#platform-navigation .platform-menu-row[aria-current=true]>:is(.platform-icon,.platform-game-mark){color:var(--gold-hi)}
#platform-navigation .platform-menu-row:active:not(:disabled){background:var(--m-press)}
@media(hover:hover){
  #platform-navigation :is(.platform-menu-row,.platform-menu-back,.platform-audio-settings .menu-row):hover:not(:disabled){background:var(--m-hover);color:var(--text)}
  #platform-navigation .platform-menu-row[aria-current=page]:hover{background:var(--m-here);color:var(--gold-hi)}
  #platform-navigation .platform-menu-row[aria-current=true]:hover{color:var(--gold-hi)}
  #platform-navigation .platform-menu-row:hover>.platform-icon{color:var(--text-2)}
  #platform-navigation .platform-account:hover{background:var(--m-hover)}
}
.platform-menu-row>.platform-chev{flex:none;width:18px;height:18px;margin-right:-2px;color:var(--m-ink-3);opacity:.8}
.platform-menu-row>.platform-menu-value{flex:none;margin-left:auto;font-size:15px;color:var(--text-2)}
.platform-motion>.platform-chev{width:16px;height:16px}
/* a game's row: its first letter in a ring, as birmingham's sheet draws it (account.css .menu-mark) */
.platform-menu-row>.platform-game-mark{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.4px currentColor;color:var(--m-ink-3);font:600 12px/1 "Brass Serif",var(--serif)}
.platform-menu-row[aria-current=page]>.platform-game-mark{color:var(--gold-hi)}
/* the tree (section 2), birmingham's sheet's (account.css .menu-tree): 游戏大厅 holding the game of this page (on the hall nothing),
   and it its pages. the rows keep their full width, each level moves its content 16px in, and a hairline in the quiet ink runs down from the
   icon of the row above to the middle of its last child, under the rows' fills; the pages are one step quieter */
.platform-menu-tree{margin-top:16px;--m-guide:color-mix(in srgb,var(--m-ink-3) 36%,transparent)}
.platform-tree{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
.platform-tree>li{position:relative;display:flex;flex-direction:column;gap:2px;margin:0;padding:0}
#platform-navigation .platform-tree .platform-tree>li>.platform-menu-row{padding-left:28px}
.platform-tree .platform-tree>li{--g-top:2px;--g-mid:25px}
.platform-tree .platform-tree>li:first-child{--g-top:13px}
.platform-tree .platform-tree>li::before{content:'';position:absolute;top:calc(0px - var(--g-top));bottom:0;left:22.5px;border-left:1px solid var(--m-guide);pointer-events:none}
.platform-tree .platform-tree>li:last-child::before{bottom:auto;height:calc(var(--g-top) + var(--g-mid))}
/* 游戏大厅's fold (li 11-06), as birmingham's (public/account.css): the chevron its own target at the row's right end, the games behind
   it tree rows, the guide following the rows shown */
.platform-fold-root{position:relative}
#platform-navigation .platform-fold-root>.platform-menu-row{padding-right:56px}
#platform-navigation .menu-fold{position:absolute;top:0;right:0;display:grid;place-items:center;width:50px;height:50px;margin:0;padding:0;border:0;border-radius:13px;background:none;box-shadow:none;color:var(--m-ink-3);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .14s,color .14s}
#platform-navigation .menu-fold-chev{width:18px;height:18px;opacity:.8;transform:rotate(90deg)}
#platform-navigation .menu-fold[aria-expanded=true] .menu-fold-chev{transform:rotate(-90deg)}
#platform-navigation .menu-fold:active{background:var(--m-press)}
#platform-navigation .menu-fold:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
@media(hover:hover){#platform-navigation .menu-fold:hover{background:var(--m-hover);color:var(--text-2)}}
.platform-tree[hidden],.platform-tree>li[hidden]{display:none}
.platform-tree .platform-tree>li:not([hidden]):not(li:not([hidden])~li){--g-top:13px}
.platform-tree .platform-tree>li:not(:has(~li:not([hidden])))::before{bottom:auto;height:calc(var(--g-top) + var(--g-mid))}
.platform-menu-group{display:flex;flex-direction:column}
/* the card is a way to 我的主页 as a whole (birmingham's .account-menu-me): avatar, name, a quiet › */
#platform-navigation .platform-account{display:flex;align-items:center;gap:16px;width:calc(100% - 8px);min-width:0;margin:6px 4px 4px;padding:8px;border:0;border-radius:16px;background:none;box-shadow:none;color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .14s}
#platform-navigation .platform-account:active{background:var(--m-press)}
#platform-navigation .platform-account:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.platform-account>.platform-chev{flex:none;width:18px;height:18px;color:var(--m-ink-3)}
.platform-avatar .platform-icon{width:26px;height:26px;color:var(--m-ink-3)}
.platform-account-who strong .name-tag{margin-left:6px;font:400 13px/1 var(--sans);letter-spacing:0;color:var(--m-ink-3);font-variant-numeric:tabular-nums}
button.platform-account .platform-account-who strong{font-size:19px;color:var(--gold-hi)}
/* the friend requests waiting, on the 我的主页 row (birmingham's lobby tab count) */
.platform-count{display:inline-grid;place-items:center;flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--gold-hi);color:var(--ui-on-accent);font:700 12.5px/1 var(--sans);font-style:normal;font-variant-numeric:tabular-nums}
.platform-count[hidden]{display:none}
/* the red dot on 好友's row while a friend's message waits unread (li 2026-11-23: 好友聊天) */
.platform-menu-row > .chat-dot{flex:none;width:8px;height:8px;margin-left:8px;border-radius:50%;background:var(--ui-error)}
.platform-menu-row > .chat-dot[hidden]{display:none}
.platform-menu-trigger[data-chat-unread]{position:relative}
.platform-menu-trigger[data-chat-unread]::before{content:'';position:absolute;top:6px;left:20px;width:8px;height:8px;border-radius:50%;background:var(--ui-error);box-shadow:0 0 0 2px var(--surface)}
.platform-menu-group .platform-audio-settings{margin:0}

@media(hover:hover){#platform-navigation .platform-menu-settings .seg button:hover:not([aria-pressed=true]){background:var(--m-hover);color:var(--text)}}

/* ---- birmingham's sheet, the rest of it (account.css; li 11-06: 「匹兹堡里的侧边栏缺了很多东西」) ----
   本局 after 我的主页 and the help rows in the quieter size, shown as the room page says they apply */
.platform-menu-group[hidden],.platform-menu-row[hidden]{display:none}
.platform-menu-minor .platform-menu-row{min-height:46px;font-size:15px}
#platform-navigation .platform-menu-minor .platform-menu-row{color:var(--text-2)}
/* 关闭房间 in the error ink, a little apart from the rows that only share, save or leave */
#platform-navigation .platform-menu-row.platform-menu-danger,#platform-navigation .platform-menu-row.platform-menu-danger>.platform-icon{color:var(--ui-error)}
#platform-navigation .platform-menu-row.platform-menu-danger{margin-top:12px}
@media(hover:hover){#platform-navigation .platform-menu-row.platform-menu-danger:hover:not(:disabled){background:color-mix(in srgb,var(--ui-error) 8%,transparent);color:var(--ui-error)}}
/* the drawer has no ×, on the hall (li 11-06: 「这个游戏大厅侧边栏右上角的x去掉」) or a pittsburgh page (li 11-07: 「这个侧边栏右上角的x没有显示的必要」):
   focus opens on the view itself, which shows no ring; the scrim, Escape and the menu button close it */
#platform-navigation .platform-menu-view:is(:focus,:focus-visible){outline:none}
/* the table's own settings in 游戏设置 (pittsburgh-table-accessibility.mjs, birmingham's tableControlsHtml and 手牌大小), on every page, the hall's
   too: spaced as the look above, the hand's place only at desktop widths and the phone's 产业板 only on a phone, 扑克 only where a pointer
   can fan the hand (as table-desktop.css, which the hall does not load), 地点牌计数 and 色弱辅助 as switch rows; 动画 is the one row under
   声音与动画 */
#platform-navigation .pitt-table-settings .table-appearance{margin:0}
#platform-navigation .pitt-table-settings .table-switches{display:flex;flex-direction:column;gap:2px;margin:14px 0 0;padding:0;border:0}
#platform-navigation .pitt-table-settings{--m-switch-off:color-mix(in srgb,var(--text) 15%,var(--surface))}
html:is([data-table-theme=dark],[data-table-theme=original]) #platform-navigation .pitt-table-settings{--m-switch-off:var(--surface-4)}
#platform-navigation .pitt-table-settings .menu-switch{position:relative;display:flex;align-items:center;gap:15px;width:100%;min-height:50px;margin:0;padding:0 12px;border-radius:13px;color:var(--text);font:400 16px/1.3 var(--sans);cursor:pointer}
#platform-navigation .pitt-table-settings .menu-switch>span{flex:1;min-width:0}
#platform-navigation .pitt-table-settings .menu-switch>input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
#platform-navigation .pitt-table-settings .menu-switch .sw{position:relative;flex:none;width:48px;height:29px;margin-left:auto;border-radius:15px;background:var(--m-switch-off);transition:background .22s}
#platform-navigation .pitt-table-settings .menu-switch .sw::after{content:'';position:absolute;top:3px;left:3px;width:23px;height:23px;border-radius:50%;background:var(--switch-knob);box-shadow:0 1px 3px color-mix(in srgb,var(--m-shade) 20%,transparent);transition:transform .26s cubic-bezier(.3,1.25,.4,1)}
#platform-navigation .pitt-table-settings .menu-switch:has(input:checked) .sw{background:var(--gold)}
#platform-navigation .pitt-table-settings .menu-switch:has(input:checked) .sw::after{transform:translateX(19px)}
#platform-navigation .pitt-table-settings .menu-switch:has(input:focus-visible) .sw{box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 38%,transparent)}
@media(hover:hover){#platform-navigation .pitt-table-settings .menu-switch:hover{background:var(--m-hover)}}
@media(prefers-reduced-motion:reduce){#platform-navigation .pitt-table-settings :is(.sw,.sw::after){transition:none}}
html[data-motion=off] #platform-navigation .pitt-table-settings :is(.sw,.sw::after){transition:none}
@media(max-width:1100px){#platform-navigation .table-hand-place{display:none}}
@media(max-width:1100px),(hover:none){#platform-navigation .platform-menu-settings .table-hand-size .seg button[data-hand-size=poker]{display:none}}
@media(min-width:1101px){#platform-navigation .table-phone-mat{display:none}}
/* the audio's state line stays for a screen reader while the switches show it (birmingham's sheet has none) */
#platform-navigation .platform-audio-fields:not([hidden])+.platform-audio-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* the fine links at the foot of 设置 */
.platform-menu-fine{display:flex;flex-wrap:wrap;gap:4px 18px;margin:auto 0 0;padding:36px 12px 0;font-size:13px}
.platform-menu-fine a{color:var(--m-ink-3);text-decoration:none}
@media(hover:hover){.platform-menu-fine a:hover{color:var(--gold-hi)}}
/* birmingham's toast (style.css, polish.css and table-appearance.css #toast) for the QQ 群's 已复制, inside the drawer */
.platform-toast{position:fixed;z-index:4;bottom:calc(25px + env(safe-area-inset-bottom,0px));left:50%;max-width:calc(100vw - 24px);padding:12px 22px;border:1px solid var(--edge);border-radius:999px;background:var(--surface);color:var(--text);box-shadow:var(--ui-shadow);font:500 15px/1.4 var(--sans);transform:translateX(-50%);opacity:0;pointer-events:none;transition:opacity .15s}
html[data-table-theme=original] .platform-toast{border-color:#b99a5c;background:linear-gradient(180deg,#f3e6c6,#e2d0a6);color:#26221b;box-shadow:0 10px 30px #000a}
.platform-toast.show{opacity:1}
/* the page behind the open drawer stays put on touch screens, like the birmingham menu (li 11-06) */
html:has(dialog.platform-drawer[open]),html:has(dialog.platform-drawer[open]) body{overscroll-behavior:none}
@media (pointer:coarse){html:has(dialog.platform-drawer[open]),html:has(dialog.platform-drawer[open]) body{overflow:hidden}}
