.em-room{--gold:#f5c778;--muted:#c6becd;color:#fff5df;background:radial-gradient(at 50% 0,#382540 0,#0000 60%),#100e17;max-width:900px;min-height:100dvh;margin:auto;padding:20px 16px 100px;font-family:inherit}.em-room button,.em-room a{touch-action:manipulation}.em-room button{font:inherit;cursor:pointer;color:inherit}:is(.em-room button:focus-visible,.em-room a:focus-visible){outline-offset:4px;outline:3px solid #fff}.em-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;display:flex}.em-header h1{margin:2px 0;font-size:28px}.em-header small{letter-spacing:.16em;color:var(--gold);font-size:12px}.em-header>a,.em-header>button{width:44px;height:44px;color:var(--gold);background:#241e2e;border:1px solid #746174;border-radius:50%;place-items:center;display:grid}.em-tabs{border-bottom:1px solid #584655;gap:6px;margin-bottom:24px;display:flex}.em-tabs button{color:#c9c1d0;background:0 0;border:0;border-bottom:3px solid #0000;flex:1;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:10px 4px;font-size:14px;display:flex}.em-tabs button.selected{color:var(--gold);border-color:var(--gold)}.em-panel,.em-options,.em-rules{background:#1c1724;border:1px solid #4b3b4a;border-radius:16px;margin-top:20px;padding:20px}.em-panel h2{margin:0 0 18px;font-size:20px}.em-note{color:var(--muted);font-size:14px;line-height:1.7}.em-note a{color:var(--gold);display:block}.em-start{text-align:center;padding:12px 8px 22px}.em-start-art{background:#090810;border:3px solid #b78b53;border-radius:60px 60px 8px 8px;width:140px;height:155px;margin:0 auto 15px;overflow:hidden;box-shadow:0 0 50px #e9b76522}.em-start-art img{object-fit:contain;width:100%;height:100%}.em-eyebrow{letter-spacing:.2em;color:var(--gold);font-size:12px}.em-start h2{margin:12px 0;font-size:30px;line-height:1.45}.em-start p{line-height:1.8}.em-primary{background:linear-gradient(120deg,#ffe5a8,#dca45b);border:1px solid #ffe5b1;border-radius:10px;width:100%;max-width:340px;margin:24px auto 0;padding:16px;display:block;box-shadow:0 5px #795433;color:#231524!important;font-weight:800!important}.em-primary:active{transform:translateY(4px);box-shadow:0 1px #795433}.em-primary:disabled{opacity:.55}.em-hud{justify-content:space-between;align-items:center;gap:10px;padding:0 4px 14px;display:flex}.em-hud small{letter-spacing:.1em;color:var(--muted);font-size:12px;display:block}.em-hud strong{font-variant-numeric:tabular-nums;font-size:32px;font-weight:800}.em-hud span{font-size:14px;font-weight:500}.em-time{text-align:center;color:var(--gold)}.em-hud>div:last-child{text-align:right}.em-timer{background:#39303f;border-radius:8px;height:5px;overflow:hidden}.em-timer i{background:var(--gold);height:100%;transition:width .1s linear;display:block}.em-urgent .em-time{color:#ff8b87}.em-urgent .em-timer i{background:#ff7474}.em-stage-message{text-align:center;min-height:42px;color:var(--gold);padding:12px 0;font-size:14px}.em-doors{grid-template-columns:repeat(var(--columns),minmax(0,1fr));perspective:1000px;gap:clamp(6px,1.8vw,13px);max-width:650px;margin:auto;display:grid}.em-door{aspect-ratio:4/5;isolation:isolate;perspective:600px;-webkit-tap-highlight-color:transparent;border-radius:30% 30% 5px 5px;min-width:0;position:relative;overflow:hidden;box-shadow:0 3px 10px #0008;background:#08060e!important;border:2px solid #a88553!important;padding:0!important}.em-door:disabled{cursor:default;opacity:1!important}.em-door-leaf{transform-origin:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;background:linear-gradient(110deg,#302735,#15101f 45%,#44304b);border:3px double #ad8754;border-radius:30% 30% 3px 3px;justify-content:center;align-items:center;transition:transform .34s,opacity .34s;display:flex;position:absolute;inset:0}.em-door-number{color:#cdb286;letter-spacing:.08em;font-size:clamp(12px,2vw,16px);position:absolute;top:12%}.em-door-mark{color:#e8c687;text-shadow:0 2px #513f29;font-family:Georgia,serif;font-size:clamp(24px,6vw,58px);font-weight:700}.em-door-knob{background:#f5d88e;border-radius:50%;width:7%;min-width:4px;height:7%;position:absolute;top:60%;right:9%;box-shadow:0 2px 3px #000}.em-reveal{background:radial-gradient(#46344e,#080711);flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.em-reveal img,.em-reveal svg{object-fit:contain;width:96%;height:82%}.em-reveal small{color:var(--gold);white-space:nowrap;max-width:100%;font-size:clamp(9px,1.8vw,13px);line-height:1.1;overflow:hidden}.em-door.is-open .em-door-leaf{opacity:0;pointer-events:none;transform:rotateY(-105deg)}.em-door.is-matched{box-shadow:0 0 13px #f4cd6240;border-color:#efd08b!important}.em-door.is-matched .em-reveal{background:radial-gradient(#61502c,#16111b)}.em-result{text-align:center;background:#251b2d;border:1px solid #b38e58;border-radius:16px;margin:24px auto;padding:24px}.em-result>small{color:var(--gold);display:block}.em-result>strong{color:var(--gold);font-size:70px;line-height:1.3}.em-options label{align-items:center;gap:12px;min-height:36px;display:flex}.em-options input{width:22px;height:22px;accent-color:var(--gold)}.em-rules{font-size:14px;line-height:1.8}.em-rules summary{cursor:pointer;font-size:16px}.em-error{color:#ffd6d6;background:#462129;border-radius:8px;padding:14px;font-size:14px}.em-empty{text-align:center;color:var(--muted);padding:32px 10px}.em-watch-name{flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;display:flex}.em-watch-name button{color:var(--gold);background:0 0;border:0;margin-left:auto;text-decoration:underline}.em-watch-row{text-align:left;background:#2d2434;border:1px solid #7b5d7e;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:100%;margin:12px 0;padding:18px;display:flex}.em-watch-row small{color:var(--gold);margin-top:5px;display:block}.em-watch-row b{white-space:nowrap;font-size:14px}.em-switch{gap:8px;display:flex}.em-switch button{background:#211a2a;border:1px solid #775876;border-radius:8px;flex:1;min-height:44px}.em-switch button.selected{background:var(--gold);color:#251a2a}.em-ranks{padding:0;list-style:none}.em-ranks li{border-bottom:1px solid #42344b;align-items:center;gap:14px;padding:16px 0;display:flex}.em-ranks li>b{width:25px;color:var(--gold);font-size:24px}.em-ranks li>span{overflow-wrap:anywhere;flex:1;min-width:0}.em-ranks li>.member-avatar{flex:0 0 40px;width:40px;height:40px;font-size:16px}.em-ranks .member-avatar img{object-fit:cover;border-radius:inherit;width:100%;height:100%}.em-ranks strong{text-align:right;white-space:nowrap;font-size:16px}.em-ranks small{color:var(--muted);font-size:12px;display:block}@media (min-width:650px){.em-room{padding:28px 40px 100px}.em-start{max-width:500px;margin:auto}.em-doors{max-height:none}.em-door{max-height:180px}.em-game{max-width:720px;margin:auto}}@media (prefers-reduced-motion:reduce){.em-room *{transition:none!important;animation:none!important}}.em-room{--gold:#ffdda0;--muted:#c7d4cc;background:radial-gradient(at 50% 0,#34564a 0,#0000 65%),#132e28;padding:14px 12px 100px}.em-header{margin-bottom:12px}.em-header h1{font-size:25px}.em-header>a,.em-header>button{background:#294639;border-color:#91a880}.em-tabs{border-color:#678470;margin-bottom:16px}.em-panel,.em-options,.em-rules{background:#203b31;border-color:#63806a}.em-watch-row{background:#2e4c3d;border-color:#789c7e}.em-switch button{background:#254637;border-color:#91a880}.em-start-art{background:#22382d;border-color:#c1915e}.em-result{background:#263d30;border-color:#d7ac72}.em-scoreboard{z-index:8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#17372ef5;border:1px solid #728269;border-radius:12px;margin:0 -2px 8px;padding:12px 10px 0;position:sticky;top:0;box-shadow:0 4px 12px #08181144}.em-hud{padding-bottom:8px}.em-hud strong{font-size:28px}.em-stage-message{min-height:34px;padding:8px 0;font-size:14px}.em-doors{--columns:3;--wide-columns:6;grid-template-columns:repeat(var(--columns),minmax(0,1fr));background:#c59864;border:5px solid #77502e;border-radius:4px;align-items:start;gap:8px;max-width:480px;padding:10px;box-shadow:0 5px #4f3522,0 12px 25px #07150f66}.em-door{aspect-ratio:2/3;min-height:0;box-shadow:none;perspective:700px;isolation:isolate;overflow:hidden;background:#80512e!important;border:0!important;border-radius:0!important;max-height:none!important}.em-door .em-reveal{background:radial-gradient(#d9b97d,#503e2b);border:3px solid #78502f;border-radius:48% 48% 3px 3px;padding:12% 0 3%;inset:7% 11% 8%;overflow:hidden}.em-reveal img,.em-reveal svg{filter:drop-shadow(0 3px 3px #25190d66);width:100%;height:86%}.em-reveal small{color:#fff9df;text-shadow:0 1px 3px #000;font-size:12px;font-weight:700}.em-shutter{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:2;pointer-events:none;background-image:url(/memory/wooden-door.webp);background-repeat:no-repeat;background-size:200% 100%;width:50%;transition:transform .36s ease-in-out,filter .36s;position:absolute;top:0;bottom:0}.em-shutter-left{transform-origin:0;background-position:0;left:0}.em-shutter-right{transform-origin:100%;background-position:100%;right:0}.em-door.is-open .em-shutter-left{filter:brightness(.7);transform:rotateY(-104deg)}.em-door.is-open .em-shutter-right{filter:brightness(.7);transform:rotateY(104deg)}.em-door.is-matched{box-shadow:0 0 0 2px #ffdf91,0 0 14px #ffe3a277!important}.em-door.is-matched .em-reveal{background:radial-gradient(#b1974e,#395537);border-color:#e0bb76}.em-door:not(:disabled):active{filter:brightness(1.15)}@media (min-width:650px){.em-room{padding:22px 28px 100px}.em-doors{grid-template-columns:repeat(var(--wide-columns),minmax(0,1fr));gap:10px;max-width:750px;padding:14px}.em-game{max-width:800px}.em-doors[style*=--columns\:2]{max-width:370px}.em-header{margin-bottom:18px}}@media (max-width:360px){.em-room{padding-inline:8px}.em-doors{border-width:4px;gap:5px;padding:6px}.em-hud strong{font-size:25px}}@media (prefers-reduced-motion:reduce){.em-shutter{transition:none!important}}.em-door{background-image:url(/memory/wooden-door.webp)!important;background-size:100% 100%!important}.em-door .em-reveal{inset:5% 9% 8%}.em-shutter{transition-duration:80ms}.em-door.is-pending .em-reveal{background:radial-gradient(#c5a679,#503e2b)}.em-door{aspect-ratio:var(--door-ratio,.666667);min-height:36px}.em-door .em-reveal{padding-top:5%}.em-reveal img,.em-reveal svg{flex:1;min-height:0}.em-reveal small{flex-shrink:0}.em-door.is-pending .em-shutter{filter:brightness(1.16)}.em-door.is-pending{box-shadow:0 0 0 2px #ffe3a2,0 0 12px #ffe3a266!important}.em-header>a,.em-header>button{box-sizing:border-box;flex-shrink:0;line-height:1;padding:0!important}.em-header>a>svg,.em-header>button>svg{flex-shrink:0;width:24px;height:24px;display:block;margin:0!important}.em-door.is-peeking:not(.is-open) .em-shutter{opacity:.58}.em-door.is-peeking{box-shadow:0 0 0 2px #83f5dd,0 0 18px #83f5dd88!important}.em-door.is-peeking .em-reveal{background:radial-gradient(#73b5a0,#244635)}.em-options select{color:#fff5df;max-width:100%;min-height:44px;font:inherit;background:#183d31;border:1px solid #aa976b;border-radius:8px;padding:8px}.em-coin-total{text-align:center;color:#ffe19a;margin:8px 0;font-weight:800}.em-coin-badge{z-index:2;white-space:nowrap;color:#ffe099;background:#553b08;border:1px solid #ffe099;border-radius:20px;padding:4px 8px;font-size:12px;position:absolute;top:8px;left:50%;transform:translate(-50%);box-shadow:0 0 14px #ffc84b88}.em-door .em-reveal{border-width:clamp(1px,.4vw,3px);padding:0;inset:5% 7% 7%}.em-door .em-reveal>img,.em-door .em-reveal>svg{box-sizing:border-box;object-fit:contain;width:100%;max-width:none;height:100%;max-height:none;padding:3%;position:absolute;inset:0}.em-door .em-reveal>small{z-index:3;flex:none;margin:0;line-height:1;position:absolute}.em-door .em-reveal>.em-match-mark{color:#fff9df;background:#234533e8;border-radius:50%;place-items:center;width:clamp(13px,2.8vw,20px);height:clamp(13px,2.8vw,20px);font-size:clamp(10px,2vw,14px);display:grid;bottom:3px;right:3px;box-shadow:0 0 0 1px #ffe4a688}.em-door .em-reveal>.em-art-label{text-align:center;background:#153329c9;padding:3px 2px;font-size:clamp(8px,1.7vw,12px);bottom:2px;left:0;right:0}.em-door .em-reveal>.em-art-label:empty{display:none}.em-door{touch-action:manipulation}.em-tap-mark{z-index:4;color:#fff1c5;pointer-events:none;background:#193c2fed;border-radius:50%;place-items:center;width:26px;height:26px;margin:auto;font-size:16px;font-weight:800;line-height:1;display:grid;position:absolute;inset:0;box-shadow:0 0 0 2px #ffe3a2}.em-start h2{font-size:24px}.em-home-options{max-width:500px;margin:0 auto}.em-home-options h2{margin:0 0 12px;font-size:18px}.em-home-options .em-item-choice{border-bottom:1px solid #63806a;gap:10px;padding:14px 0}.em-item-choice>span{flex:1;min-width:0}.em-item-choice b{font-size:16px}.em-item-choice small{color:var(--muted);margin-top:4px;font-size:14px;display:block}.em-item-choice input{flex-shrink:0}.em-item-choice strong{min-width:32px;color:var(--gold);font-size:14px}.em-item-choice:has(input:disabled){opacity:.65}.em-home-ranking{background:#254637;border:1px solid #aa976b;border-radius:10px;justify-content:center;align-items:center;gap:10px;width:100%;max-width:340px;min-height:48px;margin:18px auto 0;display:flex;color:var(--gold)!important}.em-home-options>.em-note:last-child{text-align:center}.em-room{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:calc(30px + env(safe-area-inset-bottom))}.em-room>header{gap:12px;padding-block:14px}.em-room>header a,.em-room>header button{min-height:44px}.em-room .em-panel{box-shadow:none;border-color:#7b684e;border-radius:10px;padding:24px}.em-room .em-panel h1{letter-spacing:-.03em}.em-room .em-note{color:#d8cfbd;font-size:14px;line-height:1.75}.em-room .em-primary{border-radius:7px;min-height:50px;font-size:18px}.em-room .em-home-ranking{border-radius:7px;min-height:46px;font-size:16px}.em-room .em-home-items{border-radius:8px}.em-room .em-home-items label{min-height:44px;line-height:1.7}.em-room .em-hud strong{font-variant-numeric:tabular-nums}.em-room .em-tabs button{border-radius:6px;min-height:44px}.em-room .em-tabs [aria-pressed=true]{box-shadow:inset 0 -3px #f2c17d}.em-room .em-rules{background:#221e1b;border-radius:8px}.em-room .em-rules summary{min-height:48px;font-size:16px}.em-room .em-rules p{font-size:15px;line-height:1.85}.em-room .em-empty{border:1px dashed #8c806d;padding:24px;font-size:16px;line-height:1.8}.em-room .em-result strong{font-variant-numeric:tabular-nums}.em-room .em-options{font-size:14px;line-height:1.7}@media (max-width:420px){.em-room .em-panel{padding:18px 14px}.em-room .em-panel h1{font-size:30px}.em-room .em-note{font-size:14px}.em-room>header{flex-wrap:wrap}.em-room .em-tabs{gap:6px}.em-room .em-tabs button{padding:10px 13px;font-size:14px}}.em-rank-period{color:#f4eadc;flex-direction:column;gap:8px;margin:16px 0;font-size:14px;display:flex}.em-rank-period select{color:#fff4e5;background:#30251d;border:1px solid #92765b;border-radius:9px;width:100%;min-width:0;max-width:100%;padding:11px;font-size:16px}.em-board-lens{min-width:0;max-width:480px;margin:0 auto}.em-viewbar{color:#f9edcf;background:#213b31;border:1px solid #74836e;border-radius:10px 10px 0 0;align-items:center;gap:6px;padding:5px 8px;display:flex}.em-viewbar button{background:0 0;border:0;justify-content:center;align-items:center;gap:5px;min-width:44px;min-height:44px;font-weight:700;line-height:1;display:inline-flex}.em-view-title{white-space:nowrap;align-items:center;gap:6px;font-weight:700;display:flex}.em-viewbar .em-fit{border:1px solid #81927c;border-radius:7px;padding:0 9px;font-size:14px}.em-viewbar .em-fit[aria-pressed=true]{color:#29382b;background:#f5d99e}.em-zoom-buttons{background:#142d25;border:1px solid #708671;border-radius:7px;align-items:center;margin-left:auto;display:flex}.em-zoom-buttons button+button{border-left:1px solid #607464}.em-zoom-buttons button:nth-child(2){font-variant-numeric:tabular-nums;min-width:55px;font-size:14px}.em-viewbar button:disabled{opacity:.35;cursor:default}.em-board-viewport{width:100%;max-height:64vh;scrollbar-color:#a99574 #233329;overflow-anchor:none;background:#172921;max-height:64dvh;position:relative;overflow:auto}.em-board-bounds{margin:0 auto;overflow:clip}.em-board-paper{transform-origin:0 0}.em-board-paper .em-doors{box-sizing:border-box;width:100%;margin:0;max-width:none!important}@media (min-width:650px){.em-board-lens{max-width:750px}.em-board-lens.em-small-board{max-width:370px}}
