.tc-mascot { width: 88px; }
.tc-mascot-button { touch-action: none; user-select: none; }
.tc-mascot-button:focus-visible { outline: 2px solid #92ddff; outline-offset: 4px; border-radius: 25px; }
.tc-mascot .tc-mascot-menu { position: fixed; width: min(350px, calc(100vw - 16px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 17px; border-radius: 23px; background: #121824; box-shadow: 0 16px 70px #0009; }
.tc-mascot .tc-mascot-message { position: fixed; margin: 0; width: 220px; max-width: calc(100vw - 16px); }
.pet-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-mascot-menu .pet-panel-heading strong { font-size: 18px; }
.tc-mascot-menu .pet-panel-heading small { margin-top: 5px; color: #a7b4c7; font-size: 11px; }
.tc-mascot-menu .pet-panel-heading > button { width: 34px; min-height: 34px; margin: 0; text-align: center; font-size: 20px; }
.tc-mascot-menu nav { display: grid; grid-template-columns: 1fr 1.2fr .8fr .8fr; gap: 5px; margin: 12px 0; padding-bottom: 12px; border-bottom: 1px solid #ffffff14; }
.tc-mascot-menu nav button { margin: 0; padding: 9px 4px; text-align: center; font-size: 11px; }
.tc-mascot-menu button { min-height: 38px; font-size: 12px; line-height: 1.5; }
.tc-mascot-menu button:focus-visible { outline: 2px solid #93dfff; outline-offset: 2px; }
.tc-mascot-menu button:disabled { cursor: default; opacity: .65; }
.tc-mascot-menu [aria-pressed="true"] { background: #79dcff22; border-color: #8be2ff70; color: #adf0ff; }
.pet-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tc-mascot-menu .pet-action-grid button { margin: 0; padding: 10px; }
.pet-panel-content p, .pet-empty { color: #c1cede; font-size: 13px; line-height: 1.7; }
.pet-word { margin-top: 14px; padding: 15px; border: 1px solid #8cd8ff25; border-radius: 16px; background: #090e176b; }
.pet-word > span, .pet-care > span { display: block; color: #98abc5; font-size: 11px; }
.pet-word h3 { margin: 9px 0 12px; font-size: 22px; color: #f2f7ff; line-height: 1.25; overflow-wrap: anywhere; }
.tc-mascot-menu .pet-word > strong { margin-top: 15px; font-size: 15px; color: #9be7e1; }
.pet-word p { margin: 8px 0; overflow-wrap: anywhere; }
.tc-mascot-menu .pet-word small { color: #a7b4c7; line-height: 1.65; font-size: 12px; }
.pet-word-actions { border-top: 1px solid #ffffff12; padding-top: 9px; margin-top: 12px; }
.pet-quiz-options { display: grid; gap: 5px; margin-top: 8px; }
.tc-mascot-menu .pet-quiz-options .pet-correct { background: #39795838; border-color: #8fe6ad; color: #c2ffda; opacity: 1; }
.tc-mascot-menu .pet-quiz-options .pet-retry { border-color: #ecb87c; color: #ffe1bb; opacity: 1; }
.pet-focus { text-align: center; }
.pet-focus > span { color: #a9bdd4; font-size: 12px; }
.tc-mascot-menu .pet-focus > strong { font-size: 50px; font-variant-numeric: tabular-nums; color: #beebf2; margin: 14px 0; }
.pet-focus .pet-action-grid { margin-top: 9px; }
.pet-focus .pet-action-grid:first-of-type { grid-template-columns: repeat(3, 1fr); }
.pet-focus small, .pet-care > small { font-size: 11px; line-height: 1.65; color: #97a9c0; }
.pet-care > span { margin-top: 18px; }
.pet-skins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 7px 0 16px; }
.pet-skins button { text-align: center; }
.pet-care > small { margin-top: 13px; }
.tc-mascot-menu .pet-local-note { margin: 14px 0 0; border-top: 1px solid #ffffff12; padding-top: 10px; font-size: 10px; color: #8193ad; line-height: 1.5; }
.tc-mascot[data-skin="peach"] #petBody stop:first-child { stop-color: #ffcbde; }
.tc-mascot[data-skin="peach"] #petBody stop:last-child { stop-color: #e77aaf; }
.tc-mascot[data-skin="mint"] #petBody stop:first-child { stop-color: #b9ffe2; }
.tc-mascot[data-skin="mint"] #petBody stop:last-child { stop-color: #48b4b1; }
.tc-mascot.pet-folded .tc-mascot-button { width: 42px; height: 42px; border: 1px solid #91def36b; border-radius: 50%; background: #182738; }
.tc-mascot.pet-folded { width: 42px; }
.tc-mascot.pet-folded .tc-mascot-button svg { width: 28px; height: 32px; animation: none; }
.tc-mascot.pet-folded .tc-mascot-badge { display: none; }
.pet-page-hidden *, .pet-folded * { animation-play-state: paused !important; }
.pet-antenna-tip, .pet-mouth { transform-box: fill-box; transform-origin: center; }
@media (max-width: 620px) { .tc-mascot { width: 70px; } .tc-mascot-menu button { min-height: 42px; } }

.pet-care-stage { position: relative; display: grid; place-items: center; height: 168px; margin: 0 0 8px; border-radius: 18px; background: radial-gradient(ellipse at 50% 90%, #94dcff24, transparent 68%), #0a122080; overflow: hidden; }
.pet-care-portrait { width: 118px; height: 138px; transform-origin: 50% 90%; }
.pet-care-portrait svg { width: 100%; height: 100%; overflow: visible; }
.pet-care-portrait .pet-body { fill: url(#petStageBody); }
.pet-care-portrait .pet-face { fill: url(#petStageGlass); }
.tc-mascot[data-skin="peach"] #petStageBody stop:first-child { stop-color: #ffcbde; }
.tc-mascot[data-skin="peach"] #petStageBody stop:last-child { stop-color: #e77aaf; }
.tc-mascot[data-skin="mint"] #petStageBody stop:first-child { stop-color: #b9ffe2; }
.tc-mascot[data-skin="mint"] #petStageBody stop:last-child { stop-color: #48b4b1; }
.pet-care .pet-care-feedback { min-height: 44px; margin: 0 0 10px; color: #c7edf5; font-size: 13px; text-align: center; }
.pet-care-hand { display: none; position: absolute; top: 2px; left: 50%; font-size: 35px; transform: rotate(-30deg); transform-origin: 50% 100%; }
.pet-care-hearts { display: none; position: absolute; inset: 0; pointer-events: none; }
.pet-care-hearts i { position: absolute; left: 25%; top: 47%; color: #ff94c6; font-size: 23px; font-style: normal; }
.pet-care-hearts i:nth-child(2) { left: 69%; top: 36%; animation-delay: -.5s !important; }
.pet-care-hearts i:nth-child(3) { left: 76%; top: 66%; font-size: 16px; animation-delay: -1s !important; }
.tc-mascot[data-care-action="pat"] .pet-care-hand, .tc-mascot[data-care-action="pat"] .pet-care-hearts { display: block; }
.tc-mascot[data-care-action="pat"] .pet-care-hand { animation: pet-petting-hand .75s ease-in-out infinite; }
.tc-mascot[data-care-action="pat"] .pet-care-hearts i { animation: pet-heart-rise 1.5s ease-out infinite; }
.tc-mascot[data-care-action="pat"] .pet-care-portrait { animation: pet-nuzzle .75s ease-in-out infinite; }
.tc-mascot[data-care-action="pat"] .pet-eyes { animation: none; transform: scaleY(.17); }
.tc-mascot[data-care-action="pat"] .pet-cheek { opacity: 1; fill: #ff77b4; }
.tc-mascot[data-care-action="stretch"] .pet-arm-left { transform-origin: 25px 84px; animation: pet-stretch-left 3.8s ease-in-out both; }
.tc-mascot[data-care-action="stretch"] .pet-arm-right { transform-origin: 95px 84px; animation: pet-stretch-right 3.8s ease-in-out both; }
.tc-mascot[data-care-action="stretch"] .pet-care-portrait { animation: pet-long-stretch 3.8s ease-in-out both; }
.tc-mascot[data-care-action="stretch"] .pet-eyes { animation: none; transform: scaleY(.2); }
.tc-mascot[data-care-action="stretch"] .pet-mouth { d: path("M56 70a4 5 0 1 0 8 0a4 5 0 1 0 -8 0"); }
@keyframes pet-petting-hand { 50% { transform: translate(-9px, 9px) rotate(-14deg); } }
@keyframes pet-heart-rise { from { opacity: 0; transform: translateY(10px) scale(.65); } 30% { opacity: 1; } to { opacity: 0; transform: translateY(-45px) scale(1.2); } }
@keyframes pet-nuzzle { 0%, 100% { transform: rotate(-5deg) translateX(-3px); } 50% { transform: rotate(6deg) translateX(4px); } }
@keyframes pet-stretch-left { 0%,100% { transform: rotate(-40deg); } 28%,76% { transform: rotate(0deg); } }
@keyframes pet-stretch-right { 0%,100% { transform: rotate(40deg); } 28%,76% { transform: rotate(0deg); } }
@keyframes pet-long-stretch { 0%,100% { transform: none; } 28%,76% { transform: translateY(-7px) scale(.94,1.09); } }
.tc-mascot.motion-paused .pet-care-stage *, .tc-mascot.motion-paused .pet-arm { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tc-mascot .pet-care-stage *, .tc-mascot .pet-arm { animation: none !important; } }
