/* Shared opaque surfaces and local fonts work consistently in Chrome and Safari. */
:root {
    color-scheme: dark;
    --amos-bg: #10151d;
    --amos-surface: #171e28;
    --amos-border: #2a3544;
    --amos-text: #e6edf5;
    --amos-muted: #a6b4c4;
    --amos-accent: #64d6c5;
    --amos-accent-soft: #203a3b;
    --amos-font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
}
html {
    background-color: #10151d;
    min-height: 100%;
}

body {
    margin: 0;
    box-sizing: border-box;
    font-family: var(--amos-font);
    min-height: 100vh;
    min-height: 100svh;
    background: #10151d;
    color: var(--amos-text);
    position: relative;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Preserve a visible touch response and keyboard focus. */
a, button, input, select, textarea, summary {
    -webkit-tap-highlight-color: rgba(100, 214, 197, 0.18);
}
:focus-visible {
    outline: 2px solid var(--amos-accent);
    outline-offset: 3px;
}
#main-content {
    scroll-margin-top: 85px;
}

/* 탭 지연 제거 */
a, button, input[type="submit"], input[type="button"], label {
    touch-action: manipulation;
}

/* iOS Safari: 입력 포커스 시 자동 확대 방지 (font-size 16px 미만이면 확대됨) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: max(16px, 1em);
    }
}

/* Animated background wrapper */
.bg-animation {
    display: none;
    position: fixed; /* absolute → fixed: iOS Safari 스크롤 시 배경 끊김 방지 */
    top: 0; right: 0; bottom: 0; left: 0; /* inset: 0 — Safari 14.1 미만 호환 */
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 3s ease-in-out infinite;
}

.bg-circle-1 {
    top: -160px;
    right: -160px;
    width: 320px;
    height: 320px;
    background: rgba(71, 85, 105, 0.1);
}

.bg-circle-2 {
    bottom: -160px;
    left: -160px;
    width: 320px;
    height: 320px;
    background: rgba(6, 182, 212, 0.15);
    animation-delay: 1s;
}

.bg-circle-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: rgba(59, 130, 246, 0.1);
    animation-delay: 0.5s;
}

/* Background animation keyframe */
@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
}

/* Responsive (optional) */
@media (max-width: 768px) {
    .bg-circle {
        width: 200px;
        height: 200px;
    }

    .bg-circle-1 {
        top: -100px;
        right: -100px;
    }

    .bg-circle-2 {
        bottom: -100px;
        left: -100px;
    }
}

.bg-watermark {
  position: fixed;
  font-size: 12px;
  font-weight: 600;
  color: rgba(180, 180, 180, 0.035);  /* 회색 + 매우 낮은 불투명도 */
  transform: rotate(-15deg);
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  white-space: nowrap;
  mix-blend-mode: normal;
}




/* 위치 지정 */
.wm-top-left {
    top: 10%;
    left: 5%;
    transform: rotate(-10deg);
}
.wm-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(10deg);
}
.wm-bottom-right {
    bottom: 10%;
    right: 5%;
    transform: rotate(-7deg);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
