:root {
    --sky1: #38b6ff;
    --sky2: #9be4ff;
    --sky3: #eafaff;
    --ink: #0d3b5c;
    --dim: #4f7e9c;
    --aqua: #19b8f0;
    --aqua-d: #0a7fb8;
    --lime: #7bd62a;
    --lime-d: #3f9a0c;
    --glass: rgba(255, 255, 255, 0.62);
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    font:
        13px/1.5 "Segoe UI",
        Verdana,
        Tahoma,
        sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse 90% 28% at 50% 104%,
            #58c21a 0,
            #8fe04a 45%,
            transparent 72%
        ),
        radial-gradient(ellipse 60% 22% at 5% 100%, #3da30f 0, transparent 70%),
        radial-gradient(
            circle at 78% 8%,
            rgba(255, 255, 255, 0.95) 0,
            rgba(255, 255, 255, 0.4) 6%,
            transparent 22%
        ),
        linear-gradient(180deg, var(--sky1) 0, var(--sky2) 45%, var(--sky3) 85%);
    background-attachment: fixed;
}
.cloud {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    filter: blur(14px);
}
.c1 {
    width: 420px;
    height: 90px;
    left: -60px;
    top: 14%;
}
.c2 {
    width: 520px;
    height: 110px;
    right: -80px;
    top: 42%;
}
.bub {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 25%,
        #fff 0,
        rgba(255, 255, 255, 0.7) 10%,
        rgba(150, 230, 255, 0.25) 45%,
        rgba(255, 255, 255, 0.55) 92%
    );
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.7),
        inset 0 -8px 18px rgba(30, 170, 230, 0.25);
}
.b1 {
    width: 130px;
    height: 130px;
    left: 8%;
    top: 62%;
}
.b2 {
    width: 80px;
    height: 80px;
    right: 10%;
    top: 18%;
}
.b3 {
    width: 46px;
    height: 46px;
    left: 52%;
    top: 78%;
}
.b4 {
    width: 100px;
    height: 100px;
    right: 22%;
    top: 70%;
}
.scroll {
    position: relative;
    z-index: 1;
    overflow-x: auto;
}
.wrap {
    min-width: 760px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px;
}
a {
    color: var(--aqua-d);
}
a:hover {
    color: var(--lime-d);
}

.glass {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9) 0,
        var(--glass) 40%,
        rgba(210, 244, 255, 0.55) 100%
    );
    border: 1px solid #fff;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 0 1px rgba(25, 150, 210, 0.35),
        0 8px 24px rgba(20, 120, 180, 0.3),
        inset 0 1px 0 #fff,
        inset 0 -10px 20px rgba(120, 220, 255, 0.25);
}
.glass h2 {
    margin: 0;
    padding: 7px 14px;
    font:
        bold 14px "Segoe UI",
        Verdana,
        sans-serif;
    color: #fff;
    border-radius: 13px 13px 0 0;
    text-shadow: 0 1px 2px rgba(0, 60, 100, 0.7);
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #7fe3ff 0,
        #1fb6ee 48%,
        #0a8cc8 50%,
        #27c3f5 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #0a7fb8;
}
.glass h2.g {
    background: linear-gradient(
        180deg,
        #c4f58a 0,
        #7bd62a 48%,
        #4aa80f 50%,
        #86dc36 100%
    );
    border-color: #3f9a0c;
    text-shadow: 0 1px 2px rgba(20, 80, 0, 0.7);
}
.in {
    padding: 10px 14px;
}
.in p {
    margin: 0 0 8px;
}
.in ul {
    margin: 0;
    padding-left: 18px;
}
.in li {
    margin-bottom: 4px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 20px;
    margin-bottom: 10px;
}
.logo {
    margin: 0;
    font:
        italic 600 40px "Segoe UI",
        Verdana,
        sans-serif;
    letter-spacing: -1.5px;
    color: var(--aqua-d);
    text-shadow:
        0 2px 0 #fff,
        0 0 14px rgba(255, 255, 255, 1),
        0 4px 10px rgba(20, 150, 210, 0.5);
}
.logo i {
    color: var(--lime-d);
}
.tag {
    margin: 0;
    color: var(--dim);
    font-size: 11px;
}
.search {
    display: flex;
    gap: 6px;
}
.search input {
    width: 160px;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid #6bbfe6;
    background: linear-gradient(#e8f8ff, #fff);
    color: var(--ink);
    box-shadow: inset 0 2px 4px rgba(20, 120, 180, 0.3);
    font:
        12px "Segoe UI",
        sans-serif;
}
.btn {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 16px;
    color: #fff;
    font:
        bold 12px "Segoe UI",
        sans-serif;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 60, 100, 0.6);
    border: 1px solid #0a7fb8;
    background: linear-gradient(
        180deg,
        #9aeaff 0,
        #25bbf0 48%,
        #0b8ac6 50%,
        #33c8f5 100%
    );
    box-shadow:
        inset 0 1px 0 #fff,
        0 0 10px rgba(80, 210, 255, 0.7),
        0 2px 4px rgba(0, 80, 120, 0.4);
}
.btn:hover {
    filter: brightness(1.1);
    color: #fff;
}
.btn.g {
    border-color: #3f9a0c;
    background: linear-gradient(
        180deg,
        #d2fa9c 0,
        #82dc2e 48%,
        #4aa80f 50%,
        #8fe03c 100%
    );
    box-shadow:
        inset 0 1px 0 #fff,
        0 0 12px rgba(140, 230, 60, 0.8),
        0 2px 4px rgba(20, 80, 0, 0.4);
    text-shadow: 0 1px 2px rgba(20, 80, 0, 0.7);
}

