:root {
    --ink: #562441;
    --pink-one: #fbd9e6;
    --pink-two: #efb6ce;
    --deep-pink: #85264f;
    --peach-metal: #f2b18e;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "DM Sans", system-ui, sans-serif;
    background-color: var(--pink-one);
    background-image: url("../images/finalbits/dottymess88.png");
    background-repeat: repeat;
    background-size: 256px 220px;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: rgba(251, 217, 230, .88);
    content: "";
}

.top-ribbon {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: 18px;
    border-top: 2px solid #ffd2b9;
    border-bottom: 2px solid #c97968;
    background: linear-gradient(#9e3666, var(--deep-pink));
    box-shadow: 0 2px 5px rgba(86, 36, 65, .2);
}

.juno-box {
    position: absolute;
    top: -2px;
    left: 7px;
    width: 54px;
    height: 54px;
    padding: 3px;
    border: 2px solid #8f4d43;
    border-radius: 7px;
    background: linear-gradient(135deg, #ffe0cb, var(--peach-metal) 52%, #bf7060);
    box-shadow: 0 4px 9px rgba(76, 31, 56, .24);
}

.juno-box img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    object-fit: cover;
}

.concept-page {
    display: flex;
    width: 100%;
    height: 100svh;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding: clamp(60px, 7svh, 90px) 1rem 0;
    overflow: hidden;
}

.concept-heading {
    position: relative;
    z-index: 8;
    margin-bottom: -1rem;
    text-align: center;
    transform: translateY(-24px);
}

.concept-heading p {
    margin: 0;
    color: #a14571;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.concept-heading h1 {
    margin: .05rem 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
}

.concept-heading span {
    display: block;
    margin-top: .42rem;
    color: rgba(91, 38, 68, .72);
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .035em;
}

.castle-stage {
    position: relative;
    top: 30px;
    width: min(86vw, 860px, calc(100svh - 100px));
    aspect-ratio: 1;
    flex: 0 0 auto;
    isolation: isolate;
    transform: scale(.9);
    transform-origin: 50% -5%;
}

.castle-layer {
    position: absolute;
    display: block;
}

.castle-layer img,
img.castle-layer {
    display: block;
    width: 100%;
    height: auto;
}

.castle-floor {
    position: fixed;
    z-index: 0;
    right: auto;
    bottom: -10svh;
    left: 50%;
    width: 140vw;
    height: 30svh;
    border-top: 2px solid rgba(229, 147, 141, .62);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 0 -10px 22px rgba(117, 50, 82, .1);
    transform: translateX(-50%);
}

.floor-pink .castle-floor {
    background:
        radial-gradient(ellipse at 50% 5%, rgba(255, 255, 255, .62), transparent 45%),
        linear-gradient(#ffe7ef, #f8cfdf);
}

.floor-grass .castle-floor {
    border-top-color: #a9df79;
    background:
        repeating-linear-gradient(108deg, transparent 0 17px, rgba(42, 119, 57, .3) 18px 21px, transparent 22px 39px),
        repeating-linear-gradient(72deg, transparent 0 21px, rgba(255, 246, 151, .24) 22px 25px, transparent 26px 43px),
        radial-gradient(ellipse at 50% 0, #c9f394 0 15%, transparent 48%),
        linear-gradient(#8fda72, #4c9f59 68%, #397e4c);
    box-shadow: 0 -8px 20px rgba(57, 126, 76, .2);
}

.neon-layer {
    z-index: 1;
    top: -3.25%;
    left: -1.1%;
    width: 32.5%;
    container-type: inline-size;
}

.door-brb-tape {
    z-index: 7;
    top: 37.4%;
    left: 44.7%;
    width: 10.6%;
    height: 8.5%;
    border: 1px solid rgba(105, 111, 120, .3);
    background:
        repeating-linear-gradient(92deg, rgba(255, 255, 255, .2) 0 3px, transparent 3px 8px),
        rgba(190, 196, 204, .52);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, .48), 0 2px 4px rgba(50, 40, 50, .18);
    clip-path: polygon(3% 5%, 96% 0, 100% 93%, 4% 100%);
    pointer-events: none;
    transform: rotate(1deg);
}

.brb-note-copy {
    color: #30262d;
    font-family: "Schoolbell", "Comic Sans MS", cursive;
    font-size: 8cqw;
    line-height: 1;
    text-align: center;
    letter-spacing: -.025em;
    transform: rotate(-1deg);
}

.brb-smile {
    position: absolute;
    right: 7%;
    bottom: 5%;
    color: #30262d;
    font-family: "Segoe UI Symbol", sans-serif;
    font-size: 5.5cqw;
    line-height: 1;
    transform: rotate(12deg);
}

.millennial-s {
    position: absolute;
    top: 8%;
    left: 4%;
    width: 10%;
    height: 30%;
    overflow: visible;
    transform: rotate(-5deg);
}

.millennial-s path {
    fill: none;
    stroke: #282124;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.door-brb-note {
    z-index: 6;
    top: 43%;
    left: 36.5%;
    display: grid;
    width: 27%;
    aspect-ratio: 1.75 / 1;
    place-content: center;
    border: 2px solid #211b1e;
    background-color: #fffef9;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(91, 72, 62, .055) 0 1px, transparent 1.5px),
        repeating-linear-gradient(7deg, transparent 0 12px, rgba(85, 64, 57, .025) 13px 14px);
    box-shadow: inset 0 0 12px rgba(80, 61, 53, .07), 0 7px 13px rgba(45, 19, 34, .3);
    clip-path: polygon(1% 1%, 99% 0, 100% 97%, 98% 100%, 1% 99%, 0 4%);
    container-type: inline-size;
    pointer-events: none;
    transform: rotate(-2deg);
}

.door-brb-note .brb-note-copy {
    font-size: 13cqw;
}

.door-brb-note .brb-smile {
    font-size: 10cqw;
}

.discord-layer {
    z-index: 1;
    top: -5%;
    right: -1.6%;
    width: 23.5%;
}

.castle-base {
    z-index: 2;
    inset: 0;
    width: 100%;
    filter: drop-shadow(0 24px 25px rgba(93, 42, 70, .2));
    pointer-events: none;
}

.portal9 {
    z-index: 1;
    top: 32.4%;
    left: 33.8%;
    width: 32.4%;
    height: calc(51.4% + 16px);
    overflow: hidden;
    background-image: url("../images/finalbits/portal-online-vortex.png");
    background-position: 50% 50%;
    background-size: cover;
    box-shadow: inset 0 0 24px rgba(255, 222, 112, .72), inset 0 0 52px rgba(112, 38, 173, .52);
    clip-path: polygon(0 24%, 4% 18%, 11% 12%, 22% 7%, 36% 3%, 50% 0, 64% 3%, 78% 7%, 89% 12%, 96% 18%, 100% 24%, 100% 100%, 0 100%);
}

.portal9::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-bottom: 3px solid rgba(61, 20, 34, .92);
    background: rgba(251, 213, 209, .18);
    box-shadow: inset 0 -1px 0 rgba(251, 213, 209, .88);
    content: "";
    pointer-events: none;
}

.portal9::after {
    position: absolute;
    inset: 0;
    background: transparent;
    box-shadow: inset 0 0 0 3px rgba(255, 242, 186, 0), inset 0 0 18px rgba(255, 255, 255, 0);
    content: "";
    opacity: 0;
    transition: opacity 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.portal9:hover::after,
.portal9:focus-visible::after {
    background: rgba(255, 181, 230, .08);
    box-shadow: inset 0 0 24px rgba(255, 102, 211, .86);
    opacity: 1;
}

.portal-highlight {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.portal-highlight path {
    fill: rgba(255, 157, 224, .06);
    filter: drop-shadow(0 0 3px #fff2ba) drop-shadow(0 0 7px #ff66d3);
    stroke: #fff2ba;
    stroke-linejoin: round;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.portal9:hover .portal-highlight,
.portal9:focus-visible .portal-highlight { opacity: 1; }

.portal9 .portal-icon {
    position: absolute;
    z-index: 2;
    top: calc(50% - 8px);
    left: calc(50% + 3px);
    display: block;
    width: 10%;
    height: auto;
    clip-path: circle(43.7% at 50% 50%);
    filter: drop-shadow(0 0 5px rgba(87, 25, 145, .72));
    transform: translate(-50%, -50%);
    transition: filter 160ms ease, transform 160ms ease;
}

.portal9:hover .portal-icon,
.portal9:focus-visible .portal-icon {
    filter: brightness(1.08) drop-shadow(0 0 7px rgba(255, 242, 186, .9));
    transform: translate(-50%, -50%) scale(1.06);
}

.banner-layer {
    z-index: 5;
    top: 56.8%;
    width: 16.65%;
}

.x-banner {
    left: 5.275%;
    transform: translate(7px, 25px);
}

.coffee-banner {
    right: 5.275%;
    transform: translate(-3px, 25px);
}

.hot-link img {
    transition: filter 160ms ease, transform 160ms ease;
}

.hot-link:hover img,
.hot-link:focus-visible img {
    filter: brightness(1.12) saturate(1.15) drop-shadow(0 0 7px rgba(255, 247, 199, .96)) drop-shadow(0 0 16px rgba(255, 104, 191, .72));
    transform: translateY(-2px) scale(1.025);
}

.state-offline .neon-layer:hover img,
.state-offline .neon-layer:focus-visible img {
    filter: brightness(1.05) drop-shadow(0 0 6px rgba(255, 210, 170, .5));
}

.castle-layer:focus-visible {
    border-radius: 14px;
    outline: 3px solid rgba(255, 255, 255, .96);
    outline-offset: 3px;
}

.creator-mark {
    position: fixed;
    z-index: 90;
    right: 9px;
    bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(73, 31, 54, .72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
}

.creator-mark img {
    display: block;
    width: auto;
    height: 62px;
    max-width: 140px;
    object-fit: contain;
}

@media (max-width: 720px) {
    body { background-size: 192px 165px; }
    .concept-page { height: 100svh; padding: 60px .25rem 0; }
    .concept-heading { margin-bottom: -1.7rem; transform: translateY(-35px); }
    .castle-stage { top: 18px; width: min(100vw, 700px, calc(100svh - 100px)); }
    .creator-mark img { height: 48px; max-width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { transition: none !important; }
}
