/* 내몸봄 두뇌 운동 — 테마 v2 색 변수 사용, 큰 글씨·큰 버튼(50~70대), 움직임 줄이기 설정 존중 */
.g-wrap { max-width: 640px; margin: 0 auto; position: relative; }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.g-streak { font-size: .95rem; color: var(--ink-2, #4a5866); }
.g-streak b { font-size: 1.5rem; color: var(--brand, #0b6b63); margin-right: 2px; }
.g-mute { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line, #d9e1e7); background: #fff; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 700; color: var(--ink-2, #4a5866); cursor: pointer; }
.g-mute[aria-pressed="true"] { color: var(--ink-3, #5c6874); background: var(--panel, #f2f5f7); }
.g-info { display: flex; gap: 14px; font-size: .95rem; color: var(--ink-2, #4a5866); font-feature-settings: "tnum" 1; }
.g-info b { font-size: 1.25rem; color: var(--ink, #14202b); }

/* 첫 화면 */
.g-today { display: block; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 24px 22px; background: var(--brand, #0b6b63); color: #fff; cursor: pointer; font: inherit; box-shadow: 0 10px 24px -14px rgba(11,107,99,.8); transition: transform .12s; }
.g-today:hover { transform: translateY(-2px); }
.g-today:active { transform: scale(.98); }
.g-today span { display: block; font-size: .92rem; font-weight: 700; color: #bfe6df; }
.g-today b { display: block; font-size: 1.7rem; margin: 2px 0 6px; letter-spacing: -0.02em; }
.g-today p { margin: 0; font-size: .95rem; color: #dff3ef; }
.g-today.done { background: var(--panel, #f2f5f7); color: var(--ink, #14202b); box-shadow: none; cursor: default; }
.g-today.done span { color: var(--brand, #0b6b63); }
.g-today.done p { color: var(--ink-2, #4a5866); }
.g-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.g-levels > span { grid-column: 1 / -1; font-weight: 800; font-size: .95rem; }
.g-levels .btn { flex-direction: column; gap: 0; min-height: 64px; font-size: 1.05rem; }
.g-levels small { font-weight: 500; font-size: .8rem; color: var(--ink-3, #5c6874); }
.g-mystat { display: flex; gap: 18px; margin: 22px 0 6px; font-size: .92rem; color: var(--ink-2, #4a5866); }
.g-mystat b { color: var(--ink, #14202b); font-size: 1.1rem; margin-left: 4px; }

/* 판 */
.g-theme { margin: 0 0 10px; font-weight: 700; color: var(--brand, #0b6b63); font-size: .95rem; }
.g-board { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.g-card { aspect-ratio: 3 / 4; position: relative; border: 0; padding: 0; background: none; cursor: pointer; perspective: 600px; font: inherit; -webkit-tap-highlight-color: transparent; }
.g-card .back, .g-card .face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-card .back { background: var(--brand, #0b6b63); background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18) 0 18%, transparent 19%), repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 6px, transparent 6px 12px); }
.g-card .face { background: #fff; border: 2px solid var(--line, #d9e1e7); transform: rotateY(180deg); }
.g-card.up .back { transform: rotateY(-180deg); }
.g-card.up .face { transform: rotateY(0); }
.g-card .face i { font-style: normal; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.1; }
.g-card .face em { font-style: normal; font-weight: 800; font-size: clamp(.78rem, 3vw, .95rem); margin-top: 4px; color: var(--ink, #14202b); }
.g-card.ok .face { border-color: var(--t0, #2f8f5b); background: #eef8f2; animation: g-pop .4s ease; }
.g-card.no .face { border-color: var(--t3, #c23b2a); animation: g-shake .35s ease; }
.g-card:focus-visible { outline: 3px solid var(--ink, #14202b); outline-offset: 2px; border-radius: 10px; }
@keyframes g-pop { 40% { transform: scale(1.08); } }
@keyframes g-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.g-combo { text-align: center; min-height: 1.6em; margin: 14px 0 0; font-size: 1.2rem; font-weight: 800; color: var(--brand, #0b6b63); }
.g-combo.pop { animation: g-pop .45s ease; }

/* 결과 */
.g-result { text-align: center; position: relative; }
.g-res-title { margin: 6px 0 0; font-weight: 700; color: var(--ink-2, #4a5866); }
.g-score { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin: 4px 0; }
.g-score .num { font-size: 5.2rem; line-height: 1; font-weight: 800; color: var(--brand, #0b6b63); font-feature-settings: "tnum" 1; letter-spacing: -0.04em; }
.g-score span { font-size: 1.6rem; font-weight: 800; }
.g-grade { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; }
.g-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.g-chips span { background: var(--panel, #f2f5f7); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; }
.g-chips .up { background: #e3f4ea; color: var(--ok-text, #22704a); }
.g-chips .dn { background: #fdeceb; color: var(--t3, #c23b2a); }
.g-result .nmb-share { text-align: left; }
.g-again { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.g-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 130px; margin: 18px 0 6px; padding: 0 2px; }
.g-week div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.g-week .bar { width: 100%; max-width: 34px; background: var(--brand, #0b6b63); border-radius: 6px 6px 2px 2px; }
.g-week .bar[data-empty] { background: var(--line, #d9e1e7); }
.g-week b { font-size: .8rem; min-height: 1em; }
.g-week small { font-size: .78rem; color: var(--ink-3, #5c6874); }
.g-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.g-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: g-fall 2.2s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes g-fall { to { top: 105%; transform: translateX(30px) rotate(540deg); opacity: .2; } }

/* 두뇌 운동 첫 페이지 목록 */
.g-hub { display: grid; gap: 12px; margin: 1.4em 0; }
.g-hub a, .g-hub div.soon { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line, #d9e1e7); border-radius: 12px; color: var(--ink, #14202b); text-decoration: none; }
.g-hub a:hover { border-color: var(--brand, #0b6b63); }
.g-hub .ic { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--brand-soft, #e3f1ef); }
.g-hub b { font-size: 1.12rem; display: block; }
.g-hub small { color: var(--ink-3, #5c6874); font-size: .88rem; }
.g-hub .go { font-weight: 800; color: var(--brand, #0b6b63); }
.g-hub div.soon { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .g-card .back, .g-card .face { transition: none; } }
