/* FoxHunt3D v8.0.1 — FI / EN language selection */

.foxhunt-language-gate {
  position: fixed;
  z-index: 360;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(101,230,255,.16), transparent 34%),
    rgba(1,7,15,.94);
  backdrop-filter: blur(16px) saturate(1.25);
}

.foxhunt-language-gate.visible { display: grid; }

.foxhunt-language-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 18px 22px;
  width: min(680px, 96vw);
  padding: 25px;
  border: 1px solid rgba(101,230,255,.42);
  color: #f4fbff;
  background:
    radial-gradient(circle at 0 0, rgba(101,230,255,.14), transparent 32%),
    linear-gradient(145deg, rgba(9,31,49,.985), rgba(3,10,20,.99));
  box-shadow: 0 34px 110px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.025);
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
}

.foxhunt-language-mark {
  grid-row: 1 / 3;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  min-width: 108px;
}

.foxhunt-language-mark img {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 0 22px rgba(101,230,255,.33));
}

.foxhunt-language-mark span {
  color: #65e6ff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
}

.foxhunt-language-card h2 {
  margin: 4px 0 6px;
  font-size: clamp(28px,5vw,46px);
  letter-spacing: -.04em;
}

.foxhunt-language-card p {
  margin: 0;
  color: #9db4c6;
  font-size: 12px;
  line-height: 1.55;
}

.foxhunt-language-options {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.foxhunt-language-options button {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid rgba(101,230,255,.22);
  color: #eaf8ff;
  background: linear-gradient(145deg, rgba(18,45,66,.88), rgba(5,15,27,.98));
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.foxhunt-language-options button.active {
  border-color: #65e6ff;
  background: linear-gradient(145deg, rgba(37,115,147,.76), rgba(7,29,46,.98));
  box-shadow: inset 0 -3px 0 #65e6ff, 0 0 24px rgba(101,230,255,.13);
}

.foxhunt-language-options span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  color: #65e6ff;
  font-size: 15px;
  font-weight: 950;
  background: rgba(0,0,0,.18);
}

.foxhunt-language-options strong { font-size: 14px; letter-spacing: .05em; }
.foxhunt-language-card > .primary-button { grid-column: 2; justify-self: end; min-width: 180px; }

.foxhunt-language-switch {
  position: absolute;
  z-index: 15;
  right: 18px;
  top: 16px;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(101,230,255,.17);
  background: rgba(3,13,24,.82);
  backdrop-filter: blur(8px);
}

.foxhunt-language-switch button {
  min-width: 36px;
  height: 29px;
  padding: 0 8px;
  border: 0;
  color: #89a1b5;
  background: transparent;
  font-size: 9px;
  font-weight: 950;
  cursor: pointer;
}

.foxhunt-language-switch button.active {
  color: #061722;
  background: #65e6ff;
  box-shadow: 0 0 14px rgba(101,230,255,.28);
}

.foxhunt-settings-language { position: relative; }
.foxhunt-settings-language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}
.foxhunt-settings-language-row strong,
.foxhunt-settings-language-row span { display: block; }
.foxhunt-settings-language-row strong { color: #edf9ff; font-size: 12px; }
.foxhunt-settings-language-row span { margin-top: 4px; color: #92a9bb; font-size: 10px; }
.foxhunt-settings-language-row .foxhunt-language-switch { position: static; flex: 0 0 auto; }

@media (max-width: 620px) {
  .foxhunt-language-card { grid-template-columns: 1fr; padding: 20px; }
  .foxhunt-language-mark { grid-row: auto; grid-template-columns: auto 1fr; align-items: center; justify-items: start; min-width: 0; }
  .foxhunt-language-mark img { width: 58px; height: 58px; }
  .foxhunt-language-options, .foxhunt-language-card > .primary-button { grid-column: 1; }
  .foxhunt-language-card > .primary-button { width: 100%; }
  .foxhunt-language-switch { right: 9px; top: 8px; }
  .foxhunt-settings-language-row { align-items: flex-start; flex-direction: column; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .foxhunt-language-card { grid-template-columns: auto 1fr; gap: 10px 16px; padding: 15px 18px; }
  .foxhunt-language-mark img { width: 58px; height: 58px; }
  .foxhunt-language-card h2 { font-size: 27px; }
  .foxhunt-language-card p { display: none; }
  .foxhunt-language-options button { min-height: 52px; }
}
