/* 샤봇 타일 짝꿍 — 등불 켜진 비취색 찻집 탁자 + 상아색 타일 (이름표 앞머리 tm-) */

/* ── 공통 틀(퍼즐 6종이 같이 쓰는 모양): 제목 화면 · PLAY 단추 · HUD 알약 · 결과 별 · 손가락 안내 ──
   게임마다 바꾸는 색: --k-a(로고 위) --k-b(로고 아래) --k-edge(로고 테두리) --k-glow(빛) */
.k-title { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px; text-align: center; overflow: hidden; }
.k-title[hidden] { display: none; }
.k-title > * { position: relative; z-index: 2; }
.k-title .k-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.k-bot { width: 86px; height: 86px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); animation: k-bob 2.4s ease-in-out infinite; }
@keyframes k-bob { 50% { transform: translateY(-9px) rotate(-3deg); } }
.k-logo { position: relative; margin: 0; font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: clamp(42px, 8.4vw, 82px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.k-logo span { position: relative; display: inline-block; background: linear-gradient(180deg, #fff 8%, var(--k-a, #ffe27a) 46%, var(--k-b, #ff9a3c) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.k-logo::before { content: attr(data-t); position: absolute; inset: 0; z-index: -1; -webkit-text-stroke: 12px var(--k-edge, #3a1d6e); color: var(--k-edge, #3a1d6e); text-shadow: 0 8px 0 var(--k-edge, #3a1d6e), 0 16px 26px rgba(0, 0, 0, 0.45); }
.k-logo small { display: block; font-size: 0.34em; margin-top: 6px; }
.k-sub { margin: -4px 0 2px; max-width: 420px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
@media (max-width: 420px) { .k-logo { font-size: clamp(36px, 11vw, 54px); } .k-bot { width: 70px; height: 70px; } }

/* 크고 도톰한 입체 단추 (모든 게임 같은 금빛) */
.k-play { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 230px; padding: 15px 44px 17px; border: 0; border-radius: 24px; cursor: pointer; overflow: hidden;
  font-family: 'Black Han Sans', var(--title); font-size: 32px; line-height: 1; color: #fff; letter-spacing: 0.02em; text-shadow: 0 3px 0 rgba(150, 60, 0, 0.55);
  background: linear-gradient(180deg, #ffe066 0%, #ffb21e 52%, #ff8a00 100%);
  box-shadow: 0 8px 0 #c25e00, 0 14px 26px rgba(0, 0, 0, 0.38), inset 0 3px 0 rgba(255, 255, 255, 0.65), inset 0 -4px 0 rgba(200, 80, 0, 0.35);
  animation: k-breathe 1.8s ease-in-out infinite; transition: transform 0.08s, box-shadow 0.08s; }
.k-play::before { content: ''; position: absolute; left: 10px; right: 10px; top: 5px; height: 42%; border-radius: 18px 18px 40% 40%; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); pointer-events: none; }
.k-play::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent); transform: skewX(-18deg); animation: k-shine 2.8s ease-in-out infinite; pointer-events: none; }
.k-play svg { width: 0.9em; height: 0.9em; fill: #fff; filter: drop-shadow(0 3px 0 rgba(150, 60, 0, 0.55)); }
.k-play:hover { filter: brightness(1.06); }
.k-play:active { transform: translateY(6px) scale(0.98); box-shadow: 0 2px 0 #c25e00, 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.65); animation: none; }
.k-play.small { min-width: 0; font-size: 24px; padding: 12px 26px 14px; border-radius: 18px; }
.k-play.wide { width: 100%; }
@keyframes k-breathe { 50% { transform: scale(1.045); } }
@keyframes k-shine { 0%, 55% { left: -50%; } 100% { left: 130%; } }

.k-ghost[hidden], .k-play[hidden], .k-best[hidden], .k-link[hidden] { display: none; }
/* 작은 보조 단추 · 고르기 칩 */
.k-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); color: #fff; font-family: var(--title); font-size: 17px; cursor: pointer; text-decoration: none; backdrop-filter: blur(4px); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.k-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.k-link { display: inline-block; margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, 0.72); text-decoration: underline; text-underline-offset: 3px; }

/* HUD 알약: 아이콘 + 숫자 */
.k-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(20, 16, 50, 0.72), rgba(20, 16, 50, 0.55)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 4px 10px rgba(0, 0, 0, 0.25); color: #fff; }
.k-pill i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--ic1, #ffd75e), var(--ic2, #ff9d1c)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.k-pill i svg { width: 19px; height: 19px; fill: #fff; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3)); }
.k-pill b { font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 22px; line-height: 1; min-width: 1.2em; text-align: center; letter-spacing: 0.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.k-pill small { font-size: 11px; opacity: 0.7; margin-left: -2px; }
.k-pill.k-hot b { color: #ffd75e; }
.k-pop { animation: k-pop 0.36s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes k-pop { 0% { transform: scale(1); } 35% { transform: scale(1.32) translateY(-2px); } 100% { transform: scale(1); } }
.k-best { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 2px rgba(255, 215, 94, 0.45); color: #ffe7a0; font-family: var(--title); font-size: 17px; }
.k-best i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#ffe27a, #ffa41c); }
.k-best i svg { width: 17px; height: 17px; fill: #fff; }
.k-best b { font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 21px; color: #fff; }

/* 결과 화면 카드 */
.k-res { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 90, 0.55), rgba(10, 8, 30, 0.86)); backdrop-filter: blur(3px); }
.k-res[hidden] { display: none; }
.k-card { position: relative; width: min(380px, 100%); max-height: 100%; overflow: auto; padding: 16px 22px 20px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(180deg, var(--k-card1, #3b2f86) 0%, var(--k-card2, #231a5c) 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16), inset 0 3px 0 rgba(255, 255, 255, 0.25), 0 26px 60px rgba(0, 0, 0, 0.5);
  animation: k-card-in 0.45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes k-card-in { from { transform: translateY(40px) scale(0.85); opacity: 0; } }
.k-card h2 { margin: 0 0 2px; font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 34px; line-height: 1.1; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.k-card p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.k-stars { display: flex; justify-content: center; align-items: flex-end; gap: 2px; margin: 0 0 4px; }
.k-stars span { width: 62px; height: 62px; display: block; }
.k-stars span:nth-child(2) { width: 82px; height: 82px; margin-bottom: 12px; }
.k-stars svg { width: 100%; height: 100%; overflow: visible; }
.k-stars .bg { fill: #1a1446; stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.4; }
.k-stars .fg { fill: url(#k-gold); stroke: #b86a00; stroke-width: 1.4; transform-origin: 12px 12px; transform: scale(0); }
.k-stars .on .fg { animation: k-stamp 0.42s cubic-bezier(.3, 1.9, .5, 1) forwards; }
@keyframes k-stamp { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.k-score { display: block; margin: 4px 0 2px; font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 56px; line-height: 1.05; background: linear-gradient(#fff, #ffe48a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.k-rows { display: grid; gap: 6px; margin: 8px 0 12px; }
.k-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); font-size: 15px; }
.k-row b { font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 20px; }
.k-next { margin: 0 0 12px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 215, 94, 0.14); box-shadow: inset 0 0 0 1.5px rgba(255, 215, 94, 0.4); color: #ffe7a0; font-size: 14px; }
.k-next:empty { display: none; }
.k-ribbon { position: relative; display: inline-block; margin: 2px 0 8px; padding: 6px 26px; font-family: 'Black Han Sans', var(--title); font-size: 20px; color: #fff; background: linear-gradient(#ff5d8f, #e0245e); box-shadow: 0 4px 0 #9c1240; border-radius: 6px; transform: rotate(-3deg); animation: k-ribbon 0.6s 0.3s cubic-bezier(.3, 1.8, .5, 1) both; }
.k-ribbon[hidden] { display: none; }
@keyframes k-ribbon { from { transform: rotate(-3deg) scale(0); } }
.k-card .k-play { margin-top: 4px; }
.k-card .k-link { margin-top: 12px; }

/* 손가락 안내 */
.k-hand { position: absolute; left: 0; top: 0; z-index: 9; width: 58px; height: 58px; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4)); }
.k-hand svg { width: 100%; height: 100%; transform-origin: 30% 8%; }
.k-hand.press svg { transform: scale(0.85); }
.k-tap { position: absolute; z-index: 8; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid #fff; pointer-events: none; animation: k-tap 0.6s ease-out forwards; }
@keyframes k-tap { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }
.k-tipbox { position: absolute; left: 50%; z-index: 9; transform: translateX(-50%); padding: 8px 16px; border-radius: 14px; background: rgba(15, 10, 40, 0.82); color: #fff; font-family: var(--title); font-size: 17px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); animation: k-tip-in 0.4s ease-out both; }
@keyframes k-tip-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* 콤보 글자 */
.sb-float.k-combo { font-family: 'Black Han Sans', var(--title); -webkit-text-stroke: 7px rgba(40, 10, 70, 0.92); letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) { .k-play, .k-bot { animation: none; } }

.tm-stage { --k-a: #fff1c4; --k-b: #ffb340; --k-edge: #0d3b30; --k-card1: #1f6b58; --k-card2: #0f3a31;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(60, 190, 150, 0.28), transparent 70%),
    radial-gradient(140% 110% at 50% 40%, #1d6b57 0%, #12493d 52%, #0a2621 100%);
}
/* 탁자 천 결 + 등불 빛 */
.tm-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 7px); }
.tm-lanterns { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tm-lanterns i { position: absolute; top: -6px; width: 34px; height: 46px; border-radius: 45%; background: radial-gradient(circle at 50% 40%, #ffe9a8, #ff7a3c 60%, #c2361c);
  box-shadow: 0 0 30px 10px rgba(255, 150, 60, 0.35); animation: tm-swing 4s ease-in-out infinite; transform-origin: 50% -40px; opacity: 0.9; }
.tm-lanterns i::before { content: ''; position: absolute; left: 7px; right: 7px; top: -5px; height: 6px; border-radius: 2px; background: #5a2a10; }
.tm-lanterns i::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 2px; height: 10px; background: #ffd27a; }
.tm-lanterns i:nth-child(1) { left: 4%; animation-delay: -1s; }
.tm-lanterns i:nth-child(2) { left: 28%; top: -16px; transform: scale(0.8); animation-delay: -2.2s; }
.tm-lanterns i:nth-child(3) { right: 26%; top: -14px; animation-delay: -0.4s; }
.tm-lanterns i:nth-child(4) { right: 4%; animation-delay: -3s; }
@keyframes tm-swing { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }

.tm { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; }
.tm:not(.side) .tm-side { display: contents; }
.tm-hud { order: 0; flex: none; display: flex; gap: 6px; padding: 8px 8px 2px; justify-content: center; }
.tm-hud .k-pill { flex: 0 1 auto; min-width: 0; padding-right: 12px; }
.tm-hud .k-pill b { font-variant-numeric: tabular-nums; font-size: 20px; white-space: nowrap; }
.tm-hud .k-pill small { display: none; }
.tm-hud .warn { box-shadow: inset 0 0 0 2px rgba(255, 200, 61, 0.9), 0 0 14px rgba(255, 200, 61, 0.45); }
.tm-hud .warn b { color: #ffd23f; }
.tm-board { order: 1; flex: 1; min-height: 0; min-width: 0; position: relative; overflow: hidden; touch-action: none; }
.tm-cv { position: absolute; left: 0; top: 0; display: block; cursor: pointer; touch-action: none; }

/* 단추 줄: 도톰한 동그란 단추 */
.tm-bar { order: 2; flex: none; display: flex; gap: 10px; justify-content: center; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); }
.tm-kb { flex: 1 1 0; min-width: 0; max-width: 150px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; cursor: pointer;
  border: 0; border-radius: 16px; color: #fff; font-family: var(--title); font-size: 17px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #2f8f76, #1b5f4e); box-shadow: 0 5px 0 #0c3a2f, 0 8px 14px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3); transition: transform 0.08s, box-shadow 0.08s; }
.tm-kb i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.22); }
.tm-kb i svg { width: 19px; height: 19px; fill: #fff; }
.tm-kb.b-hint i { background: linear-gradient(#ffe066, #ff9a0a); }
.tm-kb.b-shuffle i { background: linear-gradient(#9fe7ff, #2a9fd6); }
.tm-kb.b-undo i { background: linear-gradient(#ffb0a6, #ff5a4a); }
.tm-kb.b-menu i { background: linear-gradient(#c6a8ff, #7c4dff); }
.tm-kb span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-kb:hover { filter: brightness(1.08); }
.tm-kb:active { transform: translateY(4px); box-shadow: 0 1px 0 #0c3a2f, 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.tm-kb:disabled { opacity: 0.45; cursor: default; }

/* 넓은 화면: 점수판 · 단추를 왼쪽 기둥으로 */
.tm.side { flex-direction: row; }
.tm.side .tm-side { flex: none; width: clamp(170px, 17vw, 230px); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 10px 0 10px 12px; }
.tm.side .tm-hud { display: flex; flex-direction: column; gap: 8px; padding: 0; }
.tm.side .tm-hud .k-pill { height: 46px; }
.tm.side .tm-hud .k-pill b { font-size: 24px; flex: 1; text-align: left; }
.tm.side .tm-hud .k-pill small { display: block; font-size: 12px; margin-left: auto; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm.side .tm-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; }
.tm.side .tm-kb { max-width: none; height: auto; min-height: 70px; flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 15px; }
.tm.side .tm-kb span { max-width: 100%; }

/* 알림 */
.tm-toast { position: absolute; left: 50%; bottom: 78px; z-index: 50; width: max-content; max-width: calc(100% - 32px); transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 9px 18px; border-radius: 999px; background: rgba(8, 30, 25, 0.95); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 140, 0.4); color: #fff; font-size: 14px; text-align: center; transition: opacity 0.2s, transform 0.2s; }
.tm-toast.on { opacity: 1; transform: translate(-50%, 0); }
.tm.side ~ .tm-toast { bottom: 16px; }

/* 제목 화면 */
.tm-title { background: radial-gradient(70% 55% at 50% 40%, rgba(255, 190, 90, 0.22), transparent 70%), radial-gradient(140% 110% at 50% 40%, #1d6b57 0%, #12493d 52%, #0a2621 100%); overflow-y: auto; justify-content: safe center; }
.tm-tin { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(560px, 100%); }
.tm-ft { position: absolute; width: 64px; height: 80px; opacity: 0.8; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.4)); animation: tm-ft 6s ease-in-out infinite; }
@keyframes tm-ft { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-16px) rotate(8deg); } }
.tm-logo { display: block; width: 150px; height: 92px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); animation: k-bob 2.6s ease-in-out infinite; }
.tm-title .k-sub { margin: -4px 0 0; }
.tm-label { margin: 2px 0 -2px; font-family: var(--title); font-size: 17px; color: #ffe7a0; }
.tm-lays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.tm-lay { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px 7px; border-radius: 16px; border: 0; cursor: pointer; min-width: 0;
  background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 4px 0 rgba(0, 0, 0, 0.25); color: #d8efe8; transition: transform 0.1s; }
.tm-lay canvas { width: 96px; max-width: 100%; height: 64px; border-radius: 10px; background: linear-gradient(160deg, #1d6b57, #0f3a31); }
.tm-lay b { font-size: 15px; font-family: var(--title); font-weight: 400; color: #fff; line-height: 1.25; margin-top: 3px; }
.tm-lay span { font-size: 11px; color: #a8d4c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tm-lay.on { background: linear-gradient(180deg, rgba(255, 200, 61, 0.35), rgba(255, 140, 30, 0.25)); box-shadow: inset 0 0 0 3px #ffc83d, 0 0 18px rgba(255, 200, 61, 0.45), 0 4px 0 rgba(0, 0, 0, 0.25); transform: translateY(-2px); }
.tm-lay:hover { transform: translateY(-2px); }
.tm-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.tm-btns .k-play { font-size: 28px; }
.tm-btns .b-resume ~ .k-ghost { order: 2; }
.tm-tip { margin: 0; font-size: 12.5px; color: rgba(220, 240, 235, 0.6); }
@media (pointer: coarse) { .tm-tip { display: none; } }
.tm-stage .k-card .k-ghost { display: inline-flex; }

@media (max-width: 560px) {
  .tm-hud { width: 100%; max-width: 440px; align-self: center; gap: 5px; padding: 8px 6px 2px; }
  .tm-hud .k-pill { flex: 1 1 0; height: 36px; gap: 4px; padding-right: 6px; }
  .tm-hud .k-pill i { width: 28px; height: 28px; }
  .tm-hud .k-pill i svg { width: 16px; height: 16px; }
  .tm-hud .k-pill b { font-size: 17px; }
  .tm-bar { gap: 6px; padding-left: 6px; padding-right: 6px; }
  .tm-kb { font-size: 14px; height: 48px; gap: 4px; padding: 0 4px; }
  .tm-lay canvas { height: 56px; }
}
@media (max-width: 440px) {
  .tm:not(.side) .tm-kb { flex-direction: column; gap: 1px; font-size: 12px; height: 56px; }
  .tm:not(.side) .tm-kb i { width: 26px; height: 26px; }
  .tm-ft { opacity: 0.35; }
}
/* 낮은 화면(폰 가로) */
@media (max-height: 520px) {
  .tm.side .tm-side { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .tm.side .tm-hud .k-pill { height: 36px; }
  .tm.side .tm-hud .k-pill b { font-size: 18px; }
  .tm.side .tm-kb { min-height: 46px; font-size: 12px; padding: 4px 2px; }
  .tm-logo, .tm-title .k-sub, .tm-tip { display: none; }
  .tm-lays { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .tm-lay canvas { height: 42px; }
  .tm-lay b { font-size: 12px; }
  .tm-lay span { font-size: 10px; }
  .tm-title .k-logo { font-size: 34px; }
}
@media (max-height: 700px) and (min-height: 521px) {
  .tm-logo { width: 110px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) { .tm-toast { transition: none; } .tm-lanterns i, .tm-ft { animation: none; } }
.tm-title { scrollbar-width: none; gap: 8px; }
.tm-title::-webkit-scrollbar { display: none; }
.tm-title .k-logo { font-size: clamp(36px, 6.4vw, 66px); }
.tm-logo { width: 124px; height: 76px; }
@media (max-width: 560px) { .tm-lanterns { display: none; } }
