:root {
    --hd-blue: #002D56;
    --hd-blue-light: #004A8D;
    --hd-orange: #F58220;
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #d7e2eb 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1A1A1A;
    --text-muted: #666;
    --safe: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    padding: 20px;
}

.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hd-blue { color: var(--hd-blue); }
.hd-orange { color: var(--hd-orange); }

h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--hd-blue);
    margin-bottom: 4px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--hd-blue-light);
}

.value-badge {
    background: var(--hd-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.timer-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--hd-blue);
    color: white;
}
.btn-primary:hover {
    background: var(--hd-blue-light);
}

.btn-secondary {
    background: var(--warning);
    color: white;
}
.btn-secondary:hover {
    background: #d97706;
}

.btn-outline {
    background: transparent;
    border: 1px solid #E5E7EB;
    color: var(--text-muted);
}
.btn-outline:hover {
    background: #f3f4f6;
}

.number-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.number-input:focus {
    border-color: var(--hd-blue);
    box-shadow: 0 0 0 3px rgba(0, 45, 86, 0.1);
}

.result-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.gauge-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.gauge {
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 8;
}

.gauge-path {
    fill: none;
    stroke: var(--hd-blue);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease-in-out, stroke 0.5s ease;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#lifePercent {
    font-size: 42px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
}

.gauge-text .label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    width: 100%;
    border: 1px solid transparent;
    transition: var(--transition);
}

.status-card.safe {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.status-card.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.status-card.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.status-icon {
    font-size: 24px;
}

.status-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.status-info p {
    font-size: 13px;
    color: var(--text-muted);
}

footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--hd-blue);
}

.disclaimer {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}
