:root{color-scheme:light;--ink:#263e35;--muted:#586e62;--border:#c7d3bc;--green:#28674c;--cream:#fffef6;--mint:#e8f1d9;--pixel:#324e3e;font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;color:var(--ink);background:#f7f8ed;font-size:16px}*{box-sizing:border-box}body{margin:0;background-image:linear-gradient(#bac9b423 1px,transparent 1px),linear-gradient(90deg,#bac9b423 1px,transparent 1px);background-size:24px 24px;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #3f8a9b;outline-offset:3px}button:disabled{opacity:.55;cursor:default}header{background:#fffef8;border-bottom:1px solid var(--border)}.top,main,footer{max-width:1296px;margin:auto}.top{height:66px;padding:0 42px;display:flex;align-items:center;gap:17px}.brand,.right,h2,.subject,.roomfoot,.panelhead,.choices,.material,.actions,.controls{display:flex;align-items:center}.brand{gap:11px;font-weight:850;letter-spacing:-.06em;font-size:20px}.logo{width:30px;height:30px;background:#365e45;display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:6px;box-shadow:inset -2px -2px #203e30}.logo b{background:#e6d8a5}.logo b:nth-child(2){background:#98c5a6}.logo b:nth-child(3){background:#e1a18c}.logo b:nth-child(4){background:#edeacd}.slash,.topsub{color:#738575}.topsub,.right button{font-size:14px}.right{margin-left:auto;gap:16px}.quiet,.outline,.secondary,.close{background:none;border:0;font-weight:700}.outline,.secondary,.chip{background:#fcfcf2;border:1px solid #a9bca4;border-radius:6px;padding:8px 12px}.outline:hover,.secondary:hover{background:#e7efdb}main{padding:35px 42px 14px}.heading{margin-bottom:24px}.subject{gap:8px;color:#5d775b;font-size:14px;font-weight:750}.flag{width:14px;height:13px;border-left:2px solid #4f734d;display:inline-block;background:linear-gradient(#8fae75 0 68%,transparent 68%);clip-path:polygon(0 0,100% 0,75% 30%,100% 65%,14% 65%,14% 100%,0 100%)}h1,h2,h3,p{margin:0}h1{font-size:clamp(34px,3.4vw,50px);letter-spacing:-.075em;line-height:1.25;margin:5px 0;color:#283c2c;font-weight:900}h1 em{font-style:normal;color:#507447}.spark{font-size:.45em;vertical-align:top;color:#bc9052;display:inline-block;margin:2px 0 0 8px}.heading p,.roomfoot,.hint,.material span,.sectionnote{color:var(--muted)}.heading p{font-size:16px}.layout{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(290px,.85fr);align-items:start;gap:22px}.panel,.materials{background:var(--cream);border:1.5px solid #a9baa2;border-radius:12px;box-shadow:0 4px 0 #b4c3a54d}.room{overflow:hidden}.panelhead{justify-content:space-between;padding:15px 19px;border-bottom:1px solid var(--border)}h2{gap:8px;font-size:20px;letter-spacing:-.055em}.icon{font-size:24px;color:#65805b;line-height:1}.chip{color:#526947;font-size:12px;padding:4px 9px;white-space:nowrap;letter-spacing:0;font-weight:650;background:#edf3e2;border-color:#c3d1b7}.scene{background:#cfb28b;line-height:0;position:relative}.scene canvas{display:block;width:100%;height:auto;image-rendering:pixelated;cursor:crosshair}.roomfoot{gap:9px;font-size:14px;padding:13px 18px;background:#f5f6e8}.keycap{display:grid;place-items:center;width:22px;height:22px;border:1px solid #bbc7ad;border-radius:4px;background:#fffef3;color:#67845e}.side{padding:22px}.side h2{font-size:23px;margin-bottom:3px}.side .hint{font-size:14px;margin:4px 0 17px}.form label,.form legend,.fieldlabel{font-size:14px;font-weight:700}.form label{display:block;margin-bottom:5px}.form input,.searchBox,select{width:100%;border:1px solid #b9c7b2;border-radius:5px;padding:9px 11px;background:#fffef9;color:var(--ink);outline-color:#5e926a}.form input::placeholder{color:#869184}.form fieldset{padding:0;border:0;margin:13px 0}.form legend{padding:0;margin-bottom:6px}.choices{gap:8px}.choice{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);border-radius:6px;background:#f7f8ef;min-height:47px;font-size:15px;font-weight:700}.choice[aria-pressed=true]{background:#e6efd7;border:2px solid #749369}.choice canvas,.teacherPic{width:35px;height:35px;image-rendering:pixelated}.choice::after{content:'';width:8px;height:8px;border:1px solid #a9bba2;border-radius:50%}.choice[aria-pressed=true]::after{background:#648957;border:2px solid #fff;box-shadow:0 0 0 1px #93ad88}.primary{background:var(--green);border:1px solid #21513c;border-radius:6px;box-shadow:0 3px 0 #174832;color:#fffef7;font-weight:750;padding:11px 16px}.primary:hover{background:#1f5941}.primary.full{width:100%;margin-top:14px}.formError{color:#9e403e;font-size:14px;margin-top:6px}.formError:empty{display:none}.materials{margin-top:21px;display:grid;grid-template-columns:.72fr 1fr 1.12fr;align-items:center;padding:16px 22px;gap:20px}.toolname small{color:#708667;font-size:13px}.toolname h2{margin-top:2px}.material{gap:12px}.material img{width:80px;height:57px;object-fit:contain;border-radius:4px}.material span{display:block;font-size:13px;margin-top:4px}.material strong{letter-spacing:-.04em}.material{border-left:1px dashed #c2cdb7;padding-left:20px}footer{padding:20px 42px;color:#708369;font-size:13px}.miniMark{margin-right:4px}#seats:not(:empty){display:flex;gap:6px;flex-wrap:wrap;padding:10px 14px 14px}.seatBtn,.tab,.zoneBtn,.pill{border:1px solid #c1ceb8;background:#f7f9ee;padding:7px 10px;border-radius:6px;font-size:14px}.seatBtn.mine,.tab.on{background:#deebd3;border-color:#749767;font-weight:700}.stat{background:#f1f5e7;padding:12px;border-radius:6px;margin-top:12px}.stat strong{font-size:23px}.actions,.controls{gap:8px;flex-wrap:wrap}.side .actions{margin-top:12px}.side .secondary{font-size:14px}.roster{max-height:180px;overflow:auto}.roster div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #dce4d4;font-size:14px}.roster select{width:auto;font-size:13px;padding:4px}.side select{margin:4px 0}.activityBox{margin-top:20px;padding:18px}.activityTop{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sectionnote{font-size:14px;margin:8px 0 13px}.boardTools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.deckGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr));gap:10px;margin-top:12px;max-height:min(72vh,780px);overflow:auto;padding:3px}.card{border:1px solid #cad3bf;background:white;border-radius:7px;padding:4px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}.card img{width:100%;object-fit:contain;aspect-ratio:.71}.card span{font-size:12px;color:#506b51}.card.selected{outline:2px solid #608b58}.board{position:relative;aspect-ratio:1.49;background-color:#d0e8dd;background-size:100% 100%;border:1px solid var(--border);border-radius:8px;overflow:hidden;max-width:1040px;margin:auto}.zone{position:absolute;top:12%;height:82%;width:32%;overflow:auto;padding:5px;display:flex;align-content:start;flex-wrap:wrap;gap:4px;border:2px dashed transparent;align-items:flex-start}.zone.adaptive{left:1%}.zone.neutral{left:34%;top:38%;height:36%;background:#fff8;border-radius:6px}.zone.maladaptive{right:1%}.zone.over{border-color:#466c51;background:#ffffff70}.inspect{display:flex;align-items:center;gap:14px;margin:13px 0;padding:12px;background:#f0f4e7;border:1px solid #cbd7bf;border-radius:7px}.inspect img{width:65px;height:85px;object-fit:contain;background:white}.inspect strong{display:block;margin-bottom:7px}.zoneBtn.adaptive{background:#d1eceb}.zoneBtn.maladaptive{background:#f6d6d0}.zoneBtn.neutral{background:white}.zoneBtn{font-weight:650}.deckSearch{margin-top:12px}.searchBox{max-width:330px}.teacherPic{vertical-align:middle}.paused{background:#fff1cf;color:#745223;padding:9px;border-radius:6px;margin:8px 0;font-size:14px}.groupStats{margin-top:9px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.groupStats button{font-size:13px;padding:7px 2px}.groupStats b{display:block}dialog{color:var(--ink);border:1px solid var(--border);border-radius:12px;padding:26px;background:#fffef5;width:min(510px,92vw);box-shadow:0 15px 70px #1d302c40}dialog::backdrop{background:#26362971}.close{float:right;font-size:24px}dialog ol{padding-left:22px;line-height:1.8}.zoomImg{width:100%;height:min(65vh,600px);object-fit:contain}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:5;background:#294b3f;color:white;border-radius:8px;padding:12px 18px;pointer-events:none}#toast:empty{display:none}.hidden{display:none!important}
@media(min-width:1450px){main{padding-top:45px}.heading{margin-bottom:30px}}@media(max-width:870px){.top,main,footer{padding-left:20px;padding-right:20px}.layout{grid-template-columns:minmax(0,1.4fr) minmax(245px,1fr);gap:12px}.side{padding:16px}.materials{gap:8px;padding:13px}.material{padding-left:9px;gap:6px}.material img{width:58px}}@media(max-width:680px){.top{height:54px;gap:7px}.brand{font-size:17px}.right{gap:6px}.right button{font-size:13px;padding:6px}.slash,.topsub{display:none}main{padding-top:23px}.heading{margin-bottom:15px}.heading p{font-size:14px}.layout{display:flex;flex-direction:column;gap:14px}.room,.side{width:100%}.panelhead{padding:10px 14px}.roomfoot{padding:9px 12px}.materials{grid-template-columns:1fr 1fr}.toolname{grid-column:1/-1}.toolname small{display:none}.material{border:0}.material img{width:45px}.material strong{font-size:13px}.material span{font-size:11px}.choice{min-height:43px}.side{padding:17px}.inspect{align-items:flex-start;gap:8px}.zoneBtn{font-size:13px;padding:6px}.groupStats{grid-template-columns:repeat(6,1fr)}}
.card img{aspect-ratio:788/482}.inspect img{width:clamp(155px,20vw,230px);height:auto;aspect-ratio:auto}.scene canvas:active{cursor:grabbing}@media(max-width:680px){.inspect{flex-wrap:wrap}.inspect img{width:min(210px,65vw);height:auto}}
.zone.adaptive{width:37%;left:1%}.zone.maladaptive{width:34%;right:1%}.zone.neutral{left:39.5%;width:24.6%;top:30%;height:40%;background:transparent}

.deckGrid .card {
  padding: 8px 10px 12px;
  align-items: stretch;
  justify-content: flex-start;
}
.deckGrid .card img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: contain;
}
.deckGrid .cardCaption {
  border-top: 1px solid #e4e9da;
  margin-top: 4px;
  padding-top: 9px;
  text-align: left;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html,body{height:100%;overflow:hidden;background:#dfc193}
#classroomWorld{height:100vh;height:100dvh;width:100%;max-width:none;padding:0;margin:0;display:grid;place-items:center;background:linear-gradient(to bottom,#efdfb9 0 49%,#e1bd8e 51% 100%)}
#classroomWorld .scene{position:relative;width:min(100vw,184.61538vh);width:min(100vw,184.61538dvh);aspect-ratio:576/312}
#floor{height:100%;width:100%;touch-action:none;outline:0}
.worldObject{position:absolute;background:transparent;border:0;cursor:pointer;padding:0;border-radius:1px}
.worldObject:focus-visible{outline:3px solid #fff7c4;outline-offset:0}
#blackboard{left:32.3%;top:5.76%;width:35.1%;height:20%}
#door{left:93.2%;top:8.3%;width:5.6%;height:23.5%}
#tableKeys button:not(:focus-visible),.offscreen{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0;border:0}
#tableKeys button:focus-visible{position:absolute;left:35%;bottom:2%;padding:8px;z-index:2}
#entry{width:min(360px,92vw)}#entry .quiet{display:block;margin:15px auto 0;font-size:14px}
#management .side{padding:0}#management,#workBoard,#zoom{max-height:92dvh;overflow:auto}
#workBoard{width:min(1160px,97vw);padding:14px}#workBoard .activityBox{margin:0;border:0;box-shadow:none;padding:10px}#workBoard .activityTop{padding-right:32px}
#workBoard>.close,#management>.close{position:sticky;top:0;z-index:2;background:#fffdf1;border-radius:8px}
#exitRoom .actions{margin-top:18px}

.board .zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  justify-items: center;
  column-gap: 5px;
  row-gap: 0;
  padding: 4px 3px 12px;
  overflow-x: hidden;
  overflow-y: auto;
}
.zone .card {
  width: min(100%, 8.5rem);
  padding: 4px;
  gap: 2px;
  margin-block-end: -7px;
  box-shadow: 0 -1px 4px #6058462b;
}
.zone .card img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: contain;
  pointer-events: none;
}
.zone .card .cardCaption {
  order: -1;
  align-self: stretch;
  padding: 2px 2px;
  color: #273b30;
  background: #fffef6;
  font-size: clamp(.8rem, 1vw, .9rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media(max-width:580px){
  .board .zone{padding:2px 1px 10px}
  .zone .card{margin-block-end:-7px;padding:2px}
  .zone .card .cardCaption{padding:2px 1px}
}
#floor,.scene canvas,.teacherPic,.choice canvas{image-rendering:auto}
#blackboard{left:26.2%;top:4%;width:41.6%;height:22%}
#classroomWorld{height:100%;min-height:0}
body{display:grid;grid-template-rows:minmax(0,1fr) auto}
#classroomWorld .scene{width:min(100%,calc((100dvh - var(--notice-h, 48px))*1.8461538))}
.rights{display:flex;align-items:center;gap:12px;background:#fffdf7;color:#4c594e;border-top:1px solid #c8d4c3;padding:7px 15px;font-size:12px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;z-index:3}
.rights img{width:102px;height:auto;flex:none}.rights span{flex:1}
dialog>.rights{position:sticky;top:-1px;z-index:4;border:1px solid #d3dccb;border-radius:5px;margin:0 0 10px;padding:6px 9px}
dialog>.rights img{width:84px}#workBoard>.close,#management>.close{top:52px}
#workBoard{width:min(1540px,98vw);max-width:98vw}
.boardViewport{overflow-x:auto;overscroll-behavior-x:contain}.boardViewport .board{max-width:1440px;width:100%}
.boardViewport .board{container-type:inline-size}
.board .zone.neutral{grid-template-columns:minmax(0,1fr)}
@container (min-width:960px){
  .board .zone.adaptive,.board .zone.maladaptive{grid-template-columns:repeat(3,minmax(0,1fr))}
  .board .zone.neutral{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.timerFields{border:1px solid #c1ceb6;border-radius:8px;margin:13px 0;padding:10px}.timerFields legend{font-weight:700}.timerInputs{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.timerInputs input{width:3.8em;padding:5px;border:1px solid #c1ceb6;border-radius:5px;font:inherit}.finishRow{margin:8px 0 12px}
@media(max-width:650px){.rights{gap:8px;padding:5px 8px;font-size:11px}.rights img,dialog>.rights img{width:65px}.boardViewport .board{min-width:660px}#workBoard .activityBox{padding:4px}}

.deckGrid .resultBadge {
  display:inline-block;
  vertical-align:middle;
  margin:2px 0 2px 6px;
  padding:2px 8px;
  border-radius:999px;
  font-size:.84rem;
  font-weight:750;
  line-height:1.45;
  white-space:nowrap;
}
.deckGrid .resultBadge.adaptive{background:#215cb0;color:#fff}
.deckGrid .resultBadge.maladaptive{background:#af3736;color:#fff}
.deckGrid .resultBadge.neutral{background:#536069;color:#fff}
