html,body{width:100%;height:100%}input::-ms-clear{display:none}input::-ms-reveal{display:none}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:#0000;font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:0;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{text-align:left;caption-side:bottom;padding-top:.75em;padding-bottom:.3em}input,button,select,optgroup,textarea{color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{resize:vertical;overflow:auto}fieldset{border:0;min-width:0;margin:0;padding:0}legend{width:100%;max-width:100%;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal;margin-bottom:.5em;padding:0;display:block}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}.bonus-reflex{flex-direction:column;align-items:flex-start;gap:16px;width:100%;min-width:0;padding:12px 0;display:flex}.bonus-reflex h4{margin:0}.bonus-reflex-sentence{overflow-wrap:anywhere;width:100%;font-size:clamp(18px,2vw,24px);font-weight:500;line-height:1.8}.bonus-reflex-choice{color:#704600;text-align:center;vertical-align:middle;background:#fff1ca;border:2px solid #d6990b;border-radius:8px;margin:0 5px;padding:2px 12px;font-weight:750;transition:background .1s;display:inline-block}.bonus-reflex-choice.is-stopped{color:#174b9e;background:#d9e7ff;border-color:#2674ed}.bonus-reflex-actions{justify-content:center;width:100%;display:flex}.bonus-reflex-actions .ant-btn{border-radius:12px;min-width:170px;height:64px;font-size:24px;font-weight:800}@media (width<=650px){.bonus-reflex{align-items:stretch}.bonus-reflex-choice{margin:0 2px;padding:2px 6px}}.game-board-spiral{aspect-ratio:13/10;grid-template-rows:repeat(10,minmax(0,1fr));grid-template-columns:repeat(13,minmax(0,1fr));gap:4px;width:100%;min-width:0;padding:8px;display:grid}.spiral-cell{color:#fff;border:1px solid #ffffffb3;border-radius:4px;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.spiral-cell.green{background:#4b711e}.spiral-cell.yellow{background:#d6990b}.spiral-cell.blue{background:#0b6566}.spiral-cell.orange{background:#d56b0a}.spiral-number{opacity:.7;font-size:clamp(8px,.65vw,12px);position:absolute;top:3px;left:5px}.spiral-players{z-index:1;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;display:flex}.spiral-player{color:#222;background:#fff;border-radius:4px;padding:2px 4px;font-size:clamp(8px,.7vw,12px);font-weight:800}.spiral-cell:first-child,.spiral-cell:last-child{outline-offset:-3px;outline:2px solid #fff}.teacher-players{flex-direction:column;flex:1;min-height:0;display:flex}.teacher-players-header{color:#191928;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:18px;display:flex}.teacher-players-list{background:#ffffff73;border:1px solid #cbc9f5;flex-direction:column;flex:1;gap:6px;min-height:0;max-height:480px;padding:10px;display:flex;overflow-y:auto}.teacher-player-row{align-items:center;gap:8px;display:flex}.teacher-player-status{text-align:center;color:#3479d3;flex-shrink:0;width:30px;font-size:14px;font-weight:800}.teacher-player-name{color:#62649d;text-align:left;text-overflow:ellipsis;white-space:nowrap;background:#e0defb;border-radius:999px;flex:1;min-width:0;padding:6px 12px;font-weight:600;overflow:hidden}.teacher-player-number{opacity:.65;margin-right:8px;font-size:11px}.teacher-preparation{grid-template-columns:minmax(100px,.8fr) minmax(0,1.5fr) minmax(100px,1.3fr);align-items:stretch;gap:30px;width:100%;min-height:320px;display:grid}.preparation-qr{background:#fff;border-radius:8px;justify-content:center;align-items:center;min-width:0;padding:0;display:flex}.preparation-qr svg{width:100%;max-width:300px;height:auto}.preparation-main{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:18px;min-width:0;display:flex}.preparation-main h2{color:#171b2c;margin:0;font-size:clamp(30px,3vw,40px);font-weight:800}.preparation-url{letter-spacing:-.025em;overflow-wrap:anywhere;color:#171b2c;background:#fff;border:1px solid #5c69a6;border-radius:5px;padding:3px 15px 10px;font-size:clamp(20px,3vw,30px);font-weight:700}.preparation-code{color:#5c69a6;background:#fff;border:1px solid #5c69a6;border-radius:5px;flex-shrink:0;padding:0 15px;font-size:clamp(22px,3vw,45px);font-weight:700}.preparation-start{border-radius:10px;width:100%;max-width:520px;height:60px;margin-top:6px;font-size:clamp(18px,2vw,30px);font-weight:750}.preparation-participants{flex-direction:column;min-width:0;min-height:0;display:flex}.preparation-participants-header{color:#171b2c;padding-bottom:12px;font-size:18px}.preparation-player-list{background:#ffffff73;border-radius:8px;flex-direction:column;flex:1;gap:7px;min-height:0;max-height:310px;padding:8px;display:flex;overflow-y:auto}.preparation-player{align-items:center;gap:6px;min-width:0;display:flex}.preparation-player-number{color:#5c69a699;flex-shrink:0;font-size:11px;font-weight:700}.preparation-player-name{color:#555c94;text-align:left;white-space:nowrap;text-overflow:ellipsis;background:#e0defb;border-radius:999px;flex:1;min-width:0;padding:7px 12px;font-weight:600;overflow:hidden}.preparation-player-name.offline,.preparation-player-number.offline{opacity:.45}.preparation-player .ant-btn{color:#3979bb;flex-shrink:0}@media (width<=1100px){.teacher-preparation{grid-template-columns:minmax(130px,1fr) minmax(0,2fr)}.preparation-participants{grid-column:1/-1}}@media (width<=650px){.teacher-preparation{grid-template-columns:1fr}.preparation-participants{grid-column:auto}.preparation-qr svg{max-width:220px}}:root{color:#24334c;--page-bg:#eef2f8;--dashboard-bg:#e7edf5;--teacher-bg:#f2effd;--player-bg:#e7f0ff;--logs-bg:#f8faff;--surface:#fff;--text-primary:#24334c;--text-muted:#70809a;--text-purple:#646c9b;--border:#d5ddeb;--border-teacher:#d8d2ec;--border-player:#c9d9f4;--primary:#2674ed;--shadow:0 3px 14px #2334570d;--radius:10px;background:#eef2f8;font-family:Inter,system-ui,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}body{background:var(--page-bg)}.app{flex-direction:column;width:100%;min-height:100vh;padding:4px 16px;display:flex}.app-header{grid-template-columns:minmax(190px,260px) minmax(180px,1fr) minmax(130px,220px) minmax(330px,auto);align-items:center;gap:20px;margin-bottom:2px;padding:4px 0;display:grid}.app-header h2{margin:0;line-height:1.1}.app-header-left{flex-direction:column;justify-content:center;min-width:0;display:flex}.app-header-left .ant-typography-secondary{font-size:14px}.app-header-center,.app-header-code{justify-content:center;min-width:0;display:flex}.header-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:540px;min-height:76px;box-shadow:var(--shadow);flex-direction:column;justify-content:center;align-items:center;padding:12px 20px;display:flex}.header-box-label{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px;font-size:13px;font-weight:650}.header-box-value{color:var(--text-primary);text-align:center;text-transform:uppercase;font-size:clamp(18px,1.8vw,27px);font-weight:800}.header-inline-box{justify-content:center;align-items:center;gap:14px;min-width:0;min-height:76px;padding:0 10px;display:flex}.header-inline-label,.header-inline-value{color:var(--text-primary);font-size:clamp(18px,1.7vw,26px);font-weight:800}.header-inline-label{text-transform:uppercase}.header-inline-value{font-variant-numeric:tabular-nums}.app-header-right{justify-content:flex-end;align-items:center;gap:16px;min-width:0;display:flex}.header-reset-button{border-radius:9px;height:42px;padding:0 18px;font-weight:650}.mode-switch{white-space:nowrap;align-items:center;gap:12px;font-weight:600;display:flex}.dashboard{background:var(--dashboard-bg);border:1px solid var(--border);border-radius:12px;flex:1;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;min-height:0;padding:14px;display:grid}.left-column,.right-column{flex-direction:column;gap:12px;min-width:0;min-height:0;display:flex}.client{border:1px solid var(--border);border-radius:var(--radius);min-width:0;box-shadow:var(--shadow);padding:14px;overflow:hidden}.client.teacher{background:var(--teacher-bg);border-color:var(--border-teacher);width:100%;min-height:330px}.client.teacher .client-body{width:100%}.client.player{background:var(--player-bg);border-color:var(--border-player);padding:10px}.client-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.client-body{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.players-toolbar{align-items:center;gap:18px;width:100%;margin-bottom:4px;display:flex}.players-toolbar>.ant-btn{border-radius:var(--radius);flex:1;min-width:0;height:52px;font-size:16px;font-weight:650}.players-options{flex-direction:column;flex-shrink:0;gap:10px;display:flex}.auto-code-switch,.players-count-option{white-space:nowrap;color:var(--text-purple);align-items:center;gap:10px;font-size:14px;display:flex}.players-count-option{justify-content:space-between}.client.player .client-header{gap:12px}.player-header-name{min-width:0;color:var(--text-purple);text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600;overflow:hidden}.player-header-actions{flex-shrink:0;align-items:center;gap:6px;display:flex}.player-header-actions .ant-btn{font-size:18px}.client.player .client-body{margin-top:2px;display:block}.player-join-form{align-items:center;gap:12px;width:100%;display:flex}.player-code-input{flex:0 0 24%;min-width:0}.player-name-input{flex:1;min-width:0}.player-join-button{flex:0 0 24%;font-weight:650}.player-join-form .ant-input,.player-join-form .ant-btn{border-radius:8px;font-size:14px}.client.player:has(.player-waiting-tag){padding:0 4px}.client.player:has(.player-waiting-tag) .client-header{min-height:20px}.player-waiting-tag{white-space:nowrap;border-radius:6px;margin:0;padding:0 4px;font-size:11px}.teacher-game{grid-template-columns:minmax(0,1fr) 260px;align-items:stretch;gap:20px;width:100%;display:grid}.teacher-game-board{min-width:0}.teacher-game-sidebar{flex-direction:column;min-width:0;display:flex}.teacher-game-actions{gap:12px;margin-top:auto;padding-top:16px;display:flex}.teacher-game-actions .ant-btn{flex:1;height:64px;font-weight:700}.client.player.in-game{padding:16px 18px;position:relative}.client.player.in-game .client-header{z-index:2;position:absolute;top:12px;right:18px}.client.player.in-game .client-body{width:100%;margin:0}.player-game-layout{grid-template-columns:110px minmax(0,1fr);align-items:center;gap:20px;width:100%;margin:0;display:grid}.player-game-main{flex-direction:column;gap:12px;min-width:0;padding-right:110px;display:flex}.player-game-title{color:var(--text-purple);text-overflow:ellipsis;white-space:nowrap;font-size:18px;font-weight:600;overflow:hidden}.player-game-message{color:var(--text-muted);font-size:clamp(20px,3vw,25px);font-weight:300;line-height:1.08}.player-game-actions-row{flex-wrap:nowrap;gap:10px;display:flex}.player-action-button{border-radius:10px;width:100%;min-width:0;height:58px;font-size:18px;font-weight:700}.client.player.in-game .player-game-actions-row .ant-btn{flex:1;min-width:0;padding-inline:8px;font-size:14px}.player-game-tile{aspect-ratio:1;color:#fff;border-radius:8px;justify-content:center;align-items:center;width:100%;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px #ffffff40}.player-game-tile-number,.player-game-tile-corner,.player-game-tile-dice-result{color:#fff;font-size:18px;font-weight:700;line-height:1;position:absolute}.player-game-tile-number{top:8px;left:10px}.player-game-tile-corner{top:6px;right:10px}.player-game-tile-main{text-align:center;font-size:42px;font-weight:700;line-height:1}.player-game-tile-dice{font-size:58px}.tile-dice{background:#2377f2}.tile-green{background:#4b711e}.tile-yellow{background:#d6990b}.tile-blue{background:#0b6566}.tile-orange{background:#d56b0a}.tile-red{background:#f20a0a}button.player-game-tile{appearance:none;border:0;padding:0;font-family:inherit}button.player-game-tile:disabled{opacity:1;cursor:default}button.player-game-tile.tile-dice:not(:disabled){cursor:pointer;transition:transform .15s,filter .15s}button.player-game-tile.tile-dice:not(:disabled):hover{filter:brightness(1.12);transform:scale(1.05)}button.player-game-tile.tile-dice:not(:disabled):active{transform:scale(.95)}button.player-game-tile.tile-dice:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.player-game-tile-dice-result{animation:3s ease-out forwards dice-result-fade;top:6px;right:10px}@keyframes dice-result-fade{0%,40%{opacity:1}to{opacity:0}}.logs{background:var(--logs-bg);border:1px solid var(--border);border-radius:var(--radius);min-height:170px;box-shadow:var(--shadow);padding:12px}.logs-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.logs-list{height:175px;font-size:12px;overflow-y:auto}.log-entry{overflow-wrap:anywhere;border-bottom:1px solid #e3eaf5;padding:3px 0}.log-entry code{white-space:pre-wrap}.log-sent{color:#225eae}.log-received{color:#247450}.log-error{color:#b23b49}:is(.client.teacher:has(.unity-frame),.client.player:has(.unity-frame)){flex-direction:column;min-height:0;padding:8px;display:flex;overflow:hidden}.unity-frame{aspect-ratio:16/9;border:none;border-radius:6px;width:100%;height:auto;min-height:0;display:block;overflow:hidden}.hint{color:var(--text-muted);font-size:13px}@media (width<=1200px){.app-header{grid-template-columns:minmax(190px,1fr) minmax(230px,1fr);gap:14px}.app-header-center,.app-header-code{justify-content:stretch}.header-box{max-width:none}.app-header-right{justify-content:flex-end}}@media (width<=1000px){.teacher-game{grid-template-columns:1fr}.teacher-game-actions{margin-top:0}}@media (width<=750px){.app{padding:10px}.app-header{grid-template-columns:1fr}.app-header-left,.app-header-center,.app-header-code,.app-header-right{justify-content:flex-start}.header-inline-box{min-height:50px;padding:0}.app-header-right{flex-wrap:wrap}.dashboard{grid-template-columns:1fr}}@media (width<=650px){.players-toolbar,.player-join-form{flex-wrap:wrap}.player-code-input,.player-name-input{flex:40%}.player-join-button{flex:100%}.client.player.in-game .player-game-main{padding-right:70px}.client.player.in-game .player-game-layout{grid-template-columns:90px minmax(0,1fr);gap:12px}.client.player.in-game .player-game-actions-row{flex-wrap:wrap}.client.player.in-game .player-game-actions-row .ant-btn{flex:100%}}@media (prefers-reduced-motion:reduce){button.player-game-tile.tile-dice:not(:disabled){transition:none}.player-game-tile-dice-result{animation-duration:.01ms}}.observer-page{gap:20px;max-width:1600px;margin:0 auto}.observer-page>.client.teacher{flex:1}.observer-heading{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.observer-heading h3{margin:0}.observer-page .teacher-game{grid-template-columns:minmax(0,1fr) 280px}@media (width<=900px){.observer-page .teacher-game{grid-template-columns:1fr}}.observer-selector{background:#fff;border:1px solid #d5deed;border-radius:12px;flex-wrap:wrap;align-items:center;gap:16px;padding:16px 20px;display:flex}.observer-selector>span{color:#24334c;font-weight:600}.teacher-login-page{background:radial-gradient(circle at 20% 15%,#d9e7ff 0%,#0000 40%),linear-gradient(135deg,#eef2f8 0%,#e8e3f6 100%);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.teacher-login-card{background:#fff;border:1px solid #d5deed;border-radius:18px;width:100%;max-width:440px;padding:40px;box-shadow:0 16px 50px #2334551a}.teacher-login-card h2{color:#24334c;margin-bottom:4px}.teacher-login-hint{text-align:center;margin-top:22px;font-size:12px;display:block}@media (width<=500px){.teacher-login-card{padding:26px}}.right-column.is-hidden{display:none}.player-page{background:var(--page-bg);flex-direction:column;min-height:100vh;padding:24px;display:flex}.player-page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;width:100%;max-width:1100px;margin:0 auto 24px;display:flex}.player-page-header h2{margin:0}.player-page-content{width:100%;max-width:1100px;margin:0 auto}.player-page .client.player{border-radius:16px;min-height:220px;padding:24px}.player-page .player-game-layout{grid-template-columns:180px minmax(0,1fr);gap:32px}.player-page .player-game-main{padding-right:0}.player-page .client.player.in-game .client-header{top:12px;right:18px}.player-page .player-game-title{font-size:26px}.player-page .player-game-message{font-size:clamp(24px,3vw,36px)}.player-page .player-join-form{width:100%}@media (width<=650px){.player-page{padding:12px}.player-page .client.player{padding:16px}.player-page .player-game-layout{grid-template-columns:110px minmax(0,1fr);gap:14px}.player-page .player-game-title{font-size:20px}.player-page .player-game-actions-row{flex-wrap:wrap}}.app-header-right{flex-wrap:wrap;gap:12px}.app-header-right .mode-switch{white-space:nowrap;align-items:center;gap:8px;font-size:13px;display:flex}.app-header-right .header-reset-button{flex-shrink:0}.player-mirror-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.player-mirror-header strong{color:var(--text-purple)}.player-mirror-indicators{align-items:center;gap:8px;display:flex}.player-mirror-waiting{color:var(--text-muted);margin-top:8px;font-size:13px}.player-mirror .player-game-layout{margin-top:12px}.player-mirror .player-game-main{padding-right:0}.card-content{flex-direction:column;align-items:flex-start;gap:18px;width:100%;max-width:760px;display:flex}.card-content h4{color:var(--text-primary);margin:0}.card-content .ant-radio-wrapper{white-space:normal;line-height:1.5}.card-content p{white-space:pre-line;margin:0;font-size:17px;line-height:1.6}.card-result{background:#ffffffbf;border-radius:12px;width:100%;padding:18px}.card-result-title{margin-bottom:12px;font-size:22px;font-weight:700}.card-result p{white-space:pre-line;line-height:1.6}.dashboard.players-hidden{grid-template-columns:minmax(0,1fr)}.dashboard.players-hidden .right-column{display:none}
