.rules-invitation{display:flex;align-items:center;gap:18px;padding:24px;border:1px solid #ae8956;border-radius:14px;background:linear-gradient(115deg,#352b20,#211d19 65%);color:#f1dcba;text-decoration:none;margin:22px 0;box-shadow:inset 0 0 0 4px #a1844f16,0 12px 32px #0002}.rules-invitation>span:nth-child(2){display:grid;gap:5px;flex:1}.rules-invitation small{letter-spacing:.14em;font-size:10px;color:#bba786}.rules-invitation strong{font-family:Georgia,serif;font-size:clamp(26px,5vw,36px);font-weight:500}.rules-invitation span span{font-size:13px;line-height:1.6}.rules-invitation>b{font-size:24px}.rules-wax{display:grid;place-items:center;border:1px solid #bea16a;border-radius:50%;width:54px;height:54px;font-size:27px;color:#e5c58d;flex-shrink:0}
.rules-phase-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.rules-phase{--phase:#b49a68;background:linear-gradient(150deg,color-mix(in srgb,var(--phase) 14%,#181a1e),#15171b);border:1px solid color-mix(in srgb,var(--phase) 45%,#202329);border-radius:18px;overflow:hidden;display:grid;grid-template-columns:35% 1fr;min-width:0}.rules-phase[data-faction=light]{--phase:#d3b363}.rules-phase[data-faction=dark]{--phase:#ae515c}.rules-phase[data-faction=peace]{--phase:#70ae8b}.rules-phase[data-faction=maniac]{--phase:#8790a4}.rules-phase-art{position:relative;overflow:hidden;min-height:260px;background:#121317}.rules-phase-art img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:center 18%;opacity:.9}.rules-phase-art:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#101216)}.rules-phase-art>span{position:absolute;bottom:15px;left:12px;right:8px;z-index:1;font-size:12px;color:#eee}.rules-phase-copy{padding:22px 18px}.rules-phase .eyebrow{color:var(--phase)}.rules-phase h2{font-size:21px;line-height:1.25;margin:9px 0 12px}.rules-phase p,.rules-note p,.rules-opening p{font-size:14px;line-height:1.75;color:#c9c5bd}.compact-game-rules ol{padding:0;list-style:none;display:flex;gap:14px;margin:16px 0}.compact-game-rules li{display:flex;align-items:center;gap:9px;flex:1;font-size:13px;line-height:1.5}.compact-game-rules li b{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border:1px solid #a58a56;border-radius:50%;color:#d8bd87}
.route-back-bar{display:flex;align-items:center;margin:0 0 12px}.route-back{display:inline-flex;gap:9px;align-items:center;min-height:44px;min-width:104px;padding:4px 15px;border:1px solid #a992664f;background:#25231f;border-radius:12px;color:#f1dfbd;font:inherit;font-size:14px;cursor:pointer}.route-back>span{font-size:29px;line-height:1}.route-back-bar+.page-head .back-link{display:none}.route-back:focus-visible{outline:3px solid #e2c28b}
.comment-notice-button{display:flex;align-items:center;gap:8px;min-height:46px;border:1px solid #9d86574d;background:#28251e;border-radius:12px;padding:10px 16px;color:#e9d9b9;font:inherit;cursor:pointer;margin:14px 0}.comment-notice-button b,.comment-unread-badge,.help-unread-dot{font-size:11px;background:#ad554f;color:#fff;padding:2px 6px;border-radius:10px;min-width:17px;text-align:center}.bottom-nav a{position:relative}.comment-unread-badge,.help-unread-dot{position:absolute;top:3px;right:10px}.help-unread-dot{background:#527d67}
.companion-help{border-top:1px solid #789e7b35;padding:16px}.companion-help-heading{display:flex;gap:12px;align-items:center;margin-bottom:14px}.companion-help-heading>span{font-size:26px;color:#9fceaf}.companion-help-heading strong,.companion-help-heading small{display:block}.companion-help-heading strong{font-size:16px;color:#e9e3d7}.companion-help-heading small{font-size:12px;line-height:1.5;color:#b2b9ad;margin-top:4px}.companion-help-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.companion-help-buttons .button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;min-height:64px;font-size:13px}.companion-help-buttons small{font-size:11px;opacity:.8;font-weight:400}.companion-help .caption{font-size:11px;line-height:1.6;margin:12px 0 0}.companion-reset{font-size:12px;line-height:1.6;color:#bfcaad;margin:13px 0 0}.companion-reset small{display:block;font-size:11px;color:#8f998c}.companion-reset time{font-variant-numeric:tabular-nums;font-weight:600}.pet-public-image{position:relative}.companion-hearts{position:absolute;inset:0;pointer-events:none;z-index:4}.companion-hearts i{position:absolute;bottom:25%;left:calc(30% + var(--i)*10%);font-style:normal;color:#ed94ac;font-size:24px;animation:friend-heart 1.3s calc(var(--i)*.06s) both ease-out}@keyframes friend-heart{0%{opacity:0;transform:translateY(0) scale(.5)}20%{opacity:1}100%{opacity:0;transform:translateY(-100px) scale(1.1)}}
.companion-reward-grid{display:grid;gap:12px}.companion-reward{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;border:1px solid #69785e42;border-radius:14px;background:linear-gradient(120deg,#25312870,#20232260)}.companion-reward.is-ready{border-color:#bba368}.companion-reward-emblem{font-size:29px;color:#d1b474}.companion-reward h3{font-size:16px;line-height:1.4;margin:3px 0 5px}.companion-reward p{font-size:12px;color:#b5beb0;margin:0 0 8px;line-height:1.5}.companion-reward small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#9aaf96}.companion-reward b{font-size:12px;color:#d8c49a;line-height:1.6}.companion-progress{display:flex;align-items:center;gap:10px;margin-top:10px}.companion-progress progress{height:5px;min-width:0;flex:1}.companion-progress span{font-size:11px;color:#c5c9bd;white-space:nowrap}.companion-rewards>.caption{margin-bottom:18px}.companion-notice{padding:15px 0;display:flex;align-items:center;gap:12px;border-top:1px solid #789e7b25}.companion-notice>a{flex:1;font-size:13px;line-height:1.6;color:#d1d3c4;text-decoration:none}.companion-notice.is-unread>a:before{content:'●';color:#a8c98e;font-size:8px;margin-right:8px}.companion-notice .button{font-size:12px;min-height:44px;flex-shrink:0}.companion-notice>span{font-size:24px;color:#bc9b6d}
.app-tour{background:transparent;border:0;padding:20px;width:min(420px,calc(100vw - 24px));color:#f3e9d7}.app-tour::backdrop{background:#06090dd9;backdrop-filter:blur(3px)}.app-tour-card{padding:28px 24px;border:1px solid #b6a1737d;border-radius:24px;background:linear-gradient(155deg,#353126,#191c22);box-shadow:0 20px 80px #0008}.app-tour h2{font-size:30px;line-height:1.2;margin:16px 0}.app-tour p{font-size:15px;line-height:1.7;color:#c7c8bd}.tour-dots{display:flex;gap:8px;margin:24px 0}.tour-dots i{height:4px;flex:1;border-radius:4px;background:#8f88683f}.tour-dots i.active{background:#d5b56d}.tour-actions{display:flex;align-items:center;justify-content:space-between;gap:18px}.tour-actions button{min-height:46px}.tour-target{box-shadow:0 0 0 2px #d5b56d;z-index:2;border-radius:10px}
.avatar-camera-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:center;gap:4px!important;width:min(340px,calc(100% - 16px))!important;max-width:340px!important;padding:4px!important;box-sizing:border-box;container-type:inline-size;container-name:camera-tools;background:#141711d6;border:1px solid #a5967038;border-radius:13px}.avatar-camera-controls button{display:inline-flex!important;align-items:center;justify-content:center;align-self:center;gap:4px!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:6px!important;margin:0!important;box-sizing:border-box;border:1px solid #a596705e!important;border-radius:9px!important;color:#f1e6d0!important;background:#252622ed!important;line-height:1.2!important;font:500 10.5px/1.2 system-ui,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;box-shadow:0 2px 8px #0002;touch-action:manipulation}.avatar-camera-controls button svg{display:block!important;width:16px!important;height:16px!important;min-width:16px;max-width:16px;flex:0 0 16px!important}.avatar-camera-controls button span{min-width:0;white-space:nowrap}.avatar-camera-controls .camera-label-short{display:none}.avatar-camera-controls button[aria-pressed=true]{background:#5b5036!important;border-color:#e1c27b!important;color:#fff7df!important}.avatar-camera-controls button:focus-visible{outline:2px solid #e1c27b;outline-offset:2px}@container camera-tools (max-width:339px){.avatar-camera-controls .camera-label-full{display:none}.avatar-camera-controls .camera-label-short{display:block}}

.appearance-section{border:1px solid #9a94782e;background:#2426299c;border-radius:14px;margin-bottom:12px;padding:0 14px}.appearance-section>summary{font-size:15px;font-weight:600;padding:17px 0;cursor:pointer;min-height:50px;display:flex;align-items:center;gap:10px;color:#e7dac1}.appearance-section>summary:before{content:'+';color:#c2a678;font-size:20px}.appearance-section[open]>summary:before{content:'−'}.appearance-section .edit-grid{display:grid;grid-template-columns:1fr!important;gap:15px}.appearance-section fieldset{min-width:0;border:0;padding:0;margin:0 0 16px}.appearance-section legend{font-size:12px;font-weight:500;color:#bab9ae;margin-bottom:10px}.appearance-options{gap:7px!important;display:flex!important;flex-wrap:wrap!important}.appearance-options label>span{min-height:44px!important;min-width:48px;display:flex!important;align-items:center;justify-content:center;line-height:1.3;padding:11px 13px!important;border-radius:11px!important;font-size:13px!important;border:1px solid #8d8a7738}.appearance-options input:checked+span{background:#5d5136!important;border-color:#d5b77b!important;color:#fff3d7!important;box-shadow:inset 0 0 0 1px #d5b77b55}.appearance-options input:focus-visible+span{outline:2px solid #e2c181;outline-offset:2px}.appearance-panel #appearance-form{overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;scroll-padding:12px}.appearance-section .palette label{width:40px!important;height:44px!important;display:inline-grid!important;place-items:center}.wardrobe-filter-panel{border:1px solid #b9a37840;border-radius:14px;background:#29271f;margin:12px 0}.wardrobe-filter-panel>summary{padding:14px;min-height:48px;cursor:pointer;display:flex;align-items:center;gap:10px;font-size:14px;color:#e8d4b0}.wardrobe-filter-panel>summary b{font-size:11px;margin-left:auto;font-weight:400;color:#aead98}.wardrobe-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 14px 14px}.wardrobe-filters label{display:grid;gap:7px;font-size:12px;color:#c5c1b0}.wardrobe-filters select{min-height:46px;width:100%;min-width:0;border:1px solid #887f614a;border-radius:10px;background:#191d21;color:#eae3d4;font:inherit;padding:9px}.wardrobe-filters .filter-toggle{display:flex;align-items:center;gap:9px;min-height:44px}.wardrobe-filters input[type=checkbox]{width:20px;height:20px;accent-color:#c6a65f}.item-card{position:relative}.item-new{position:absolute;top:8px;right:8px;padding:4px 7px;border-radius:6px;color:#121a16;background:#b9d4ae;font-size:10px;font-weight:700}.wardrobe-filter-empty{padding:30px 16px;text-align:center;color:#c0bba9;font-size:14px;line-height:1.6}
@media(max-width:760px){.rules-phase-grid{grid-template-columns:1fr}.rules-phase-art{min-height:235px}.rules-phase h2{font-size:20px}.rules-phase-copy{padding:20px 15px}.rules-invitation{padding:19px 15px;gap:12px}.rules-invitation small{font-size:9px;letter-spacing:.08em}.rules-wax{width:40px;height:40px;font-size:23px}.compact-game-rules ol{flex-direction:column;gap:12px}.companion-reward{grid-template-columns:28px minmax(0,1fr);gap:10px;padding:14px}.companion-reward>.button{grid-column:2;justify-self:start;min-height:44px}.companion-notice{align-items:flex-start;flex-direction:column;gap:8px}.companion-notice .button{width:auto}.wardrobe-workspace[data-wardrobe-step=appearance] .wardrobe-layout{grid-template-columns:1fr!important;gap:14px!important}.wardrobe-workspace[data-wardrobe-step=appearance] .avatar-stage{height:clamp(220px,32svh,320px)!important;min-height:220px!important;max-height:340px!important;position:relative!important;top:auto!important}.wardrobe-workspace[data-wardrobe-step=appearance] .appearance-panel{min-height:320px!important;height:clamp(320px,48svh,550px)!important;max-height:none!important}.wardrobe-workspace[data-wardrobe-step=appearance] #appearance-form{height:100%!important;max-height:100%!important;min-height:300px!important;overflow-y:auto!important;padding:14px 12px 75px!important}.appearance-scroll-cue{bottom:10px!important;pointer-events:auto}.editor-save{gap:8px!important}.editor-save .button{min-height:46px;font-size:12px!important}.wardrobe-workspace[data-wardrobe-step=wardrobe] .wardrobe-editor{min-height:380px}.avatar-camera-hint{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.companion-hearts{display:none!important}.app-tour::backdrop{backdrop-filter:none}}
