@font-face { font-family: LeeSeoyun; src: url("/assets/LeeSeoyun.ttf") format("truetype"); font-display: swap; }
:root { --paper: #fbfaf6; --surface: #fffefa; --ink: #294866; --muted: #607180; --line: #e7e5dc; --yellow: #f9e7a8; --peach: #f4d1be; --green: #d6e4cd; --blue: #d4e4ec; --lavender: #e1daee; --danger: #a04e41; --shadow: 0 6px 22px rgba(59, 68, 65, .035); color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0px; min-width: 320px; font-size: 14px; line-height: 1.6; }
body, button, input, select, textarea { font-family: inherit; }
button, input, select, textarea { font-size: 14px; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: var(--ink); border: 0px; background: transparent; }
button, a { touch-action: manipulation; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: rgb(181, 205, 219) solid 3px; outline-offset: 3px; }
button:not(:disabled):active { transform: translateY(1px); }
img { max-width: 100%; display: block; }
svg { vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, h4, p { margin-top: 0px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; }
h1, h2 { font-family: LeeSeoyun, sans-serif; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: 45px; margin-bottom: 12px; }
h2 { font-size: 30px; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 600; }
p { color: var(--muted); }
small { font-size: 12px; }
label { display: block; font-size: 13px; font-weight: 600; }
input, select, textarea { color: var(--ink); min-width: 0px; }
::selection { background: var(--yellow); color: var(--ink); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.app-shell { min-height: 100vh; background: var(--paper); }
.app-shell::before { content: ""; position: fixed; z-index: 0; inset: 0px; pointer-events: none; background: url("/assets/paper-texture.webp") center center / 600px auto; opacity: 0.09; mix-blend-mode: multiply; }
.app-shell > * { position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 86px; padding: 0px 36px; border-bottom: 1px solid var(--line); background: rgba(251, 250, 246, 0.92); z-index: 10; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 76px; height: 42px; object-fit: contain; }
.brand-name { font-family: LeeSeoyun, sans-serif; font-size: 27px; color: var(--ink); line-height: 1; }
.brand-name small { display: block; font-family: inherit; font-size: 12px; margin-top: 7px; color: var(--muted); }
.brand > span:not(.brand-name) { border-left: 1px solid rgb(212, 217, 217); padding-left: 14px; }
.topbar > div:last-child:not(.brand), .topbar-actions { display: flex; align-items: center; gap: 10px; }
.eyebrow { display: block; font-size: 10px; font-weight: 650; letter-spacing: 0.16em; color: rgb(133, 145, 143); text-transform: uppercase; margin-bottom: 12px; }
.section-label { display: block; margin: 0px 0px 13px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: rgb(132, 145, 143); }
.pill, .badge { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); padding: 5px 10px; border-radius: 100px; color: var(--muted); background: rgb(255, 253, 248); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.badge { background: rgb(242, 243, 234); border: 0px; font-size: 10px; padding: 4px 8px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgb(132, 165, 130); box-shadow: rgba(214, 228, 205, 0.396) 0px 0px 0px 3px; }
.primary, .secondary, .ghost, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border-radius: 10px; padding: 11px 17px; font-size: 13px; font-weight: 550; transition: background 0.16s, border-color 0.16s, box-shadow 0.16s, transform 0.16s; }
.primary { background: var(--ink); color: rgb(255, 254, 250); border: 1px solid var(--ink); box-shadow: rgba(28, 53, 68, 0.094) 0px 3px 0px; }
.primary:hover:not(:disabled) { background: rgb(54, 89, 120); border-color: rgb(54, 89, 120); box-shadow: rgba(41, 72, 102, 0.1) 0px 4px 10px; }
.secondary { background: rgb(255, 254, 250); color: var(--ink); border: 1px solid rgb(218, 221, 213); }
.secondary:hover:not(:disabled) { background: rgb(244, 242, 233); border-color: rgb(203, 208, 199); }
.ghost { color: var(--muted); border: 1px solid transparent; }
.ghost:hover:not(:disabled) { background: rgb(240, 240, 233); }
.danger { border: 1px solid rgb(235, 214, 205); background: rgb(251, 239, 234); color: var(--danger); }
.danger:hover:not(:disabled) { background: rgb(247, 225, 216); }
.small { min-height: 33px; padding: 6px 11px; font-size: 11px; border-radius: 8px; }
.input, input:not([type="color"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]):not(.sudoku-cell), select, textarea { width: 100%; border: 1px solid rgb(218, 223, 213); border-radius: 9px; background: rgb(255, 254, 250); min-height: 44px; padding: 10px 13px; line-height: 1.5; outline-color: rgb(192, 213, 222); transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: rgb(148, 175, 189); box-shadow: rgba(212, 228, 236, 0.314) 0px 0px 0px 3px; }
input::placeholder, textarea::placeholder { color: rgb(160, 168, 167); }
input[type="range"] { width: 100%; accent-color: var(--ink); }
input[type="color"] { width: 38px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: rgb(255, 255, 255); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }
textarea { resize: vertical; min-height: 94px; }
label > input, label > select, label > textarea { margin-top: 7px; }
.landing { max-width: 1180px; padding: 60px 48px 40px; margin: auto; display: grid; grid-template-columns: 1.08fr 0.85fr; gap: 58px; align-items: center; min-height: calc(-86px + 100vh); }
.hero-copy { padding: 6px 0px 40px; }
.hero-copy .eyebrow { letter-spacing: 0.17em; margin-bottom: 23px; }
.hero-copy h1 { font-size: clamp(48px, 5.2vw, 72px); line-height: 1.1; max-width: 610px; margin-bottom: 24px; }
.hero-copy h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero-copy h1 em::after { content: ""; position: absolute; left: -4px; right: -4px; height: 15px; bottom: 1px; background: rgba(249, 231, 168, 0.467); z-index: -1; transform: rotate(-1deg); border-radius: 40%; }
.hero-copy > p { max-width: 465px; line-height: 1.9; font-size: 14px; margin-bottom: 24px; }
.hero-copy ul { list-style: none; padding: 0px; margin: 25px 0px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-copy li { color: var(--muted); font-size: 12px; padding: 5px 10px; background: rgb(240, 242, 233); border-radius: 20px; }
.hero-art { position: relative; min-height: 285px; display: grid; place-items: center; margin: 25px 0px; }
.hero-art > img { max-width: 290px; max-height: 300px; object-fit: contain; }
.hero-art::before { content: ""; width: 280px; height: 245px; position: absolute; border-radius: 46% 53% 42% 57%; background: rgb(237, 240, 227); z-index: -1; transform: rotate(-8deg); }
.hero-art .hand-note { position: absolute; right: 10px; top: 12px; transform: rotate(9deg); }
.hand-note { font-family: LeeSeoyun, sans-serif; color: rgb(114, 131, 137); font-size: 24px; line-height: 1.1; }
.hero-doodle { position: absolute; font-family: LeeSeoyun, sans-serif; font-size: 26px; transform: rotate(-10deg); color: rgb(120, 153, 154); }
.join-card { border: 1px solid rgb(221, 220, 209); border-radius: 19px; background: rgb(255, 254, 250); padding: 31px; box-shadow: rgba(86, 96, 72, 0.03) 0px 12px 32px; }
.join-card h2 { font-size: 31px; margin: 4px 0px 9px; }
.join-card > p { font-size: 12px; margin-bottom: 23px; }
.join-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: rgb(240, 240, 231); border-radius: 10px; margin-bottom: 25px; }
.join-tabs button { min-height: 38px; border-radius: 7px; font-size: 12px; color: rgb(122, 133, 137); }
.join-tabs button.active, .join-tabs button[aria-selected="true"] { background: rgb(255, 254, 250); color: var(--ink); box-shadow: rgba(68, 81, 60, 0.047) 0px 2px 5px; font-weight: 600; }
.join-form { display: grid; gap: 17px; }
.join-form .primary { margin-top: 4px; width: 100%; }
.join-form > p, .join-card footer { margin: 0px; text-align: center; font-size: 11px; color: rgb(137, 145, 141); }
.join-card .notice { margin-top: 18px; }
.workspace { display: grid; grid-template-columns: 216px minmax(0px, 1fr); min-height: calc(-86px + 100vh); }
.sidebar { padding: 25px 17px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: rgb(248, 248, 241); gap: 4px; }
.sidebar .section-label { padding: 0px 13px; margin: 11px 0px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 13px; border-radius: 9px; color: rgb(108, 123, 132); min-height: 45px; font-size: 13px; font-weight: 450; transition: background 0.15s; }
.nav-item > span:first-child, .nav-item > svg { font-size: 19px; width: 20px; height: 20px; text-align: center; color: rgb(137, 153, 148); }
.nav-item .badge { margin-left: auto; }
.nav-item:hover { background: rgb(238, 238, 228); }
.nav-item.active { background: rgb(232, 237, 223); color: var(--ink); font-weight: 600; }
.nav-item.active > span:first-child, .nav-item.active > svg { color: var(--ink); }
.side-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 10px 0px; font-size: 11px; color: rgb(137, 145, 141); }
.side-bottom img { width: 66px; height: 68px; object-fit: contain; margin: 0px auto 11px; }
.side-bottom p { margin: 0px 0px 12px; font-family: LeeSeoyun, sans-serif; font-size: 20px; text-align: center; }
.side-bottom .danger { width: 100%; }
.main-panel { min-width: 0px; padding: 31px 39px 45px; max-width: 1560px; width: 100%; margin: 0px auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.page-head h1 { font-size: 39px; margin-bottom: 6px; }
.page-head p { font-size: 12px; margin: 0px; line-height: 1.7; }
.page-head .eyebrow { margin-bottom: 8px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .input, .toolbar select { width: auto; min-width: 160px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0px, 1.6fr) minmax(270px, 1fr); gap: 22px; align-items: start; }
.dashboard-grid > .welcome-banner, .dashboard-grid > .session-strip { grid-column: 1 / -1; }
.welcome-banner { background: rgb(232, 237, 223); border: 1px solid rgb(221, 228, 212); border-radius: 14px; padding: 26px 29px; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 148px; overflow: hidden; position: relative; }
.welcome-banner h2 { font-size: 32px; margin: 0px 0px 8px; }
.welcome-banner p { max-width: 540px; color: rgb(104, 123, 107); font-size: 12px; margin: 0px; line-height: 1.8; }
.welcome-banner .primary { margin-top: 16px; }
.welcome-banner > img, .welcome-art { width: 118px; max-height: 125px; object-fit: contain; flex-shrink: 0; margin: -9px 25px -12px 0px; }
.welcome-banner .hand-note { color: rgb(115, 133, 108); font-size: 31px; padding-right: 12px; transform: rotate(-6deg); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 15px; }
.activity-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0px; min-height: 174px; border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: rgb(255, 254, 250); box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.activity-card:hover:not(:disabled) { transform: translateY(-3px); border-color: rgb(196, 207, 191); box-shadow: rgba(82, 96, 73, 0.043) 0px 9px 22px; }
.activity-card:disabled { opacity: 0.7; }
.activity-card .card-icon { margin-bottom: 16px; }
.activity-card h3 { font-size: 16px; margin: 0px 0px 5px; line-height: 1.4; }
.activity-card p { font-size: 11px; line-height: 1.6; margin: 0px 0px 13px; }
.activity-card > .badge { position: absolute; right: 15px; top: 17px; }
.activity-card > .card-meta { margin-top: auto; }
.card-icon { width: 43px; height: 43px; display: inline-grid; place-items: center; border-radius: 12px; font-size: 24px; color: var(--ink); background: var(--yellow); line-height: 1; }
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.activity-card:nth-child(6n+2) .card-icon { background: var(--peach); }
.activity-card:nth-child(6n+3) .card-icon { background: var(--green); }
.activity-card:nth-child(6n+4) .card-icon { background: var(--blue); }
.activity-card:nth-child(6n+5) .card-icon { background: var(--lavender); }
.activity-card:nth-child(6n+6) .card-icon { background: rgb(232, 223, 203); }
.card-meta { display: flex; align-items: center; gap: 7px; width: 100%; color: rgb(139, 150, 148); font-size: 10px; }
.card-meta > span:last-child { margin-left: auto; }
.card-meta svg { width: 13px; height: 13px; }
.panel { background: rgb(255, 254, 250); border: 1px solid var(--line); border-radius: 13px; padding: 23px; box-shadow: var(--shadow); min-width: 0px; }
.panel + .panel { margin-top: 20px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-title h2 { font-size: 25px; margin: 0px; }
.panel-title h3 { margin: 0px; font-size: 14px; }
.panel-title > span, .panel-title > a { font-size: 11px; color: rgb(130, 144, 140); }
.session-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 17px; border: 1px solid rgb(220, 229, 214); background: rgb(241, 245, 237); border-radius: 10px; font-size: 12px; }
.session-strip b { font-weight: 600; }
.session-strip p { margin: 0px; font-size: 11px; }
.session-strip .toolbar { justify-content: flex-end; }
.split { display: grid; grid-template-columns: minmax(0px, 1.35fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.split > .panel + .panel { margin-top: 0px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 23px; }
.stat-card { background: rgb(255, 254, 250); border: 1px solid var(--line); border-radius: 11px; padding: 17px 20px; }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; font-family: LeeSeoyun, sans-serif; font-size: 34px; line-height: 1.1; margin-top: 8px; font-weight: 400; }
.stat-card strong span { font-family: inherit; font-size: 19px; color: var(--muted); }
.qr-panel { text-align: center; background: rgb(246, 245, 237); padding: 22px; border: 1px solid rgb(228, 227, 216); border-radius: 12px; }
.qr-code { display: block; background: white; padding: 12px; width: 174px; height: 174px; margin: 0px auto 16px; border-radius: 10px; border: 1px solid rgb(228, 227, 216); image-rendering: pixelated; }
.qr-code img, .qr-code canvas, img.qr-code { width: 174px; height: 174px; object-fit: contain; }
.room-code { font-family: LeeSeoyun, sans-serif; font-size: 42px; letter-spacing: 0.13em; line-height: 1.15; color: var(--ink); margin-bottom: 9px; }
.qr-panel p { font-size: 11px; margin-bottom: 13px; overflow-wrap: anywhere; }
.qr-panel .toolbar { justify-content: center; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 11px; }
.student-card { border: 1px solid rgb(228, 232, 220); background: rgb(249, 251, 245); padding: 14px; border-radius: 10px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.student-card.offline { background: rgb(247, 246, 241); color: rgb(161, 168, 164); border-color: var(--line); }
.student-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: LeeSeoyun, sans-serif; font-size: 22px; background: rgb(228, 234, 203); color: rgb(92, 117, 93); }
.student-card:nth-child(4n+2) .student-avatar { background: var(--peach); color: rgb(140, 100, 87); }
.student-card:nth-child(4n+3) .student-avatar { background: var(--blue); color: rgb(102, 129, 138); }
.student-card:nth-child(4n+4) .student-avatar { background: var(--lavender); color: rgb(124, 113, 144); }
.student-card b { font-size: 12px; display: block; font-weight: 600; }
.student-card small { font-size: 10px; color: rgb(136, 149, 137); display: block; }
.student-actions { display: flex; gap: 5px; width: 100%; padding-top: 5px; }
.student-actions button { min-height: 25px; font-size: 10px; padding: 3px 7px; }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed rgb(220, 225, 212); border-radius: 11px; color: rgb(141, 151, 144); font-size: 12px; line-height: 1.8; }
.empty > span, .empty > svg { display: block; margin: 0px auto 12px; font-size: 32px; color: rgb(190, 201, 182); }
.empty p { margin: 0px; }
.chat-list { display: flex; flex-direction: column; gap: 13px; min-height: 175px; max-height: 420px; overflow-y: auto; padding: 3px 4px 12px 0px; scrollbar-width: thin; scrollbar-color: rgb(213, 220, 204) transparent; }
.chat-message { padding: 11px 13px; background: rgb(244, 245, 238); border-radius: 10px; max-width: 91%; align-self: flex-start; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.chat-message.self { align-self: flex-end; background: rgb(234, 240, 226); }
.chat-message.question { background: rgb(252, 243, 215); border: 1px solid rgb(240, 225, 180); }
.chat-message b { display: block; color: var(--ink); font-size: 10px; margin-bottom: 4px; font-weight: 600; }
.chat-message p { color: var(--ink); margin: 0px; }
.chat-message small { display: block; font-size: 9px; color: rgb(149, 160, 149); margin-top: 5px; text-align: right; }
.chat-message .toolbar { margin-top: 8px; }
.chat-compose { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 10px; }
.chat-compose input { min-height: 39px !important; font-size: 12px; }
.chat-compose .primary { min-height: 39px; padding: 9px 13px; flex-shrink: 0; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 18px; align-items: start; }
.tool-panel { border: 1px solid var(--line); border-radius: 13px; background: rgb(255, 254, 250); padding: 23px; min-width: 0px; }
.tool-panel h2 { font-size: 29px; }
.tool-panel > p { font-size: 12px; }
.tool-panel .toolbar { margin-top: 18px; }
.timer-face { font-family: LeeSeoyun, sans-serif; color: var(--ink); font-size: clamp(65px, 10vw, 100px); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0.015em; text-align: center; margin: 29px 0px; }
.timer-face.running { color: rgb(100, 129, 103); }
.timer-face.finished { color: rgb(172, 121, 93); }
.timer-presets { display: flex; justify-content: center; gap: 8px; margin: 15px 0px; }
.timer-presets button { background: rgb(242, 242, 233); border-radius: 7px; padding: 7px 12px; font-size: 11px; }
.gomoku-board { display: grid; grid-template-columns: repeat(15, 1fr); aspect-ratio: 1 / 1; max-width: 620px; width: 100%; margin: 15px auto; padding: 12px; background: rgb(232, 212, 171); border: 1px solid rgb(213, 188, 139); border-radius: 9px; box-shadow: rgba(201, 167, 103, 0.07) 0px 0px 35px inset; touch-action: manipulation; }
.gomoku-cell { position: relative; padding: 0px; min-width: 0px; aspect-ratio: 1 / 1; border-radius: 0px; background: linear-gradient(90deg, transparent calc(50% - 0.5px), rgb(173, 148, 119) calc(50% - 0.5px), rgb(173, 148, 119) calc(50% + 0.5px), transparent calc(50% + 0.5px)), linear-gradient(transparent calc(50% - 0.5px), rgb(173, 148, 119) calc(50% - 0.5px), rgb(173, 148, 119) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.gomoku-cell:hover:not(.black):not(.white) { background-color: rgba(241, 228, 200, 0.314); }
.gomoku-cell.black::after, .gomoku-cell.white::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; box-shadow: rgba(113, 86, 50, 0.27) 1px 2px 3px; }
.gomoku-cell.black::after { background: radial-gradient(circle at 33% 25%, rgb(83, 92, 92), rgb(38, 49, 54) 66%); }
.gomoku-cell.white::after { background: radial-gradient(circle at 33% 25%, rgb(255, 254, 250), rgb(228, 229, 220) 75%); border: 1px solid rgb(203, 198, 174); }
.gomoku-cell.last::before { content: ""; width: 5px; height: 5px; background: rgb(188, 130, 104); border-radius: 50%; position: absolute; left: calc(50% - 2.5px); top: calc(50% - 2.5px); z-index: 2; }
.game-status { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; background: rgb(243, 243, 234); border-radius: 9px; margin: 14px 0px; }
.bingo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 460px; margin: 20px auto; }
.bingo-cell { border: 1px solid rgb(225, 227, 215); background: rgb(249, 250, 242); border-radius: 9px; aspect-ratio: 1 / 1; font-family: LeeSeoyun, sans-serif; font-size: 29px; display: grid; place-items: center; transition: background 0.15s, transform 0.15s; }
.bingo-cell:hover { background: rgb(237, 240, 225); }
.bingo-cell.drawn { background: rgb(224, 234, 203); border-color: rgb(186, 206, 170); color: rgb(85, 113, 85); }
.bingo-cell.drawn::after { content: ""; width: 60%; height: 60%; border: 2px solid rgb(150, 176, 128); border-radius: 50%; position: absolute; }
.bingo-cell { position: relative; }
.number-ball { margin: 20px auto; width: 94px; height: 94px; border-radius: 50%; background: var(--yellow); font-family: LeeSeoyun, sans-serif; font-size: 49px; display: grid; place-items: center; border: 1px solid rgb(236, 214, 150); box-shadow: rgba(228, 212, 163, 0.37) 0px 4px 0px; }
.video-wrap { overflow: hidden; aspect-ratio: 16 / 9; width: 100%; background: rgb(38, 58, 73); border-radius: 11px; position: relative; margin: 16px 0px; display: grid; place-items: center; color: rgb(209, 222, 224); }
.video-wrap video, .video-wrap iframe { width: 100%; height: 100%; border: 0px; object-fit: contain; }
.video-wrap p { color: rgb(209, 222, 224); font-family: LeeSeoyun, sans-serif; font-size: 25px; text-align: center; padding: 20px; }
.video-controls { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.video-controls input { flex: 1 1 0%; min-width: 180px; }
.video-controls .primary, .video-controls .secondary { flex-shrink: 0; }
.quiz-options { display: grid; gap: 9px; margin: 18px 0px; }
.quiz-option { display: flex; text-align: left; align-items: center; gap: 13px; width: 100%; padding: 14px 17px; border: 1px solid rgb(226, 229, 218); border-radius: 10px; background: rgb(255, 254, 250); font-size: 13px; }
.quiz-option:hover { background: rgb(241, 244, 232); }
.quiz-option.selected, .quiz-option.correct { border-color: rgb(170, 193, 147); background: rgb(232, 240, 220); }
.quiz-option.incorrect { border-color: rgb(222, 181, 161); background: rgb(250, 233, 223); }
.quiz-option span:first-child { display: grid; place-items: center; min-width: 27px; height: 27px; font-family: LeeSeoyun, sans-serif; font-size: 20px; border-radius: 50%; background: rgb(240, 241, 232); }
.quiz-question { font-family: LeeSeoyun, sans-serif; font-size: 31px; line-height: 1.4; margin: 21px 0px; }
.math-problem { padding: 30px 15px; border: 1px solid rgb(236, 228, 199); background: rgb(252, 247, 230); border-radius: 11px; text-align: center; font-family: LeeSeoyun, sans-serif; font-size: 42px; margin: 17px 0px; }
.math-problem small { display: block; font-family: inherit; font-size: 18px; color: rgb(155, 146, 123); margin-bottom: 12px; }
.result { background: rgb(238, 244, 231); border: 1px solid rgb(220, 232, 208); padding: 13px 16px; border-radius: 9px; color: rgb(97, 119, 93); font-size: 13px; margin-top: 14px; }
.result.error { background: rgb(252, 240, 232); border-color: rgb(240, 215, 200); color: rgb(158, 115, 96); }
.drawing-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: rgb(242, 242, 233); padding: 9px; border-radius: 9px; margin: 14px 0px 12px; }
.drawing-tools button { width: 35px; height: 35px; border-radius: 7px; font-size: 17px; border: 1px solid transparent; }
.drawing-tools button:hover, .drawing-tools button.active { background: rgb(255, 254, 250); border-color: rgb(220, 225, 210); }
.drawing-tools label { font-size: 10px; font-weight: 400; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.drawing-tools input[type="range"] { width: 80px; }
.drawing-tools .color-swatch { width: 22px; height: 22px; border-radius: 50%; padding: 0px; border: 2px solid rgb(255, 254, 250); box-shadow: rgb(203, 211, 197) 0px 0px 0px 1px; }
.drawing-canvas { width: 100%; aspect-ratio: 4 / 3; background: white; border: 1px solid rgb(227, 230, 219); border-radius: 9px; position: relative; overflow: hidden; touch-action: none; }
canvas.drawing-canvas { display: block; }
.drawing-canvas canvas { position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; touch-action: none; }
.layers { margin-top: 14px; display: flex; gap: 7px; flex-wrap: wrap; }
.layer-button { background: rgb(243, 244, 237); border: 1px solid rgb(224, 228, 217); padding: 7px 12px; border-radius: 7px; font-size: 11px; }
.layer-button.active { background: rgb(229, 237, 219); border-color: rgb(189, 208, 172); }
.progress-bar { height: 5px; background: rgb(237, 240, 230); border-radius: 8px; overflow: hidden; margin: 15px 0px; }
.progress-bar > span { display: block; height: 100%; background: rgb(166, 191, 146); border-radius: inherit; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.table th { padding: 10px 12px; background: rgb(244, 245, 237); font-size: 10px; color: rgb(130, 144, 131); font-weight: 500; }
.table td { padding: 12px; border-bottom: 1px solid rgb(238, 240, 231); }
.table tbody tr:last-child td { border-bottom: 0px; }
.modal-backdrop { position: fixed; inset: 0px; display: flex; align-items: center; justify-content: center; padding: 26px; background: rgba(32, 55, 66, 0.36); backdrop-filter: blur(5px); z-index: 100; }
.modal { width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; background: var(--paper); border: 1px solid rgb(229, 228, 217); border-radius: 18px; padding: 31px; box-shadow: rgba(18, 35, 49, 0.19) 0px 25px 80px; }
.modal h2 { font-size: 35px; margin-bottom: 12px; }
.modal > p { font-size: 13px; line-height: 1.8; }
.modal .toolbar { justify-content: flex-end; margin-top: 21px; }
.modal form { display: grid; gap: 16px; }
.notice { padding: 13px 16px; border-radius: 9px; background: rgb(252, 246, 223); border: 1px solid rgb(239, 228, 191); color: rgb(147, 130, 91); font-size: 11px; line-height: 1.8; }
.notice strong { color: rgb(122, 106, 69); font-weight: 600; }
.notice p:last-child { margin-bottom: 0px; }
.notice .toolbar { margin-top: 8px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 13px 23px; background: rgb(41, 72, 102); color: rgb(255, 254, 250); box-shadow: rgba(41, 72, 102, 0.14) 0px 8px 30px; font-size: 12px; border-radius: 11px; z-index: 150; max-width: calc(100% - 30px); text-align: center; animation: 0.25s ease-out 0s 1 normal none running toast-in; }
.ended { min-height: calc(-86px + 100vh); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 45px 24px; }
.ended img { width: 140px; height: 145px; object-fit: contain; margin-bottom: 25px; }
.ended h1 { font-size: 46px; margin: 0px 0px 14px; }
.ended p { max-width: 390px; font-size: 13px; line-height: 1.8; margin-bottom: 22px; }
@keyframes toast-in { 
  0% { opacity: 0; transform: translate(-50%, 8px); }
  100% { opacity: 1; transform: translate(-50%, 0px); }
}
@media (min-width: 1600px) {
  .main-panel { padding: 36px 49px 55px; }
  .activity-grid { grid-template-columns: repeat(4, minmax(0px, 1fr)); }
}
@media (max-width: 1180px) {
  .main-panel { padding: 27px 25px 40px; }
  .workspace { grid-template-columns: 190px minmax(0px, 1fr); }
  .sidebar { padding-inline: 12px; }
  .dashboard-grid { grid-template-columns: minmax(0px, 1.35fr) minmax(255px, 1fr); gap: 17px; }
  .activity-grid { gap: 11px; }
  .activity-card { padding: 16px; min-height: 168px; }
  .dashboard-grid .activity-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .landing { gap: 38px; padding: 38px; }
}
@media (max-width: 950px) {
  .topbar { padding: 0px 23px; height: 76px; }
  .workspace { min-height: calc(-76px + 100vh); grid-template-columns: 174px minmax(0px, 1fr); }
  .nav-item { padding: 11px 10px; font-size: 12px; gap: 9px; }
  .dashboard-grid, .split { grid-template-columns: 1fr; }
  .split > .panel + .panel { margin-top: 0px; }
  .dashboard-grid .activity-grid { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
  .dashboard-grid > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .dashboard-grid > aside > .panel + .panel { margin-top: 0px; }
  .page-head h1 { font-size: 35px; }
  .page-head { align-items: flex-start; }
  .page-head .toolbar { justify-content: flex-end; max-width: 235px; }
  .landing { min-height: calc(-76px + 100vh); padding: 40px 30px; gap: 26px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-art { min-height: 220px; }
  .hero-art > img { max-width: 225px; max-height: 240px; }
  .hero-art::before { width: 210px; height: 190px; }
  .join-card { padding: 24px; }
}
@media (max-width: 720px) {
  .topbar { height: 70px; padding: 0px 17px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 64px; height: 38px; }
  .brand-name { font-size: 24px; }
  .brand > span:not(.brand-name) { padding-left: 10px; }
  .topbar .pill { font-size: 10px; padding: 4px 7px; }
  .topbar > div:last-child:not(.brand), .topbar-actions { gap: 4px; }
  .topbar .ghost { padding: 7px; font-size: 11px; }
  .topbar .secondary { font-size: 11px; min-height: 33px; padding: 6px 9px; }
  .landing { display: flex; flex-direction: column; padding: 34px 22px 35px; gap: 14px; min-height: calc(-70px + 100vh); }
  .hero-copy { width: 100%; padding-bottom: 0px; }
  .hero-copy h1 { font-size: 53px; max-width: 460px; }
  .hero-copy .eyebrow { margin-bottom: 17px; }
  .hero-copy > p { margin-bottom: 10px; font-size: 13px; }
  .hero-art { display: none; }
  .join-card { width: 100%; max-width: 490px; margin: 12px auto 0px; padding: 25px; }
  .workspace { grid-template-columns: minmax(0px, 1fr); min-height: calc(-70px + 100vh); }
  .sidebar { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0px; border-bottom: 1px solid var(--line); padding: 8px 12px; gap: 3px; background: rgb(248, 248, 241); scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .section-label, .sidebar .side-bottom { display: none; }
  .sidebar nav { display: flex; gap: 3px; }
  .nav-item { white-space: nowrap; width: auto; min-height: 38px; font-size: 11px; padding: 8px 11px; gap: 6px; border-radius: 8px; }
  .nav-item > span:first-child, .nav-item > svg { width: 17px; height: 17px; font-size: 17px; }
  .nav-item .badge { font-size: 8px; padding: 2px 5px; }
  .main-panel { padding: 23px 18px 34px; }
  .page-head { gap: 10px; flex-wrap: wrap; margin-bottom: 21px; }
  .page-head h1 { font-size: 36px; }
  .page-head .toolbar { max-width: none; justify-content: flex-start; }
  .page-head .toolbar .primary, .page-head .toolbar .secondary { min-height: 36px; padding: 8px 11px; font-size: 11px; }
  .welcome-banner { padding: 21px; gap: 14px; min-height: 136px; }
  .welcome-banner h2 { font-size: 29px; }
  .welcome-banner > img, .welcome-art { width: 78px; max-height: 100px; margin-right: 0px; }
  .welcome-banner .hand-note { font-size: 23px; }
  .welcome-banner p { font-size: 11px; }
  .activity-grid, .dashboard-grid .activity-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 11px; }
  .activity-card { min-height: 168px; padding: 17px; border-radius: 11px; }
  .activity-card h3 { font-size: 14px; }
  .activity-card p { font-size: 10px; }
  .activity-card > .badge { right: 11px; top: 13px; font-size: 9px; padding: 3px 6px; }
  .card-icon { width: 39px; height: 39px; font-size: 22px; border-radius: 10px; }
  .dashboard-grid > aside { display: block; }
  .dashboard-grid > aside > .panel + .panel { margin-top: 18px; }
  .panel, .tool-panel { padding: 19px; }
  .tools-grid { grid-template-columns: 1fr; }
  .student-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .session-strip { flex-wrap: wrap; padding: 12px 14px; font-size: 11px; }
  .session-strip .toolbar { justify-content: flex-start; }
  .stats-row { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-card strong { font-size: 29px; }
  .stat-card small { font-size: 10px; }
  .modal-backdrop { padding: 16px; }
  .modal { padding: 24px; border-radius: 14px; }
  .modal h2 { font-size: 31px; }
  .toast { bottom: 17px; }
}
@media (max-width: 390px) {
  .brand-name { font-size: 22px; }
  .topbar .pill { display: none; }
  .hero-copy h1 { font-size: 46px; }
  .main-panel { padding-inline: 13px; }
  .activity-card { padding: 14px; }
  .activity-card > .badge { max-width: 62px; overflow: hidden; text-overflow: ellipsis; }
  .welcome-banner { padding: 18px; }
  .welcome-banner > img, .welcome-art { width: 56px; }
  .chat-compose .primary { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { scroll-behavior: auto !important; animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
}
.brand > span { font-family: LeeSeoyun, sans-serif; font-size: 26px; line-height: 1.1; }
.brand .brand-name { display: block; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; font-size: 9px; letter-spacing: 0.015em; line-height: 1.3; color: rgb(138, 150, 150); margin-top: 5px; }
.sidebar .session-strip { flex-direction: column; align-items: flex-start; gap: 3px; margin: 0px 0px 16px; padding: 14px; border-color: rgb(224, 229, 214); background: rgb(240, 243, 232); }
.sidebar .session-strip b { font-size: 13px; line-height: 1.5; }
.sidebar .session-strip small, .sidebar .session-strip > span { color: rgb(130, 144, 128); font-size: 10px; }
button.tool-panel { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-height: 161px; padding: 20px; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
button.tool-panel:hover { border-color: rgb(189, 204, 178); transform: translateY(-2px); box-shadow: rgba(83, 101, 72, 0.04) 0px 6px 20px; }
button.tool-panel h3 { font-size: 14px; margin: 14px 0px 5px; }
button.tool-panel p { font-size: 11px; margin: 0px; }
button.tool-panel:nth-child(4n+2) .card-icon { background: var(--green); }
button.tool-panel:nth-child(4n+3) .card-icon { background: var(--peach); }
button.tool-panel:nth-child(4n+4) .card-icon { background: var(--blue); }
.main-panel > #content > .welcome-banner { margin-bottom: 25px; }
#content > .dashboard-grid { margin-bottom: 23px; }
#content > .tools-grid { margin-bottom: 24px; }
#content > .section-label { margin-top: 24px; }
#host-live:empty { display: none; }
#host-live { margin-top: 19px; }
.qr-panel .room-code { display: block; }
.qr-panel > small { display: block; overflow-wrap: anywhere; font-size: 10px; color: rgb(130, 145, 139); margin-bottom: 13px; }
.qr-panel > .secondary { margin-bottom: 4px; }
.qr-panel > p:last-child { margin: 15px 0px 0px; line-height: 1.8; font-size: 11px; }
.activity-card.green .card-icon { background: var(--green); }
.activity-card.yellow .card-icon { background: var(--yellow); }
.activity-card.peach .card-icon { background: var(--peach); }
.activity-card.blue .card-icon { background: var(--blue); }
.join-form .eyebrow { text-align: left; margin: 0px 0px -4px; font-size: 10px; color: rgb(131, 145, 138); }
.join-form h2 { margin: 0px 0px 1px; font-size: 31px; }
@media (max-width: 720px) {
  .sidebar .session-strip { display: none; }
  button.tool-panel { min-height: 143px; padding: 17px; }
  .dashboard-grid .tools-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .brand > span { font-size: 25px; }
  .brand .brand-name { font-size: 8px; }
  .main-panel > #content > .welcome-banner { margin-bottom: 21px; }
}
.sudoku-grid { display: grid; grid-template-columns: repeat(9, 1fr); max-width: 450px; border: 2px solid var(--ink); margin: 24px 0px; }
.sudoku-cell { width: 100%; min-width: 0px; aspect-ratio: 1 / 1; background: rgb(255, 254, 251); border-width: 0px 1px 1px 0px; border-style: none solid solid none; border-color: currentcolor rgb(197, 206, 210) rgb(197, 206, 210) currentcolor; border-image: none; text-align: center; font-size: 22px; color: var(--ink); border-radius: 0px; }
.sudoku-cell:nth-child(3n) { border-right: 2px solid var(--ink); }
.sudoku-cell:nth-child(n+19):nth-child(-n+27), .sudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--ink); }
.sudoku-cell.given { background: var(--blue); font-weight: 700; }
.sudoku-cell.wrong { background: rgb(249, 211, 208); color: rgb(167, 61, 52); }
.drawing-layout { display: grid; grid-template-columns: minmax(0px, 1fr) 200px; gap: 20px; }
.drawing-canvas { width: 100%; aspect-ratio: 3 / 2; touch-action: none; background: rgb(255, 254, 251); cursor: crosshair; }
.layer-row { display: flex; align-items: center; gap: 4px; }
.layer-row .layer-button { flex: 1 1 0%; }
.layer-button.active { background: var(--yellow); border-color: var(--ink); }
.layers input[type="range"] { width: 100%; }
.drawing-tools label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.drawing-tools input[type="color"] { width: 32px; height: 32px; border: 0px; }
.drawing-tools input[type="range"] { width: 80px; }
.video-wrap iframe, .video-wrap video { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0px; background: rgb(24, 43, 59); }
.video-wrap { min-height: 180px; }
#host-live:empty { display: none; }
.chat-compose select { max-width: 165px; }
.chat-message p { white-space: pre-wrap; }
.badge { white-space: normal; }
.layer-button { padding: 8px; text-align: left; }
.student-card small { display: block; }
.hero-copy h1 span { background: linear-gradient(transparent 65%,var(--yellow) 65%); }
@media (max-width: 700px) {
  .drawing-layout { grid-template-columns: 1fr; }
  .layers { padding: 12px; }
  .drawing-tools { align-items: flex-start; }
  .chat-compose { flex-wrap: wrap; }
  .chat-compose input { flex-basis: 55%; }
}
.sudoku-cell { padding: 0px; min-height: 0px; }
.drawing-tools .toolbar button { width: auto; min-width: 35px; height: auto; }
.drawing-layout > .layers { display: block; margin-top: 0px; }
.mobile-leave { display: none; }
#master-media { margin-top: 24px; }
@media (max-width: 700px) {
  .mobile-leave { display: inline-flex; }
  .sidebar .session-strip { min-width: 125px; margin: 0px 10px 0px 0px; padding: 8px; flex-shrink: 0; }
  .topbar { padding-inline: 16px; }
  .topbar .pill { display: none; }
  .topbar .brand-name { max-width: 80px; }
}
