@layer components{html[data-custom-background]{--custom-background-shade-color:color-mix(in srgb,var(--kit-background) var(--custom-background-shade),transparent);--custom-background-mask:linear-gradient(var(--custom-background-shade-color),var(--custom-background-shade-color))}html[data-custom-background] body:not(.mp-room-active):has(.book-masthead),html[data-custom-background][data-ui-home] body:not(.mp-room-active){background-image:var(--custom-background-mask),var(--custom-background-image);background-size:cover,var(--custom-background-fit);background-position:center;background-repeat:no-repeat;background-attachment:fixed}html[data-custom-background][data-ui-home] body:not(.mp-room-active) .sheet{background:transparent}html[data-background-mode=dots] body:not(.mp-room-active):has(.book-masthead),html[data-background-mode=dots][data-ui-home] body:not(.mp-room-active){background-image:var(--custom-background-mask),radial-gradient(circle,color-mix(in srgb,var(--kit-foreground) 18%,transparent) 1px,transparent 1.5px);background-size:28px 28px;background-repeat:repeat}html[data-background-mode=grid] body:not(.mp-room-active):has(.book-masthead),html[data-background-mode=grid][data-ui-home] body:not(.mp-room-active){background-image:var(--custom-background-mask),linear-gradient(color-mix(in srgb,var(--kit-foreground) 8%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--kit-foreground) 8%,transparent) 1px,transparent 1px);background-size:36px 36px;background-repeat:repeat}html[data-custom-background] body:not(.mp-room-active) :is(.lobby-list-surface,.profile-panel){background-color:color-mix(in srgb,var(--book-surface) var(--custom-panel-opacity),transparent)}html[data-custom-background] body:not(.mp-room-active) .book-masthead{background-color:color-mix(in srgb,var(--book-surface) var(--custom-navigation-opacity),transparent)}html[data-custom-background] body:not(.mp-room-active) .book-card{background-color:color-mix(in srgb,var(--book-surface) var(--custom-card-opacity),transparent)}html[data-custom-background] body:not(.mp-room-active) .book-directory .book-lobby-item{background-color:color-mix(in srgb,var(--book-surface) var(--custom-category-opacity),transparent)}html[data-custom-background] body:not(.mp-room-active) .book-directory .book-lobby-item[data-selected=true]{background-color:color-mix(in srgb,var(--kit-accent) var(--custom-category-opacity),transparent)}html[data-custom-background] body:not(.mp-room-active) .book-view-covers .book-card .book-identity{background:transparent}.custom-background-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}.ui-kit-dialog-overlay.custom-background-overlay{background:transparent;animation:none}@media(min-width:781px){.ui-kit-dialog.custom-background-dialog{--ui-window-placement:translateY(-50%);left:auto;right:24px;transform:var(--ui-window-placement)}}.custom-background-dialog p{color:var(--kit-muted-foreground);font-size:13px}.custom-background-dialog h3{font-size:14px;font-weight:600;margin:20px 0 0}.background-presets{min-width:0;padding:0;border:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;margin-top:10px}.background-preset{min-width:0;display:grid;gap:5px;padding:4px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--kit-muted-foreground);font:inherit;font-size:12px;text-align:left;cursor:pointer}.background-preset[aria-pressed=true]{border-color:var(--kit-foreground);color:var(--kit-foreground)}.background-preset:focus-visible{outline:2px solid var(--kit-ring);outline-offset:2px}.background-preset-preview{display:block;height:48px;border:1px solid var(--kit-border);border-radius:4px;background-color:var(--kit-background)}.background-preset[data-preset=image] .background-preset-preview{background-image:var(--custom-background-image);background-size:cover;background-position:center}.background-preset[data-preset=dots] .background-preset-preview{background-image:radial-gradient(circle,color-mix(in srgb,var(--kit-foreground) 25%,transparent) 1px,transparent 1.5px);background-size:14px 14px}.background-preset[data-preset=grid] .background-preset-preview{background-image:linear-gradient(color-mix(in srgb,var(--kit-foreground) 12%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--kit-foreground) 12%,transparent) 1px,transparent 1px);background-size:18px 18px}.custom-background-dialog .custom-theme-base{display:grid;gap:8px;margin-top:16px;font-size:13px;font-weight:600}.custom-theme-switch{position:relative;isolation:isolate;display:flex;gap:3px;padding:3px;border:1px solid var(--kit-border);border-radius:7px;background:var(--kit-muted)}.custom-theme-switch:before{content:"";position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 9px)/2);border-radius:6px;background:var(--kit-card);box-shadow:0 1px 3px #00000012;transition:translate .42s cubic-bezier(.22,.7,.2,1);pointer-events:none}.custom-theme-switch[data-theme=dark]:before{translate:calc(100% + 3px) 0}.custom-theme-switch .ui-kit-choice{position:relative;z-index:1;flex:1;min-height:36px}.custom-theme-switch .ui-kit-choice:is([data-state=on],:hover){background:transparent;box-shadow:none}@media(pointer:coarse){.custom-theme-switch .ui-kit-choice{min-height:44px}}@media(prefers-reduced-motion:reduce){.custom-theme-switch:before{transition:none}}.less-motion .custom-theme-switch:before{transition:none}.custom-background-actions{display:flex;gap:8px;flex-wrap:wrap}.custom-background-dialog label{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:16px;font-size:13px}.custom-background-dialog input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--kit-foreground)}.custom-background-dialog select{color:var(--kit-foreground);background:var(--kit-background);border:1px solid var(--kit-border);border-radius:4px;padding:4px 8px}}html[data-custom-background] body:not(.mp-room-active) .book-sidebar [data-book-category]{background-color:color-mix(in srgb,var(--book-surface) var(--custom-category-opacity),transparent)}html[data-custom-background] body:not(.mp-room-active) .book-sidebar [data-book-category]:is([data-state=on],:hover,:focus-visible){background-color:color-mix(in srgb,var(--kit-accent) var(--custom-category-opacity),transparent)}.book-directory .book-lobby-item[data-selected=true]{border-color:transparent}@layer foundation{html[data-custom-background] #player.room-workspace{background:var(--custom-background-mask),var(--custom-background-image),var(--kit-background)!important;background-size:cover,var(--custom-background-fit),auto!important;background-position:center!important;background-repeat:no-repeat!important;background-attachment:fixed!important}html[data-background-mode=dots] #player.room-workspace{background:var(--custom-background-mask),radial-gradient(circle,color-mix(in srgb,var(--kit-foreground) 18%,transparent) 1px,transparent 1.5px) 0 0/28px 28px repeat,var(--kit-background)!important}html[data-background-mode=grid] #player.room-workspace{background:var(--custom-background-mask),linear-gradient(color-mix(in srgb,var(--kit-foreground) 8%,transparent) 1px,transparent 1px) 0 0/36px 36px repeat,linear-gradient(90deg,color-mix(in srgb,var(--kit-foreground) 8%,transparent) 1px,transparent 1px) 0 0/36px 36px repeat,var(--kit-background)!important}html[data-custom-background] #player.room-workspace :is(.room-workspace-sidebar,.room-workspace-spectators){background-color:color-mix(in srgb,var(--kit-card) var(--custom-panel-opacity),transparent)}}@layer components{.informational-dialog{width:min(560px,calc(100vw - 32px));padding:0;overflow:hidden}.informational-window{font-family:var(--kit-font)}.informational-window>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.informational-window>header h1{margin:0;color:var(--kit-foreground);font:600 16px/1.4 var(--kit-font)}.apple-refresh-faq{padding:0 20px 4px;background:var(--kit-card);color:var(--kit-muted-foreground)}.apple-refresh-faq-item{padding:16px 0;border-bottom:1px solid var(--kit-border)}.apple-refresh-faq-item:last-child{border:0}.apple-refresh-path{padding:8px 10px;border-radius:6px;background:var(--kit-muted);color:var(--kit-foreground);overflow-wrap:anywhere}.donation-image-wrap{display:grid;place-items:center;gap:12px;padding:20px;background:var(--kit-card)}.donation-scan-hint{margin:0;color:var(--kit-muted-foreground);font:400 13px/1.5 var(--kit-font)}.donation-image-wrap img{display:block;width:min(100%,440px);height:auto;border-radius:8px}.informational-dialog--artwork{width:min(540px,calc(100vw - 28px))}.informational-dialog--scrollable{box-sizing:border-box;width:min(650px,calc(100vw - 32px));height:min(88dvh,720px);max-height:min(88dvh,720px)}.informational-window--scrollable{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;max-height:100%}.informational-window--scrollable>.ui-document{min-height:0;overflow:auto}.multiplayer-guide-content{min-height:0;padding:0 20px 20px;overflow:auto;scrollbar-gutter:stable;overflow-wrap:anywhere}.multiplayer-guide-loading{color:var(--kit-muted-foreground)}.multiplayer-guide-error{color:var(--kit-destructive)}.multiplayer-rule-tabs-shell{position:sticky;z-index:3;top:0;margin:0 -20px;padding:8px 20px 12px;background:var(--kit-card);border-bottom:1px solid var(--kit-border)}.multiplayer-rule-game-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;padding:3px;border-radius:8px;background:var(--kit-muted)}.multiplayer-rule-game-tab{min-width:0;min-height:36px;padding:7px 4px;border:0;border-radius:6px;background:transparent;color:var(--kit-muted-foreground);font:500 12px/1.5 var(--kit-font);cursor:pointer}.multiplayer-rule-game-tab:hover{background:var(--kit-accent);color:var(--kit-foreground)}.multiplayer-rule-game-tab.selected{background:var(--kit-secondary);color:var(--kit-foreground)}.multiplayer-rule-game-tab:focus-visible,.multiplayer-rule-disclosure-summary:focus-visible{outline:2px solid var(--kit-ring);outline-offset:-2px}.multiplayer-rule-panels{padding-top:8px}.multiplayer-rule-panel[hidden]{display:none!important}.multiplayer-rule-disclosure{margin:0;border-bottom:1px solid var(--kit-border)}.multiplayer-rule-disclosure-summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;color:var(--kit-foreground);list-style:none;cursor:pointer;user-select:none}.multiplayer-rule-disclosure-summary::-webkit-details-marker{display:none}.multiplayer-rule-disclosure-summary:before{content:"";width:6px;height:6px;margin:0 5px 0 3px;border:solid var(--kit-muted-foreground);border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);transition:transform var(--ui-feedback-duration) var(--ui-feedback-easing)}.multiplayer-rule-disclosure[open]>.multiplayer-rule-disclosure-summary:before{transform:rotate(45deg)}.multiplayer-rule-disclosure-title{font-size:13px;font-weight:500}.multiplayer-rule-disclosure-body{padding-bottom:12px}.multiplayer-rule-section+.multiplayer-rule-section{padding-top:4px}.multiplayer-rule-subheading{margin:14px 0 6px;color:var(--kit-foreground);font-size:13px;font-weight:600}@media(max-width:600px){.informational-dialog--scrollable{width:calc(100vw - 24px);height:min(92dvh,720px);max-height:min(92dvh,720px)}.multiplayer-rule-game-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.multiplayer-rule-game-tab{min-height:44px}}}.first-use-notice-dialog{--notice-top: calc(var(--site-header-height, 61px) + 12px);--notice-bottom: max(12px, var(--ui-safe-bottom));position:fixed;inset:var(--notice-top) max(12px,var(--ui-safe-right)) auto auto;width:min(400px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - var(--notice-top) - var(--notice-bottom));height:fit-content;margin:0;padding:0;border-radius:12px;overflow:hidden;text-align:start}.first-use-notice-dialog[open]{display:grid;grid-template-rows:minmax(0,1fr)}.first-use-notice-window{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0}.first-use-notice-window>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px 2px 18px}.first-use-notice-window h1{margin:0;color:var(--kit-foreground);font:600 16px / 1.4 var(--kit-font)}.first-use-notice-window h1:focus{outline:none}.first-use-notice-icon{display:grid;place-items:center;width:24px;height:24px;color:var(--kit-muted-foreground)}.first-use-notice-icon svg{width:18px;height:18px}.first-use-notice-text.ui-document{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 18px 4px;color:var(--kit-muted-foreground);font-size:14px;line-height:1.5}.first-use-notice-text .first-use-notice-item{padding-block:10px}.first-use-notice-text .first-use-notice-item+.first-use-notice-item{border-top:1px solid var(--kit-border)}.first-use-notice-text .first-use-notice-item>:is(h2,h3){margin:0 0 4px;color:var(--kit-foreground);font:600 14px / 1.45 var(--kit-font);text-wrap:wrap}.first-use-notice-text .first-use-notice-item>:is(h2,h3) a{display:inline-block;max-inline-size:100%;text-decoration-color:var(--color-fd-info);text-underline-offset:.2em}.first-use-notice-text .first-use-notice-item>p{margin-block:0}.first-use-notice-text .first-use-notice-item>p+p{margin-block-start:.5em}.first-use-notice-text .first-use-notice-item>[role=note]{margin-block:8px 0}.first-use-notice-error{color:var(--kit-destructive)}.first-use-notice-window>footer{display:flex;justify-content:flex-end;padding:8px 18px 14px}.first-use-notice-window>footer button{min-inline-size:88px}@media(max-width:780px){.first-use-notice-dialog{--notice-top: max(8px, var(--ui-safe-top));inset:auto 0 0;width:100%;max-height:min(76dvh,calc(100dvh - var(--notice-top)));border-width:1px 0 0;border-radius:16px 16px 0 0}.first-use-notice-window{padding-inline:var(--ui-safe-left) var(--ui-safe-right)}.first-use-notice-window>footer{padding-bottom:max(16px,var(--ui-safe-bottom))}}
