@import url("https://fonts.googleapis.com/css?family=PT+Sans:400,700");
@import url('https://fonts.googleapis.com/css2?family=Asta+Sans:wght@300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chiron+Hei+HK:wght@200..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --box-shadow-glass: inset 3px 3px 0.5px -3.5px rgba(255,255,255,0.60),
              inset 2px 2px 0.5px -2px rgba(255,255,255,0.4),
              inset -2px -2px 0.5px -2px rgba(255,255,255,0.4),
              inset 0 0 5px 1px rgba(255,255,255,0.04),
              inset 0 0 0 1px rgba(255,255,255,0.15),
              inset 0 0 10px 0 rgba(255,255,255,0.255),
              inset 0 0 24px 0 rgba(255,255,255,0.155),
                    0 0 25px 0 rgba(0,0,0,0.15);
    --box-shadow-glass-insetonly: inset 3px 3px 0.5px -3.5px rgba(255,255,255,0.60),
              inset 2px 2px 0.5px -2px rgba(255,255,255,0.4),
              inset -2px -2px 0.5px -2px rgba(255,255,255,0.4),
              inset 0 0 5px 1px rgba(255,255,255,0.04),
              inset 0 0 0 1px rgba(255,255,255,0.15),
              inset 0 0 10px 0 rgba(255,255,255,0.255),
              inset 0 0 24px 0 rgba(255,255,255,0.155),
              0 1px 2px rgba(0,0,0,0.2),
              0 0 1px rgba(0,0,0,0.2);
    --box-shadow-tag: inset 0 1px 2px rgba(255, 255, 255, 0.5),
                  0 1px 2px rgba(0, 0, 0, 0.1);
    --text-shadow-engraved: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    --font-korean: "Asta Sans", sans-serif;
    --font-chinese: "Chiron Hei HK", sans-serif;
}
* [lang="ko"] {
    font-family: var(--font-korean);
}
* [lang="zh"] {
    font-family: var(--font-chinese);
}

.white-frosted-glass, content-wrapper, bandpanel.leaf, popup {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background-color: rgba(255, 255, 255, 0.44);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1),
                var(--box-shadow-glass);
    border-radius: 1rem;
}

header.white-frosted-glass {
  border-radius: 0 !important;
}

/* App header / title bar */
header {
  width: 100%;
  padding: 0.4rem 0.5rem;
  margin-bottom: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

header .app-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

header .app-logo {
  height: 2rem;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.6));
  opacity: 0.78;
}

header .hamburger-btn,
header .back-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.6);
  /* 44px minimum touch target */
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

header .hamburger-btn {
  right: 0.5rem;
}

header .back-btn {
  left: 0.5rem;
  text-decoration: none;
}

header .hamburger-btn:hover,
header .hamburger-btn:active,
header .back-btn:hover,
header .back-btn:active {
  color: rgba(0, 0, 0, 0.9);
}

/* Options overlay (catches outside clicks) */
#options-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: transparent;
}

/* Options panel */
#options-panel {
  position: fixed;
  top: calc(2rem + 0.8rem + 2px); /* header height */
  right: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem !important;
}

@media (min-width: 480px) {
  #options-panel {
    left: auto;
    min-width: 18rem;
  }
}

.options-panel-hidden {
  display: none;
}

.options-title {
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.options-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.options-row label {
  font-size: 1rem;
}

.options-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.options-control input[type="range"] {
  flex: 1;
  accent-color: rgba(0, 0, 0, 0.5);
  height: 1.5rem; /* larger touch target for the track area */
  cursor: pointer;
}

#radius-display {
  font-size: 0.95rem;
  min-width: 3rem;
  text-align: right;
  opacity: 0.75;
}

body {
    font-family: 'Asta Sans', sans-serif;
    /*background: linear-gradient(135deg, #ddd381 0%, #c88c7f 100%);*/
    background: radial-gradient(60% 80% at 15% 0%, #fbe7c4 0%, transparent 55%), radial-gradient(60% 80% at 85% 100%, #f1cba3 0%, transparent 55%), linear-gradient(180deg, #fffaef 0%, #fdeec8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.container {
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 470px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333336;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2em;
    font-weight: 700;
    text-shadow: var(--text-shadow-engraved);
}

h1, h2, h3 [lang="ko"] {
    font-weight: 800;
}

h1, h2, h3, h4, h5 {
    word-break: keep-all;
}

p {
    color: #000;
    line-height: 1.4;
    text-align: justify;
    text-shadow: var(--text-shadow-engraved);
    padding: 0 1em;
    margin-bottom: 1.8em;
    hyphens: auto;
}

.subtitle {
    color: #222224;
    margin-bottom: 1.6rem;
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: var(--text-shadow-engraved);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact-item {
    background: #f8f9fa;
    padding: 0.7em;
    border-radius: 10px;
    box-shadow: var(--box-shadow-tag), 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item strong {
    display: block;
    color: #2b58e0;
    font-size: 1.1em;
    margin-bottom: 0;
}

.contact-item a {
    color: #222224;
    text-decoration: none;
    font-size: 1.1em;
}

li {
    word-break: keep-all;
}

/* Footer — pinned to bottom */
footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.9);
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.2);
}