nav {
    display: flex;
    gap: 6px;
    padding: 7px;
    margin-bottom: 10px;
}
nav a {
    flex: 1;
    text-align: center;
    padding: 6px 6px;
    color: var(--aqua-d);
    text-decoration: none;
    font-weight: bold;
    border-radius: 18px;
    border: 1px solid rgba(25, 150, 210, 0.4);
    background: linear-gradient(
        180deg,
        #fff,
        #d8f4ff 50%,
        #b6e8fb 52%,
        #e3f8ff
    );
    box-shadow: inset 0 1px 0 #fff;
}
nav a:hover,
nav a.on {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 60, 100, 0.6);
    background: linear-gradient(
        180deg,
        #9aeaff,
        #25bbf0 48%,
        #0b8ac6 50%,
        #33c8f5
    );
    box-shadow: 0 0 12px rgba(80, 210, 255, 0.9);
}

.ticker {
    margin-bottom: 10px;
    padding: 4px 12px;
    color: var(--lime-d);
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}
.ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: tk 30s linear infinite;
}
@keyframes tk {
    to {
        transform: translateX(-100%);
    }
}

/* vertical layout: tall ad | content | tall middle ad | content | tall ad */
.grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 190px minmax(0, 1fr) 150px;
    gap: 10px;
    align-items: stretch;
}
.col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
}
.ad {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px dashed #fff;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.85),
        rgba(160, 230, 255, 0.6) 60%,
        rgba(140, 225, 90, 0.55)
    );
    box-shadow:
        0 0 0 1px rgba(25, 150, 210, 0.4),
        0 8px 24px rgba(20, 120, 180, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.9);
}
.ad .sticky {
    position: sticky;
    top: 12px;
    height: min(640px, 92vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 10px;
}
.ad small {
    color: var(--dim);
    font-size: 10px;
}
.ad b {
    font:
        bold 19px "Segoe UI",
        sans-serif;
    color: var(--aqua-d);
    text-shadow: 0 1px 0 #fff;
}
.ad .v {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--lime-d);
    text-shadow: 0 1px 0 #fff;
}
.ad.m {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.9),
        rgba(190, 240, 255, 0.7) 50%,
        rgba(60, 190, 245, 0.55)
    );
}
.ad .arrow {
    font-size: 34px;
    color: var(--lime-d);
    text-shadow:
        0 2px 0 #fff,
        0 0 12px rgba(140, 230, 60, 0.9);
    animation: up 2.2s ease-in-out infinite;
}
@keyframes up {
    50% {
        transform: translateY(-10px);
    }
}

.post {
    border-bottom: 1px dotted #8fcbe6;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.post:last-child {
    border: 0;
    margin: 0;
    padding: 0;
}
.post h3 {
    margin: 0 0 2px;
    font:
        bold 13px "Segoe UI",
        sans-serif;
    color: var(--aqua-d);
}
.meta {
    color: var(--dim);
    font-size: 11px;
}
.bar {
    height: 16px;
    border-radius: 8px;
    background: #e1f5ff;
    border: 1px solid #6bbfe6;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(20, 120, 180, 0.3);
}
.bar i {
    display: block;
    height: 100%;
    background: linear-gradient(
        180deg,
        #d2fa9c,
        #82dc2e 50%,
        #4aa80f 52%,
        #8fe03c
    );
    box-shadow: 0 0 8px rgba(140, 230, 60, 0.9);
}
.shout {
    height: 140px;
    overflow: auto;
    background: linear-gradient(#fff, #eefaff);
    border: 1px solid #6bbfe6;
    border-radius: 8px;
    padding: 6px;
    box-shadow: inset 0 2px 5px rgba(20, 120, 180, 0.25);
    font-size: 11px;
}
.shout b {
    color: var(--lime-d);
}
.counter {
    font:
        bold 16px "Courier New",
        monospace;
    letter-spacing: 3px;
    background: linear-gradient(#0a5d8a, #0d7fb8);
    color: #b6ff7a;
    padding: 3px 10px;
    border: 1px solid #fff;
    border-radius: 6px;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(80, 210, 255, 0.6);
    display: inline-block;
}
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.badge {
    font:
        bold 10px "Segoe UI",
        sans-serif;
    padding: 2px 9px;
    border-radius: 10px;
    color: #fff;
    border: 1px solid #0a7fb8;
    background: linear-gradient(#9aeaff, #25bbf0 50%, #0b8ac6 52%, #33c8f5);
    text-shadow: 0 1px 1px rgba(0, 60, 100, 0.6);
}
footer {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    color: var(--dim);
    font-size: 11px;
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 90px minmax(0, 1fr) 110px minmax(0, 1fr) 90px;
    }
    .ad .sticky {
        padding: 6px;
    }
    .ad b {
        font-size: 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ticker span {
        animation: none;
        padding-left: 0;
    }
    .ad .arrow {
        animation: none;
    }
}
