:root{font-synthesis:none;color-scheme:light;--ink:#1d1d1f;--muted:#626269;--blue:#06c;--line:#dcdce1;--surface:#fff;--danger:#b42318;--soft:#eef5ff;color:var(--ink);background:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,Pretendard,Segoe UI,Noto Sans KR,Malgun Gothic,sans-serif;line-height:1.55}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,.button{background:var(--blue);color:#fff;cursor:pointer;touch-action:manipulation;user-select:none;border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:12px 18px;font-size:16px;font-weight:600;line-height:1.4;transition:background-color .15s,color .15s,border-color .15s;display:inline-flex}button svg,a svg{flex-shrink:0}button:active,.button:active{background:#004f9e}button:disabled{cursor:not-allowed;color:#6b6b73;background:#e6e6eb;border-color:#0000}button.secondary,.button.secondary{color:var(--ink);background:#eeeef2}button.secondary:active,.button.secondary:active{background:#dcdce2}button.secondary:disabled{color:#767680;background:#eeeef2}button.text-button{color:var(--muted);background:0 0;min-height:44px;padding:10px 12px;font-size:14px}button[aria-pressed=true]{color:#0057b3;background:#dcecff;border-color:#7ba9da}input,select,textarea{width:100%;min-height:50px;color:var(--ink);background:#fff;border:1px solid #bdbdc6;border-radius:12px;padding:12px 14px;font-size:16px;line-height:1.4}input::placeholder{color:#787880}input:disabled,select:disabled{color:#626269;background:#f5f5f7}label{flex-direction:column;gap:8px;font-size:15px;font-weight:600;display:flex}label small{color:var(--muted);font-size:13px;font-weight:400}input:focus,select:focus,textarea:focus{border-color:var(--blue)}:focus-visible{outline-offset:4px;outline:3px solid #06c}main:focus{outline:none}h1,h2,h3,p{margin:0}h1{letter-spacing:-.05em;font-size:clamp(28px,3.3vw,40px);font-weight:700;line-height:1.25}h2{letter-spacing:-.025em;margin-bottom:16px;font-size:20px;line-height:1.4}h3{font-size:17px}p{line-height:1.65}main{max-width:1248px;padding:40px 32px calc(56px + env(safe-area-inset-bottom));min-height:calc(100svh - 81px);margin:auto}.site-header{border-bottom:1px solid #e3e3e8;justify-content:space-between;align-items:center;gap:16px;max-width:1248px;margin:auto;padding:20px 32px;display:flex}.brand{letter-spacing:-.035em;align-items:center;gap:10px;font-size:18px;font-weight:700;display:flex}.brand-mark{background:var(--blue);color:#fff;border-radius:11px;place-items:center;width:36px;height:36px;display:grid}.mode-nav{background:#e9e9ee;border-radius:12px;gap:4px;padding:3px;display:flex}.mode-nav a{min-width:66px;min-height:44px;color:var(--muted);border-radius:9px;justify-content:center;align-items:center;padding:6px 16px;font-size:14px;font-weight:600;display:flex}.mode-nav a[aria-current=page]{color:var(--ink);background:#fff;box-shadow:0 1px 3px #0000000a}.skip-link{z-index:100;background:var(--ink);color:#fff;border-radius:8px;padding:12px 18px;position:fixed;top:8px;left:16px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.eyebrow{color:var(--muted);letter-spacing:0;margin-bottom:12px;font-size:14px;font-weight:600;display:block}.muted{color:var(--muted);font-size:14px}.tag{background:var(--soft);color:#0057b3;border-radius:7px;align-items:center;gap:6px;padding:5px 10px;font-size:14px;font-weight:600;display:inline-flex}.wide{justify-content:space-between;width:100%}.form-icon{color:var(--blue);background:var(--soft);border-radius:15px;place-items:center;width:50px;height:50px;margin-bottom:20px;display:grid}.form-description{color:var(--muted);margin:10px 0 26px;font-size:15px}.form-footnote{color:var(--muted);margin-top:22px;font-size:13px}.form-error{color:#9d2017;background:#fff0ee;border-radius:10px;padding:12px 14px;font-size:14px;font-weight:500}.form-error:empty{display:none}.entry{grid-template-columns:1fr 430px;align-items:center;gap:80px;max-width:1000px;margin:20px auto 0;display:grid}.entry-copy h1{font-size:clamp(34px,4vw,48px);line-height:1.28}.entry-copy>p{color:var(--muted);margin:20px 0 10px;font-size:16px}.pixel-friends{object-fit:contain;object-position:left center;width:260px;height:auto;max-height:205px;image-rendering:pixelated;mix-blend-mode:multiply;margin:18px 0;display:block}.steps{gap:20px;margin:24px 0 0;padding:0;list-style:none;display:flex}.steps li{flex-direction:column;gap:8px;font-size:13px;font-weight:600;display:flex}.steps b{width:26px;height:26px;color:var(--muted);background:#e5e5eb;border-radius:7px;place-items:center;font-size:13px;display:grid}.entry-card,.auth-card{background:#fff;border-radius:24px;padding:36px;box-shadow:0 8px 36px #00000004}.entry-card h2{margin:0;font-size:28px}.entry-card form{gap:20px;display:grid}.code-input{letter-spacing:.18em;text-transform:uppercase;min-height:58px;font-size:24px;font-weight:650}.code-input::placeholder{letter-spacing:0;font-size:16px;font-weight:400}.teacher-entry{max-width:1000px;margin:auto}.auth-card{max-width:448px;margin:24px auto;padding:36px 36px 30px}.auth-card h1{font-size:30px}.auth-card .form-icon{margin-bottom:22px}.auth-card form{gap:8px;display:grid}.auth-card form>label:not(:first-child){margin-top:14px}.password-input{display:flex;position:relative}.password-input input{padding-right:67px}.password-input button{color:#0057b3;min-width:54px;position:absolute;top:3px;right:4px}.auth-card form>.wide{margin-top:18px}.auth-card .form-error{margin-top:10px}.login-retention{color:var(--muted);align-items:flex-start;gap:7px;margin-top:24px;font-size:13px;display:flex}.login-retention svg{color:#247345;flex-shrink:0;margin-top:2px}.auth-card .form-footnote{border-top:1px solid #eeeef2;margin-top:18px;padding-top:18px}.loading-state{text-align:center;color:var(--muted);padding:80px 20px}.section-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px;display:flex}.section-heading .muted{margin-top:12px}.teacher-tools{gap:12px;margin-bottom:36px;display:flex}.teacher-tools a{background:#fff;border-radius:14px;flex:1;align-items:center;gap:10px;min-height:60px;padding:18px 20px;font-size:15px;font-weight:600;display:flex}.teacher-tools a>svg:first-child{color:var(--blue)}.teacher-tools a>svg:last-child{color:var(--muted);margin-left:auto}.list-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.list-heading h2{margin:0;font-size:18px}.room-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.room-tile{background:#fff;border:1px solid #0000;border-radius:18px;flex-direction:column;gap:14px;min-width:0;padding:24px;display:flex}.room-tile strong{font-variant-numeric:tabular-nums;letter-spacing:.16em;font-size:30px;font-weight:650}.room-tile span{color:var(--muted);font-size:14px}.room-tile .room-open{color:var(--blue);border-top:1px solid #eeeef2;padding-top:16px;font-weight:600}.empty-state{text-align:center;color:var(--muted);border:1px dashed #c8c8d0;border-radius:18px;grid-column:1/-1;padding:40px 24px}.empty-state strong{color:var(--ink);margin-bottom:8px;font-size:18px;display:block}.empty-state p{font-size:15px}.account-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:12px;margin-top:32px;padding-top:16px;display:flex}.password-panel{max-width:520px;margin:32px auto!important}.password-panel form{gap:16px;display:grid}.room-bar{z-index:5;background:#fff;border:1px solid #e6e6eb;border-radius:18px;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;padding:18px 24px;display:flex;position:sticky;top:12px}.room-bar .eyebrow{margin-bottom:3px;font-size:12px}.room-bar strong{letter-spacing:.16em;font-variant-numeric:tabular-nums;font-size:25px}.room-bar>div:last-child{align-items:center;gap:16px;display:flex}#room-stats{color:var(--muted);font-size:14px}.timer{font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.03em;font-size:30px}.timer.urgent{color:var(--danger)}.game-layout{grid-template-columns:minmax(0,1fr) 294px;gap:24px;display:grid}.game-main{min-width:0}.activity-heading{margin:8px 0 24px}.activity-heading h1{margin-bottom:10px;font-size:28px;line-height:1.4}.activity-heading p{color:var(--muted);font-size:16px}.activity-heading .eyebrow{margin-bottom:6px}.secret-card{background:#fff5df;border-radius:16px;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-bottom:20px;padding:20px 24px;display:flex}.secret-card span{color:#6e5013;font-size:15px}.secret-card strong{font-size:32px}.secret-card small{color:#6e5013;width:100%;font-size:14px}.panel{background:#fff;border-radius:18px;margin-bottom:24px;padding:24px}.panel-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.panel-heading h2{margin:0;font-size:18px}.panel-heading>span{color:var(--muted);font-size:14px}.tools{border:1px solid var(--line);background:#fff;border-radius:16px 16px 0 0;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;display:flex}.tools button{min-height:44px;padding:10px 12px;font-size:14px}.tools label{flex-direction:row;align-items:center;gap:8px;font-size:14px}.tools input[type=range]{width:84px;min-height:44px;accent-color:var(--blue);padding:0}.tools input[type=color]{width:44px;min-height:44px;padding:4px}.color-swatches{align-items:center;gap:4px;display:flex}.color-swatches button{background:0 0;border:1px solid #0000;border-radius:10px;width:44px;padding:9px}.color-swatches button:before{content:"";background:var(--swatch);border:1px solid #0002;border-radius:50%;width:22px;height:22px}.color-swatches button[aria-pressed=true]{border-color:var(--blue);background:var(--soft)}#drawing{aspect-ratio:4/3;border:1px solid var(--line);touch-action:none;background:#fff;border-top:0;border-radius:0 0 4px 4px;width:100%;height:auto;display:block}#draw-area{max-width:900px}.drawing-bottom{justify-content:space-between;align-items:center;gap:16px;margin-top:16px;display:flex}#save-state{color:var(--muted);font-size:14px}.gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.drawing-card{min-width:0;color:var(--ink);text-align:left;background:#fff;border:2px solid #0000;border-radius:14px;padding:8px;display:block}.drawing-card:disabled{color:var(--ink);cursor:default;background:#fff;border-color:#0000}.drawing-card.candidate{border-color:#ae7900}.drawing-card canvas{background:#fff;border-radius:7px;width:100%;height:auto;display:block}.drawing-card>div{flex-wrap:wrap;justify-content:space-between;gap:4px;padding:10px 2px 2px;font-size:14px;display:flex}.drawing-card span{color:var(--muted);font-size:12px}.chat-panel{padding:20px}.chat-messages{overscroll-behavior:contain;height:260px;padding:4px 0;overflow:auto}.chat-message{overflow-wrap:anywhere;background:#f5f5f7;border-radius:10px;margin:8px 0;padding:10px 12px}.chat-message b{color:#0057b3;font-size:13px}.chat-message p{margin-top:3px;font-size:15px}.chat-panel form{gap:6px;margin-top:12px;display:flex}.chat-panel input{min-width:0;padding:10px;font-size:16px}.chat-panel button{white-space:nowrap;padding:10px;font-size:14px}.chat-panel .muted{margin-top:10px;font-size:13px}.chat-panel select{min-height:44px;font-size:16px}#teacher-controls>button{width:100%;margin-bottom:10px}.control-grid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px;display:grid}.control-grid button{padding:10px 8px;font-size:14px}.danger-actions{gap:8px;margin-top:12px;display:grid}.danger-actions button{color:var(--danger)}summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:15px}.roster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;display:grid}.student-row{border-top:1px solid #eeeef2;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;display:flex}.student-row b,.student-row span{display:block}.student-row span{color:var(--muted);margin-top:4px;font-size:13px}.mini-actions{flex-wrap:wrap;gap:4px;display:flex}.mini-actions button{min-height:44px;padding:10px;font-size:13px}.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px;display:grid}.check{flex-direction:row;align-items:center;min-height:44px;font-weight:500}.check input{width:22px;height:22px;min-height:22px;accent-color:var(--blue)}.waiting-dots{flex-wrap:wrap;gap:10px;margin:24px 0;display:flex}.name-chip{background:#fff;border-radius:10px;padding:10px 16px;font-size:15px;font-weight:600}.actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.connection{color:#6c4a0b;background:#fff3d7;border-radius:10px;margin-bottom:16px;padding:12px 16px;font-size:15px}.keyword-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;display:grid}.keyword-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px;display:grid}.keyword-card{color:var(--ink);text-align:left;background:#fff;border:1px solid #0000;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding:18px;display:flex}.keyword-card small,.keyword-card>span{color:var(--muted);font-size:13px}.keyword-card strong{font-size:17px}.keyword-card strong span{color:#75757e}.keyword-card[aria-pressed=true]{border-color:var(--blue);background:var(--soft);color:var(--ink)}.disabled-card{background:#e9e9ee}.keyword-toolbar{justify-content:space-between;align-items:end;gap:20px;margin-top:30px;display:flex}.keyword-toolbar label{width:min(100%,420px)}.pagination{justify-content:center;align-items:center;gap:16px;margin:24px 0;display:flex}.pagination span{color:var(--muted);font-size:14px}.pagination button{min-height:44px}.notice{bottom:calc(20px + env(safe-area-inset-bottom));z-index:50;color:#fff;overflow-wrap:anywhere;background:#29292d;border-radius:12px;width:max-content;max-width:min(92vw,620px);padding:14px 20px;font-size:15px;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 6px 30px #0002}.notice.error{background:#9d2017}dialog{width:min(480px,100vw - 32px);color:var(--ink);border:0;border-radius:24px;padding:28px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#0006}dialog p{white-space:pre-line;overflow-wrap:anywhere;margin:12px 0 24px}.sr-only{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}[hidden]{display:none!important}@media (hover:hover) and (pointer:fine){button:not(:disabled):hover,.button:hover{background:#0059b3}button.secondary:not(:disabled):hover,.button.secondary:hover{background:#e2e2e8}button.text-button:hover{color:var(--ink);background:#e8e8ed}.mode-nav a:hover{color:var(--ink)}.room-tile:hover,.keyword-card:hover{background:#fafdff;border-color:#a8c8e9}.teacher-tools a:hover{background:#fafdff}.drawing-card:not(:disabled):hover{border-color:var(--blue);background:#f0f6ff}.color-swatches button:not(:disabled):hover{background:#e4efff}}@media (width>=1450px){.game-layout{grid-template-columns:minmax(0,1fr) 310px}.gallery{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (width<=1000px){.entry{grid-template-columns:1fr 400px;gap:36px;margin-top:8px}.entry-copy h1{font-size:38px}.steps{gap:14px}.game-layout{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.panel{padding:20px}.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.roster-grid{grid-template-columns:1fr}.keyword-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.keyword-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){main{padding:28px 20px calc(40px + env(safe-area-inset-bottom))}.site-header{padding:14px 20px}.mode-nav a{min-width:60px;min-height:44px;padding:6px 12px}.entry{flex-direction:column;gap:30px;max-width:460px;margin:0 auto;display:flex}.join-card{order:0;width:100%;padding:28px}.entry-copy{order:1;grid-template-columns:1fr 135px;align-items:center;width:100%;padding:0 4px;display:grid}.entry-copy .eyebrow{grid-column:1;margin-bottom:8px;font-size:12px}.entry-copy h1{grid-column:1;font-size:25px}.entry-copy>p{grid-column:1/-1;margin:16px 0 0;font-size:14px}.entry-copy>p br{display:none}.pixel-friends{grid-area:1/2/3;width:135px;height:110px;margin:0}.steps{grid-column:1/-1;gap:20px;margin-top:20px}.auth-card{margin:8px auto;padding:30px 28px}.section-heading{flex-wrap:wrap;align-items:flex-start;gap:20px}.section-heading h1{font-size:30px}.teacher-tools{flex-direction:column;gap:10px;margin-bottom:28px}.room-list{grid-template-columns:repeat(2,minmax(0,1fr))}.game-layout{grid-template-columns:1fr}.room-bar{flex-wrap:wrap;gap:10px;padding:16px;position:static}.room-bar>div:nth-child(2){order:3;width:100%;font-size:13px}.room-bar strong{font-size:23px}.timer{font-size:26px}.activity-heading h1{font-size:24px}.game-layout aside{grid-template-columns:1fr;display:grid}.settings-grid,.keyword-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-row{flex-wrap:wrap}.keyword-toolbar{flex-direction:column;align-items:stretch;gap:12px}.keyword-toolbar label{width:100%}.account-actions{justify-content:flex-start}.chat-messages{height:220px}}@media (width<=420px){main,.site-header{padding-left:16px;padding-right:16px}.brand{gap:8px;font-size:16px}.brand-mark{width:32px;height:32px}.mode-nav a{min-width:52px}.auth-card,.join-card{padding:26px 22px}.room-list,.settings-grid,.keyword-form{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.keyword-grid{gap:8px}.keyword-card{padding:14px 12px}.drawing-bottom{flex-direction:column;align-items:stretch}.drawing-bottom button{width:100%}.secret-card strong{font-size:28px}.steps{justify-content:space-between;gap:8px}.entry-copy{grid-template-columns:1fr 116px}.pixel-friends{width:116px}.tools{gap:6px}.tools button{padding:10px}.panel{padding:18px}.section-heading>.button,.section-heading>button{flex-shrink:0}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.tool-group{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tools{border-radius:14px 14px 0 0;gap:8px;padding:8px}.tools button,.color-swatches button,.tools input[type=color]{min-width:48px;min-height:48px}.tools select{width:126px;min-height:48px;padding:8px}.tools .color-swatches{gap:4px}.tools .custom-color{display:block}.history-tools{margin-left:auto}.canvas-stage{border:1px solid var(--line);background:#e9e9ee;place-items:center;height:360px;min-height:180px;padding:8px;display:grid}#drawing{width:var(--canvas-width,100%);aspect-ratio:4/3;-webkit-user-select:none;user-select:none;border:1px solid #bdbdc6;border-radius:4px;max-width:100%;height:auto}#drawing[data-locked=true]{touch-action:pan-y pinch-zoom}.drawing-bottom{min-height:48px;margin-top:8px}.gallery{grid-template-columns:repeat(var(--gallery-columns,3),minmax(0,1fr))}.gallery-pages{justify-content:space-between;align-items:center;gap:8px;margin-top:12px;display:flex}.gallery-pages span{text-align:center;font-size:14px}.gallery-pages button{min-height:48px;padding:10px 14px}.drawing-card canvas{object-fit:contain;max-height:100%}.drawing-card>div{min-height:34px;padding:6px 2px 2px}.chat-scroll,.page-scroll{justify-content:space-between;gap:8px;display:flex}.chat-scroll button,.page-scroll button{flex:1;min-height:48px;padding:8px;font-size:14px}.chat-scroll{margin-top:8px}.chat-messages{scrollbar-gutter:stable;touch-action:pan-y pinch-zoom}.student-views{gap:8px;display:flex}.student-views button{color:var(--ink);background:#e9e9ee;flex:1;min-height:48px;padding:8px 12px}.student-views button[aria-pressed=true]{background:var(--blue);color:#fff;border-color:#0000}.student-views #fullscreen{flex:none;font-size:14px}.student-views #chat-unread{color:#fff;background:#b42318;border-radius:6px;padding:2px 5px;font-size:12px}.drawing-detail{width:min(860px,100vw - 24px);max-height:calc(var(--screen-height,100dvh) - 24px);padding:16px;overflow:auto}.drawing-detail[open]{flex-direction:column;gap:10px;display:flex}.drawing-detail .panel-heading{flex-wrap:nowrap;margin:0}.drawing-detail h2{overflow-wrap:anywhere}.drawing-detail canvas{width:auto;max-width:100%;height:min(52dvh,480px);max-height:calc(var(--screen-height,100dvh) - 230px);object-fit:contain;aspect-ratio:4/3;border:1px solid var(--line);align-self:center;min-height:80px;display:block}.detail-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.detail-actions button{min-height:48px}.detail-actions #detail-vote{margin-left:auto}.drawing-detail p{margin:0;font-size:14px}.drawing-detail .panel-heading button{flex-shrink:0}dialog{max-height:calc(var(--screen-height,100dvh) - 24px);overflow:auto}dialog .actions{background:#fff;padding-top:8px;position:sticky;bottom:0}input,select,button{scroll-margin-block:72px}.student-game .site-header{max-width:none;height:58px;padding:4px 16px}.student-game .brand-mark{width:32px;height:32px}.student-game main{max-width:none;height:calc(var(--screen-height,100dvh) - 58px);min-height:0;padding:8px 16px max(8px,env(safe-area-inset-bottom))}.student-game #game{flex-direction:column;gap:8px;height:100%;display:flex}.student-game .room-bar{border-radius:12px;flex-wrap:nowrap;flex:none;gap:8px;min-height:52px;margin:0;padding:4px 12px;position:static}.student-game .room-bar .eyebrow{display:none}.student-game .room-bar strong{font-size:20px}.student-game .room-bar>div:last-child{gap:10px}.student-game .room-bar>div:nth-child(2){order:0;width:auto;font-size:13px}.student-game .timer{font-size:25px}.student-game .connection{margin:0;padding:6px 12px;font-size:14px}.student-game .game-layout{flex:1;grid-template-columns:minmax(0,1fr);gap:0;min-height:0;display:grid}.student-game .game-main{overscroll-behavior:contain;scrollbar-gutter:stable;flex-direction:column;gap:8px;min-height:0;display:flex;overflow:auto}.student-game #activity{flex:none}.student-game .activity-heading{margin:0}.student-game .activity-heading .eyebrow{display:none}.student-game .activity-heading h1{margin:0 0 4px;font-size:22px;line-height:1.3}.student-game .activity-heading p{font-size:14px}.student-game .secret-card{justify-content:flex-start;gap:2px 12px;margin:8px 0 0;padding:8px 14px}.student-game .secret-card strong{font-size:25px}.student-game .secret-card span,.student-game .secret-card small{font-size:13px}.student-game [data-phase=DRAWING] #activity{justify-content:space-between;align-items:center;gap:8px;display:flex}.student-game [data-phase=DRAWING] .secret-card{max-width:55%;margin:0}.student-game [data-phase=DRAWING] .activity-heading h1{font-size:18px}.student-game [data-phase=DRAWING] #activity>.tag{display:none}.student-game #draw-area{flex-direction:column;flex:1;gap:0;max-width:none;min-height:300px;display:flex}.student-game .canvas-stage{flex:1;height:0;min-height:140px}.student-game .tools{flex:none}.student-game .drawing-bottom{flex-direction:row;flex:none;align-items:center}.student-game .drawing-bottom button{flex-shrink:0;width:auto;min-width:160px}.student-game #save-state{font-size:13px}.student-game #gallery-area{flex-direction:column;flex:1;gap:8px;min-height:230px;display:flex}.student-game .gallery{flex:1;grid-auto-rows:minmax(0,1fr);gap:10px;min-height:0}.student-game .drawing-card{flex-direction:column;min-height:0;padding:6px;display:flex}.student-game .drawing-card canvas{border-radius:4px;flex:1;width:100%;height:0;min-height:0}.student-game .drawing-card>div{flex:none;align-items:center;width:100%}.student-game .gallery-pages{flex:none;margin:0}.student-game #chat-pane{min-height:0;overflow:auto}.student-game .chat-panel{border-radius:14px;flex-direction:column;height:100%;min-height:220px;margin:0;padding:12px 16px;display:flex}.student-game .chat-panel .panel-heading{flex:none;margin-bottom:4px}.student-game .chat-panel .chat-messages{flex:1;height:0;min-height:40px}.student-game .chat-panel form{flex:none;margin-top:8px}.student-game .chat-panel .muted{margin-top:4px}.student-game .page-scroll{flex:none}.student-game .waiting-dots{margin:16px 0 8px}.student-game .notice{pointer-events:none;max-height:20vh;bottom:12px;overflow:auto}@media (width>=761px) and (height<=800px){body:not(.student-game) main{padding-top:20px;padding-bottom:24px}.entry{gap:40px;margin-top:0}.entry-card{padding:24px}.entry-card .form-icon{display:none}.entry-card h2{font-size:26px}.entry-card .form-description{margin:6px 0 16px}.entry-card form{gap:14px}.entry-card label{gap:5px}.entry-card .form-footnote{margin-top:14px}.entry-copy h1{font-size:34px}.pixel-friends{max-height:150px}.auth-card{margin:0 auto;padding:24px 30px}.auth-card .form-icon{display:none}.auth-card .form-description{margin-bottom:16px}.auth-card .login-retention{margin-top:16px}}@media (width<=900px){.student-game .history-tools{margin-left:0}.student-game .tools{justify-content:space-between}.student-game .tools label{font-size:13px}.student-game .tools select{width:112px}.student-game .tools button{padding:8px}.student-game #room-stats{display:none}}@media (width<=620px){.student-game main{padding:6px 8px}.student-game .site-header{padding:4px 8px}.student-game .brand{font-size:16px}.student-game .mode-nav a{min-width:48px;padding:6px 8px}.student-game .room-bar{padding:4px 8px}.student-game .room-bar strong{font-size:18px}.student-game .room-bar .tag{padding:4px 6px;font-size:12px}.student-game .student-views{gap:4px}.student-game .student-views button{padding:6px;font-size:14px}.student-game .student-views #fullscreen{font-size:12px}.student-game .tools{justify-content:flex-start;gap:4px}.student-game .tools .color-swatches{gap:1px}.student-game .tool-group{gap:4px}.student-game .tools button,.student-game .tools input[type=color]{min-width:44px;min-height:48px}.student-game .color-swatches button{width:44px;padding:8px}.student-game .history-tools button{font-size:13px}.student-game [data-phase=DRAWING] #activity{align-items:flex-start}.student-game [data-phase=DRAWING] .activity-heading p{display:none}.student-game .secret-card{padding:6px 8px}.student-game .secret-card strong{font-size:22px}.student-game #draw-area{min-height:360px}.student-game .drawing-bottom button{min-width:140px;font-size:15px}.student-game .gallery-pages button{padding:8px;font-size:14px}.student-game .gallery{gap:6px}.student-game .chat-panel{padding:10px}.drawing-detail{padding:12px}.detail-actions button{padding:8px;font-size:14px}.detail-actions #detail-vote{width:100%}}@media (height<=500px){.student-game .site-header{display:none}.student-game main{height:var(--screen-height,100dvh)}.student-game .room-bar{min-height:38px}.student-game .room-bar .timer{font-size:22px}.student-game #game{gap:4px}.student-game .chat-panel .panel-heading,.student-game .chat-panel #chat-hint{display:none}.student-game .chat-panel{min-height:160px}.student-game .chat-scroll button{min-height:44px}.student-game .chat-scroll{margin-top:4px}}.student-game .site-header{display:none}.student-game main{height:var(--screen-height,100dvh)}@media (width>=1000px) and (height>=560px){.student-game #draw-area{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:248px minmax(0,1fr);gap:8px;min-height:356px;display:grid}.student-game .tools{border-radius:14px;flex-direction:column;grid-area:1/1/3;justify-content:flex-start;align-items:stretch;gap:8px;height:100%;padding:10px;display:flex;overflow:auto}.student-game .tools .tool-group{grid-template-columns:1fr 1fr;gap:8px;display:grid}.student-game .tools label:not(.custom-color){grid-column:1/-1;display:flex}.student-game .tools select{flex:1;width:100%}.student-game .tools .color-swatches{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.student-game .tools .color-swatches button{width:100%}.student-game .history-tools{margin-left:0}.student-game .history-tools #clear{grid-column:1/-1}.student-game .canvas-stage{border-radius:12px;grid-area:1/2;height:100%;min-height:0}.student-game .drawing-bottom{grid-area:2/2;margin:0}.student-game .tools button{padding:8px}}@media (width<=620px){.student-game .tools .color-swatches{flex-wrap:wrap;max-width:100%}.student-game .drawing-bottom{gap:8px}.student-game .secret-card small{overflow-wrap:anywhere}}.room-delete{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.room-delete p{color:var(--muted);margin-bottom:10px;font-size:13px}.room-delete button{width:100%;min-height:48px;color:var(--danger);background:#fff7f6;border:1px solid #ecc9c5}#game[data-teacher=true][data-phase=LOBBY] .room-bar{grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;padding:24px 32px;display:grid;position:static}#game[data-teacher=true][data-phase=LOBBY] .room-bar>div:first-child{grid-area:1/1/3;min-width:0}#game[data-teacher=true][data-phase=LOBBY] .room-bar .eyebrow{margin-bottom:8px;font-size:20px}#game[data-teacher=true][data-phase=LOBBY] #room-code{letter-spacing:.06em;color:var(--blue);white-space:nowrap;font-size:clamp(72px,10vw,140px);font-weight:750;line-height:1.08;display:block}#game[data-teacher=true][data-phase=LOBBY] #room-stats{text-align:right;grid-area:2/2;align-self:start}#game[data-teacher=true][data-phase=LOBBY] .room-bar>div:last-child{grid-area:1/2;justify-content:flex-end;align-self:end}#game[data-teacher=true][data-phase=LOBBY] #phase-label{white-space:nowrap;padding:10px 16px;font-size:clamp(20px,2.4vw,30px)}#game[data-teacher=true][data-phase=LOBBY] #timer{display:none}@media (width<=760px){#game[data-teacher=true][data-phase=LOBBY] .room-bar{text-align:center;grid-template-columns:1fr;padding:20px 16px}#game[data-teacher=true][data-phase=LOBBY] .room-bar>div:first-child{grid-area:1/1}#game[data-teacher=true][data-phase=LOBBY] #room-code{font-size:clamp(48px,14vw,100px)}#game[data-teacher=true][data-phase=LOBBY] .room-bar>div:last-child{grid-area:2/1;justify-content:center}#game[data-teacher=true][data-phase=LOBBY] #room-stats{text-align:center;grid-area:3/1}}.chat-heading{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.chat-status{white-space:nowrap;letter-spacing:-.02em;border-radius:6px;padding:3px 7px;font-size:13px;font-weight:700;line-height:1.4;display:inline-block}.chat-status[data-allowed=true]{color:#216344;background:#e7f3eb}.chat-status[data-allowed=false]{color:#a1323f;background:#f8e9ec}.student-views #view-chat{flex-wrap:wrap;gap:4px}.student-views .chat-status{padding:2px 5px;font-size:12px}.vote-progress{color:#184d83;background:#e8f1fc;border-radius:12px;flex:none;margin:0 0 12px;padding:12px 16px;font-size:18px;font-weight:700}.student-game .vote-progress{margin:0;padding:10px 12px;font-size:16px}.action-status{color:#184d83;background:#e8f1fc;border-radius:12px;flex:none;margin-bottom:16px;padding:16px 20px;font-size:22px;font-weight:700}.action-status:before{content:"";vertical-align:-2px;border:3px solid #a7c8eb;border-top-color:#184d83;border-radius:50%;width:18px;height:18px;margin-right:10px;animation:.8s linear infinite action-spin;display:inline-block}@keyframes action-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.action-status:before{animation:none}}.elimination-result{text-align:center;color:#244e7c;background:#eaf1fc;border:1px solid #d7dfed;border-radius:20px;margin:0 0 20px;padding:28px 20px}.elimination-result.mafia{color:#982f42;background:#f8e9ec;border-color:#ebc5ce}.elimination-result>span{overflow-wrap:anywhere;font-size:24px;font-weight:600;display:block}.elimination-result>strong{letter-spacing:-.04em;margin:10px 0;font-size:clamp(40px,5.4vw,76px);font-weight:800;line-height:1.2;display:block}.elimination-result>p{font-size:18px}.student-game .elimination-result{margin-bottom:12px;padding:18px 12px}.student-game .elimination-result>span{font-size:21px}.student-game .elimination-result>p{font-size:16px}.chat-panel{position:relative}.chat-reactions{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px;display:grid}.chat-reactions button{min-height:48px;color:var(--ink);background:#f5f5f8;border:1px solid #e6e6ec;padding:6px;font-family:system-ui,sans-serif;font-size:25px}.chat-reactions button:active:not(:disabled){transform:scale(.93)}.chat-reactions button:disabled{opacity:.35}.reaction-particles{pointer-events:none;border-radius:inherit;z-index:4;position:absolute;inset:0;overflow:hidden}.reaction-particles span{opacity:0;filter:drop-shadow(0 3px 4px #0001);font-size:38px;animation:2.6s ease-out both reaction-float;position:absolute;bottom:140px}@keyframes reaction-float{0%{opacity:0;transform:translateY(20px)scale(.6)}15%{opacity:1}75%{opacity:1}to{opacity:0;transform:translate(var(--drift),-340px) scale(1.2)}}.student-game .chat-reactions{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.student-game .chat-reactions button{min-width:0;padding:4px;font-size:25px}.mafia-count{background:#ffffffbd;border-radius:100px;margin-top:16px;padding:10px 20px;font-size:24px;display:inline-block}.elimination-result>strong{word-break:keep-all;font-size:clamp(34px,4.5vw,64px)}.student-game .elimination-result>strong{font-size:clamp(32px,4.4vw,56px)}.student-game .mafia-count{margin-top:10px;padding:8px 18px;font-size:22px}@media (width<=430px){.student-game .chat-reactions{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){.reaction-particles span{animation:1.5s both reaction-fade}@keyframes reaction-fade{0%,to{opacity:0}20%,80%{opacity:1}}}.ghost-reactions{background:#f0edf9;border:1px solid #ded6ef;border-radius:14px;flex:none;margin-top:12px;padding:12px}.ghost-reactions h3{color:#5f4684;margin:0 0 4px;font-size:16px}.ghost-reactions p,.ghost-reactions small{color:#665579;font-size:13px}.ghost-reactions .chat-reactions,.student-game .ghost-reactions .chat-reactions{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0}.student-game .ghost-reactions{margin-top:8px;padding:8px}.auto-play-status{color:#376349;background:#eef5ef;border-radius:10px;flex:none;margin:0 0 12px;padding:10px 14px;font-size:14px}.student-game .auto-play-status{margin:0;padding:6px 10px;font-size:13px}.stop-game{margin:0 0 12px}.stop-game button{border:1px solid #e9c5ce;width:100%;min-height:48px;font-weight:750;color:#982f42!important;background:#f8e9ec!important}.drawing-warning{color:#982f42;background:#f8e9ec;border:1px solid #ecd0d5;border-radius:10px;flex:none;margin:0 0 8px;padding:9px 14px;font-size:16px;font-weight:700}.free-board{min-width:0}.free-board canvas{aspect-ratio:4/3;object-fit:contain;touch-action:none;background:#fff;border:1px solid #d6d6e0;border-radius:12px;width:100%;height:auto;max-height:55vh;display:block}.free-board canvas[data-locked=true]{touch-action:pan-y pinch-zoom}.free-board-colors{flex-wrap:wrap;gap:8px 16px;padding:12px 0;display:flex}.free-board-colors>span{align-items:center;gap:7px;font-size:14px;font-weight:650;display:flex}.free-board-colors i{border:1px solid #0002;border-radius:50%;width:18px;height:18px;display:inline-block}.free-board #free-save-state{color:var(--muted);font-size:13px}.student-game .free-board{flex:1;margin:0;padding:12px}.student-game .free-board .panel-heading h2{font-size:19px}.student-game .free-board canvas{max-height:46vh}.student-game .drawing-warning{margin:0;padding:8px 10px;font-size:14px}@media (width>=1000px) and (height>=560px){.student-game #draw-area{grid-template-rows:auto minmax(0,1fr) auto}.student-game #draw-area>.drawing-warning{grid-area:1/1/auto/-1}.student-game .tools{grid-row:2/4}.student-game .canvas-stage{grid-row:2}.student-game .drawing-bottom{grid-row:3}}.free-board canvas{object-fit:fill;width:min(100%,73.3333vh);max-height:none;margin:0 auto}.student-game .free-board canvas{width:min(100%,61.3333vh);max-height:none}.student-game [data-phase=DRAWING] #auto-play-status{display:none}@media (width>=761px){.student-game .free-board{grid-template-rows:auto auto minmax(0,1fr) auto auto;grid-template-columns:210px minmax(0,1fr);gap:8px;min-height:300px;display:grid}.student-game .free-board>.panel-heading{grid-column:1/-1;margin:0}.student-game .free-board>.drawing-warning{grid-column:1/-1}.student-game .free-board canvas{width:min(100%,calc((var(--screen-height,100dvh) - 360px) * 4 / 3));grid-area:3/2/6;align-self:center}.student-game .free-board-colors{grid-area:3/1;align-content:start;gap:8px;padding:6px 0}.student-game #free-board-tools{grid-area:4/1;grid-template-columns:1fr;margin:0}.student-game #free-save-state{grid-area:5/1}.student-game .free-board>.panel-heading>span{font-size:12px}}.student-game [data-phase=DRAWING] #activity>.player-status{flex-shrink:0;font-size:13px;display:block}
