:root {
  color-scheme: light;
  font-family: Inter, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  color: #251f25;
  background: #faf8f5;
  --ink: #251f25;
  --muted: #6f6570;
  --paper: #fff;
  --line: #eee8e6;
  --accent: #d42a58;
  --accent-dark: #ba234b;
  --focus: #d93966;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.shell { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.country-flag { display: inline-block; width: 22px; height: 16.5px; flex: 0 0 auto; border-radius: 3px; overflow: hidden; vertical-align: middle; }

.site-header { border-bottom: 1px solid #eee9e6; background: rgb(255 255 255 / 80%); }
.nav { height: 69px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #282128; text-decoration: none; font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 27px; font-weight: 820; letter-spacing: -.075em; line-height: 1; }
.brand-monogram { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #e83f68; color: #fff; box-shadow: 0 2px 5px #d42a5830; }
.brand-monogram .icon { width: 23px; height: 23px; }
.brand-period { color: #d42a58; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.language-picker { position: relative; display: grid; align-items: center; min-height: 36px; border: 1px solid #eee8e6; border-radius: 9px; background: white; color: #635a63; }
.language-picker select { min-height: 34px; padding: 4px 23px 4px 28px; appearance: none; border: 0; border-radius: inherit; background: transparent; color: inherit; cursor: pointer; font-weight: 650; font-size: .82rem; }
.language-picker .icon { position: absolute; left: 8px; width: 15px; height: 15px; pointer-events: none; }
.language-picker .language-chevron { right: 6px; left: auto; }
.help-button, .feedback-button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #eee8e6; border-radius: 9px; padding: 7px 10px; min-height: 36px; background: white; color: #635a63; font-size: .82rem; font-weight: 650; }
.help-button .icon, .feedback-button .icon { width: 16px; height: 16px; }
.help-button:hover { background: #fbf6f6; border-color: #eadbdd; }
.feedback-button { border-color: #efd7df; background: #fff6f8; color: #a12d4e; white-space: nowrap; }
.feedback-button:hover { border-color: #e9bccc; background: #fbecef; }

.main-content { padding-block: 43px 25px; }
.intro { margin-bottom: 34px; }
.intro-label { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 11px; color: #b52b51; font-size: .83rem; font-weight: 750; letter-spacing: -.025em; }
.intro-label .icon { width: 17px; height: 17px; }
.intro h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.2vw, 3.55rem); line-height: 1.18; letter-spacing: -.09em; font-weight: 800; word-break: keep-all; }
.intro h1 .hero-accent { color: var(--accent); }
.intro-description { margin: 0; color: var(--muted); font-size: clamp(.92rem, 1.55vw, 1.05rem); line-height: 1.55; letter-spacing: -.035em; word-break: keep-all; }
.presence-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; margin-top: 17px; min-height: 29px; }
.presence-heading { display: inline-flex; align-items: center; gap: 6px; }
.presence-heading h2 { margin: 0; font-size: .85rem; font-weight: 750; letter-spacing: -.025em; }
.presence-heading strong { border-radius: 999px; padding: 2px 6px; color: #526360; background: #eaf2ef; font-size: .78rem; font-variant-numeric: tabular-nums; }
.presence-dot { width: 7px; height: 7px; background: #a38a9b; border-radius: 50%; }
.presence-bar[data-active="true"] .presence-dot { background: #398267; }
#presence-status { margin: 0; color: var(--muted); font-size: .8rem; }
.presence-list { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; max-width: 100%; max-height: 90px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.presence-list li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; min-height: 27px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: #514752; font-size: .82rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.presence-list .icon { width: 16px; height: 16px; }

.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 22px; }
.studio-stack { display: grid; min-width: 0; gap: 17px; }
.workspace:has(#game-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.workspace:has(#game-panel:not([hidden])) > .match-card { display: none; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: 0 3px 14px #46373205; }
.match-card { padding: 22px; }
.card-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.section-glyph { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; }
.section-glyph .icon { width: 21px; height: 21px; }
.pink-glyph { background: #fcecef; color: #cb345b; }
.studio-glyph { background: #f3eef4; color: #704a75; }
.lilac-glyph { background: #f0eaf9; color: #704aa5; }
.card-heading h2 { margin: 0 0 3px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.055em; line-height: 1.22; }
.card-heading p { margin: 0; color: var(--muted); font-size: .83rem; letter-spacing: -.03em; line-height: 1.4; word-break: keep-all; }

#match-form { margin-top: 21px; }
#match-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
#match-fields:disabled .select-frame { background: #faf8f7; }
.form-section { min-width: 0; }
.form-section label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 750; letter-spacing: -.04em; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.preference-fields { display: grid; gap: 13px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0eae8; }
.select-frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 9px; border: 1px solid #eae4e5; min-width: 0; background: #fdfbf9; transition: border-color .16s, background-color .16s; }
.select-frame:focus-within { border-color: #e57994; background: #fff; }
.select-frame select { min-width: 0; width: 100%; padding: 0 29px 0 11px; height: 41px; appearance: none; border: 0; border-radius: inherit; background: transparent; color: #433a43; font-size: .89rem; outline-offset: 2px; text-overflow: ellipsis; letter-spacing: -.035em; }
.select-frame select:enabled { cursor: pointer; }
.select-frame select:disabled { opacity: .8; }
.select-frame.has-icon select { padding-left: 36px; }
.select-leading, .select-chevron { position: absolute; z-index: 1; pointer-events: none; width: 15px; height: 15px; top: 50%; transform: translateY(-50%); color: #817380; }
.select-leading { left: 11px; color: #b04764; }
.select-flag { position: absolute; z-index: 1; left: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.select-chevron { right: 9px; }
.country-note { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-top: 7px; }
.field-hint { margin: 0; color: #776a75; line-height: 1.4; font-size: .76rem; letter-spacing: -.035em; }
.country-note button { border: 0; padding: 0 1px; color: #ad3154; background: transparent; font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.country-note button:disabled { color: var(--muted); }
.profile-details { margin-top: 9px; }
.profile-details summary { display: inline-flex; gap: 2px; align-items: center; color: #655863; cursor: pointer; font-weight: 650; font-size: .78rem; list-style: none; }
.profile-details summary::-webkit-details-marker { display: none; }
.profile-details summary .icon { width: 14px; height: 14px; }
.profile-details[open] summary .icon { transform: rotate(180deg); }
.profile-fields { padding-top: 10px; }
.start-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 49px; margin-top: 19px; border: 1px solid #c72c55; border-radius: 11px; color: white; background: linear-gradient(160deg, #df3864, #ca2854); font-size: .94rem; font-weight: 800; letter-spacing: -.035em; box-shadow: 0 4px 10px #d92d5b29; transition: background .16s, transform .16s; }
.start-button:hover:enabled { background: var(--accent-dark); transform: translateY(-1px); }
.start-button:active:enabled { transform: translateY(1px); }
.start-button:disabled { opacity: .72; }
.start-button .icon { width: 20px; height: 20px; }
.match-footnote { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 0; color: var(--muted); font-size: .78rem; letter-spacing: -.035em; }
.match-footnote .icon { width: 14px; height: 14px; }
.call-error { border-radius: 9px; padding: 10px; margin: 12px 0 0; background: #fcebef; color: #992244; font-size: .83rem; line-height: 1.6; overflow-wrap: anywhere; }

.studio { padding: 19px; }
.studio-header { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 0 1px 15px; }
.status-pill { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; padding: 6px 9px; border-radius: 20px; border: 1px solid #f0e6e7; background: #faf5f4; color: #6a5260; font-size: .78rem; line-height: 1; white-space: nowrap; }
.status-pill > span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #a38a9b; }
.status-pill[data-state="waiting"] > span, .status-pill[data-state="connecting"] > span, .status-pill[data-state="preparing"] > span { background: #d98b32; }
.status-pill[data-state="connected"] { color: #22624e; background: #ebf8ee; border-color: #def1e3; }
.status-pill[data-state="connected"] > span { background: #3a9d78; }
.stage { display: grid; gap: 11px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-pane { height: clamp(206px, 21vw, 292px); min-width: 0; isolation: isolate; overflow: hidden; position: relative; display: grid; place-items: center; border-radius: 13px; color: #fff9ff; background: #241f27; }
.local-pane { background: radial-gradient(ellipse 78% 95% at 50% 68%, #312836, #26212a 68%, #242027); }
.remote-pane { background: radial-gradient(ellipse 65% 70% at 51% 43%, #35263a, #241f27 77%); }
.video-pane video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1b171d; opacity: 0; }
.local-pane video { transform: scaleX(-1); }
.video-pane.has-video video { opacity: 1; }
.video-pane.has-video .standby { display: none; }
.video-label { display: flex; align-items: center; position: absolute; z-index: 2; left: 13px; top: 13px; min-height: 28px; max-width: calc(100% - 26px); gap: 6px; padding: 5px 9px; color: #f5eef6; background: #120f16a6; border: 1px solid #ffffff1c; border-radius: 7px; font-size: .74rem; font-weight: 650; line-height: 1; white-space: nowrap; }
.video-label > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pane-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #9f899f; }
.has-video .pane-dot { background: #ec8ba6; }
.standby { z-index: 1; align-self: center; text-align: center; margin: 24px 9px 0; word-break: keep-all; }
.standby p { margin: 0 0 5px; font-weight: 750; font-size: .94rem; letter-spacing: -.04em; line-height: 1.45; }
.standby > span { display: block; color: #c7b6c8; font-size: .79rem; line-height: 1.45; letter-spacing: -.025em; }
.standby-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 13px; border-radius: 20px; border: 1px solid #ffffff23; background: #ffffff0b; color: #edc8de; }
.standby-icon .icon { width: 26px; height: 26px; }
.remote-standby { width: min(252px, calc(100% - 18px)); margin-top: 39px; }
.conversation-art { display: block; width: 100%; height: auto; margin: -40px auto -8px; mask-image: radial-gradient(ellipse closest-side, #000 69%, transparent 100%); }
.remote-play { position: absolute; bottom: 12px; left: 50%; z-index: 3; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); border: 1px solid #ffffff55; border-radius: 8px; padding: 7px 10px; background: #201620; color: #fff; font-size: .78rem; }

.stage[data-layout="connected"] { display: block; position: relative; }
.stage[data-layout="connected"] .remote-pane { height: auto; aspect-ratio: 16 / 9; min-height: 210px; max-height: 480px; }
.stage[data-layout="connected"] .local-pane { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: clamp(88px, 27%, 196px); height: auto; aspect-ratio: 16 / 10; border: 1px solid #ffffff7a; border-radius: 10px; box-shadow: 0 3px 15px #120f1670; }
.stage[data-layout="connected"] .local-pane video { object-fit: cover; }
.stage[data-layout="connected"] .local-pane .video-label { top: 5px; left: 5px; min-height: 20px; max-width: calc(100% - 10px); padding: 3px 5px; font-size: .66rem; }
.stage[data-layout="connected"] .local-standby { margin: 17px 4px 0; }
.stage[data-layout="connected"] .local-standby > span { display: none; }
.stage[data-layout="connected"] .local-standby p { margin: 0; font-size: .68rem; line-height: 1.25; }
.stage[data-layout="connected"] .local-standby .standby-icon { width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 8px; }
.stage[data-layout="connected"] .local-standby .standby-icon .icon { width: 16px; height: 16px; }
.stage[data-layout="connected"] .remote-play { left: 10px; max-width: calc(68% - 14px); transform: none; }

.studio-stack:has(#game-panel:not([hidden])) .stage[data-layout="connected"] .remote-pane { min-height: 0; height: clamp(160px, 22vw, 310px); }
.studio-stack:has(#game-panel:not([hidden])) .stage[data-layout="connected"] .local-pane { height: auto; }

.call-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; padding-top: 14px; }
.control-button { display: flex; align-items: center; gap: 6px; min-height: 38px; border: 1px solid #eee7e7; border-radius: 9px; padding: 0 11px; color: #514752; background: #faf8f7; font-size: .83rem; font-weight: 700; white-space: nowrap; letter-spacing: -.035em; }
.control-button .icon { width: 17px; height: 17px; }
.control-button:disabled { color: #756a75; }
.control-button:hover:enabled { border-color: #edc9d3; background: #fcf1f4; }
.control-button.is-off:enabled { color: #a3274b; background: #fdf0f3; border-color: #f3dce2; }
.translation-control[aria-pressed="true"] { color: #22624e; background: #ebf8ee; border-color: #c8e9d3; }
.translation-control[aria-pressed="true"]:hover:enabled { background: #dff2e5; border-color: #b1ddc1; }
.end-button, .end-button:disabled { color: #a32d50; background: #fdf0f3; border-color: #f4dee3; }
.control-divider { height: 20px; width: 1px; background: #eee7e7; margin: 0 3px; }
.translation-caption { max-height: calc(4.35em + 18px); margin-top: 7px; padding: 8px 12px; overflow: auto; border-radius: 9px; color: #fff; background: #2c2530; font-size: .95rem; font-weight: 650; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.translation-panel { display: grid; gap: 8px; width: min(100%, 420px); margin: 10px auto 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #faf8f7; }
.translation-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px; }
.translation-languages label { display: block; margin-bottom: 4px; color: #514752; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.translation-languages select { height: 34px; }
.translation-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.translation-status { flex: 1 1 140px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.translation-status:empty,
.translation-feedback:has(.translation-status:empty):has(.translation-prepare[hidden]) { display: none; }
.translation-prepare { min-height: 32px; color: #903350; background: #fcecef; border-color: #edc9d3; white-space: normal; }

.games-card { padding: 17px 19px 18px; }
.games-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.game-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.game-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #efe9eb; border-radius: 10px; background: #fdfaf9; color: var(--ink); padding: 7px 9px; min-height: 56px; text-align: left; }
.game-choice:hover:enabled { background: #fcf0f3; border-color: #edc9d3; }
.game-choice strong, .game-choice small { display: block; overflow-wrap: anywhere; letter-spacing: -.04em; }
.game-choice strong { margin-bottom: 2px; font-size: .91rem; }
.game-choice small { color: var(--muted); font-size: .76rem; }
.game-tile { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border-radius: 9px; }
.chess-tile { background: #eae2f6; color: #7549a7; }
.chess-tile .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.block-tile { background: #f9e9d6; }
.block-tile i { width: 8px; height: 8px; position: absolute; top: 9px; left: 13px; border-radius: 2px; background: #c75d74; box-shadow: inset 0 1px #ffffff66; }
.block-tile i:nth-child(2) { top: 18px; background: #c97740; }
.block-tile i:nth-child(3) { top: 18px; left: 22px; background: #8f6ab2; }
.block-tile i:nth-child(4) { top: 18px; left: 4px; background: #d08a45; }
.choice-plus { width: 18px; height: 18px; color: #84667a; }
.game-choice:disabled .choice-plus { opacity: .55; }
.site-footer { display: flex; justify-content: space-between; align-items: center; min-height: 56px; margin-top: 5px; border-top: 1px solid #ece5e3; color: #766c75; font-size: .81rem; }
.site-footer button { border: 0; padding: 7px 0 7px 9px; color: inherit; background: transparent; }
.site-footer button:hover { text-decoration: underline; }

.help-dialog, .feedback-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: 18px; padding: 23px; background: white; color: var(--ink); box-shadow: 0 18px 60px #20182040; }
.help-dialog::backdrop, .feedback-dialog::backdrop { background: #231d28ad; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 1.24rem; }
.icon-button { display: grid; height: 37px; width: 37px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #faf7f5; color: #635762; }
.help-dialog ul { margin: 17px 0 0; padding-left: 20px; line-height: 1.65; word-break: keep-all; }
.help-dialog li + li { margin-top: 8px; }
.help-attribution { color: var(--muted); font-size: .79rem; }
.feedback-form { display: grid; gap: 8px; margin-top: 16px; }
.feedback-form label { font-size: .9rem; font-weight: 700; }
.feedback-form textarea { display: block; width: 100%; min-height: 112px; max-height: 45vh; resize: vertical; padding: 10px 11px; border: 1px solid #e5dadd; border-radius: 10px; background: #faf8f8; color: var(--ink); font: inherit; line-height: 1.5; }
.feedback-hint, .feedback-status { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; margin-top: 7px; }
.feedback-status { flex: 1 1 165px; }
.feedback-status:empty { flex-basis: 0; }
.feedback-status[data-state="error"] { color: #ad2b4c; }
.feedback-status[data-state="success"] { color: #22624e; }
.feedback-submit { min-height: 39px; padding: 7px 15px; border: 0; border-radius: 9px; background: var(--accent-dark); color: white; font-size: .86rem; font-weight: 700; }
.feedback-submit:hover:enabled { background: #9d2040; }
.feedback-submit:disabled { opacity: .65; }

@media (min-width: 761px) {
  .studio-stack:has(#game-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr); align-items: start; }
  .studio-stack:has(#game-panel:not([hidden])) > .studio { position: sticky; top: 10px; }
  .studio-stack:has(#game-panel:not([hidden])) .stage { grid-template-columns: minmax(0, 1fr); }
  .studio-stack:has(#game-panel:not([hidden])) .video-pane { height: clamp(164px, 17vw, 238px); }
}

@media (max-width: 990px) {
  .shell { width: calc(100% - 42px); }
  .workspace { grid-template-columns: 282px minmax(0, 1fr); gap: 15px; }
  .match-card { padding: 17px; }
  .studio, .games-card { padding: 15px; }
  .card { border-radius: 17px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .nav { height: 59px; }
  .brand { font-size: 25px; }
  .brand-monogram { width: 32px; height: 32px; }
  .main-content { padding-top: 25px; }
  .intro { margin-bottom: 19px; }
  .intro h1 { font-size: clamp(1.95rem, 6vw, 3rem); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .workspace.is-active .studio-stack { grid-row: 1; }
  #match-form { margin-top: 15px; }
  .preference-fields { gap: 9px; margin-top: 11px; padding-top: 11px; }
  .start-button { margin-top: 15px; }
  .video-pane { height: clamp(184px, 39vw, 289px); }
  .stage[data-layout="connected"] .remote-pane { min-height: 170px; }
  .stage[data-layout="connected"] .local-pane { right: 7px; bottom: 7px; }
  .studio-stack:has(#game-panel:not([hidden])) > .studio { position: sticky; top: 4px; z-index: 5; }
  .studio-stack:has(#game-panel:not([hidden])) .studio-header { padding-bottom: 9px; }
  .studio-stack:has(#game-panel:not([hidden])) .video-pane { height: clamp(86px, 22vw, 118px); }
  .studio-stack:has(#game-panel:not([hidden])) .stage[data-layout="connected"] .remote-pane { height: clamp(110px, 26vw, 145px); }
  .studio-stack:has(#game-panel:not([hidden])) .stage[data-layout="connected"] .local-pane { width: clamp(65px, 23%, 100px); }
  .studio-stack:has(#game-panel:not([hidden])) .standby { margin-top: 26px; }
  .studio-stack:has(#game-panel:not([hidden])) .standby-icon,
  .studio-stack:has(#game-panel:not([hidden])) .conversation-art,
  .studio-stack:has(#game-panel:not([hidden])) .standby > span { display: none; }
  .studio-stack:has(#game-panel:not([hidden])) .mg-game-title,
  .studio-stack:has(#game-panel:not([hidden])) #game-panel :focus { scroll-margin-top: 220px; }
  .studio-stack:has(#game-panel:not([hidden])):has(.translation-panel:not([hidden])) :is(.mg-game-title, #game-panel :focus) { scroll-margin-top: min(400px, 70vh); }
}

@media (max-width: 480px) {
  .nav { height: auto; min-height: 59px; flex-wrap: wrap; gap: 6px; padding-block: 6px; }
  .nav-actions { gap: 5px; margin-inline-start: auto; }
  .help-button, .feedback-button { padding-inline: 7px; }
  .nav-actions .help-button > span, .feedback-button .icon, .language-picker > .icon:first-child { display: none; }
  .language-picker select { padding-inline: 7px 23px; }
  .feedback-dialog { padding: 16px; }
}

@media (max-width: 400px) {
  .shell { width: calc(100% - 24px); }
  .call-controls { gap: 5px; }
  .control-button { padding-inline: 5px; font-size: .75rem; }
  .control-divider { margin-inline: 1px; }
  .card-heading h2 { font-size: 1rem; }
  .card-heading p { font-size: .78rem; }
  .video-label { left: 8px; top: 8px; max-width: calc(100% - 16px); }
  .conversation-art { margin-top: -25px; }
  .standby > span { display: none; }
  .game-choice { gap: 6px; padding-inline: 6px; }
  .choice-plus { width: 14px; height: 14px; }
  .stage[data-layout="connected"] .local-standby p { display: none; }
}

@media (max-width: 350px) {
  .brand > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
