:root {
  --paper: #f7efe5;
  --paper-deep: #ecdfd1;
  --ink: #263632;
  --muted: #718077;
  --coral: #e77660;
  --coral-dark: #c85948;
  --sage: #89a38c;
  --sage-light: #cbdac7;
  --yellow: #f4c56b;
  --white: #fffaf3;
  --shadow: 0 20px 55px rgba(76, 57, 42, .12);
  font-family: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); background-image: radial-gradient(rgba(38,54,50,.07) 1px, transparent 1px), linear-gradient(135deg, rgba(231,118,96,.08), transparent 42%); background-size: 19px 19px, 100% 100%; }
button { font: inherit; }
.game-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 25px 0 20px; }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar { padding-bottom: 46px; }
.brand-mark { display: flex; align-items: center; gap: 10px; font: 700 14px/1 Arial, sans-serif; letter-spacing: .04em; text-transform: lowercase; }
.brand-dot { width: 13px; height: 13px; display: inline-block; background: var(--coral); border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); }
.sound-button { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(38,54,50,.16); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 14px; cursor: pointer; font: 700 11px Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.sound-button:hover { background: rgba(255,250,243,.7); }
#soundIcon { font-size: 18px; line-height: 10px; color: var(--coral-dark); }
.game-layout { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(30px, 6vw, 94px); align-items: center; }
.hero-panel { padding-bottom: 24px; }
.eyebrow, .card-header, .instruction-kicker, .stat-label, .log-title, footer { font: 700 10px/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--coral-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 27px; }
.live-dot, .log-pulse { display: inline-block; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(231,118,96,.12); }
h1 { font-size: clamp(46px, 6vw, 80px); font-weight: 400; letter-spacing: -.055em; line-height: .93; margin: 0 0 27px; }
h1 em { color: var(--coral); font-style: italic; }
.intro { max-width: 410px; font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 0 36px; }
.stats-row { display: flex; gap: 25px; }
.stat { border-left: 2px solid var(--sage); padding-left: 12px; min-width: 67px; }
.stat-label { color: var(--muted); display: block; margin-bottom: 6px; font-size: 9px; }
.stat strong { font-size: 30px; font-weight: 400; }
.stat-unit { font: 11px Arial, sans-serif; color: var(--muted); margin-left: 3px; }
.practice-card { background: var(--white); border: 1px solid rgba(38,54,50,.08); border-radius: 3px; box-shadow: var(--shadow); padding: 19px 20px 23px; position: relative; }
.card-header { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; padding: 2px 3px 15px; }
.timer { color: var(--coral-dark); }
.stage { position: relative; height: clamp(330px, 40vw, 460px); overflow: hidden; background: #e2eee0; border-radius: 2px; isolation: isolate; background-image: linear-gradient(155deg, rgba(255,255,255,.56), transparent 45%), repeating-linear-gradient(12deg, transparent 0 28px, rgba(111,145,119,.07) 29px 30px); }
.sun-glow { position: absolute; width: 230px; height: 230px; top: -83px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: #f7d78f; opacity: .7; }
.leaf { position: absolute; border: 1px solid rgba(76,119,83,.32); width: 76px; height: 120px; border-radius: 100% 0; transform: rotate(36deg); opacity: .65; }
.leaf-one { bottom: -30px; left: 7%; }.leaf-two { top: 13%; right: 4%; transform: rotate(210deg) scale(.7); }
.mat { position: absolute; z-index: 1; width: 57%; height: 13%; bottom: 10%; left: 22%; border-radius: 50%; background: #d88170; transform: rotate(-3deg); box-shadow: inset 0 10px 0 rgba(255,255,255,.15); }
.mat span { position: absolute; height: 65%; width: 93%; left: 3%; top: 18%; border-top: 1px solid rgba(255,250,243,.35); border-bottom: 1px solid rgba(255,250,243,.25); }
.mine { position: absolute; z-index: 2; width: 150px; height: 260px; left: 50%; bottom: 15%; transform: translateX(-50%); }
.body { position: absolute; z-index: 2; left: 36px; bottom: 17px; width: 78px; height: 104px; background: #e77660; border-radius: 44% 44% 22% 22%; }.shirt-mark { position: absolute; color: rgba(255,250,243,.8); font: italic 28px Georgia; left: 30px; top: 27px; }
.neck { position: absolute; z-index: 3; left: 68px; top: 68px; width: 24px; height: 32px; background: #d88e6c; }
.head { position: absolute; z-index: 4; width: 79px; height: 91px; left: 40px; top: 5px; }.face { position: absolute; width: 65px; height: 75px; top: 12px; left: 7px; background: #e9ad88; border-radius: 46% 46% 47% 47%; }.hair-back, .hair-top, .bangs { background: #805d4c; }.hair-back { position: absolute; z-index: 1; left: 29px; top: 0; width: 102px; height: 196px; border-radius: 48% 47% 35% 42%; transform: rotate(3deg); }.hair-top { position: absolute; z-index: 2; width: 82px; height: 54px; top: 0; left: 0; border-radius: 52% 54% 35% 30%; }.bangs { position: absolute; z-index: 5; top: 32px; left: 5px; width: 71px; height: 29px; border-radius: 8% 10% 50% 50%; clip-path: polygon(0 0, 100% 0, 92% 65%, 77% 43%, 64% 100%, 48% 49%, 31% 75%, 17% 38%, 0 66%); }.eye { position: absolute; width: 5px; height: 6px; top: 44px; background: var(--ink); border-radius: 50%; }.eye-left { left: 20px; }.eye-right { right: 20px; }.nose { position: absolute; top: 51px; left: 31px; width: 5px; height: 7px; border-left: 1px solid #b76f5b; transform: rotate(12deg); }.mouth { position: absolute; top: 64px; left: 27px; width: 14px; height: 6px; border-bottom: 2px solid var(--coral-dark); border-radius: 50%; }.arm { position: absolute; z-index: 1; width: 57px; height: 15px; top: 32px; background: #e9ad88; border-radius: 30px; }.arm-left { left: -42px; transform: rotate(19deg); }.arm-right { right: -42px; transform: rotate(-19deg); }.leg { position: absolute; z-index: 1; bottom: 0; width: 42px; height: 128px; background: #9bbaa0; border-radius: 25px 25px 10px 10px; }.leg-left { left: 37px; transform: rotate(7deg); }.leg-right { right: 37px; transform: rotate(-7deg); }
.bubble { position: absolute; z-index: 7; top: 12%; left: 8%; max-width: 188px; padding: 12px 15px; background: var(--white); border-radius: 17px 17px 17px 3px; color: var(--ink); font: 700 12px/1.35 Arial, sans-serif; box-shadow: 0 8px 20px rgba(63,80,67,.1); transform: rotate(-2deg); }.bubble:after { content: ''; position: absolute; bottom: -8px; left: 18px; border-width: 9px 9px 0 0; border-style: solid; border-color: var(--white) transparent transparent transparent; }
.breath-orbit { position: absolute; z-index: 3; width: 164px; height: 164px; right: 7%; bottom: 19%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transition: transform .2s linear, border-color .2s; }.breath-orbit:before, .breath-orbit:after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }.breath-orbit:before { inset: 12px; }.breath-orbit:after { inset: -7px; border-style: dashed; opacity: .7; }.breath-core { width: 94px; height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,250,243,.75); color: var(--ink); box-shadow: 0 6px 22px rgba(71,102,72,.12); }.breath-core span { font: 700 9px Arial; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-dark); }.breath-core strong { font-size: 33px; font-weight: 400; line-height: 1.1; }
.instruction { text-align: center; padding: 19px 0 12px; }.instruction-kicker { display: block; color: var(--coral-dark); margin-bottom: 6px; }.instruction strong { display: block; font-size: 22px; font-weight: 400; }.instruction-detail { display: block; color: var(--muted); font: 11px Arial, sans-serif; margin-top: 7px; }
.breath-button { width: 100%; border: 0; border-radius: 2px; padding: 16px; background: var(--ink); color: var(--white); cursor: pointer; transition: transform .15s, background .2s; font: 700 12px Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }.breath-button:hover { transform: translateY(-2px); background: var(--coral-dark); }.breath-button:active { transform: translateY(0); }.button-icon { color: var(--yellow); font-size: 19px; vertical-align: -2px; margin-right: 8px; }.progress-track { height: 3px; background: var(--paper-deep); margin-top: 18px; }.progress-track span { display: block; height: 100%; width: 0; background: var(--coral); transition: width .2s; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }.tip-card, .log-card { display: flex; gap: 15px; min-height: 91px; padding: 19px 21px; border-top: 1px solid rgba(38,54,50,.2); }.tip-icon { color: var(--coral); font-size: 22px; }.tip-card strong { font-size: 15px; }.tip-card p, .log-card p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 7px 0 0; }.log-card { display: block; background: rgba(255,250,243,.46); }.log-title { display: flex; align-items: center; gap: 9px; color: var(--coral-dark); }.log-pulse { width: 5px; height: 5px; box-shadow: none; }.log-card p { font-style: italic; margin-top: 11px; }
footer { color: var(--muted); border-top: 1px solid rgba(38,54,50,.12); padding-top: 18px; margin-top: 25px; font-size: 9px; }
.stage.playing .breath-orbit { border-color: rgba(255,255,255,.95); }.stage.playing .mine { animation: float 3s ease-in-out infinite; }.stage.success .breath-core { background: #f7d78f; }.stage.wobble .mine { animation: wobble .35s ease-in-out; }.stage.flash { animation: flash .35s ease-out; }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } } @keyframes wobble { 25% { transform: translateX(-50%) rotate(-4deg); } 75% { transform: translateX(-50%) rotate(4deg); } } @keyframes flash { 50% { filter: brightness(1.1); } }
@media (max-width: 800px) { .game-shell { width: min(100% - 28px, 560px); padding-top: 18px; }.topbar { padding-bottom: 34px; }.game-layout { display: flex; flex-direction: column; gap: 26px; align-items: stretch; }.hero-panel { padding-bottom: 0; }.intro { margin-bottom: 23px; font-size: 15px; }.hero-panel h1 { font-size: clamp(45px, 14vw, 68px); }.practice-card { padding: 15px 14px 19px; }.stage { height: min(113vw, 440px); }.bottom-grid { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }.tip-card { padding-left: 0; }.log-card { padding-left: 0; padding-right: 0; }.bubble { left: 5%; max-width: 165px; }.breath-orbit { right: 4%; width: 145px; height: 145px; }.breath-core { width: 83px; height: 83px; }.breath-core strong { font-size: 28px; } }
@media (max-width: 390px) { .sound-button { padding: 8px 10px; }.sound-button #soundText { display: none; }.stats-row { gap: 17px; }.stage { height: 370px; }.mine { transform: translateX(-50%) scale(.88); transform-origin: bottom center; }.breath-orbit { right: 2%; bottom: 22%; width: 128px; height: 128px; }.breath-core { width: 72px; height: 72px; }.breath-core strong { font-size: 24px; } }
