/* Digital Clock & Screensaver - /app/digital-clock/ - moved out of the inline <style> block 16 Oct 2026 */
.prank-tool { max-width: 1080px; margin: 0 auto; width: 100%; min-width: 0; } /* width/min-width: keeps the tool inside the column on phones (13 Oct fix) */

/* Hero */
.hero-section { text-align: center; padding: 2.5rem 1.5rem; background: linear-gradient(135deg, #0a1428 0%, #050a14 100%); border-radius: 8px; margin-bottom: 2rem; position: relative; overflow: hidden; border: 1px solid #1a2a3a; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 70%, rgba(75, 178, 213, 0.10) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(255, 60, 60, 0.06) 0%, transparent 50%); pointer-events: none; }
.hero-section__icon { width: 100px; height: 100px; margin: 0 auto 1.25rem; position: relative; z-index: 1; color: #ff3333; font-size: 5rem; line-height: 100px; filter: drop-shadow(0 0 18px rgba(255, 51, 51, 0.5)); font-family: 'Orbitron', sans-serif; font-weight: 700; }
.hero-section__title { font-size: 1.75rem; font-weight: 600; color: #fff; margin: 0 0 0.5rem; position: relative; z-index: 1; font-family: 'Segoe UI', system-ui, sans-serif; }
.hero-section__subtitle { font-size: 1rem; color: rgba(255, 255, 255, 0.7); margin: 0 auto; max-width: 640px; line-height: 1.5; position: relative; z-index: 1; font-family: 'Segoe UI', system-ui, sans-serif; }

/* ============================================
   CLOCK STAGE
   All clock sizes derive from one variable, --dw (the width of one big digit),
   so the time can never wrap or overflow: about 8 digit-widths fit across the stage
   with seconds and AM/PM, about 6.5 without seconds.
   ============================================ */
.clock-stage {
    --clock-color: #ff3333;
    --clock-bg: #000000;
    --clock-glow: 12px;
    --clock-off-opacity: 0.08;
    --clock-intensity: 1;
    --dw: clamp(24px, 7vw, 90px);          /* fallback for browsers without container units */
    container-type: inline-size;
    background: var(--clock-bg);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
@supports (width: 1cqi) {
    .clock-stage { --dw: min(11.5cqi, 90px); }
    .clock-stage:not(.show-seconds) { --dw: min(14cqi, 110px); }
}
.clock-stage[data-brightness="dim"] { --clock-glow: 0px; --clock-off-opacity: 0.05; --clock-intensity: 0.45; }
.clock-stage[data-brightness="bright"] { --clock-glow: 24px; --clock-off-opacity: 0.12; }

.clock-display-wrap { display: flex; flex-direction: column; align-items: center; max-width: 100%; opacity: var(--clock-intensity); }

/* The display row */
.clock-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--dw) * 0.14);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.clock-group { display: flex; align-items: center; gap: calc(var(--dw) * 0.08); }
.clock-group--seconds { display: none; }
.clock-stage.show-seconds .clock-group--seconds { display: flex; }
.clock-stage.show-seconds .clock-colon--secs { display: flex; }

/* Colon (between groups) */
.clock-colon { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: calc(var(--dw) * 0.32); padding: 0 calc(var(--dw) * 0.06); }
.clock-colon--secs { display: none; }
.clock-colon .dot {
    width: calc(var(--dw) * 0.18);
    height: calc(var(--dw) * 0.18);
    border-radius: 50%;
    background: var(--clock-color);
    box-shadow: 0 0 var(--clock-glow) var(--clock-color);
    animation: colonPulse 1s ease-in-out infinite;
}
@keyframes colonPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.clock-stage.no-pulse .clock-colon .dot { animation: none; opacity: 1; }

/* AM/PM indicator */
.clock-ampm {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    font-size: max(11px, calc(var(--dw) * 0.28));
    min-width: 2.4em;
    color: var(--clock-color);
    text-shadow: 0 0 var(--clock-glow) var(--clock-color);
    margin-left: calc(var(--dw) * 0.06);
    letter-spacing: 1px;
    align-self: flex-start;
    margin-top: calc(var(--dw) * 0.12);
}
.clock-stage:not(.show-ampm) .clock-ampm { display: none; }

/* Lines below the time */
.clock-date, .clock-message, .clock-timezone {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    color: var(--clock-color);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.clock-date {
    margin-top: clamp(12px, 3vw, 32px);
    font-weight: 500;
    font-size: clamp(13px, 1.8vw, 22px);
    text-shadow: 0 0 calc(var(--clock-glow) * 0.6) var(--clock-color);
    letter-spacing: 2px;
    opacity: 0.9;
}
.clock-stage:not(.show-date) .clock-date { display: none; }
.clock-message {
    margin-top: clamp(8px, 1.5vw, 14px);
    font-weight: 500;
    font-size: clamp(12px, 1.4vw, 18px);
    text-shadow: 0 0 calc(var(--clock-glow) * 0.5) var(--clock-color);
    letter-spacing: 1px;
    opacity: 0.85;
    max-width: 90%;
}
.clock-message:empty { display: none; }
.clock-timezone {
    margin-top: clamp(4px, 1vw, 10px);
    font-weight: 400;
    font-size: clamp(11px, 1.1vw, 14px);
    opacity: 0.6;
    letter-spacing: 1px;
}
.clock-stage:not(.show-tz-label) .clock-timezone { display: none; }

/* ===== STYLE: LED 7-SEGMENT (default) ===== */
.seg-digit { width: var(--dw); height: calc(var(--dw) * 1.75); display: inline-block; flex: 0 0 auto; }
.clock-group--seconds .seg-digit { width: calc(var(--dw) * 0.62); height: calc(var(--dw) * 1.085); }
.seg { fill: var(--clock-color); opacity: var(--clock-off-opacity); transition: opacity 0.15s ease; }
.seg.on { opacity: 1; filter: drop-shadow(0 0 calc(var(--clock-glow) * 0.5) var(--clock-color)); }
.clock-stage[data-brightness="bright"] .seg.on { filter: drop-shadow(0 0 var(--clock-glow) var(--clock-color)) drop-shadow(0 0 calc(var(--clock-glow) * 0.5) var(--clock-color)); }

/* Text styles: every digit sits in a fixed-width box, so the time never jumps sideways */
.text-digit { display: none; }
.clock-stage:not([data-style="led"]) .seg-digit { display: none; }
.clock-stage:not([data-style="led"]) .text-digit {
    --fs: 1.6;
    display: inline-block;
    flex: 0 0 auto;
    width: var(--dw);
    font-size: calc(var(--dw) * var(--fs));
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    color: var(--clock-color);
    font-variant-numeric: tabular-nums;
    white-space: pre;
}
.clock-stage:not([data-style="led"]) .clock-group--seconds .text-digit { width: calc(var(--dw) * 0.62); font-size: calc(var(--dw) * 0.62 * var(--fs)); }

/* LCD */
.clock-stage[data-style="lcd"] .text-digit {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    --fs: 1.45;
    text-shadow: 0 0 var(--clock-glow) var(--clock-color), 0 0 calc(var(--clock-glow) * 2) var(--clock-color);
}
/* Modern (clean sans-serif) */
.clock-stage[data-style="modern"] .text-digit {
    font-family: 'Helvetica Neue', 'Inter', system-ui, sans-serif;
    font-weight: 200;
    --fs: 1.75;
    text-shadow: 0 0 calc(var(--clock-glow) * 0.4) var(--clock-color);
}
.clock-stage[data-style="modern"] .clock-colon .dot { width: calc(var(--dw) * 0.13); height: calc(var(--dw) * 0.13); }
/* Pixel */
.clock-stage[data-style="pixel"] .text-digit {
    font-family: 'VT323', 'Courier New', monospace;
    font-weight: 400;
    --fs: 2;
    line-height: 0.85;
    text-shadow: 0 0 var(--clock-glow) var(--clock-color);
}
.clock-stage[data-style="pixel"] .clock-date,
.clock-stage[data-style="pixel"] .clock-message,
.clock-stage[data-style="pixel"] .clock-ampm,
.clock-stage[data-style="pixel"] .clock-timezone { font-family: 'VT323', 'Courier New', monospace; }
/* Retro CRT */
.clock-stage[data-style="crt"] .text-digit {
    font-family: 'Major Mono Display', 'Courier New', monospace;
    font-weight: 400;
    --fs: 1.55;
    text-shadow: 0 0 calc(var(--clock-glow) * 0.5) var(--clock-color), 0 0 var(--clock-glow) var(--clock-color), 0 0 calc(var(--clock-glow) * 2) var(--clock-color);
}
.clock-stage[data-style="crt"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 4px);
    pointer-events: none;
    z-index: 2;
}
.clock-stage[data-style="crt"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}
.clock-stage[data-style="crt"] .clock-display-wrap { position: relative; z-index: 3; }

/* ===== NIGHT MODE: dim red (or amber) on black =====
   Set by JS as data-night="1" (Night Mode On, or Auto during the visitor's From/To hours,
   22:00 to 06:59 local time by default), with data-night-color="red|amber".
   Overrides the chosen color and brightness on screen only; !important beats the inline
   --clock-color, so the saved color comes straight back when night mode ends. */
.clock-stage[data-night="1"] {
    --clock-color: #b3121b !important;
    --clock-bg: #000000;
    --clock-glow: 0px;
    --clock-off-opacity: 0.03;
    --clock-intensity: 0.8;
    background: #000;
    border-color: #140707;
    box-shadow: none;
}
.clock-stage[data-night="1"][data-night-color="amber"] {
    --clock-color: #c47a00 !important;
    border-color: #140d03;
}
.clock-stage[data-night="1"] .seg.on { filter: none; }
.clock-stage[data-night="1"] .text-digit,
.clock-stage[data-night="1"] .clock-ampm,
.clock-stage[data-night="1"] .clock-date,
.clock-stage[data-night="1"] .clock-message,
.clock-stage[data-night="1"] .clock-timezone { text-shadow: none; }
.clock-stage[data-night="1"] .clock-colon .dot { box-shadow: none; }
/* Everything around the main digits sits a step dimmer */
.clock-stage[data-night="1"] .clock-group--seconds,
.clock-stage[data-night="1"] .clock-colon--secs { opacity: 0.72; }
.clock-stage[data-night="1"] .clock-ampm { opacity: 0.68; }
.clock-stage[data-night="1"] .clock-date { opacity: 0.6; }
.clock-stage[data-night="1"] .clock-message { opacity: 0.52; }
.clock-stage[data-night="1"] .clock-timezone { opacity: 0.5; }
.clock-stage[data-night="1"][data-style="crt"]::after { background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.55) 100%); }
/* 1.5s fade while night mode switches on or off (class added by JS for 1.6s only) */
.clock-stage.night-fading { transition: background-color 1.5s ease, border-color 1.5s ease, box-shadow 1.5s ease; }
.clock-stage.night-fading .clock-display-wrap { transition: opacity 1.5s ease, top 5s cubic-bezier(0.4, 0, 0.2, 1), left 5s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.clock-stage.night-fading .clock-display-wrap * { transition: color 1.5s ease, fill 1.5s ease, opacity 1.5s ease, text-shadow 1.5s ease, box-shadow 1.5s ease, filter 1.5s ease, background-color 1.5s ease !important; }

/* ============================================
   SETTINGS PANEL
   ============================================ */
.win-control-panel { background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%); border-radius: 8px; margin-bottom: 2rem; border: 1px solid #404040; overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.win-titlebar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f1f1f; border-bottom: 1px solid #404040; }
.win-titlebar__icon i { color: #4bb2d5; font-size: 18px; }
.win-titlebar__text { font-size: 13px; color: #fff; flex: 1; }
.win-titlebar__buttons { display: flex; gap: 2px; }
.win-titlebar__btn { width: 12px; height: 12px; border-radius: 50%; }
.win-titlebar__btn--minimize { background: #ffbd2e; }
.win-titlebar__btn--maximize { background: #28c940; }
.win-titlebar__btn--close { background: #ff5f57; }
.win-panel-content { padding: 24px; }
.win-section { margin-bottom: 24px; border: 0; padding: 0; min-width: 0; }
.win-section:last-child { margin-bottom: 0; }
.win-section__title { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.win-section__title i { color: #4bb2d5; font-size: 16px; }

/* Shared focus ring for every control in the panel */
.win-control-panel button:focus-visible,
.win-control-panel select:focus-visible,
.win-control-panel input:focus-visible { outline: 3px solid #66c5de; outline-offset: 2px; }

/* Style picker grid */
.style-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 800px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
.style-card { display: block; width: 100%; background: #363636; border: 2px solid #4a4a4a; border-radius: 6px; padding: 12px 8px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; text-align: center; font-family: inherit; color: #fff; }
.style-card:hover { background: #404040; border-color: #4bb2d5; }
.style-card.active { background: rgba(75, 178, 213, 0.12); border-color: #4bb2d5; }
.style-card__preview {
    height: 36px;
    background: #000;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #ff3333;
    text-shadow: 0 0 8px #ff3333;
    letter-spacing: 1px;
}
.style-card[data-style="lcd"] .style-card__preview { color: #00ff88; text-shadow: 0 0 8px #00ff88; }
.style-card[data-style="modern"] .style-card__preview { font-family: 'Helvetica Neue', sans-serif; font-weight: 200; color: #fff; text-shadow: 0 0 4px #fff; letter-spacing: -1px; }
.style-card[data-style="pixel"] .style-card__preview { font-family: 'VT323', monospace; font-size: 22px; color: #00ccff; text-shadow: 0 0 8px #00ccff; }
.style-card[data-style="crt"] .style-card__preview { font-family: 'Major Mono Display', monospace; color: #ff9900; text-shadow: 0 0 6px #ff9900, 0 0 12px #ff9900; font-size: 14px; }
.style-card__name { display: block; font-size: 12px; font-weight: 500; color: #fff; margin: 0; }

/* Color presets */
.color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
@media (max-width: 700px) { .color-grid { grid-template-columns: repeat(4, 1fr); } }
.color-card {
    aspect-ratio: 1;
    min-height: 44px;
    max-width: 72px;
    width: 100%;
    justify-self: center;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    border: 3px solid transparent;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-card::before { content: ''; width: 60%; height: 60%; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.color-card:hover { transform: scale(1.08); border-color: rgba(255,255,255,0.3); }
.color-card.active { border-color: #fff; box-shadow: 0 0 0 2px #4bb2d5; }
.color-card[data-color="custom"]::before { background: linear-gradient(135deg, #ff0080, #00ff80, #0080ff); box-shadow: none; }

.color-picker-wrap { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.color-picker-wrap[hidden] { display: none; }
.color-picker-wrap input[type="color"] { width: 50px; height: 44px; border: 1px solid #5a5a5a; border-radius: 4px; cursor: pointer; padding: 2px; background: #1f1f1f; }
.color-picker-wrap input[type="text"] { flex: 1; min-width: 0; padding: 10px 14px; font-size: 16px; background: #1f1f1f; border: 1px solid #5a5a5a; border-bottom: 2px solid #4bb2d5; border-radius: 4px 4px 0 0; color: #fff; outline: none; font-family: 'Segoe UI', monospace; }

/* Brightness segmented control */
.seg-control { display: flex; gap: 4px; background: #1f1f1f; padding: 4px; border-radius: 4px; border: 1px solid #5a5a5a; }
.seg-control button { flex: 1; min-height: 44px; padding: 8px 14px; background: transparent; border: none; color: rgba(255,255,255,0.75); font-size: 14px; cursor: pointer; border-radius: 3px; font-family: inherit; transition: color 0.15s ease, background 0.15s ease; }
.seg-control button:hover { color: #fff; }
.seg-control button.active { background: rgba(75, 178, 213, 0.18); color: #66c5de; font-weight: 600; }
.night-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 340px) { .night-hours { grid-template-columns: 1fr; } }
.night-hours .win-select { height: 44px; padding-top: 0; padding-bottom: 0; }
.night-color { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.night-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.62); }
.night-status { display: inline-block; margin-left: 4px; font-weight: 600; color: #ff9da2; }
.night-status:empty { display: none; }

/* Inputs - 16px text so iPhone Safari does not zoom on focus */
.win-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.win-input-row--single { grid-template-columns: 1fr; margin-bottom: 0; }
@media (max-width: 700px) { .win-input-row { grid-template-columns: 1fr; } }
.win-input-group { display: flex; flex-direction: column; gap: 6px; }
.win-input-label { font-size: 13px; color: rgba(255,255,255,0.8); }
.win-input, .win-select { min-height: 44px; padding: 10px 14px; font-size: 16px; font-family: 'Segoe UI', system-ui, sans-serif; background: #1f1f1f; border: 1px solid #5a5a5a; border-bottom: 2px solid #4bb2d5; border-radius: 4px 4px 0 0; color: #fff; outline: none; width: 100%; box-sizing: border-box; }
.win-input:focus, .win-select:focus { background: #2a2a2a; border-color: #66c5de; border-bottom-color: #66c5de; }
.win-input::placeholder { color: rgba(255,255,255,0.45); }

/* Toggles */
.win-toggle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 700px) { .win-toggle-list { grid-template-columns: 1fr; } }
.win-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; padding: 6px 0; min-height: 44px; box-sizing: border-box; position: relative; }
.win-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.win-toggle__switch { width: 36px; height: 20px; background: #5a5a5a; border-radius: 10px; position: relative; transition: background 0.2s ease; flex-shrink: 0; margin-top: 1px; }
.win-toggle__switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; }
.win-toggle input:checked + .win-toggle__switch { background: #4bb2d5; }
.win-toggle input:checked + .win-toggle__switch::after { transform: translateX(16px); }
.win-toggle input:focus-visible + .win-toggle__switch { outline: 3px solid #66c5de; outline-offset: 2px; }
.win-toggle input:disabled ~ .win-toggle__text { opacity: 0.5; }
.win-toggle__text { display: flex; flex-direction: column; }
.win-toggle__label { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.3; }
.win-toggle__hint { font-size: 12px; color: rgba(255,255,255,0.62); margin-top: 2px; line-height: 1.3; }

/* Buttons */
.win-btn-row { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #404040; }
@media (max-width: 600px) { .win-btn-row { flex-direction: column; } }
.win-btn { flex: 1; min-height: 44px; padding: 12px 24px; font-size: 14px; font-weight: 500; font-family: 'Segoe UI', system-ui, sans-serif; border: none; border-radius: 4px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.win-btn i { font-size: 16px; }
.win-btn-primary { background: linear-gradient(180deg, #4bb2d5 0%, #3b779b 100%); color: #fff; font-weight: 600; }
.win-btn-primary:hover { background: linear-gradient(180deg, #66c5de 0%, #4bb2d5 100%); }
.win-btn-secondary { background: #363636; color: #fff; border: 1px solid #5a5a5a; }
.win-btn-secondary:hover { background: #404040; border-color: #6a6a6a; }
.win-btn-share { background: transparent; color: #66c5de; border: 1px solid #66c5de; flex: 0 0 auto; padding: 12px 18px; }
.win-btn-share:hover { background: rgba(102, 197, 222, 0.1); }
.win-btn-share.copied { background: #1f8a33; border-color: #1f8a33; color: #fff; }

.win-tips { background: rgba(75, 178, 213, 0.08); border: 1px solid rgba(75, 178, 213, 0.2); border-radius: 4px; padding: 16px; margin-top: 20px; }
.win-tips__title { font-size: 13px; font-weight: 600; color: #66c5de; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.win-tips__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 600px) { .win-tips__list { grid-template-columns: 1fr; } }
.win-tips__list li { font-size: 12px; color: rgba(255,255,255,0.75); padding-left: 16px; position: relative; }
.win-tips__list li::before { content: '›'; position: absolute; left: 0; color: #66c5de; font-weight: bold; }

.prank-tool kbd { display: inline-block; padding: 2px 6px; font-size: 11px; font-family: 'Segoe UI', monospace; background: #1f1f1f; border: 1px solid #5a5a5a; border-radius: 3px; color: #fff; }

/* Light content */
.features-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
@media (max-width: 768px) { .features-row { grid-template-columns: 1fr; } }
.feature-box { text-align: center; padding: 1.5rem 1rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #e9ecef; }
.feature-box__icon { width: 44px; height: 44px; margin: 0 auto 0.875rem; color: #3b779b; display: flex; align-items: center; justify-content: center; }
.feature-box__icon i { font-size: 2.5rem; }
.feature-box__title { font-size: 1rem; font-weight: 600; color: #2f6e8d; margin: 0 0 0.375rem; }
.feature-box__desc { font-size: 0.875rem; color: #5a7a8a; margin: 0; line-height: 1.4; } /* was #7a9ab0, 3.0:1 on white */

.info-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #e9ecef; margin-bottom: 1.5rem; overflow: hidden; }
.info-card__header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.info-card__header i { font-size: 1.25rem; color: #4bb2d5; flex-shrink: 0; }
.info-card__title { font-size: 1rem; font-weight: 600; color: #2f6e8d; margin: 0; }
.info-card__body { padding: 1.25rem; }
.info-card__body p { margin: 0 0 1rem; color: #5a7a8a; line-height: 1.6; }
.info-card__body p:last-child { margin-bottom: 0; }
.info-card__body kbd { color: #2f6e8d; background: #f1f4f6; border-color: #cfd8de; }

.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 700px) { .use-cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .use-cases { grid-template-columns: 1fr; } }
.use-case { padding: 0.875rem; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; }
.use-case__icon { color: #3b779b; font-size: 1.25rem; margin-bottom: 0.5rem; }
.use-case__title { font-size: 0.875rem; font-weight: 600; color: #2f6e8d; margin: 0 0 0.25rem; }
.use-case__desc { font-size: 0.8125rem; color: #5a7a8a; margin: 0; line-height: 1.4; }

/* ============================================
   FULLSCREEN MODE
   ============================================ */
body.fs-active, html.fs-active { overflow: hidden !important; height: 100% !important; margin: 0 !important; padding: 0 !important; background: #000 !important; }

.clock-stage.fullscreen-active {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    z-index: 2147483646; /* one below the shared Exit button */
    margin: 0;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    box-sizing: border-box;
    /* Sized by both axes, so a landscape phone never pushes the date off screen */
    --dw: min(11.5vw, 28vh);
}
.clock-stage.fullscreen-active:not(.show-seconds) { --dw: min(14vw, 32vh); }
.clock-stage.fullscreen-active .tool-stage-fs { display: none; }
.clock-stage.fullscreen-active .clock-date { font-size: clamp(14px, min(2.5vw, 5vh), 36px); }
.clock-stage.fullscreen-active .clock-message { font-size: clamp(13px, min(2vw, 4vh), 28px); }
.clock-stage.fullscreen-active .clock-timezone { font-size: clamp(11px, min(1.4vw, 3vh), 18px); }

/* Mouse pointer hides after a few seconds without movement */
.clock-stage.fullscreen-active.cursor-hidden,
.clock-stage.fullscreen-active.cursor-hidden * { cursor: none !important; }

/* Screensaver float mode */
.clock-stage.fullscreen-active.floating .clock-display-wrap {
    position: absolute;
    transition: top 5s cubic-bezier(0.4, 0, 0.2, 1), left 5s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(150px); padding: 12px 24px; background: #1f1f1f; color: #fff; border-radius: 6px; font-size: 14px; z-index: 2147483647; transition: transform 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.3); border: 1px solid #404040; font-family: 'Segoe UI', sans-serif; max-width: calc(100vw - 32px); box-sizing: border-box; }
.toast.visible { transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
    .hero-section { padding: 2rem 1rem; }
    .hero-section__title { font-size: 1.5rem; }
    .clock-stage { padding: 2rem 0.75rem; min-height: 180px; }
    .win-panel-content { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .clock-colon .dot { animation: none; opacity: 1; }
    .seg, .toast, .color-card, .win-toggle__switch, .win-toggle__switch::after { transition: none; }
    .color-card:hover { transform: none; }
    .clock-stage.fullscreen-active.floating .clock-display-wrap { transition-duration: 1ms; }
    .clock-stage.night-fading, .clock-stage.night-fading .clock-display-wrap, .clock-stage.night-fading .clock-display-wrap * { transition: none !important; }
}
