/* Locale hint v1 (2026-11-04, Sean "1번"). TRiNOV WEBLOG + TRiNOV GAMES.
   Unprefixed Korean URLs are no longer redirected by country (Googlebot crawls
   mostly from the US and was reading English at the Korean URLs). Visitors whose
   country suggests English or Vietnamese get this dismissible note instead; the
   Pages Function injects it only for them. Material = the sites' popup glass
   (WEBLOG .cal-pop surface) with the fixed shell's sheen, edge highlight and depth.
   Angular design code: no rounding. */

.locale-hint {
  --locale-hint-surface: rgba(22, 27, 27, 0.7);
  --locale-hint-hover: rgba(245, 183, 0, 0.12);
  --locale-hint-hover-line: rgba(245, 183, 0, 0.48);
  position: fixed;
  z-index: 20;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: calc(var(--footer-bar-height, 74px) + 12px);
  width: min(368px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 52px 20px 24px;
  color: var(--ink, #f0f3ef);
  background-color: var(--locale-hint-surface);
  background-image: var(--shell-sheen, none);
  border: 1px solid var(--line, rgba(240, 243, 239, 0.18));
  border-radius: 0;
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 var(--shell-highlight, rgba(255, 255, 255, 0.065)),
    inset 0 -1px 0 var(--shell-lowlight, rgba(0, 0, 0, 0.08)),
    0 12px 34px var(--shell-depth, rgba(0, 0, 0, 0.14));
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
  animation: locale-hint-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

html[data-theme="light"] .locale-hint {
  --locale-hint-surface: rgba(235, 238, 235, 0.75);
  --locale-hint-hover: rgba(185, 130, 0, 0.14);
  --locale-hint-hover-line: #a97800;
}

.locale-hint[hidden] {
  display: none;
}

.locale-hint__label {
  margin: 0;
  color: var(--accent-text, #f5b700);
  font-size: 10px;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.locale-hint__message {
  margin: 12px 0 0;
  color: var(--ink, #f0f3ef);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
}

.locale-hint__action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--line, rgba(240, 243, 239, 0.18));
  color: var(--ink, #f0f3ef);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.locale-hint__action > span {
  font-size: 14px;
  font-weight: 400;
}

.locale-hint__action:hover,
.locale-hint__action:focus-visible {
  background: var(--locale-hint-hover);
  border-color: var(--locale-hint-hover-line);
}

/* 28px target. Its centre sits on the label's centre line (20px padding + 5px) and
   the 14px glyph ends 24px inside the card, the shell bars' own inner padding. */
.locale-hint__close {
  position: absolute;
  top: 11px;
  right: 17px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted, #a7adaa);
  transition: color 0.18s ease, background 0.18s ease;
}

.locale-hint__close:hover,
.locale-hint__close:focus-visible {
  color: var(--ink, #f0f3ef);
  background: var(--nav-hover, rgba(255, 255, 255, 0.06));
}

.locale-hint__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: square;
}

.locale-hint a:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent, #f5b700));
  outline-offset: 2px;
}

@keyframes locale-hint-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .locale-hint {
    right: 14px;
    left: 14px;
    bottom: calc(var(--footer-bar-height, 74px) + 10px);
    width: auto;
    padding: 16px 46px 16px 16px;
  }

  /* Text and glyph sit on the phone footer's 16px inner padding lines. */
  .locale-hint__close {
    top: 7px;
    right: 9px;
  }

  .locale-hint__message {
    margin-top: 10px;
  }

  .locale-hint__action {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .locale-hint {
    animation: none;
  }

  .locale-hint__action,
  .locale-hint__close {
    transition: none;
  }
}

@media print {
  .locale-hint {
    display: none;
  }
}
