#language-choice {
  width: min(500px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border-color: #2e6b7f;
  border-top: 2px solid var(--cyan);
  padding: clamp(22px, 5vw, 42px);
  background: #071017;
  box-shadow: 0 0 56px #00bde91a, 0 22px 85px #000a;
}
#language-choice::backdrop { background: #03070aa6; backdrop-filter: blur(1.5px); }
#language-choice img { width: 36px; margin-bottom: 18px; }
#language-choice h2 { margin: 0 0 6px; font-size: clamp(18px, 4.7vw, 25px); }
#language-choice p { margin: 0 0 25px; color: var(--muted); font-size: 16px; }
.language-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.language-actions button {
  background: #0a1a23;
  min-height: 53px;
  padding: 10px 8px;
  border: 1px solid #326478;
  color: #d9f1fb;
  font-size: 23px;
}
.language-actions button[lang=ja] { font-size: 17px; }
.language-actions button:hover { border-color: var(--cyan); background: #12303c; }
#language-choice .language-actions button:focus-visible { outline-offset: 3px; }
.glitch {
  color: #6fdef4;
  font: .77em JP, "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  text-shadow: 1px 0 #54e4ff55, -1px 0 #b6589b66;
  white-space: nowrap;
}
.copy-ja { font-family: "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif; }
p.copy-ja { font-size: 20px; line-height: 1.95; letter-spacing: .025em; }
.button.copy-ja { font-size: 14px; }
.text-link.copy-ja { font-size: 18px; }
@media (max-width: 650px) { p.copy-ja { font-size: 17px; } }

[hidden]{display:none!important}
html:lang(ja) .contact-panel input,html:lang(ja) .contact-panel textarea{font-family:system-ui,sans-serif}

footer:has(.language-toggle:not([hidden])) { flex-wrap: wrap; gap: 9px 22px; }
.language-toggle { padding: 2px 9px; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: 16px; }
.language-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
@media(max-width:650px) { .language-toggle { margin-top: 12px; } }
