.th-rulebook{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;background:var(--ui-surface-page);color:var(--ui-text);font-family:var(--ui-font-ui);line-height:1.6}.th-rulebook[hidden]{display:none}body.th-rulebook-open{overflow:hidden}.th-rulebook__bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 20px;border-bottom:1px solid var(--ui-edge-brand);background:var(--ui-surface-page-deep)}.th-rb-btn{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;border-radius:8px;border:1px solid var(--ui-border);background:var(--ui-surface-panel-sunken);color:var(--ui-text);font:inherit;font-size:13px;font-weight:700;cursor:pointer}.th-rb-btn:hover{border-color:var(--ui-action)}.th-rb-btn .material-symbols-outlined{font-size:18px}.th-rulebook__heading{display:flex;flex-direction:column;min-width:0;line-height:1.25}.th-rulebook__eyebrow{color:var(--ui-action);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.th-rulebook__name{overflow:hidden;color:var(--ui-text);font-size:15px;text-overflow:ellipsis;white-space:nowrap}.th-rulebook__spacer{flex:1}.th-rulebook__toc-btn{display:none}.th-rulebook__search{position:relative;display:flex;align-items:center;width:320px}.th-rulebook__search-icon{position:absolute;left:11px;font-size:18px;color:#ffffff73;pointer-events:none}.th-rulebook__input{width:100%;height:38px;padding:0 70px 0 36px;border-radius:8px;border:1px solid var(--ui-border);background:var(--ui-surface-panel-sunken);color:var(--ui-text);font:inherit;font-size:14px;outline:none}.th-rulebook__input:focus,.th-rulebook__input.is-searching{border-color:var(--ui-action)}.th-rulebook__input::-webkit-search-cancel-button{display:none}.th-rulebook__hits{position:absolute;right:34px;color:var(--ui-text-muted-solid);font-size:12px;font-weight:800}.th-rulebook__clear{position:absolute;right:6px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--ui-text-muted-solid);cursor:pointer}.th-rulebook__clear .material-symbols-outlined{font-size:17px}.th-rulebook__progress{height:3px;background:var(--ui-surface-panel)}.th-rulebook__progress-fill{display:block;width:0;height:3px;background:var(--ui-action);transition:width .15s}.th-rulebook__grid{flex:1;min-height:0;display:grid;grid-template-columns:300px minmax(0,1fr)}.th-rulebook__toc{overflow:auto;padding:18px 12px 28px;border-right:1px solid var(--ui-border);background:var(--ui-surface-panel-sunken)}.th-rulebook__toc-head{display:flex;align-items:center;justify-content:space-between;padding:0 8px 10px;color:var(--ui-text-muted-solid);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.th-toc-chapter[hidden],.th-toc-section[hidden]{display:none}.th-toc-chapter__link{display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;color:#ffffffbf;font-size:14px;font-weight:700;text-decoration:none}.th-toc-chapter__link:hover{color:var(--ui-text)}.th-toc-chapter.is-active .th-toc-chapter__link{background:var(--ui-tint-brand);color:var(--ui-text)}.th-toc-chapter__num{width:22px;flex:0 0 22px;color:var(--ui-text-muted-solid);font-size:13px;font-weight:800}.th-toc-chapter.is-active .th-toc-chapter__num{color:var(--ui-action)}.th-toc-chapter__title{flex:1;min-width:0}.th-toc-sections{display:none;flex-direction:column;gap:1px;margin:2px 0 8px 18px;padding-left:12px;border-left:1px solid var(--ui-border)}.th-toc-chapter.is-open .th-toc-sections{display:flex}.th-toc-section{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;color:var(--ui-text-muted-solid);font-size:13px;font-weight:500;text-decoration:none}.th-toc-section:hover{color:var(--ui-text)}.th-toc-section.is-active{background:var(--ui-tint-brand);color:var(--ui-text);font-weight:700}.th-toc-section__num{flex:0 0 28px;color:var(--ui-text-muted-solid)}.th-rulebook__scroll{position:relative;overflow:auto}.th-rulebook__doc{max-width:780px;margin:0 auto;padding:36px 32px 80px}.th-rulebook__intro{margin-bottom:8px;padding-bottom:24px;border-bottom:1px solid var(--ui-border)}.th-rulebook__title{margin:4px 0 10px;color:var(--ui-text);font-size:37px;font-weight:700;line-height:1.15}.th-rulebook__facts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--ui-text-muted-solid);font-size:13px}.th-rulebook__content{color:#ffffffc7;font-size:15px;line-height:1.7}.th-rulebook__content p{margin:0 0 10px}.th-rulebook__content a{color:var(--ui-action)}.th-rulebook__content ul,.th-rulebook__content ol{margin:0 0 10px;padding-left:22px}.th-rulebook__content img{max-width:100%;height:auto}.th-rule-chapter{padding-top:28px}.th-rule-chapter[hidden],.th-rule-sec[hidden],.th-rule-intro[hidden]{display:none}.th-rule-sec{position:relative;padding:20px 0 4px;scroll-margin-top:16px}.th-rule-sec--lead{padding-top:0}.th-rule-heading{display:flex;align-items:baseline;gap:10px;margin:0 0 8px;padding-right:80px;color:var(--ui-text);font-size:16px;font-weight:700;line-height:1.35}.th-rule-sec--lead>.th-rule-heading{padding-bottom:10px;border-bottom:1px solid var(--ui-border);font-size:21px}.th-rule-num{color:var(--ui-text-muted-solid);font-weight:800}.th-rule-sec--lead>.th-rule-heading .th-rule-num{color:var(--ui-action)}.th-rule-copy{position:absolute;top:20px;right:0;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:6px;border:1px solid var(--ui-border);background:transparent;color:var(--ui-text-muted-solid);font:inherit;font-size:12px;font-weight:700;cursor:pointer}.th-rule-sec--lead>.th-rule-copy{top:2px}.th-rule-copy:hover{border-color:var(--ui-action);color:var(--ui-text)}.th-rule-copy .material-symbols-outlined{font-size:15px}.th-rulebook mark.th-rule-hit{border-radius:3px;background:var(--ui-edge-brand);color:var(--ui-text)}.th-rulebook__nohits{margin-top:24px;border:1px dashed var(--ui-border);border-radius:12px}.th-rulebook__foot{display:flex;justify-content:space-between;gap:12px;margin-top:36px;padding-top:18px;border-top:1px solid var(--ui-border);color:var(--ui-text-muted-solid);font-size:13px}.th-rulebook__top{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:var(--ui-action);font:inherit;font-size:13px;font-weight:700;text-transform:uppercase;white-space:nowrap;cursor:pointer}.th-rulebook__top .material-symbols-outlined{font-size:16px}@media(max-width:720px){.th-rulebook__bar{padding:12px 14px}.th-rulebook__toc-btn{display:inline-flex}.th-rulebook__search{order:5;width:100%}.th-rulebook__grid{grid-template-columns:minmax(0,1fr)}.th-rulebook__toc{display:none;border-right:0}.th-rulebook.is-toc-open .th-rulebook__toc{display:block}.th-rulebook.is-toc-open .th-rulebook__scroll{display:none}.th-rulebook__doc{padding:24px 16px 64px}.th-rule-heading{padding-right:0}.th-rule-copy{position:static;margin-bottom:6px}.th-rulebook__foot{flex-direction:column}}.th-rulebook__clear[hidden],.th-rulebook__hits[hidden]{display:none}.th-rulebook__content .th-rule-heading{margin:0 0 8px;padding-top:0;border:0;background:none}.th-rulebook__content .th-rule-sec--lead>.th-rule-heading{padding-bottom:10px;border-bottom:1px solid var(--ui-border)}.th-rule-copy{top:18px}
