/* Dedicated pre-game screen. The cat is the same component used in the arcade. */
.tm-difficulty {
  border: 0;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  color: #1e1b16;
  background: #fcf7f1;
}
.tm-difficulty::backdrop { background: #fcf7f1; }
.tm-difficulty[open] { display:grid; align-items:safe center; }
.tm-difficulty-layout {
  width:min(940px,100%); margin:auto; display:grid;
  grid-template-columns:minmax(135px,.7fr) minmax(0,2fr);
  grid-template-areas:'cat head' 'cat main';
  gap:12px clamp(16px,5vw,62px);
}
.tm-difficulty-cat { grid-area:cat; align-self:center; width:min(100%, 290px); aspect-ratio:444/650; border-radius:16px; overflow:hidden; background:#f6ddd0; }
.tm-difficulty-main { grid-area:main; min-width:0; align-self:start; display:grid; gap:12px; }
.tm-difficulty-head h2 { font-size:clamp(29px,5vw,63px); margin:4px 0 0; line-height:1; letter-spacing:-.04em; }
.tm-difficulty-game { color:#8b3e22; font:600 11px/1.2 'IBM Plex Mono',monospace; letter-spacing:.12em; }
.tm-difficulty-head { grid-area:head; align-self:end; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.tm-difficulty-close { flex:none; width:44px; height:44px; border-radius:50%; border:1px solid #8e7768; background:transparent; color:#1e1b16; font-size:25px; }
.tm-difficulty-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.tm-difficulty-options button { min-height:62px; display:flex; align-items:center; gap:7px; padding:7px; border-radius:9px; border:1px solid #a48b79; background:#fffdfa; color:#1e1b16; text-align:left; font-size:clamp(12px,2vw,17px); line-height:1.08; cursor:pointer; }
.tm-difficulty-options button:enabled:hover, .tm-difficulty-options button[aria-pressed=true] { border-color:#69412e; background:#f4a582; }
.tm-difficulty-options button:disabled:not([aria-pressed=true]) { opacity:.62; }
.tm-difficulty-options button svg { flex:none; width:clamp(24px, 4vw,36px); height:auto; }
.tm-difficulty-options button small { display:block; font-size:.75em; font-weight:500; margin:4px 0 0; }
.tm-difficulty-bass { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tm-difficulty-bass button { min-height:44px; }
.tm-difficulty-bass button small { color:#693b28; font-weight:700; margin-left:auto; }
.tm-difficulty-options button:focus-visible, .tm-difficulty button:focus-visible { outline:2px solid #8d3e2a; outline-offset:2px; }
.tm-difficulty-tempo { display:flex; justify-self:start; align-items:center; gap:8px; color:#514033; font:600 12px/1.1 'IBM Plex Mono',monospace; }
.tm-difficulty-tempo button { width:42px; height:34px; border:1px solid #bca494; background:white; border-radius:20px; font-size:18px; }
.tm-difficulty-note { margin:0; color:#553827; font-size:14px; line-height:1.35; }
.tm-difficulty-rules { font-size:14px; line-height:1.4; }
.tm-difficulty-rules summary { text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.tm-difficulty-rules ul { margin:6px 0; padding-inline-start:20px; }
/* Compact level picker for portrait screens. */
.tm-difficulty-portrait {
  grid-template-columns:clamp(64px,24vw,120px) minmax(0,1fr);
  grid-template-areas:'head head' 'cat main';
  gap:14px 12px;
  max-width:540px;
}
.tm-difficulty-portrait .tm-difficulty-cat { align-self:start; }
.tm-difficulty-portrait .tm-difficulty-options { grid-template-columns:minmax(0,1fr); }
.tm-difficulty-portrait .tm-difficulty-options button { min-width:0; min-height:48px; flex-direction:row; align-items:center; padding-inline:8px; }
.tm-difficulty-portrait .tm-difficulty-options button strong,
.tm-difficulty-portrait .tm-difficulty-options button small { overflow-wrap:anywhere; }
.tm-difficulty-portrait .tm-difficulty-options button:disabled { opacity:1; color:#514437; background:#f6eee7; border-color:#c5b4a8; }
.tm-difficulty-portrait .tm-difficulty-options button[aria-pressed=true] { border-color:#a75839; background:#f9ddcd; }
.tm-picker-instructions { padding:9px 12px; border-left:3px solid #b9542c; border-radius:4px; background:#f6e8df; }
.tm-difficulty-tempo button { width:44px; height:44px; }
.tm-difficulty-rules summary { display:flex; align-items:center; min-height:44px; width:max-content; }
.tm-difficulty-rules summary::before { content:'▸'; margin-inline-end:7px; }
.tm-difficulty-rules[open] summary::before { content:'▾'; }

.tm-rotation {
  position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0;
  border:0; padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));
  overflow:auto; overscroll-behavior:contain;
  background:radial-gradient(ellipse at 50% 20%, #413022, #1e1b16 68%); color:#fcf7f1;
}
.tm-rotation::backdrop { background:#1e1b16; }
.tm-rotation[open] { display:grid; place-items:safe center; }
.tm-rotation-panel { display:grid; justify-items:center; gap:12px; padding:24px 20px; width:min(100%,360px); text-align:center; border-radius:18px; border:1px solid #6c5241; background:#28221c; }
.tm-rotation-cat { width:min(34vw,120px); aspect-ratio:444/650; border-radius:10px; overflow:hidden; background:#f6ddd0; }
.tm-rotation-tag { color:#f4a582; font:600 11px/1.3 'IBM Plex Mono',monospace; letter-spacing:.12em; }
.tm-rotation h2 { margin:0; font-size:clamp(25px,8vw,40px); line-height:1; }
.tm-rotation p { margin:0; color:#dfcebd; line-height:1.45; }
.tm-rotation button { border:1px solid #a87c66; border-radius:24px; padding:8px 18px; color:inherit; background:transparent; font-weight:700; min-height:44px; cursor:pointer; }
@media(max-height:450px) and (orientation:landscape) {
  .tm-difficulty-layout { grid-template-columns:minmax(90px,.55fr) minmax(0,2fr); gap:12px; }
  .tm-difficulty-main { gap:8px; }
  .tm-difficulty-cat { max-height:225px; justify-self:center; width:100%; }
  .tm-difficulty-head h2 { font-size:clamp(25px,5vw,42px); }
  .tm-difficulty-options button { min-height:46px; }
}

/* Rhythm Bomb: four groups of sixteenth-note pads on one percussion lane. */
.tm-rseq { width:100%; min-width:0; container-type:inline-size; flex:none; padding:10px; border:1px solid #525254; border-radius:9px; background:#1b1b1f; box-shadow:inset 0 1px #ffffff18; color:#f8f2ed; font:600 11px/1.1 'IBM Plex Mono',monospace; }
.tm-rseq,.tm-rseq * { box-sizing:border-box; }
.tm-rseq__top,.tm-rseq__lane,.tm-rseq__ruler { display:flex; align-items:center; gap:7px; min-width:0; }
.tm-rseq__top { flex-wrap:wrap; padding:0 2px 8px; font-size:10px; letter-spacing:.03em; }
.tm-rseq__brand { color:#f8f2ed; font-weight:800; letter-spacing:.09em; }
.tm-rseq__mode { color:#f4a582; }
.tm-rseq__info { color:#c7c3c0; margin-left:auto; white-space:nowrap; }
.tm-rseq__lane { min-height:26px; padding:3px 6px; border:1px solid #545357; border-radius:4px; background:#353439; }
.tm-rseq__voice { padding:3px 5px; background:#f4a582; color:#241d1c; border-radius:2px; }
.tm-rseq__source { font-size:10px; }
.tm-rseq__bar { font-size:9px; margin-left:auto; color:#d1cfcc; }
.tm-rseq__quarters { display:grid; grid-template-columns:repeat(4,minmax(186px,1fr)); gap:6px; margin-top:7px; overflow-x:auto; }
@container (max-width:780px) { .tm-rseq__quarters { grid-template-columns:repeat(2,minmax(186px,1fr)); } }
.tm-rseq__beat { min-width:0; padding:3px; border:1px solid #49484d; border-radius:4px; background:#25252a; }
.tm-rseq__beat:nth-child(even) { background:#2e2d32; }
.tm-rseq__ruler { height:19px; justify-content:space-between; padding:0 3px 2px; color:#c5c2c2; }
.tm-rseq__beatno { color:#f8f2ed; font-size:11px; }
.tm-rseq__ticks { letter-spacing:.20em; font-size:10px; white-space:pre; }
.tm-rseq__beat.is-count .tm-rseq__ruler { background:#f4a582; color:#241d1c; }
.tm-rseq__beat.is-count .tm-rseq__beatno { color:inherit; }
.tm-rseq__steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; }
.tm-rseq__pad { position:relative; display:grid; grid-template-rows:auto 1fr; justify-items:center; align-items:center; gap:2px; min-width:44px; min-height:53px; width:100%; padding:6px 0 3px; background:#36363c; color:#dddbdb; border:1px solid #57575d; border-radius:3px; cursor:pointer; }
.tm-rseq__pad[aria-disabled=true] { cursor:default; }
.tm-rseq__pad.is-beat { background:#47464c; color:#fff9f4; border-color:#727178; }
.tm-rseq__stepno { font:600 clamp(8px,1vw,11px)/1 'IBM Plex Mono',monospace; }
.tm-rseq__led { display:block; width:54%; height:3px; border-radius:1px; background:#8d8a8c; }
.tm-rseq__pad.is-hit { background:#f4a582; color:#251c1b; border-color:#ffc6ab; }
.tm-rseq__pad.is-hit .tm-rseq__led { background:#6b3521; }
.tm-rseq__pad.is-extra { background:#a43b36; color:#fff; border-color:#f58d84; }
.tm-rseq__pad.is-extra .tm-rseq__led { background:#fff0eb; transform:rotate(-25deg); }
.tm-rseq__pad.is-miss { border:2px dashed #ffc3a5; }
.tm-rseq__playhead { display:none; position:absolute; inset:0 auto 0 0; width:3px; border-radius:2px; background:#adf1bc; pointer-events:none; }
.tm-rseq__pad.is-playing { box-shadow:inset 0 0 0 1px #adf1bc; }
.tm-rseq__pad.is-playing .tm-rseq__playhead { display:block; }
.tm-rseq--shell .tm-rseq__pad { min-height:47px; }
@media(max-width:1100px) {
  .tm-rseq--shell .tm-rseq__pad { min-height:44px; min-width:44px; }
  .tm-rseq--shell .tm-rseq__quarters { grid-template-columns:repeat(2,minmax(186px,1fr)); overflow-x:auto; }
  .tm-rseq--shell .tm-rseq__top { padding-bottom:5px; }
}
@media(max-height:360px) and (orientation:landscape) {
  .tm-rseq--shell { padding:6px; }
  .tm-rseq--shell .tm-rseq__quarters { margin-top:5px; gap:4px; }
  .tm-rseq--shell .tm-rseq__beat { padding:2px; }
  .tm-rseq--shell .tm-rseq__ruler { height:16px; }
}


/* Common controls: predictable touch areas without inflating the game cards. */
:is(.tm-shell,.tm-desktop-stage) { --tm-hit:44px; }
:is(.tm-shell,.tm-desktop-stage) button:not(.tm-key,.tm-pad) {
  min-height:var(--tm-hit) !important;
  min-width:var(--tm-hit) !important;
}
.tm-shell .tm-shell-icon { width:var(--tm-hit) !important; height:var(--tm-hit) !important; }
:is(.tm-shell,.tm-desktop-stage) :is(.tm-audio-button,.tm-answer) { line-height:1.15; }
:is(.tm-shell,.tm-desktop-stage) .tm-audio-button { padding:6px 12px; }
.tm-desktop-stage .tm-answer { min-height:46px !important; }
.tm-desktop-stage .tm-odd-audio, .tm-desktop-stage .tm-eq-play { max-width:620px; }
:is(.tm-shell,.tm-desktop-stage) .tm-odd-audio { gap:8px; }
:is(.tm-shell,.tm-desktop-stage) .tm-odd-audio button:not(:first-child) { padding-inline:9px; }
.tm-shell .tm-piano-scroll, .tm-bass-scroll { flex:none; min-width:0; overflow-x:auto; }
.tm-shell .tm-piano-mobile { min-width:360px; }
.tm-shell .tm-piano-mobile button.tm-key { min-width:44px; }
.tm-bass-grid.steps { min-width:calc(8 * 44px + 8 * 4px + 44px); }
.tm-desktop-stage .tm-bass-grid { max-width:720px; }
:is(.tm-shell,.tm-desktop-stage) .tm-eq-submit { justify-self:start; min-width:118px !important; }
.tm-shell-portrait .tm-lesson { min-width:0; }
@media(max-height:370px) and (orientation:landscape) {
  .tm-shell .tm-piano-mobile { height:110px !important; }
}
.tm-results-rotate { display:flex; align-items:center; margin:0; color:#e4c4ae; font-size:14px; }
.tm-shell-portrait button:disabled { opacity:.55; }
@media (max-width:600px) and (orientation:landscape) {
  /* Put Rhythm Bomb's transport below the rack when a side rail would compress the pads. */
  .tm-shell-rhythm .tm-shell-body { grid-template-columns:minmax(0,1fr) !important; grid-template-rows:minmax(0,1fr) auto !important; gap:5px !important; }
  .tm-shell-rhythm .tm-shell-rail { display:grid !important; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:4px 8px !important; }
  .tm-shell-rhythm .tm-shell-rail > div:first-child { grid-column:1; grid-row:1; align-self:end; }
  .tm-shell-rhythm .tm-shell-rail > div:nth-child(2) { grid-column:1; grid-row:2; align-self:start; }
  .tm-shell-rhythm .tm-shell-rail > div:nth-child(3) { display:none; }
  .tm-shell-rhythm .tm-shell-rail > button { grid-row:1 / 3; }
}
@media (max-width:640px) and (orientation:landscape) {
  .tm-shell-bass .tm-shell-body { grid-template-columns:minmax(0,1fr) !important; grid-template-rows:minmax(0,1fr) auto !important; gap:5px !important; }
  .tm-shell-bass .tm-shell-rail { max-height:105px !important; }
  .tm-shell-bass .tm-shell-rail > div:first-child { flex:none !important; max-height:46px; }
  .tm-shell-bass .tm-shell-rail > div:last-child { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}

/* Frequency trainer, styled as a warm radio instrument panel. */
.tm-shell-radio > .tm-shell-toolbar > div { visibility:hidden; }
.tm-shell-radio .tm-shell-toolbar .tm-shell-icon {
  background:#fffdf8 !important;
  border-color:#d8cbbb !important;
  color:#382d32 !important;
}
.tm-radio.tm-eq-play {
  position:relative;
  width:min(100%, 1000px);
  margin:auto;
  padding:clamp(8px, 2vw, 22px);
  display:grid;
  grid-template-columns:minmax(80px, 22%) minmax(0, 1fr);
  grid-template-areas:'head head' 'art task' 'hint hint';
  align-items:center;
  gap:8px 14px;
  border:1px solid #ddcfc1;
  border-radius:18px;
  background:linear-gradient(110deg,#fbf2e8,#fffdf9 50%,#faf6ef);
  color:#33292e;
}
.tm-radio-head { grid-area:head; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tm-radio-head h2 { margin:0; font-size:clamp(20px, 4vw, 34px); line-height:1.08; }
.tm-radio-head span { flex:none; padding:4px 10px; border:1px solid #ddcfc1; border-radius:20px; font-weight:700; }
.tm-radio-art {
  grid-area:art; align-self:stretch; min-height:110px; position:relative;
  background:radial-gradient(ellipse at center,#efded4 0%,transparent 72%);
}
.tm-radio-art img,.tm-radio-art .tm-radio-pose { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.tm-radio-pose {
  display:block; background-image:url('./img/eq-radio-mascot.webp');
  background-repeat:no-repeat; background-size:300% auto; background-position-y:center;
}
.tm-radio-pose.pose-easy { background-position-x:left; }
.tm-radio-pose.pose-mid { background-position-x:center; }
.tm-radio-pose.pose-hard { background-position-x:right; }
.tm-radio-levels .tm-radio-pose { flex:none; width:clamp(26px, 5vw, 42px); aspect-ratio:1; }
.tm-radio-task { grid-area:task; min-width:0; display:grid; gap:8px; }
.tm-radio-listen { display:flex; justify-content:center; }
.tm-radio.tm-eq-play button { color:#33292e; border-color:#c6ad98; background:#fffaf1; }
.tm-radio.tm-eq-play button:focus-visible { outline:2px solid #945345; outline-offset:2px; }
.tm-radio .tm-radio-listen button {
  min-height:38px; padding-inline:16px; font-weight:750;
  background:#914a39; border-color:#763a2b; color:#fffdf8;
}
.tm-radio button[data-playing=true] { box-shadow:0 0 0 2px #d8a461; }
.tm-radio .tm-eq-choices button {
  min-height:48px; padding:7px 3px; font-size:clamp(14px, 2.8vw, 24px);
  box-shadow:0 2px 0 #d9c8b6;
}
.tm-radio .tm-eq-choices button::before {
  content:''; display:block; margin:0 auto 3px; width:min(60%,65px); height:5px;
  background:repeating-linear-gradient(90deg,#705a52 0 1px,transparent 1px 6px);
}
.tm-radio .tm-eq-choices button[aria-pressed=true],
.tm-radio button.tm-eq-submit:not(:disabled) { background:#f5c477; color:#33292e; border-color:#97643d; }
.tm-radio button.tm-eq-submit { justify-self:center; min-width:min(100%,150px); min-height:36px; }
.tm-radio-hint {
  grid-area:hint; display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:4px 10px; padding:4px 8px; border:1px solid #ded0c3; border-radius:12px; background:#f6eee5;
}
.tm-radio-hint button { min-height:32px; }
.tm-radio.tm-eq-play small,.tm-radio .tm-eq-tick { color:#5b4a48; }
@media (max-height:380px) and (orientation:landscape) {
  .tm-shell .tm-radio.tm-eq-play { gap:6px 10px; padding:8px 12px; }
  .tm-shell .tm-radio-task { gap:6px; }
}
@media (max-width:480px) and (orientation:portrait) {
  .tm-radio.tm-eq-play { grid-template-columns:1fr; grid-template-areas:'head' 'task' 'hint'; }
  .tm-radio-art { display:none; }
}

.tm-radio-check { display:flex; justify-content:center; }
.tm-radio-check button { min-width:min(28vw,150px); min-height:36px; }
.tm-radio [data-verdict=correct] { color:#28583e; }
.tm-radio [data-verdict=incorrect] { color:#883f38; }
.tm-radio .tm-eq-choices button[data-verdict=correct] { background:#e5f1e9; border-color:#56876b; }
.tm-radio .tm-eq-choices button[data-verdict=incorrect] { background:#f8e9e7; border-color:#a45b52; }
.tm-radio .tm-eq-choices button:disabled { opacity:1; cursor:default; }
@keyframes tm-radio-question-in {
  from { opacity:.76; }
  to { opacity:1; }
}
@media (prefers-reduced-motion:no-preference) {
  .tm-radio-enter .tm-radio-task { animation:tm-radio-question-in 160ms ease-out both; }
}

.tm-radio-announcement {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.tm-radio-reaction {
  position:absolute;
  z-index:3;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.tm-radio[data-feedback] .tm-radio-art { visibility:hidden; }
.tm-radio-reaction-backdrop {
  display:grid;
  place-items:center;
  width:min(58%, 460px);
  height:94%;
  background:radial-gradient(ellipse,#fbf4e8 10%,var(--radio-glow) 44%,transparent 72%);
}
.tm-radio[data-feedback=correct] { --radio-glow:#f5dfac; }
.tm-radio[data-feedback=incorrect] { --radio-glow:#edd4cd; }
.tm-radio-reaction .tm-radio-pose {
  height:92%;
  aspect-ratio:1;
  max-width:100%;
  background-size:300% 100%;
  filter:drop-shadow(0 7px 7px #38282032);
}
@keyframes tm-radio-mascot-hop {
  0% { opacity:0; transform:translateY(22px) scale(.7); }
  48% { opacity:1; transform:translateY(-8px) rotate(-5deg) scale(1.04); }
  76% { transform:translateY(2px) scale(.97); }
  100% { transform:none; }
}
@keyframes tm-radio-mascot-tilt {
  0% { opacity:0; transform:translateY(12px) scale(.78); }
  34% { opacity:1; transform:translateX(6px) rotate(7deg); }
  65% { transform:translateX(-5px) rotate(-5deg); }
  100% { transform:none; }
}
@media (prefers-reduced-motion:no-preference) {
  .tm-radio[data-feedback=correct] .tm-radio-reaction .tm-radio-pose { animation:tm-radio-mascot-hop 450ms ease-out both; }
  .tm-radio[data-feedback=incorrect] .tm-radio-reaction .tm-radio-pose { animation:tm-radio-mascot-tilt 390ms ease-out both; }
}

.tm-radio-result {
  width:min(100%,760px);
  margin:0 auto;
  padding:clamp(10px,2.4vw,22px);
  border:1px solid #ddcfc1;
  border-radius:16px;
  background:#fffaf3;
  color:#33292e;
  gap:10px;
}
.tm-radio-result-head {
  display:grid;
  grid-template-columns:clamp(70px,19vw,145px) minmax(0,1fr);
  align-items:center;
  gap:12px;
}
.tm-radio-result-head img { width:100%; height:auto; }
.tm-radio-result-head h2 { margin:4px 0; line-height:1.12; font-size:clamp(19px,4vw,31px); }
.tm-radio-result-head p,.tm-radio-misses p { margin:0; }
.tm-radio-result-count { color:#744630; font-weight:750; font-size:14px; }
.tm-radio-result-actions { display:flex; flex-wrap:wrap; gap:6px; }
.tm-lesson.tm-radio-result .tm-radio-result-link,
.tm-lesson.tm-radio-result .tm-radio-result-actions button {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:5px 11px;
  border-color:#bb9c86;
  background:#fffdf9;
  color:#432c25;
  font-size:14px;
  font-weight:700;
}
.tm-lesson.tm-radio-result .tm-radio-result-link.theory { background:#874a37; border-color:#874a37; color:#fffaf3; }
.tm-lesson.tm-radio-result .tm-radio-result-link:focus-visible,
.tm-lesson.tm-radio-result .tm-radio-result-actions button:focus-visible { outline:2px solid #8b4a35; outline-offset:2px; }
.tm-radio-result .tm-radio-misses,
.tm-radio-result .tm-radio-misses details { padding:6px 0; border-color:#e4d5c7; }
.tm-radio-result .tm-radio-misses button { background:#f7ede2; color:#432c25; }

.tm-difficulty-layout.tm-difficulty-radio-portrait {
  grid-template-areas:'head head' 'note note' 'cat main';
}
.tm-picker-portrait-note {
  grid-area:note;
  padding:10px 12px;
  background:#f4e1ca;
  border-left:3px solid #a65334;
}
.tm-picker-portrait-note strong { display:block; }
.tm-shell-portrait.tm-shell-radio .tm-radio.tm-eq-play {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:'head' 'art' 'task' 'hint';
  width:min(100%,480px);
  padding:clamp(9px,3vw,17px);
  gap:clamp(7px,2.2vw,12px);
}
.tm-shell-portrait.tm-shell-radio .tm-radio-head h2 { font-size:clamp(20px,6vw,31px); }
.tm-shell-portrait.tm-shell-radio .tm-radio-head span { font-size:13px; padding-inline:7px; }
.tm-shell-portrait.tm-shell-radio .tm-radio-art {
  display:block;
  justify-self:center;
  width:clamp(84px,32vw,132px);
  height:clamp(76px,15dvh,124px);
  min-height:0;
}
.tm-shell-portrait.tm-shell-radio .tm-radio-listen button {
  width:100%;
  min-height:44px;
}
.tm-shell-portrait.tm-shell-radio .tm-eq-choices {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.tm-shell-portrait.tm-shell-radio .tm-eq-choices:has(button:nth-child(3):last-child) {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.tm-shell-portrait.tm-shell-radio .tm-radio-check button,
.tm-shell-portrait.tm-shell-radio .tm-radio-hint button { min-height:44px; }
.tm-shell-portrait.tm-shell-radio .tm-radio-hint { padding:6px 8px; text-align:center; }
.tm-shell-portrait.tm-shell-radio .tm-radio-hint small { width:100%; font-size:12px; }
.tm-shell-portrait.tm-shell-radio .tm-radio-reaction-backdrop { width:80%; }
.tm-shell-portrait.tm-shell-radio .tm-radio-reaction .tm-radio-pose {
  width:min(70vw,210px);
  height:auto;
}
