:root {
  color-scheme: dark;
  --text: #f5f5f2;
  --blue: #65c8ff;
  --gold: #f0bd73;
  --violet: #9d83ff;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #02060b; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 49%, rgba(70, 115, 200, .24), transparent 25%),
    radial-gradient(circle at 7% 69%, rgba(36, 105, 185, .28), transparent 27%),
    linear-gradient(145deg, #020509 0%, #060d17 48%, #02060c 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.cosmos { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.75) .55px, transparent .75px);
  background-size: 57px 57px;
}
.planet { position: absolute; width: 62vw; height: 62vw; max-width: 730px; max-height: 730px; border-radius: 50%; filter: blur(.1px); }
.planet-left { left: -45vw; top: 53%; border: 2px solid rgba(82, 163, 255, .55); box-shadow: 25px 0 65px rgba(59, 128, 242, .34), inset -16px 0 55px rgba(115, 188, 255, .16); }
.planet-right { right: -50vw; top: 35%; border: 2px solid rgba(244, 198, 132, .6); box-shadow: -20px 0 55px rgba(233, 180, 106, .28), inset 16px 0 50px rgba(235, 193, 138, .14); }
.cosmic-line { position: absolute; width: 72vw; height: 20vw; border-radius: 50%; border-top: 1px solid rgba(219, 166, 93, .38); }
.line-one { right: -16vw; top: 40%; transform: rotate(-18deg); }
.line-two { left: -26vw; top: 62%; border-color: rgba(83, 168, 255, .28); transform: rotate(17deg); }

.device {
  position: relative;
  width: min(448px, calc(100vw - 26px));
  margin: 28px auto;
  padding: 10px;
  border-radius: 60px;
  background: linear-gradient(115deg, #22272c 0%, #777b7f 5%, #111418 11%, #050607 50%, #777b7f 92%, #1b1e22 97%);
  box-shadow: 0 44px 90px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.38), inset 0 0 0 2px rgba(0,0,0,.88), inset 0 0 0 4px rgba(220,225,230,.2);
  z-index: 1;
}
.device::before, .device::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(#1e2226, #666b70 45%, #181b1f);
  box-shadow: 0 0 0 1px #090a0c;
}
.device::before { top: 183px; height: 104px; }
.device::after { top: 306px; height: 71px; }
.device-edge { position: absolute; right: -5px; top: 256px; width: 4px; height: 116px; border-radius: 0 4px 4px 0; background: linear-gradient(#20252a, #747a80 45%, #14171a); box-shadow: 0 0 0 1px #090a0c; }

.screen {
  position: relative;
  overflow: hidden;
  min-height: 858px;
  padding: 16px 25px 27px;
  border-radius: 51px;
  background: radial-gradient(circle at 95% 2%, rgba(54, 90, 131, .36), transparent 27%), linear-gradient(180deg, #06111b 0%, #03080e 38%, #02070c 100%);
  box-shadow: inset 0 0 0 2px #010204, inset 0 0 45px rgba(51, 109, 169, .1);
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .085;
  background-image: radial-gradient(rgba(255,255,255,.7) .45px, transparent .7px);
  background-size: 45px 48px;
}

.system-bar { height: 44px; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: start; position: relative; z-index: 3; padding: 3px 27px 0; }
.system-bar time { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.dynamic-island { justify-self: center; width: 116px; height: 34px; border-radius: 20px; background: #000; margin-top: -2px; position: relative; box-shadow: inset 0 -1px 3px rgba(255,255,255,.04); }
.dynamic-island i { position: absolute; width: 7px; height: 7px; right: 15px; top: 13px; border-radius: 50%; background: #081d33; box-shadow: inset 0 0 2px #315679, 0 0 0 2px #02070c; }
.system-icons { justify-self: end; display: flex; align-items: center; gap: 7px; font-size: 12px; }
.signal { letter-spacing: -2px; transform: translateY(-1px); }
.wifi { font-size: 16px; transform: rotate(-45deg); }
.battery { display: block; width: 23px; height: 10px; border: 1.5px solid rgba(255,255,255,.9); border-radius: 3px; position: relative; }
.battery::before { content: ""; position: absolute; inset: 1.5px; border-radius: 1px; background: #eef4f5; }
.battery::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: rgba(255,255,255,.75); }

.brand-row { height: 95px; position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 15px 4px 0; z-index: 2; }
.brand { display: flex; gap: 11px; align-items: center; z-index: 2; }
.brand-mark {
  width: 44px;
  height: 44px;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 9px rgba(232, 174, 91, .2));
}
.brand-mark img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
  transform: translateY(-1px);
}
.brand-copy h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 18px; font-weight: 650; letter-spacing: .06em; color: #f5c982; white-space: nowrap; }
.brand-copy p { margin: 4px 0 0; font-size: 12px; color: #abb2b9; }
.brand-copy p i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #3ad780; box-shadow: 0 0 11px rgba(58,215,128,.75); }
.alien-title { display: flex; align-items: center; gap: 12px; color: var(--gold); line-height: 1; padding-top: 3px; z-index: 2; }
.alien-title .glyph { position: relative; display: block; width: 19px; height: 28px; opacity: .88; filter: drop-shadow(0 0 7px rgba(226, 168, 86, .14)); }
.alien-title .glyph::before,
.alien-title .glyph::after { content: ""; position: absolute; display: block; }
.glyph-signal::before { left: 1px; top: 12px; width: 17px; height: 8px; border-top: 1px solid #d7a45e; border-bottom: 1px solid rgba(215,164,94,.74); transform: skewX(-30deg) rotate(-19deg); }
.glyph-signal::after { left: 8px; top: 3px; width: 1px; height: 22px; background: linear-gradient(180deg, transparent, #e9c581 22%, #a7753d 78%, transparent); transform: rotate(38deg); }
.glyph-cross::before { left: 4px; top: 4px; width: 11px; height: 19px; border-left: 1px solid #d8a761; border-right: 1px solid rgba(215,164,94,.58); transform: rotate(38deg) skewY(-14deg); }
.glyph-cross::after { left: 2px; top: 13px; width: 15px; height: 1px; background: linear-gradient(90deg, transparent, #f0cf91 28%, #aa793e 72%, transparent); transform: rotate(-38deg); }
.glyph-diamond::before { left: 3px; top: 5px; width: 13px; height: 13px; border: 1px solid #d8a762; transform: rotate(45deg); box-shadow: inset 0 0 0 1px rgba(215,164,94,.1); }
.glyph-diamond::after { left: 8px; top: 10px; width: 3px; height: 3px; border-radius: 50%; background: #f0ce91; box-shadow: 0 0 6px rgba(241,193,113,.7); }
.glyph-ring::before { left: 2px; top: 3px; width: 15px; height: 15px; border: 1px solid #d8a762; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(215,164,94,.08); }
.glyph-ring::after { left: 4px; bottom: 3px; width: 12px; height: 1px; background: linear-gradient(90deg, transparent, #efc887 22%, #ad7c42 78%, transparent); }
.glyph-beacon::before { left: 3px; top: 5px; width: 13px; height: 13px; border: 1px solid #d8a762; border-radius: 50%; }
.glyph-beacon::after { left: 8px; top: 10px; width: 4px; height: 4px; border: 1px solid #edc57f; border-radius: 50%; box-shadow: 0 0 7px rgba(241,193,113,.72); }
.title-orbit { position: absolute; width: 430px; height: 93px; left: 102px; top: 57px; border: 1px solid transparent; border-top-color: rgba(223, 166, 91, .32); border-radius: 50%; transform: rotate(-7deg); }
.title-orbit i { position: absolute; left: 55%; top: -3px; width: 4px; height: 4px; border-radius: 50%; background: #fff8d9; box-shadow: 0 0 10px 3px rgba(245,189,113,.72); }

.language-bar {
  height: 49px;
  display: grid;
  grid-template-columns: 1fr 52px 1fr auto;
  align-items: center;
  position: relative;
  z-index: 3;
  margin: 0 1px 14px;
  padding: 0 10px 0 20px;
  border: 1px solid rgba(138, 195, 238, .16);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(15,39,63,.62), rgba(9,21,35,.72));
  box-shadow: inset 0 0 28px rgba(64,139,213,.06), 0 8px 22px rgba(0,0,0,.12);
}
.language-source { background: transparent; text-align: left; font-size: 15px; padding: 10px 0; }
.language-target { font-size: 15px; text-align: center; }
.direction-arrow { text-align: center; font-size: 23px; font-weight: 200; color: #f4f5f6; transform: translateY(-1px); }
.english-pill { padding: 5px 10px 6px; border: 1px solid rgba(82,162,229,.42); border-radius: 9px; background: rgba(22,52,82,.65); color: #8ba9cb; font-family: system-ui, sans-serif; font-size: 12px; transition: .2s ease; }
.english-pill.active { color: #dfeaff; border-color: rgba(118,171,255,.76); background: rgba(45,73,134,.5); box-shadow: 0 0 16px rgba(98,139,245,.2); }

.function-card { position: relative; z-index: 2; border-radius: 20px; background: linear-gradient(110deg, rgba(7,15,23,.88), rgba(18,29,42,.74)); overflow: hidden; box-shadow: 0 13px 34px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.035); }
.function-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0, rgba(70,114,159,.14), transparent 42%); }
.card-heading { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; height: 50px; padding: 11px 16px 5px; }
.card-heading h2 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.step-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-family: Georgia, serif; }
.blue .step-number { color: #d9f2ff; border: 1px solid rgba(101,189,246,.62); background: rgba(42,104,161,.56); box-shadow: 0 0 16px rgba(68,170,235,.12); }
.gold h2 { color: #f4c881; }
.gold .step-number { color: #ffe5ac; border: 1px solid rgba(233,194,126,.6); background: rgba(132,91,39,.5); box-shadow: 0 0 16px rgba(224,165,85,.09); }
.violet .step-number { color: #e7e0ff; border: 1px solid rgba(167,152,255,.62); background: rgba(77,59,143,.48); box-shadow: 0 0 16px rgba(136,106,228,.11); }

.text-card { height: 216px; margin-bottom: 12px; border: 1px solid rgba(90,190,247,.28); box-shadow: 0 14px 34px rgba(24,107,168,.08), inset 0 0 24px rgba(58,138,207,.055); }
.text-entry { position: relative; z-index: 2; margin: 6px 12px 12px; height: 151px; border: 1px solid rgba(141,174,204,.3); border-radius: 16px; background: rgba(10,21,34,.48); overflow: hidden; }
.text-entry textarea { width: 100%; height: 101px; resize: none; outline: 0; border: 0; padding: 15px 14px 8px; color: #eef4f8; caret-color: var(--blue); background: transparent; font-size: 14px; line-height: 1.55; }
.text-entry textarea::placeholder { color: #7e8996; opacity: 1; }
.translate-button { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 40px; border: 1px solid rgba(101,200,255,.38); border-radius: 12px; background: linear-gradient(95deg, rgba(17,53,92,.78), rgba(19,65,112,.86), rgba(17,49,84,.78)); color: #f1f8ff; font-size: 15px; box-shadow: inset 0 0 24px rgba(71,162,235,.1), 0 8px 16px rgba(0,0,0,.13); transition: filter .2s ease, transform .12s ease, border-color .2s ease; }
.translate-button:active { filter: brightness(1.35); transform: translateY(1px); }
.translate-button.loading { color: transparent; }
.translate-button.loading::after { content: ""; position: absolute; left: 50%; top: 13px; width: 14px; height: 14px; margin-left: -7px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.playback-card { height: 196px; margin-bottom: 12px; border: 1px solid rgba(203,148,70,.32); background: linear-gradient(110deg, rgba(6,12,18,.9), rgba(26,27,28,.78)); box-shadow: 0 13px 34px rgba(110,73,28,.09), inset 0 1px 0 rgba(255,225,168,.035); }
.alien-result { position: relative; z-index: 2; height: 62px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 37px; line-height: 1; text-shadow: 0 0 15px rgba(240,189,115,.18); transition: opacity .2s, transform .25s; }
.alien-result.is-changing { opacity: .25; transform: translateY(2px); }
.alien-result span:nth-child(2) { transform: translateY(1px); }
.alien-result span:last-child { transform: skewX(-12deg); }
.result-label { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 15px; color: #b8b3ad; font-size: 12px; }
.result-label i { height: 1px; background: linear-gradient(90deg, transparent, rgba(188,139,72,.42)); }
.result-label i:last-child { background: linear-gradient(90deg, rgba(188,139,72,.42), transparent); }
.play-button { position: relative; z-index: 3; width: calc(100% - 32px); height: 43px; margin: 15px 16px 0; border: 1px solid rgba(233,187,114,.64); border-radius: 15px; background: linear-gradient(90deg, rgba(119,80,40,.62), rgba(177,131,71,.76), rgba(115,76,39,.62)); color: #fff8e7; font-size: 15px; letter-spacing: .03em; box-shadow: inset 0 0 20px rgba(255,235,183,.08), 0 9px 18px rgba(0,0,0,.16); transition: filter .2s, transform .12s, border-color .2s; }
.play-button .play-icon { display: inline-block; font-size: 10px; margin-right: 9px; color: #ffe9ba; }
.play-button:active { filter: brightness(1.25); transform: translateY(1px); }
.play-button.is-playing { animation: goldPulse 1.1s ease-in-out infinite; }
@keyframes goldPulse { 50% { box-shadow: 0 0 28px rgba(232,175,97,.32), inset 0 0 20px rgba(255,235,183,.18); } }

.recognition-card { height: 198px; border: 1px solid rgba(135,111,210,.32); background: linear-gradient(105deg, rgba(7,13,21,.9), rgba(19,22,39,.78)); box-shadow: 0 13px 34px rgba(77,54,152,.1), inset 0 1px 0 rgba(208,196,255,.035); }
.recognize-button { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 104px; height: 104px; margin: -1px auto 0; border: 1px solid rgba(181,163,255,.55); border-radius: 50%; background: radial-gradient(circle, rgba(75,55,125,.3), rgba(11,17,29,.88) 66%); box-shadow: 0 0 0 8px rgba(119,94,202,.06), 0 0 32px rgba(122,91,212,.22), inset 0 0 28px rgba(123,92,205,.16); touch-action: none; user-select: none; -webkit-user-select: none; transition: box-shadow .3s ease, transform .3s ease; }
.recognize-button::before { content: ""; position: absolute; inset: 8px; border: 1px dotted rgba(166,144,247,.42); border-radius: 50%; animation: slowSpin 12s linear infinite; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.recognize-button span:last-child { position: relative; z-index: 2; font-size: 12px; color: #ded7f5; }
.mic-icon { width: 30px; height: 35px; position: relative; z-index: 2; display: block; }
.mic-icon::before { content: ""; position: absolute; left: 9px; top: 0; width: 12px; height: 23px; border: 2px solid #ddd7ff; border-radius: 8px; box-shadow: 0 0 9px rgba(185,162,255,.35); }
.mic-icon::after { content: ""; position: absolute; left: 5px; top: 13px; width: 20px; height: 15px; border: 2px solid #ddd7ff; border-top: 0; border-radius: 0 0 12px 12px; }
.mic-icon i { position: absolute; left: 14px; top: 28px; width: 2px; height: 6px; background: #ddd7ff; }
.mic-icon i::after { content: ""; position: absolute; left: -5px; bottom: 0; width: 12px; height: 2px; border-radius: 2px; background: #ddd7ff; }
.recognition-card.is-listening .recognize-button { animation: listeningPulse 1.15s ease-in-out infinite; }
.recognition-card.is-listening .recognize-button::before { animation-duration: 2.2s; }
@keyframes listeningPulse { 50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(119,94,202,.11), 0 0 34px rgba(135,105,231,.5), inset 0 0 30px rgba(123,92,205,.35); } }
.waveform { position: relative; z-index: 2; height: 28px; margin: -3px 13px 0; display: flex; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.waveform::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(149,120,237,.38), transparent); }
.waveform b { display: block; width: 1.5px; min-height: 2px; border-radius: 2px; background: #9077df; box-shadow: 0 0 4px rgba(151,118,236,.5); transform: scaleY(.25); transition: transform .2s; }
.recognition-card.is-listening .waveform b { animation: voiceWave .68s ease-in-out infinite alternate; animation-delay: var(--delay); }
@keyframes voiceWave { from { transform: scaleY(.25); opacity: .45; } to { transform: scaleY(1); opacity: 1; } }
.recognition-status { position: relative; z-index: 2; height: 20px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #b0b2ba; font-size: 12px; }
.recognition-status i { width: 4px; height: 4px; border-radius: 50%; background: #8e929d; }
.recognition-status.success { color: #d8cff9; }
.recognition-status.success i { display: none; }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20; transform: translate(-50%, 16px); max-width: calc(100vw - 34px); padding: 11px 16px; border: 1px solid rgba(109,182,232,.38); border-radius: 999px; opacity: 0; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(5,15,26,.93); color: #e8f5ff; box-shadow: 0 14px 32px rgba(0,0,0,.45); backdrop-filter: blur(16px); font-size: 12px; transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  body { display: block; background: #02070c; }
  .cosmos { display: none; }
  .device { width: 100%; min-height: 100svh; margin: 0; padding: 0; border-radius: 0; background: #03080e; box-shadow: none; }
  .device::before, .device::after, .device-edge { display: none; }
  .screen { min-height: 100svh; border-radius: 0; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .system-bar { padding-left: 22px; padding-right: 22px; }
  .alien-title { gap: 9px; }
  .title-orbit { left: 80px; }
  .language-bar { grid-template-columns: 1fr 42px 1fr auto; padding-left: 15px; }
  .text-card { height: 208px; }
  .text-entry { height: 143px; }
  .text-entry textarea { height: 93px; }
  .playback-card { height: 190px; }
  .recognition-card { height: 194px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Quiet-luxury pass: fewer containers, softer contrast, and one clear focal color. */
body {
  background:
    radial-gradient(circle at 74% 19%, rgba(79, 102, 130, .15), transparent 26%),
    radial-gradient(circle at 13% 77%, rgba(37, 77, 113, .14), transparent 28%),
    #020407;
}
.cosmos::before { opacity: .055; background-size: 71px 71px; }
.planet { opacity: .48; filter: blur(1px); }
.planet-left { border-color: rgba(82, 163, 255, .22); box-shadow: 25px 0 75px rgba(59, 128, 242, .18), inset -16px 0 55px rgba(115, 188, 255, .08); }
.planet-right { border-color: rgba(244, 198, 132, .24); box-shadow: -20px 0 65px rgba(233, 180, 106, .14), inset 16px 0 50px rgba(235, 193, 138, .08); }
.device {
  background: linear-gradient(125deg, #0b0d10 0%, #45484c 4%, #16181b 9%, #050607 50%, #3b3e42 96%, #0a0b0d 100%);
  box-shadow: 0 38px 90px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.22), inset 0 0 0 2px rgba(0,0,0,.9), inset 0 0 0 4px rgba(220,225,230,.1);
}
.screen { background: radial-gradient(circle at 90% 0%, rgba(61,78,101,.18), transparent 25%), linear-gradient(180deg, #070a0f 0%, #030507 42%, #020305 100%); box-shadow: inset 0 0 0 2px #010204, inset 0 0 48px rgba(91,114,140,.06); }
.brand-copy h1 { color: #ecd7ae; font-weight: 600; letter-spacing: .1em; }
.brand-copy p { color: #8c939c; }
.alien-title { color: #d8ae6a; opacity: .78; gap: 11px; }
.title-orbit { opacity: .6; }
.language-bar { border: 0; border-bottom: 1px solid rgba(190,205,223,.13); border-radius: 0; background: linear-gradient(105deg, rgba(22,35,49,.32), rgba(8,13,19,.18)); box-shadow: none; }
.language-source, .language-target { color: #d7dbe0; }
.english-pill { border-color: rgba(232,211,168,.28); background: rgba(232,211,168,.035); color: #ab9d84; }
.english-pill.active { color: #f3e6c7; border-color: rgba(232,211,168,.62); background: rgba(232,211,168,.1); box-shadow: 0 0 16px rgba(232,211,168,.08); }
.function-card { border-radius: 23px; background: linear-gradient(115deg, rgba(12,15,19,.8), rgba(20,23,28,.58)); box-shadow: 0 18px 44px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.045); }
.function-card::after { background: radial-gradient(circle at 92% 0, rgba(255,255,255,.07), transparent 37%); }
.card-heading { gap: 10px; padding-left: 18px; }
.card-heading h2 { font-size: 15px; letter-spacing: .08em; }
.step-number { width: 20px; height: 20px; border-radius: 50%; font-size: 11px; opacity: .72; }
.blue .step-number, .gold .step-number, .violet .step-number { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); box-shadow: none; }
.blue .step-number { color: #b9d9e7; }
.gold .step-number { color: #e5c68f; }
.violet .step-number { color: #cbc0f6; }
.text-card { border-left: 1px solid rgba(113,183,222,.35); border-top-color: rgba(255,255,255,.07); border-right-color: rgba(255,255,255,.05); border-bottom-color: rgba(255,255,255,.04); box-shadow: 0 18px 44px rgba(12,85,135,.09), inset 0 0 30px rgba(81,141,184,.035); }
.text-entry { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.025); }
.text-entry textarea::placeholder { color: #717a84; }
.translate-button { border-color: rgba(112,193,231,.38); background: linear-gradient(100deg, rgba(23,61,89,.7), rgba(40,91,125,.72)); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.playback-card { border-left: 1px solid rgba(220,174,102,.4); border-top-color: rgba(255,255,255,.07); border-right-color: rgba(255,255,255,.05); border-bottom-color: rgba(255,255,255,.04); box-shadow: 0 18px 44px rgba(116,74,23,.11), inset 0 0 32px rgba(160,106,40,.025); }
.alien-result { font-size: 40px; letter-spacing: .08em; text-shadow: 0 0 22px rgba(240,189,115,.22); }
.result-label { color: #a69d90; letter-spacing: .08em; }
.play-button { background: linear-gradient(100deg, rgba(104,73,40,.46), rgba(161,119,63,.62), rgba(104,73,40,.46)); border-color: rgba(239,196,126,.68); color: #f9eac9; }
.recognition-card { border-left: 1px solid rgba(160,139,235,.42); border-top-color: rgba(255,255,255,.07); border-right-color: rgba(255,255,255,.05); border-bottom-color: rgba(255,255,255,.04); box-shadow: 0 18px 44px rgba(77,54,152,.12), inset 0 0 34px rgba(83,61,145,.035); }
.recognize-button { width: 108px; height: 108px; border-color: rgba(208,197,255,.62); background: radial-gradient(circle at 50% 42%, rgba(104,82,163,.28), rgba(10,12,19,.9) 68%); box-shadow: 0 0 0 9px rgba(119,94,202,.045), 0 0 38px rgba(148,119,235,.25), inset 0 0 34px rgba(123,92,205,.14); }
.recognition-status { color: #94949d; letter-spacing: .08em; }

/* Refined surfaces and controls */
.function-card {
  border: 0;
  border-left: 1px solid rgba(255,255,255,.09);
  border-top: 1px solid rgba(255,255,255,.045);
  border-right: 1px solid rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.02);
}
.text-card, .playback-card, .recognition-card {
  border-left-color: rgba(255,255,255,.14);
  border-top-color: rgba(255,255,255,.055);
  border-right-color: rgba(255,255,255,.025);
  border-bottom-color: rgba(255,255,255,.02);
}
.text-card { border-left-color: rgba(113,183,222,.3); }
.playback-card { border-left-color: rgba(220,174,102,.33); }
.recognition-card { border-left-color: rgba(160,139,235,.34); }
.text-entry { border: 0; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.018); }
.translate-button, .play-button {
  height: 39px;
  border-radius: 999px;
  letter-spacing: .13em;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 9px 20px rgba(0,0,0,.18);
}
.translate-button {
  left: 16px;
  right: 16px;
  bottom: 10px;
  border: 1px solid rgba(151,211,239,.32);
  background: linear-gradient(180deg, rgba(50,111,145,.54), rgba(18,48,70,.72));
  color: #e5f4fa;
}
.translate-button:hover { border-color: rgba(173,224,246,.62); background: linear-gradient(180deg, rgba(59,129,166,.64), rgba(21,59,84,.82)); }
.play-button {
  width: calc(100% - 44px);
  margin: 15px 22px 0;
  border: 1px solid rgba(239,196,126,.5);
  background: linear-gradient(180deg, rgba(174,133,76,.54), rgba(84,57,31,.55));
  color: #fff2d4;
}
.play-button:hover { border-color: rgba(255,221,160,.78); background: linear-gradient(180deg, rgba(192,148,87,.62), rgba(99,68,36,.64)); }
.play-button .play-icon { margin-right: 8px; opacity: .8; }
.recognize-button { border-color: rgba(208,197,255,.45); box-shadow: 0 0 0 9px rgba(119,94,202,.035), 0 0 42px rgba(148,119,235,.2), inset 0 0 34px rgba(123,92,205,.12); }

/* Borderless instrument-panel direction */
.function-card,
.text-card,
.playback-card,
.recognition-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.function-card::after { display: none; }
.text-card { height: 222px; margin-bottom: 0; padding-bottom: 14px; }
.playback-card { height: 194px; margin-bottom: 0; border-top: 1px solid rgba(255,255,255,.075); }
.recognition-card { height: 204px; border-top: 1px solid rgba(255,255,255,.075); }
.card-heading { height: 43px; padding: 12px 4px 4px; }
.card-heading h2 { color: #b9bec5; font-size: 13px; font-weight: 500; letter-spacing: .16em; }
.gold h2 { color: #c7a96f; }
.text-entry {
  height: 164px;
  margin: 4px 0 0;
  border: 0;
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 16px 34px rgba(255,255,255,.012), 0 14px 30px rgba(0,0,0,.14);
}
.text-entry textarea { height: 108px; padding: 17px 17px 10px; }
.translate-button {
  left: 50%;
  right: auto;
  bottom: 12px;
  width: 132px;
  height: 36px;
  border: 1px solid rgba(152,205,230,.25);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56,111,141,.46), rgba(21,49,67,.62));
  color: #dfeef4;
  font-size: 12px;
  letter-spacing: .13em;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.18);
}
.translate-button:active { transform: translateX(-50%) translateY(1px); }
.translate-button.loading::after { top: 10px; }
.alien-result { height: 72px; font-size: 44px; gap: 20px; }
.result-label { padding: 0 8px; font-size: 10px; color: #837d73; }
.play-button {
  display: block;
  width: 152px;
  height: 36px;
  margin: 15px auto 0;
  border: 1px solid rgba(226,185,119,.38);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(146,105,57,.36), rgba(65,45,26,.5));
  color: #ead9b5;
  font-size: 12px;
  letter-spacing: .13em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px rgba(0,0,0,.15);
}
.recognize-button { width: 112px; height: 112px; margin-top: -2px; }
.waveform { opacity: .72; }
.recognition-status { font-size: 10px; color: #777b83; }
