.shape-zoo-game { --zoo-ink: #2c3e50; --zoo-green: #55b346; --zoo-paper: #fffdf6; position: fixed; inset: 0; z-index: 1000 !important; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: auto; margin: 0; color: var(--zoo-ink); background: radial-gradient(circle at 18% 12%, #fff7ed 0 18%, transparent 36%), linear-gradient(135deg, #fdf0ff 0%, #f0faf9 48%, #e0f2fe 100%); font-family: 'Noto Sans KR', sans-serif; text-align: left; line-height: 1.5; animation: none; }
.shape-zoo-game *, .shape-zoo-game *::before, .shape-zoo-game *::after { box-sizing: border-box; }
.shape-zoo-game.hidden, .shape-zoo-game [hidden] { display: none !important; }
body.shape-zoo-open { overflow: hidden; }
.shape-zoo-game button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.shape-zoo-game button:disabled { cursor: default; opacity: .45; }
.shape-zoo-game button:focus-visible, .shape-zoo-game canvas:focus-visible { outline: 3px solid #d78a37; outline-offset: 4px; }
.shape-zoo-game h1, .shape-zoo-game h2, .shape-zoo-game p { margin: 0; }
.zoo-header { position: relative; z-index: 30; flex-shrink: 0; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(20px, 4vw, 64px); border-bottom: 4px solid #b7e4a1; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(85,179,70,.12); }
.zoo-back { border: 1px solid #d1d9ce; border-radius: 12px; padding: 11px 17px; background: transparent; color: #54665a; font-size: 14px !important; font-weight: 700 !important; }
.zoo-back.aiedue-lab-logo-home { appearance: none; width: auto; height: auto; display: inline-flex; align-items: center; justify-content: flex-start; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; line-height: 0; }
.zoo-back.aiedue-lab-logo-home img { display: block; width: 148px; height: auto; margin: 0; object-fit: contain; filter: drop-shadow(0 5px 15px rgba(0,0,0,.1)); }
.zoo-brand { display: flex; align-items: center; gap: 12px; }
.zoo-brand > img { width: 68px; height: 50px; flex: 0 0 auto; object-fit: contain; border: 2px solid #dcefd6; border-radius: 16px; background: #fff; box-shadow: 0 5px 14px rgba(85,179,70,.13); }
.zoo-brand-mark { font-size: 42px; line-height: 1; color: #cc8839; transform: rotate(-25deg); }
.zoo-brand p { font: 700 10px 'Outfit', sans-serif; color: #497060; letter-spacing: .18em; }
.zoo-brand p span { margin-left: 6px; color: #929e91; }
.zoo-brand h1 { margin-top: 3px; font-size: 24px; letter-spacing: -.07em; font-weight: 900; }
.zoo-header-actions { display: flex; gap: 20px; align-items: center; }
.zoo-lab-tag { color: #7e8b7c; font-size: 12px; }
.zoo-icon-button { min-width: 44px; min-height: 44px; border: 1px solid #d1d9ce; border-radius: 50%; color: #42614c; background: #f2f4eb; font-weight: 900 !important; }
.zoo-main { width: min(1280px, 100%); margin: 0 auto; padding: 29px 40px 0; }
.zoo-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.zoo-eyebrow { display: block; color: #678272; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.zoo-intro h2 { margin: 8px 0 8px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; font-weight: 900; letter-spacing: -.065em; }
.zoo-intro h2 span { color: #397461; }
.zoo-intro p { color: #7a8477; font-size: 13px; }
.zoo-scoreboard { display: flex; min-width: 252px; border: 1px solid #d9dfd1; border-radius: 18px; background: #fdfdf7; padding: 13px 8px; }
.zoo-scoreboard > div { min-width: 116px; text-align: center; }
.zoo-scoreboard > div + div { border-left: 1px solid #e1e5d8; }
.zoo-scoreboard span { color: #7b8677; font-size: 11px; font-weight: 700; }
.zoo-scoreboard strong { display: block; height: 38px; font-size: 26px; font-weight: 700; letter-spacing: .08em; }
.zoo-scoreboard b { font: 700 32px 'Outfit', sans-serif; }
.zoo-scoreboard small { margin-left: 4px; color: #7b8677; font-size: 12px; font-weight: 500; }
#zoo-lives { padding-top: 4px; color: #cf795f; font-size: 24px; }
.zoo-play-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.zoo-habitat { position: relative; min-height: 565px; overflow: hidden; isolation: isolate; border: 4px solid #b7e4a1; border-radius: 30px; background: #c9d893 url('assets/shape-zoo-scenes.png') 0 50% / 300% 100% no-repeat; box-shadow: 0 14px 0 rgba(85,179,70,.16), 0 24px 48px rgba(69,150,58,.14); }
.zoo-habitat[data-mood="happy"] { background-position-x: 50%; }
.zoo-habitat[data-mood="angry"] { background-position-x: 100%; }
.zoo-scene-label { position: absolute; z-index: 2; left: 22px; top: 21px; display: flex; align-items: center; gap: 7px; min-width: 172px; padding: 9px 13px; border: 1px solid #ffffff80; border-radius: 50px; background: #fffdf2e8; color: #546747; font-size: 11px; font-weight: 700; box-shadow: 0 3px 15px #405a2610; }
.zoo-scene-label > span:last-child { margin-left: auto; padding-left: 20px; color: #9ba98a; font: 600 12px 'Outfit', sans-serif; }
.zoo-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #6d9147; }
.zoo-thought { position: absolute; z-index: 4; top: 80px; right: 7%; display: flex; flex-direction: column; align-items: center; width: 202px; padding: 17px 12px 13px; border: 2px solid #e5dbc2; border-radius: 29px; background: #fffdf5; box-shadow: 0 7px 0 #655a2720; transform: rotate(3deg); }
.zoo-thought::before, .zoo-thought::after { content: ''; position: absolute; border: 2px solid #e5dbc2; border-radius: 50%; background: #fffdf5; }
.zoo-thought::before { left: 32px; bottom: -20px; width: 23px; height: 23px; }
.zoo-thought::after { left: 16px; bottom: -35px; width: 13px; height: 13px; }
.zoo-thought > span { min-height: 17px; color: #7a795f; font-size: 10px; font-weight: 700; }
.zoo-thought svg { display: block; width: 78px; height: 78px; color: #d39545; }
.zoo-thought strong { padding: 2px 13px; border-radius: 7px; color: #876d42; background: #f5edda; font-size: 12px; }
.zoo-lion { position: absolute; z-index: 2; width: 56%; height: 65%; left: 14%; top: 24%; pointer-events: none; }
.zoo-reward { position: absolute; z-index: 6; left: 50%; bottom: 44%; min-width: 100px; padding: 9px 18px; border-radius: 50px; color: #fff; background: #427453; font-size: 20px; font-weight: 900; transform: translateX(-50%) rotate(-7deg); box-shadow: 0 6px 15px #24412630; }
.zoo-reward:empty { display: none; }
.zoo-reward[data-tone="danger"] { background: #a85d45; }
.zoo-nameplate { position: absolute; z-index: 3; left: 24px; bottom: 55px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 13px; padding: 10px 17px; border: 1px solid #dfcf9b; border-radius: 12px; background: #fff8e5f5; box-shadow: 0 6px 0 #86733d22; transform: rotate(-3deg); }
.zoo-nameplate span { flex-basis: 100%; color: #97805a; font-size: 9px; }
.zoo-nameplate strong { color: #675432; font-size: 16px; }
.zoo-nameplate i { color: #bd9049; font-size: 20px; font-style: normal; }
.zoo-scene-caption { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 12px 20px; color: #f9ffe5; background: #476440b8; font-size: 11px; text-align: center; }
.zoo-workshop { min-width: 0; padding: 24px 27px 17px; border: 4px solid #c4b5fd; border-radius: 30px; background: linear-gradient(180deg, #ffffff 0%, #fdf0ff 100%); box-shadow: 0 12px 0 rgba(196,181,253,.24), 0 24px 44px rgba(124,58,237,.10); }
.zoo-workshop-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.zoo-workshop-heading .zoo-eyebrow { color: #ac946b; font: 600 10px 'Outfit', sans-serif; letter-spacing: .14em; }
.zoo-workshop-heading h2 { margin-top: 3px; font-size: 23px; letter-spacing: -.06em; font-weight: 900; }
.zoo-round { padding: 6px 10px; border: 1px solid #e1e5d7; border-radius: 7px; color: #708367; background: #f7f8ee; font: 600 11px 'Outfit', sans-serif; letter-spacing: .06em; }
.zoo-timer-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 11px; color: #7c8373; }
.zoo-timer-label strong { color: #4e745c; font: 600 23px 'Outfit', sans-serif; }
.zoo-timer-label small { margin-left: 3px; font: 500 11px 'Noto Sans KR', sans-serif; }
.zoo-timer { height: 8px; margin-bottom: 16px; overflow: hidden; border-radius: 20px; background: #eaece0; }
.zoo-timer i { display: block; width: 100%; height: 100%; border-radius: inherit; background: #80a57b; }
.zoo-timer[data-urgent="true"] i { background: #d77959; }
.zoo-board-wrap { position: relative; width: min(100%, 360px); margin: 0 auto; overflow: hidden; border: 4px dashed #f9a8d4; border-radius: 24px; background-color: #fffffb; background-image: radial-gradient(#b8c5b550 .8px, transparent .8px); background-size: 18px 18px; box-shadow: inset 0 0 0 8px rgba(255,255,255,.72); }
#zoo-canvas { display: block; width: 100%; aspect-ratio: 1; height: auto; border: 0; padding: 0; border-radius: 20px; touch-action: none; user-select: none; cursor: crosshair; }
.zoo-board-label { position: absolute; top: 14px; left: 17px; color: #7f8b77; font-size: 11px; pointer-events: none; }
.zoo-board-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #9ca48e; font-size: 10px; pointer-events: none; }
.zoo-feedback { min-height: 41px; display: flex; align-items: center; justify-content: center; padding: 9px 0 6px; color: #6d7d64; font-size: 11px; text-align: center; }
.zoo-feedback[data-tone="success"] { color: #27724c; font-weight: 700; }
.zoo-feedback[data-tone="danger"] { color: #ae6246; font-weight: 700; }
.zoo-drawing-actions { display: flex; gap: 9px; }
.zoo-clear { min-height: 48px; flex: 0 0 35%; border: 1px solid #dbe0d0; border-radius: 12px; color: #718069; background: #f6f7ee; font-size: 12px !important; font-weight: 700 !important; }
.zoo-primary { display: flex; justify-content: center; align-items: center; gap: 18px; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #55b346, #46b3a5); box-shadow: 0 6px 0 #2f8a27, 0 12px 22px rgba(85,179,70,.22); font-size: 16px !important; font-weight: 900 !important; transition: background .15s, transform .15s; }
.zoo-primary:hover:not(:disabled) { background: #235b46; transform: translateY(-1px); }
.zoo-primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #1e503f; }
.zoo-primary > span { font-size: 20px; }
.zoo-input-hint { margin-top: 14px !important; color: #949d87; font-size: 9px; text-align: center; }
.zoo-input-hint > span { margin-left: 9px; }
.zoo-footer { display: flex; align-items: center; gap: 17px; padding: 19px 0 25px; color: #8b967e; font-size: 10px; }
.zoo-footer b { margin-right: 5px; color: #5e7d5b; font: 600 11px 'Outfit', sans-serif; }
.zoo-footer i { font-style: normal; color: #b2baa7; }
.zoo-footer small { margin-left: auto; font-size: 10px; }
.zoo-overlay { position: fixed; inset: 88px 0 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: #203c3061; backdrop-filter: blur(5px); }
.zoo-overlay-card { width: min(465px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 37px 32px 24px; border: 1px solid #eee9ce; border-radius: 28px; background: #fffdf5; box-shadow: 0 30px 90px #1c332e30; text-align: center; }
.zoo-overlay-card .zoo-eyebrow { color: #819475; font: 600 10px 'Outfit', sans-serif; letter-spacing: .15em; }
.zoo-overlay-symbol { display: block; margin: 14px 0; color: #bd8841; font: 500 43px 'Outfit', sans-serif; letter-spacing: .12em; }
.zoo-overlay-card h2 { color: #304f3c; font-size: 24px; font-weight: 900; letter-spacing: -.05em; }
.zoo-overlay-card p { margin: 16px 0 20px; color: #7c846f; font-size: 13px; line-height: 1.9; word-break: keep-all; }
.zoo-overlay-chips { display: flex; justify-content: center; gap: 8px; margin-bottom: 25px; }
.zoo-overlay-chips span { padding: 5px 9px; border-radius: 7px; color: #889175; background: #f0f1e4; font-size: 10px; }
.zoo-text-button { margin-top: 17px; min-height: 36px; border: 0; color: #89937e; background: transparent; font-size: 11px !important; }
.zoo-cookie { position: fixed; z-index: 8; width: 90px; height: 90px; pointer-events: none; filter: drop-shadow(0 8px 8px #402b2838); }
.zoo-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.aiedue-lab-zoo-card { border: 2px solid #b8c99e; background: #f0f5e7; color: #315d41; }
.aiedue-lab-zoo-card strong { color: #315d41; }
.drawing-zoo-card-art { position: relative; width: 150px; min-height: 112px; display: grid; place-items: center; margin-bottom: 8px; }
.drawing-zoo-animal { font-size: 5.2rem; line-height: 1; filter: drop-shadow(0 8px 10px rgba(85,179,70,.18)); }
.drawing-zoo-shape { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 999px; color: #2c3e50; font-size: 1.35rem; font-weight: 900; box-shadow: 0 8px 18px rgba(44,62,80,.12); }
.drawing-zoo-shape:nth-of-type(2) { left: 0; bottom: 4px; }
.drawing-zoo-shape:nth-of-type(3) { right: 0; top: 8px; }
.drawing-zoo-shape:nth-of-type(4) { right: 16px; bottom: 0; }
@media (min-width: 1000px) and (max-height: 850px) {
    .zoo-header { min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
    .zoo-main { padding-top: 20px; }
    .zoo-intro { margin-bottom: 19px; }
    .zoo-intro h2 { font-size: 28px; }
    .zoo-habitat { min-height: 505px; }
    .zoo-workshop { padding-top: 19px; }
    .zoo-board-wrap { width: min(100%, 300px); }
    .zoo-workshop-heading { margin-bottom: 8px; }
}
@media (max-width: 900px) {
    .zoo-header { padding: 13px 22px; min-height: 76px; }
    .zoo-lab-tag { display: none; }
    .zoo-main { padding: 24px 22px 0; }
    .zoo-intro h2 { font-size: 26px; }
    .zoo-intro p { max-width: 290px; font-size: 12px; }
    .zoo-scoreboard { min-width: 206px; }
    .zoo-scoreboard > div { min-width: 94px; }
    .zoo-play-layout { gap: 15px; grid-template-columns: 1fr 1fr; }
    .zoo-workshop { padding: 20px 17px 16px; }
    .zoo-habitat { min-height: 510px; }
    .zoo-thought { right: 7%; width: 168px; }
    .zoo-thought > span { font-size: 9px; }
    .zoo-drawing-actions { gap: 6px; }
    .zoo-clear { font-size: 10px !important; }
    .zoo-primary { font-size: 12px !important; gap: 6px; }
    .zoo-input-hint > span { display: block; margin: 4px 0 0; }
    .zoo-footer { gap: 10px; justify-content: center; flex-wrap: wrap; }
    .zoo-footer small { display: none; }
}
@media (max-width: 860px) {
    .zoo-back.aiedue-lab-logo-home img { width: 126px; }
}
@media (max-width: 620px) {
    .zoo-header { min-height: 65px; gap: 10px; padding: 9px 14px; }
    .zoo-back { min-height: 42px; padding: 9px 11px; font-size: 12px !important; }
    .zoo-brand { gap: 7px; }
    .zoo-brand > img { width: 45px; height: 36px; border-radius: 11px; }
    .zoo-brand-mark { font-size: 29px; }
    .zoo-brand p { font-size: 8px; }
    .zoo-brand p span { display: none; }
    .zoo-brand h1 { font-size: 19px; }
    .zoo-main { padding: 18px 14px 0; }
    .zoo-intro { flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
    .zoo-intro h2 { margin: 6px 0; font-size: 24px; }
    .zoo-intro p { max-width: none; font-size: 11px; }
    .zoo-eyebrow { font-size: 10px; }
    .zoo-scoreboard { width: 100%; min-width: 0; padding: 8px 12px; border-radius: 12px; }
    .zoo-scoreboard > div { display: flex; flex: 1; align-items: center; justify-content: center; gap: 14px; }
    .zoo-scoreboard strong { height: 30px; }
    .zoo-scoreboard b { font-size: 25px; }
    #zoo-lives { padding-top: 0; font-size: 22px; }
    .zoo-play-layout { grid-template-columns: 1fr; gap: 14px; }
    .zoo-habitat { min-height: 300px; border-radius: 20px; }
    .zoo-scene-label { left: 14px; top: 13px; min-width: 145px; padding: 6px 10px; font-size: 10px; }
    .zoo-scene-label > span:last-child { padding-left: 9px; }
    .zoo-thought { top: 24px; right: 4%; width: 150px; padding: 12px 9px 9px; border-radius: 23px; }
    .zoo-thought svg { width: 70px; height: 70px; }
    .zoo-nameplate { left: auto; right: 13px; bottom: 37px; padding: 4px 12px; }
    .zoo-nameplate span { font-size: 8px; }
    .zoo-nameplate strong { font-size: 13px; }
    .zoo-scene-caption { padding: 6px 10px; font-size: 9px; }
    .zoo-reward { left: 32%; bottom: 35%; font-size: 16px; }
    .zoo-workshop { padding: 18px 19px; border-radius: 20px; }
    .zoo-workshop-heading { margin-bottom: 9px; }
    .zoo-workshop-heading h2 { font-size: 21px; }
    .zoo-board-wrap { width: min(100%, 340px); }
    .zoo-clear { font-size: 12px !important; }
    .zoo-primary { min-height: 49px; font-size: 13px !important; }
    .zoo-input-hint > span { display: inline; margin-left: 5px; }
    .zoo-footer { gap: 8px; font-size: 8px; padding-bottom: 20px; }
    .zoo-footer b { margin-right: 3px; font-size: 10px; }
    .zoo-footer i { display: none; }
    .zoo-overlay { padding: 17px; }
    .zoo-overlay-card { padding: 28px 23px 19px; }
    .zoo-overlay-card h2 { font-size: 22px; }
}
@media (max-width: 520px) {
    .zoo-back.aiedue-lab-logo-home img { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
    .shape-zoo-game *, .shape-zoo-game *::before, .shape-zoo-game *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 621px) and (max-height: 800px) {
    .zoo-header { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
    .zoo-main { padding: 15px 24px 0; }
    .zoo-intro { margin-bottom: 15px; }
    .zoo-intro h2 { margin: 5px 0; font-size: 26px; }
    .zoo-intro p { font-size: 11px; }
    .zoo-scoreboard { padding-top: 8px; padding-bottom: 8px; }
    .zoo-workshop { padding: 15px 20px 12px; }
    .zoo-workshop-heading { margin-bottom: 5px; }
    .zoo-workshop-heading h2 { font-size: 21px; }
    .zoo-timer { margin-bottom: 10px; }
    .zoo-board-wrap { width: min(100%, clamp(200px, calc(100dvh - 378px), 300px)); }
    .zoo-habitat { min-height: 0; }
    .zoo-thought { top: 60px; width: 166px; padding-top: 12px; }
    .zoo-thought svg { width: 65px; height: 65px; }
    .zoo-nameplate { bottom: 43px; padding: 6px 13px; }
    .zoo-input-hint { margin-top: 10px !important; }
    .zoo-footer { padding: 14px 0; }
}
