/* TUNA 참여 기능 — 스코어보드(D) 테마 확장. tuna.css 의 .tuna-sg.tg-sb 토큰을 그대로 쓴다. */
.tuna-sg.tg-sb .tg-h2{color:var(--tg-ink);font-size:18px;line-height:1.4}
.tuna-sg.tg-sb .tg-sub0{color:#c3cae6}
.tuna-sg.tg-sb .tg-sub0 b{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-ghost{background:transparent;border:1px solid var(--tg-line);color:var(--tg-ink)!important}
.tuna-sg.tg-sb .tg-ghost:hover{border-color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-btn.tg-small{height:38px;font-size:13.5px;padding:0 14px}
.tuna-sg.tg-sb .tg-inline{display:flex;gap:8px;align-items:center}
.tuna-sg.tg-sb .tg-inline input{flex:1;min-width:0;height:42px}
.tuna-sg.tg-sb input[type=number]{height:46px;width:100%}
.tuna-sg.tg-sb input[type=date],.tuna-sg.tg-sb input[type=number],.tuna-sg.tg-sb textarea{background:var(--tg-bg);color:var(--tg-ink);border:1px solid var(--tg-line);border-radius:8px;padding:0 12px;font:inherit}
.tuna-sg.tg-sb textarea{padding:10px 12px;height:auto;width:100%}
.tuna-sg.tg-sb input[type=date]{color-scheme:dark;height:42px}
.tuna-sg.tg-sb .tg-hint:empty{display:none}
.tuna-sg.tg-sb .tg-hint.good{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-hint.bad{color:var(--tg-accent)}

/* 상단 띠: 부스트·칩·1문제 */
.tuna-sg.tg-sb .tg-boost{margin:0;border-radius:8px;padding:10px 14px;font-size:13.5px;display:flex;gap:8px;align-items:center;background:#1c2550;color:#e8ecf8}
.tuna-sg.tg-sb .tg-boost b{font-family:var(--tg-lat);letter-spacing:.06em;color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-boost.is-golden{background:var(--tg-brand);color:var(--tg-brand-ink)}
.tuna-sg.tg-sb .tg-boost.is-golden b{color:var(--tg-brand-ink)}
.tuna-sg.tg-sb .tg-boost.is-holiday{background:#3a1d2a;color:#ffd8d2}
.tuna-sg.tg-sb .tg-boost.is-holiday b{color:#ff8c7f}
.tuna-sg.tg-sb .tg-strip{display:flex;gap:6px;flex-wrap:wrap}
.tuna-sg.tg-sb .tg-chip-l{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:16px;background:var(--tg-soft);border:1px solid var(--tg-line);font-size:12.5px;color:#c3cae6!important;text-decoration:none!important}
.tuna-sg.tg-sb .tg-chip-l b{font-family:var(--tg-num);font-weight:400;color:var(--tg-ink);font-size:13px}
.tuna-sg.tg-sb .tg-flame-i{width:10px;height:13px;background:#3a4573;clip-path:polygon(50% 0,85% 45%,100% 75%,75% 100%,25% 100%,0 75%,15% 45%)}
.tuna-sg.tg-sb .tg-flame-i.is-on{background:#ff8a3d}
.tuna-sg.tg-sb .tg-quiz-cta{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:12px 14px;border-radius:10px;border:1px dashed var(--tg-brand);text-decoration:none!important;color:var(--tg-ink)!important;background:transparent}
.tuna-sg.tg-sb .tg-quiz-cta .tg-sb-k{grid-column:1/-1;color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-quiz-cta strong{font-size:14.5px}
.tuna-sg.tg-sb .tg-quiz-cta em{font-style:normal;font-weight:800;color:var(--tg-brand);font-size:13px}

/* 불꽃 */
.tuna-sg.tg-sb .tg-flame{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:72px;height:72px;border-radius:12px;background:#1c2550;color:#8a94c0;position:relative}
.tuna-sg.tg-sb .tg-flame b{font:400 30px/1 var(--tg-num);color:#c3cae6}
.tuna-sg.tg-sb .tg-flame span{font-size:11px;margin-top:3px}
.tuna-sg.tg-sb .tg-flame.is-on{background:linear-gradient(180deg,#3a2210,#1c1408);color:#ffc9a1;box-shadow:inset 0 0 0 1px #ff8a3d}
.tuna-sg.tg-sb .tg-flame.is-on b{color:#ff9d55}

/* 1문제 */
.tuna-sg.tg-sb .tg-q-src{margin:-6px 0 0;font-size:12px;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-q-src:empty{display:none}
.tuna-sg.tg-sb .tg-q-body{margin:0;font-size:16.5px;line-height:1.7;color:#fff;word-break:normal;overflow-wrap:anywhere;font-family:"TunaPretendard",Georgia,serif}
.tuna-sg.tg-sb .tg-q-ch{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.tuna-sg.tg-sb .tg-q-ch li{margin:0}
.tuna-sg.tg-sb .tg-q-ch button{width:100%;display:flex;gap:12px;align-items:center;text-align:left;min-height:52px;padding:10px 14px;border-radius:10px;border:1px solid var(--tg-line);background:var(--tg-bg);color:var(--tg-ink);font:500 15px var(--tg-body);cursor:pointer;transition:border-color .15s,background .15s}
.tuna-sg.tg-sb .tg-q-ch button:hover:not(:disabled){border-color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-q-ch button:disabled{cursor:default}
.tuna-sg.tg-sb .tg-q-ch i{flex:none;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:700 13px var(--tg-lat);font-style:normal;background:#1c2550;color:#c3cae6}
.tuna-sg.tg-sb .tg-q-ch button.is-pick{border-color:#c3cae6}
.tuna-sg.tg-sb .tg-q-ch button.is-wait{opacity:.6}
.tuna-sg.tg-sb .tg-q-ch button.is-answer{border-color:var(--tg-brand);background:rgba(245,197,24,.1)}
.tuna-sg.tg-sb .tg-q-ch button.is-answer i{background:var(--tg-brand);color:var(--tg-brand-ink)}
.tuna-sg.tg-sb .tg-q-ch button.is-wrong{border-color:var(--tg-accent);background:rgba(255,107,91,.08)}
.tuna-sg.tg-sb .tg-q-ch button.is-wrong i{background:var(--tg-accent);color:#fff}
.tuna-sg.tg-sb .tg-q-ch button:disabled:not(.is-answer):not(.is-wrong){opacity:.55}
.tuna-sg.tg-sb .tg-q-timer{margin:0;text-align:right;font:700 12px var(--tg-lat);color:var(--tg-muted);letter-spacing:.06em}
.tuna-sg.tg-sb .tg-q-res{display:flex;flex-direction:column;gap:10px;border-top:1px dashed var(--tg-line);padding-top:14px}
.tuna-sg.tg-sb .tg-q-res[hidden]{display:none}
.tuna-sg.tg-sb .tg-q-verdict{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.tuna-sg.tg-sb .tg-q-verdict b{font:400 34px/1 var(--tg-num);color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-q-verdict.is-no b{color:var(--tg-accent)}
.tuna-sg.tg-sb .tg-q-verdict span{font-weight:800;font-size:15px;color:#fff}
.tuna-sg.tg-sb .tg-q-ex{background:var(--tg-soft);border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.6}
.tuna-sg.tg-sb .tg-q-ex b{display:block;font-size:12px;color:var(--tg-brand);margin-bottom:4px}
.tuna-sg.tg-sb .tg-q-ex p{margin:0;color:#e8ecf8}
.tuna-sg.tg-sb .tg-q-badge{margin:0;font-size:13px;font-weight:700;color:#ff9d55}
.tuna-sg.tg-sb .tg-q-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tuna-sg.tg-sb .tg-q-foot{flex-direction:row;align-items:center;gap:14px}
.tuna-sg.tg-sb .tg-q-foot .tg-btn{flex:1}
.tuna-sg.tg-sb .tg-q-foot .tg-sub0{flex:1 1 100%}
.tuna-sg.tg-sb .tg-q-foot:has(.tg-sub0){flex-direction:column;align-items:stretch}
.tuna-sg.tg-sb .tg-q-foot:has(.tg-sub0) .tg-btn{flex:none}
.tuna-sg.tg-sb .tg-q-actions:has(> :only-child){grid-template-columns:1fr}
.tuna-sg.tg-sb .tg-retry{border-style:dashed}

/* 미니게임 */
.tuna-sg.tg-sb .tg-game{display:flex;flex-direction:column;align-items:center;gap:10px;background:var(--tg-soft);border-radius:12px;padding:16px}
.tuna-sg.tg-sb .tg-wheel-btn{position:relative;width:min(250px,70vw);aspect-ratio:1;padding:0;border:0;background:none;cursor:pointer;border-radius:50%}
.tuna-sg.tg-sb .tg-wheel-btn:disabled{cursor:default}
.tuna-sg.tg-sb .tg-wheel-btn svg{display:block;width:100%;height:100%;overflow:visible}
.tuna-sg.tg-sb .tg-wheel path{stroke:#0e1530;stroke-width:2}
.tuna-sg.tg-sb .tg-wheel .s0{fill:var(--tg-accent)}
.tuna-sg.tg-sb .tg-wheel .s1{fill:#26305a}
.tuna-sg.tg-sb .tg-wheel .s2{fill:#1c2550}
.tuna-sg.tg-sb .tg-wheel text{fill:#fff;font:700 11px var(--tg-lat);text-anchor:middle;dominant-baseline:middle}
.tuna-sg.tg-sb .tg-wheel-btn .hub{fill:var(--tg-brand)}
.tuna-sg.tg-sb .tg-wheel-btn .ptr{fill:var(--tg-brand)}
.tuna-sg.tg-sb .tg-wheel{transform-origin:0 0}
.tuna-sg.tg-sb .tg-ladder-game{width:min(300px,80vw)}
.tuna-sg.tg-sb .tg-ladder-heads,.tuna-sg.tg-sb .tg-ladder-foots{display:grid;grid-template-columns:repeat(3,1fr);gap:0;text-align:center}
.tuna-sg.tg-sb .tg-ladder-head{justify-self:center;width:44px;height:44px;border-radius:50%;border:2px solid var(--tg-brand);background:transparent;color:var(--tg-brand);font:700 16px var(--tg-lat);cursor:pointer}
.tuna-sg.tg-sb .tg-ladder-head.is-pick,.tuna-sg.tg-sb .tg-ladder-head:hover:not(:disabled){background:var(--tg-brand);color:var(--tg-brand-ink)}
.tuna-sg.tg-sb .tg-ladder-head:disabled:not(.is-pick){opacity:.35;cursor:default}
.tuna-sg.tg-sb .tg-ladder-board svg{display:block;width:100%;height:auto;margin:6px 0}
.tuna-sg.tg-sb .tg-ladder-board line{stroke:#3a4573;stroke-width:4;stroke-linecap:round}
.tuna-sg.tg-sb .tg-ladder-path{fill:none;stroke:var(--tg-brand);stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.tuna-sg.tg-sb .tg-ladder-foot{justify-self:center;min-width:64px;padding:8px 6px;border-radius:6px;background:#1c2550;font:400 15px var(--tg-num);color:#8a94c0}
.tuna-sg.tg-sb .tg-ladder-foot.is-hit{background:var(--tg-brand);color:var(--tg-brand-ink)}

/* 대시보드 */
.tuna-sg.tg-sb .tg-toast{position:relative;background:#1c2550;border:1px solid var(--tg-brand);border-radius:10px;padding:12px 40px 12px 14px;font-size:13.5px}
.tuna-sg.tg-sb .tg-toast p{margin:0}
.tuna-sg.tg-sb .tg-toast p+p{margin-top:4px}
.tuna-sg.tg-sb .tg-toast b{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-toast-x{position:absolute;top:6px;right:6px;width:30px;height:30px;border:0;background:none;color:#8a94c0;font-size:18px;cursor:pointer}
.tuna-sg.tg-sb .tg-my-id{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tuna-sg.tg-sb .tg-my-title{margin:0;font:800 24px/1.25 var(--tg-body);color:#fff}
.tuna-sg.tg-sb .tg-my-nick{margin:4px 0 0;font-size:13px;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-xp{height:8px;background:#1c2550;border-radius:4px;overflow:hidden}
.tuna-sg.tg-sb .tg-xp i{display:block;height:100%;background:var(--tg-brand);border-radius:4px;transition:width .6s}
.tuna-sg.tg-sb .tg-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.tuna-sg.tg-sb .tg-tabs::-webkit-scrollbar{display:none}
.tuna-sg.tg-sb .tg-tabs a{text-align:center;white-space:nowrap;padding:9px 0;border-radius:18px;background:var(--tg-soft);color:#c3cae6!important;text-decoration:none!important;font-size:13.5px;font-weight:700;border:1px solid transparent}
.tuna-sg.tg-sb .tg-tabs a.is-on{background:var(--tg-brand);color:var(--tg-brand-ink)!important}
.tuna-sg.tg-sb .tg-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;height:110px;align-items:end}
.tuna-sg.tg-sb .tg-bar{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.tuna-sg.tg-sb .tg-bar i{display:block;width:100%;max-width:28px;min-height:3px;background:#26305a;border-radius:4px 4px 0 0}
.tuna-sg.tg-sb .tg-bar.is-study i{background:#8a94c0}
.tuna-sg.tg-sb .tg-bar.is-today i{background:var(--tg-brand)}
.tuna-sg.tg-sb .tg-bar span{font-size:11px;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-bar.is-today span{color:var(--tg-brand);font-weight:700}
.tuna-sg.tg-sb .tg-sb-tiles.tg-4{grid-template-columns:repeat(4,1fr);gap:6px}
.tuna-sg.tg-sb .tg-4 .tg-sb-tile{padding:9px 8px;align-items:flex-start}
.tuna-sg.tg-sb .tg-4 .tg-sb-tile strong{font-size:18px}
.tuna-sg.tg-sb .tg-4 .tg-sb-tile strong small{font:700 11px var(--tg-body);color:var(--tg-muted);margin-left:1px}
.tuna-sg.tg-sb .tg-plan{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tuna-sg.tg-sb .tg-plan li{margin:0;border-bottom:1px solid #161f44}
.tuna-sg.tg-sb .tg-plan li:last-child{border-bottom:0}
.tuna-sg.tg-sb .tg-plan li>a,.tuna-sg.tg-sb .tg-plan li:not(:has(a)){display:flex;justify-content:space-between;gap:10px;padding:11px 0;text-decoration:none!important;color:var(--tg-ink)!important;align-items:baseline}
.tuna-sg.tg-sb .tg-plan b{font-size:14px}
.tuna-sg.tg-sb .tg-plan span{font-size:12px;color:var(--tg-muted);text-align:right;max-width:58%}
.tuna-sg.tg-sb .tg-plan li>a b::after{content:" →";color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-plan li.is-done b{color:var(--tg-muted);text-decoration:line-through}
.tuna-sg.tg-sb .tg-plan li.is-done span{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-exam label{flex:none}
.tuna-sg.tg-sb .tg-live-n{margin:0;font-size:14px;color:#c3cae6}
.tuna-sg.tg-sb .tg-live-n b{font:400 40px/1 var(--tg-num);color:var(--tg-brand);margin-right:4px}
.tuna-sg.tg-sb .tg-live-n small{color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-board-list{list-style:none;margin:0;padding:0}
.tuna-sg.tg-sb .tg-board-list li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #161f44;margin:0;font-size:14px}
.tuna-sg.tg-sb .tg-board-list li:last-child{border-bottom:0}
.tuna-sg.tg-sb .tg-board-list b{font:400 15px var(--tg-num);color:#c3cae6}
.tuna-sg.tg-sb .tg-board-list li:first-child b{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-board-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tuna-sg.tg-sb .tg-board-list span small{color:var(--tg-muted);font-size:11.5px;margin-left:4px}
.tuna-sg.tg-sb .tg-board-list i{font:700 12px var(--tg-lat);font-style:normal;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-board-list li.is-me{background:#141d42;margin:0 -16px;padding:9px 16px}
.tuna-sg.tg-sb .tg-board-list li.is-me span{color:var(--tg-brand);font-weight:800}
.tuna-sg.tg-sb .tg-mock p{margin:0 0 10px;font-size:14px;color:#c3cae6}
.tuna-sg.tg-sb .tg-mock p b{color:#fff}
.tuna-sg.tg-sb .tg-cuts{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:8px}
.tuna-sg.tg-sb .tg-cuts li{display:grid;grid-template-columns:64px minmax(0,1fr) 56px;gap:8px;align-items:center;margin:0;font-size:13px}
.tuna-sg.tg-sb .tg-cuts i{position:relative;height:8px;border-radius:4px;background:#1c2550}
.tuna-sg.tg-sb .tg-cuts i::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--m);background:#8a94c0;border-radius:4px}
.tuna-sg.tg-sb .tg-cuts i::after{content:"";position:absolute;left:var(--c);top:-4px;bottom:-4px;width:2px;background:var(--tg-accent)}
.tuna-sg.tg-sb .tg-cuts b{text-align:right;font:700 12px var(--tg-lat);color:var(--tg-accent)}
.tuna-sg.tg-sb .tg-cuts li.is-ok i::before{background:var(--tg-brand)}
.tuna-sg.tg-sb .tg-cuts li.is-ok b{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-league-form{display:flex;flex-direction:column;gap:8px}
.tuna-sg.tg-sb .tg-league-form select,.tuna-sg.tg-sb .tg-league-form input{height:46px}
.tuna-sg.tg-sb .tg-season-tier{margin:0;display:flex;align-items:baseline;gap:6px}
.tuna-sg.tg-sb .tg-season-tier b{font:400 64px/1 var(--tg-num);color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-season-tier small{font:700 14px var(--tg-lat);color:#3a4573}
.tuna-sg.tg-sb .tg-season{display:flex;flex-direction:column;gap:6px}
.tuna-sg.tg-sb .tg-season-head,.tuna-sg.tg-sb .tg-season-row{display:grid;grid-template-columns:36px 1fr 1fr;gap:6px;align-items:stretch}
.tuna-sg.tg-sb .tg-season-head span{font:700 11px var(--tg-lat);letter-spacing:.06em;color:var(--tg-muted);text-align:center}
.tuna-sg.tg-sb .tg-season-row>b{display:flex;align-items:center;justify-content:center;font:400 16px var(--tg-num);color:#3a4573}
.tuna-sg.tg-sb .tg-season-row.is-reached>b{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-season-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;border-radius:8px;border:1px solid var(--tg-line);background:var(--tg-bg);color:#c3cae6;font:700 13px var(--tg-body);padding:6px}
.tuna-sg.tg-sb button.tg-season-cell{cursor:pointer}
.tuna-sg.tg-sb button.tg-season-cell:not(:disabled){border-color:var(--tg-brand);background:rgba(245,197,24,.12);color:#fff}
.tuna-sg.tg-sb button.tg-season-cell:not(:disabled) small{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-season-cell:disabled{opacity:.5;cursor:default}
.tuna-sg.tg-sb .tg-season-cell.is-claimed{opacity:1;background:#141d42;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-season-cell small{font-size:11px;font-weight:700}
.tuna-sg.tg-sb .tg-season-cell.is-empty{border:0;background:transparent;color:#26305a}
.tuna-sg.tg-sb .tg-dex,.tuna-sg.tg-sb .tg-badges{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tuna-sg.tg-sb .tg-dex li,.tuna-sg.tg-sb .tg-badges li{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:7px 4px;border-radius:8px;border:1px dashed #26305a;text-align:center;color:#4b578a}
.tuna-sg.tg-sb .tg-dex li b,.tuna-sg.tg-sb .tg-badges li b{font-size:13px}
.tuna-sg.tg-sb .tg-dex li small,.tuna-sg.tg-sb .tg-badges li small{font-size:10.5px;line-height:1.3}
.tuna-sg.tg-sb .tg-dex li.is-got,.tuna-sg.tg-sb .tg-badges li.is-got{border-style:solid;border-color:var(--tg-brand);background:linear-gradient(180deg,#1c2550,#111a3d);color:#fff}
.tuna-sg.tg-sb .tg-dex li.is-got small,.tuna-sg.tg-sb .tg-badges li.is-got small{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-mates{list-style:none;margin:0;padding:0}
.tuna-sg.tg-sb .tg-mates li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 10px;align-items:center;padding:10px 0;border-bottom:1px solid #161f44;margin:0}
.tuna-sg.tg-sb .tg-mates li b{grid-column:2;font-size:14px}
.tuna-sg.tg-sb .tg-mates li small{grid-column:2;font-size:12px;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-mates li .tg-btn{grid-column:3;grid-row:1/3}
.tuna-sg.tg-sb .tg-mate-dot{grid-row:1/3;width:10px;height:10px;border-radius:50%;background:#3a4573}
.tuna-sg.tg-sb .tg-mate-dot.is-on{background:var(--tg-brand)}
.tuna-sg.tg-sb .tg-code{display:flex;align-items:center;gap:10px;background:var(--tg-bg);border:1px solid var(--tg-line);border-radius:8px;padding:10px 12px}
.tuna-sg.tg-sb .tg-code span{font-size:12px;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-code b{flex:1;font:400 22px var(--tg-num);letter-spacing:.12em;color:var(--tg-brand)}

/* 라이브·합격 */
.tuna-sg.tg-sb .tg-onair{display:inline-flex;align-items:center;gap:6px;background:#ff4d4f;color:#fff;padding:3px 8px;border-radius:4px;letter-spacing:.1em}
.tuna-sg.tg-sb .tg-onair::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;animation:tg-blink 1s infinite}
@keyframes tg-blink{50%{opacity:.2}}
.tuna-sg.tg-sb .tg-feed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.tuna-sg.tg-sb .tg-feed li{margin:0;gap:6px}
.tuna-sg.tg-sb .tg-feed li p{margin:0;font-size:14.5px;line-height:1.7}
.tuna-sg.tg-sb .tg-file{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#c3cae6;border:1px dashed var(--tg-line);border-radius:8px;padding:12px}
.tuna-sg.tg-sb .tg-file input{color:#c3cae6}
.tuna-sg.tg-sb .tg-wall{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.tuna-sg.tg-sb .tg-wall li{margin:0;background:var(--tg-soft);border-radius:8px;padding:12px 14px}
.tuna-sg.tg-sb .tg-wall b{display:block;font-size:15px}
.tuna-sg.tg-sb .tg-wall small{color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-wall p{margin:6px 0 0;font-size:13.5px;color:#c3cae6}

/* 웹툰 */
.tuna-sg.tg-sb.tg-wt{padding:0 0 20px;gap:16px;max-width:720px;background:var(--tg-bg)}
.tuna-sg.tg-sb .tg-wt-strip{display:flex;flex-direction:column;line-height:0}
.tuna-sg.tg-sb .tg-wt-strip img{display:block;width:100%;height:auto;margin:0!important}
.tuna-sg.tg-sb .tg-wt-strip p{margin:0}
.tuna-sg.tg-sb .tg-wt-peek{position:relative;max-height:520px;overflow:hidden}
.tuna-sg.tg-sb .tg-wt-peek::after{content:"";position:absolute;left:0;right:0;bottom:0;height:60%;background:linear-gradient(transparent,var(--tg-bg))}
.tuna-sg.tg-sb .tg-wt-lock,.tuna-sg.tg-sb .tg-wt-next,.tuna-sg.tg-sb .tg-wt-pred,.tuna-sg.tg-sb .tg-wt-quiz,.tuna-sg.tg-sb .tg-wt-nav{margin:0 16px}
.tuna-sg.tg-sb .tg-wt-lock{display:flex;flex-direction:column;gap:8px;text-align:center;align-items:center;padding:8px 0 16px}
.tuna-sg.tg-sb .tg-wt-lock strong{font-size:20px}
.tuna-sg.tg-sb .tg-wt-lock p{margin:0;color:#c3cae6}
.tuna-sg.tg-sb .tg-wt-lock .tg-btn{width:100%;max-width:360px}
.tuna-sg.tg-sb .tg-wt-login{font-size:13px;color:var(--tg-muted)!important}
.tuna-sg.tg-sb .tg-wt-quiz{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:14px;border-radius:10px;border:1px dashed var(--tg-brand);text-decoration:none!important;color:var(--tg-ink)!important}
.tuna-sg.tg-sb .tg-wt-quiz .tg-sb-k{grid-column:1/-1;color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-wt-quiz em{font-style:normal;color:var(--tg-brand);font-weight:800;align-self:center}
.tuna-sg.tg-sb .tg-wt-pred,.tuna-sg.tg-sb .tg-wt-next{background:var(--tg-surface);border:1px solid var(--tg-line);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:10px}
.tuna-sg.tg-sb .tg-wt-pred .tg-sb-k{color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-wt-pred strong,.tuna-sg.tg-sb .tg-wt-next strong{font-size:16px}
.tuna-sg.tg-sb .tg-wt-next p{margin:0;font-size:13.5px;color:#c3cae6}
.tuna-sg.tg-sb .tg-wt-opts{display:flex;flex-direction:column;gap:6px}
.tuna-sg.tg-sb .tg-wt-opt{position:relative;display:flex;justify-content:space-between;align-items:center;min-height:46px;padding:0 14px;border-radius:8px;border:1px solid var(--tg-line);background:var(--tg-bg);color:var(--tg-ink);font:700 14px var(--tg-body);cursor:pointer;overflow:hidden}
.tuna-sg.tg-sb .tg-wt-opt span{position:relative;z-index:1}
.tuna-sg.tg-sb .tg-wt-opt i{position:relative;z-index:1;font:700 12px var(--tg-lat);font-style:normal;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-wt-fill{position:absolute;left:0;top:0;bottom:0;background:#1c2550;transition:width .5s}
.tuna-sg.tg-sb .tg-wt-opt.is-mine .tg-wt-fill,.tuna-sg.tg-sb .tg-wt-opt.is-answer .tg-wt-fill{background:rgba(245,197,24,.22)}
.tuna-sg.tg-sb .tg-wt-opt.is-mine{border-color:var(--tg-brand)}
.tuna-sg.tg-sb .tg-wt-opt.is-answer{border-color:var(--tg-brand);background:rgba(245,197,24,.12)}
.tuna-sg.tg-sb .tg-wt-opt:disabled{cursor:default}
.tuna-sg.tg-sb .tg-wt-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:8px}
.tuna-sg.tg-sb .tg-wt-nav a{text-align:center;padding:12px;border-radius:8px;background:var(--tg-soft);color:var(--tg-ink)!important;text-decoration:none!important;font-weight:700;font-size:14px}
.tuna-sg.tg-sb .tg-wt-nav a:last-child{text-align:center}
.tuna-sg.tg-sb .tg-wt-title{margin:0;font:400 36px/1.1 var(--tg-num);color:#fff;letter-spacing:-.01em}
.tuna-sg.tg-sb .tg-wt-dday{margin:0;font:700 13px var(--tg-lat);color:var(--tg-brand);letter-spacing:.06em}
.tuna-sg.tg-sb .tg-wt-eps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.tuna-sg.tg-sb .tg-wt-eps li{margin:0}
.tuna-sg.tg-sb .tg-wt-eps a{position:relative;display:flex;gap:12px;align-items:center;padding:8px;border-radius:10px;background:var(--tg-surface);border:1px solid var(--tg-line);text-decoration:none!important;color:var(--tg-ink)!important}
.tuna-sg.tg-sb .tg-wt-eps a.is-read{opacity:.6}
.tuna-sg.tg-sb .tg-wt-thumb{flex:none;width:72px;height:72px;border-radius:6px;background:#1c2550 center top/cover no-repeat}
.tuna-sg.tg-sb .tg-wt-meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.tuna-sg.tg-sb .tg-wt-meta b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tuna-sg.tg-sb .tg-wt-meta small{font-size:12px;color:var(--tg-muted)}
.tuna-sg.tg-sb .tg-wt-new,.tuna-sg.tg-sb .tg-wt-lockchip{position:absolute;top:8px;right:8px;font:700 10px var(--tg-lat);font-style:normal;letter-spacing:.08em;padding:3px 6px;border-radius:4px;background:var(--tg-accent);color:#fff}
.tuna-sg.tg-sb .tg-wt-lockchip{background:#26305a;top:auto;bottom:8px}

@media (max-width:460px){
  .tuna-sg.tg-sb .tg-4 .tg-sb-tile strong{font-size:16px}
  .tuna-sg.tg-sb .tg-q-actions{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.tuna-sg.tg-sb .tg-xp i{transition:none}}
