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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    background: radial-gradient(circle at top, #ffe9f0 0, #fdf4ff 40%, #f5f5ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 720px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border: 4px solid #222;
    position: relative;
    overflow: hidden;
}

/* Comic border layers */
.container::before,
.container::after {
    content: "";
    position: absolute;
    border: 3px solid #222;
    border-radius: 24px;
    pointer-events: none;
}

.container::before {
    inset: 10px 8px 8px 10px;
    border-style: dashed;
    opacity: 0.35;
}

.container::after {
    inset: -8px -6px auto auto;
    width: 90px;
    height: 40px;
    background: #222;
    border-radius: 0 0 0 16px;
}

.badge {
    position: absolute;
    top: -4px;
    right: 8px;
    padding: 4px 10px;
    font-size: 11px;
    color: #fff;
    z-index: 2;
}

.badge span {
    display: inline-block;
    background: #ffb300;
    padding: 4px 10px;
    border-radius: 12px;
    border: 2px solid #000;
    box-shadow: 0 3px 0 #000;
}

.content {
    padding: 28px 26px 24px;
    z-index: 1;
}

/* Title area */
.title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.title-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffe27a;
    border: 4px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.title-icon::before {
    content: "";
    position: absolute;
    width: 130%;
    height: 130%;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 4px,
        transparent 4px,
        transparent 8px
    );
}

.title-icon span {
    position: relative;
    font-size: 28px;
    font-weight: 900;
}

.title-text-main {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    text-shadow: 3px 3px 0 #ffecb3;
}

.title-text-sub {
    margin-top: 3px;
    font-size: 15px;
    color: #555;
}

/* Speech bubble */
.speech-bubble {
    margin-top: 12px;
    background: #fffdf5;
    border-radius: 20px;
    border: 3px solid #222;
    position: relative;
    padding: 14px 16px 12px;
    box-shadow: 4px 4px 0 #222;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 58px;
    border-width: 18px 18px 0 0;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.speech-bubble::before {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 64px;
    border-width: 14px 14px 0 0;
    border-style: solid;
    border-color: #fffdf5 transparent transparent transparent;
    z-index: 1;
}

.speech-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.speech-body {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Maintenance window */
.time-banner {
    margin-top: 22px;
    padding: 14px 16px;
    background: #ffeb3b;
    border-radius: 18px;
    border: 3px solid #222;
    box-shadow: 4px 4px 0 #222;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.time-value {
    font-size: 20px;
    font-weight: 900;
    color: #d32f2f;
}

/* Countdown */
.time-countdown {
    font-size: 18px;
    font-weight: 900;
    color: #222;
    margin-top: 4px;
}

/* Breathing glow */
#countdown {
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 4px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 0 12px rgba(255, 0, 0, 0.7); }
    100% { box-shadow: 0 0 4px rgba(255, 0, 0, 0.3); }
}

/* Number bounce */
.countdown-animate {
    animation: numberJump 1s infinite;
}

@keyframes numberJump {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Footer */
.time-note {
    font-size: 13px;
    color: #333;
}

.footer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 2px dashed rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-text {
    font-size: 12px;
    color: #666;
}

.footer-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 2px solid #222;
    background: #e0f2ff;
    font-weight: 600;
}

/* Decorations */
.decor-star {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffcc80;
    font-size: 12px;
    font-weight: 900;
}

.decor-star.one {
    top: 14px;
    left: 18px;
}

.decor-star.two {
    bottom: 18px;
    right: 22px;
    background: #b3e5fc;
}
