/**
 * Surreal landing page (clansurreal.com): its scenes. The palette, base,
 * nav, buttons and motion rules are shared with the login pages in
 * surreal-public.css, loaded first.
 * Scenes animate once as they come into view; prefers-reduced-motion
 * shows each one finished.
 */

/* ===== Hero ===== */
.hero {
    display: grid;
    align-items: center;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 100vh;
    padding-top: 108px;
    padding-bottom: 72px;
}

.hero__copy > * {
    animation: rise-in 0.7s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.hero__copy > :nth-child(5) { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .hero__copy > * {
        animation: none;
    }
}

/* Lines behind the hero that bend toward the cursor (drawn by the page's
   script); the hero's content sits above them */
main {
    position: relative;
}

.hero-ripples {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.hero {
    position: relative;
    z-index: 1;
}

.lp-liquid {
    position: absolute;
    overflow: hidden;
}

.hero__title {
    margin-bottom: 20px;
    font-size: clamp(40px, 6vw, 66px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.01em;
}

/* "One Surreal. / Every RuneScape." is two beats: the second stays on one
   line, the headline sized to the column so it fits (it's about 9 ems
   wide), never wrapping "Every" off on its own */
.hero__copy {
    container-type: inline-size;
}

.hero__title:not(.hero__title--you) {
    font-size: clamp(30px, 10.8cqi, 66px);
}

.hero__title:not(.hero__title--you) span {
    white-space: nowrap;
}

.hero__title--you {
    overflow-wrap: anywhere;
}

.hero__title span {
    color: var(--primary);
}

.hero__lead {
    max-width: 500px;
    margin-bottom: 32px;
    font-size: 19px;
    color: var(--text-2);
    text-wrap: balance;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Surreal, right now: the clan as it is today */
.now {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.now__games {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.now__game {
    display: grid;
    justify-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.now__game img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    background: #17130f;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.now__under {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--text-3);
}

.now__label {
    margin: 20px 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.now__label--first {
    margin-top: 0;
}

.now__icon--rank {
    padding: 4px;
    image-rendering: pixelated;
}

.now__list + .now__label {
    margin-top: 22px;
}

.now__list {
    display: grid;
    gap: 12px;
    list-style: none;
}

.now__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.35;
}

.now__item b {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.now__item small {
    display: block;
    font-size: 13px;
    color: var(--text-3);
}

.now__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.now__icon--line {
    padding: 3px;
    color: var(--text-2);
}

.now__foot {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 14px;
    color: var(--text-2);
    border-top: 1px solid var(--border);
}

.now__foot b {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.now__foot a {
    color: var(--text);
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
}

/* Playing: hidden until the card is in view, then each line rises in turn */
.now--play .now__games,
.now--play .now__under,
.now--play .now__label,
.now--play .now__item,
.now--play .now__foot {
    opacity: 0;
}

.now--in .now__games,
.now--in .now__under,
.now--in .now__label,
.now--in .now__item,
.now--in .now__foot {
    animation: now-line 0.6s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes now-line {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Small on purpose ===== */
.small {
    display: grid;
    align-items: center;
    gap: 64px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.small__points {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

.small__point h3 {
    font-size: 17px;
    font-weight: 600;
}

.small__point p {
    color: var(--text-2);
}

.seats {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(10, 1fr);
    max-width: 340px;
    margin: 0 auto;
}

.seat {
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: 4px;
    transition: background 0.25s ease;
}

.seat--taken {
    background: var(--primary);
}

.seat--yours {
    background: transparent;
    outline: 2px dashed var(--text-2);
    outline-offset: -2px;
}

.seats__caption {
    display: flex;
    justify-content: space-between;
    max-width: 340px;
    margin: 14px auto 0;
    font-size: 14px;
    color: var(--text-2);
}

.seats__caption b {
    font-weight: 600;
    color: var(--text);
}

/* ===== Since 2010 ===== */
.history__top {
    display: grid;
    align-items: start;
    gap: 48px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    margin-top: 48px;
}

/* A small browser, redrawing the site as it looked that year */
.browser {
    overflow: hidden;
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.browser__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: var(--bg-tertiary);
}

.browser__dot {
    width: 9px;
    height: 9px;
    background: rgb(255 255 255 / 18%);
    border-radius: 50%;
}

.browser__url {
    flex: 1;
    margin-left: 10px;
    font-size: 12px;
    text-align: center;
    color: var(--text-2);
}

.browser__screen {
    position: relative;
    aspect-ratio: 640 / 400;
    overflow: hidden;
}

.era {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 400px;
    overflow: hidden;
    opacity: 0;
    transform: scale(var(--era-scale, 1));
    transform-origin: top left;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.era--on {
    opacity: 1;
}

/* Every stop shares one grid cell, so the column is always as tall as
   the tallest stop and nothing below moves when the year changes */
.history__copy {
    display: grid;
}

.stop {
    grid-area: 1 / 1;
    visibility: hidden;
}

.stop--on {
    visibility: visible;
    animation: stop-in 0.3s ease;
}

.stop__year {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary);
}

.stop__title {
    margin: 6px 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stop__text {
    font-size: 17px;
    color: var(--text-2);
}

@keyframes stop-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* The scrubber: a track you drag, years you can click */
.scrub {
    position: relative;
    margin-top: 18px;
}

.scrub__range {
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    cursor: grab;
    appearance: none;
}

.scrub__range:active {
    cursor: grabbing;
}

.scrub__range::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--bg-tertiary);
    border-radius: 2px;
}

.scrub__range::-moz-range-track {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.scrub__range::-moz-range-progress {
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.scrub__range::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -9px;
    background: var(--text);
    border: 4px solid var(--primary);
    border-radius: 50%;
    appearance: none;
}

.scrub__range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--text);
    border: 4px solid var(--primary);
    border-radius: 50%;
}

.scrub__range:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.scrub__years {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.scrub__year {
    padding: 4px 2px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    background: none;
    border: 0;
    transition: color 0.15s ease;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.scrub__year:hover,
.scrub__year--on {
    color: var(--text);
}

/* ===== Join ===== */
.join {
    text-align: center;
}

.join .lp-lead {
    margin: 0 auto 36px;
}

/* The sign-off scene, centred over the heading: the S floats above a still
   pool, its reflection under the waterline. The S's depth follows the
   cursor (--s-dx/--s-dy, from the page's script). Both wait for the section
   to be seen */
.join__scene {
    --join-s-w: 120px;
    --join-s-h: 138px;
    --join-floor: 150px;
    position: relative;
    width: 360px;
    max-width: 100%;
    height: 262px;
    margin: 0 auto 8px;
}

.join__float,
.join__reflection {
    position: absolute;
    left: 50%;
    width: var(--join-s-w);
    height: var(--join-s-h);
    margin-left: calc(var(--join-s-w) / -2);
}

.join__float {
    top: 0;
    animation: join-float 5.5s ease-in-out infinite;
}

.join__float .surreal-mark,
.join__reflection .surreal-mark {
    width: 100%;
    height: 100%;
}

.join__float .surreal-mark {
    --s-shadow: drop-shadow(0 0 0 transparent);
}

/* The reflection: the S upside down under the waterline, fading with depth,
   rippling, and moving the other way as the S bobs */
.join__reflection {
    top: var(--join-floor);
    opacity: 0;
    transition: opacity 1.2s ease 0.4s;
    animation: join-sink 5.5s ease-in-out infinite;
    filter: url("#lp-pool");
    mask-image: linear-gradient(to top, rgb(0 0 0 / 55%), transparent 75%);
}

.join__reflection .surreal-mark {
    --s-shadow: drop-shadow(0 0 0 transparent);
}

.join__scene--seen .join__reflection {
    opacity: 0.4;
}

@keyframes join-float {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes join-sink {
    0%,
    100% { transform: scaleY(-1) translateY(0); }
    50% { transform: scaleY(-1) translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
    .join__float,
    .join__reflection {
        animation: none;
    }

    .join__reflection {
        transform: scaleY(-1);
    }
}

.join__steps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: left;
}

.join__step {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.join__step {
    display: grid;
    align-items: baseline;
    gap: 6px;
    grid-template-columns: 22px minmax(0, 1fr);
}

.join__step b {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.join__step p {
    font-size: 15px;
    color: var(--text-2);
}

.join__step strong {
    color: var(--text);
}

.join__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ===== Phone ===== */
@media (width <= 900px) {
    .hero,
    .small,
    .history__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        gap: 40px;
        min-height: 0;
        padding-top: 100px;
    }



    .join__steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .join__scene {
        --join-s-w: 92px;
        --join-s-h: 106px;
        --join-floor: 116px;
        width: 290px;
        height: 205px;
    }

}

/* ===== The eras (640 x 400, scaled to fit; decorative) ===== */
.era * {
    line-height: 1.35;
}

.e-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.e-lines i {
    display: block;
    height: 5px;
    margin-top: 6px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.25;
}

/* 2010: dark blue, IRC, requirements in the sidebar */
.era--2010 {
    font-family: Verdana, sans-serif;
    color: #c6cddb;
    background: #0a0d14;
}

.era--2010 .e-head {
    display: flex;
    justify-content: space-between;
    padding: 16px 22px 10px;
    background: #10151f;
}

.era--2010 .e-logo {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: #7f9ae6;
}

.era--2010 .e-logo small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 3px;
    color: #9fb2e8;
}

.era--2010 .e-social {
    display: flex;
    gap: 5px;
}

.era--2010 .e-social i {
    width: 20px;
    height: 20px;
    background: #2b3a5c;
    border-radius: 3px;
}

.era--2010 .e-social i:nth-child(1) { background: #c0392b; }
.era--2010 .e-social i:nth-child(3) { background: #e67e22; }

.era--2010 .e-nav {
    display: flex;
    gap: 16px;
    padding: 7px 22px;
    font-size: 10px;
    background: #1b212d;
    border-top: 1px solid #2a3344;
}

.era--2010 .e-main {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 170px;
    padding: 14px 22px;
}

.era--2010 .e-slide {
    height: 118px;
    padding: 18px;
    background: #1f2c43;
    border: 1px solid #33456a;
}

.era--2010 .e-slide b {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #e3ebff;
}

.era--2010 .e-post {
    margin-top: 12px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #e5c26b;
    background: #1b2230;
}

.era--2010 .e-side h5 {
    padding: 5px 8px;
    font-size: 10px;
    color: #dbe4ff;
    background: #24314b;
}

.era--2010 .e-side p {
    padding: 4px 8px;
    font-size: 10px;
    border-bottom: 1px solid #1d2433;
}

/* 2012: "A skilling experience like no other", tracking in the menu */
.era--2012 {
    font-family: "Trebuchet MS", sans-serif;
    color: #cfcfd4;
    background: #19191b;
}

.era--2012 .e-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 14px 24px 10px;
}

.era--2012 .e-logo {
    font-family: Georgia, serif;
    font-size: 34px;
    font-style: italic;
    line-height: 1;
    color: #e6e6ea;
}

.era--2012 .e-nav {
    display: flex;
    gap: 14px;
    font-size: 10px;
    letter-spacing: 1px;
}

.era--2012 .e-nav .e-hot {
    color: #ffffff;
    border-bottom: 2px solid #8b6fd6;
}

.era--2012 .e-banner {
    position: relative;
    height: 150px;
    margin: 0 24px;
    background: #24323a;
    border: 3px solid #2c2c30;
}

.era--2012 .e-banner::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46px;
    background: #31444a;
    content: "";
}

.era--2012 .e-banner b {
    position: absolute;
    top: 26px;
    left: 18px;
    z-index: 1;
    padding: 8px 14px;
    font-size: 18px;
    color: #ffffff;
    background: #4b3a7a;
}

.era--2012 .e-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 24px 0;
    padding: 12px 14px;
    background: #222226;
    border-top: 2px solid #4b3a7a;
}

.era--2012 .e-strip b {
    font-size: 15px;
    color: #ffffff;
}

.era--2012 .e-strip b span {
    color: #9b80e6;
}

.era--2012 .e-btn {
    padding: 6px 12px;
    font-size: 10px;
    color: #ffffff;
    background: #5b4596;
    border-radius: 12px;
}

.era--2012 .e-know {
    margin: 10px 24px 0;
    font-size: 11px;
}

/* 2015: script logo, purple, "a little different" */
.era--2015 {
    font-family: "Open Sans", Arial, sans-serif;
    color: #d0d0d4;
    background: #262628;
}

.era--2015 .e-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    background: #2f2f32;
}

.era--2015 .e-logo {
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 30px;
    color: #ffffff;
}

.era--2015 .e-nav {
    display: flex;
    gap: 0;
    height: 100%;
    font-size: 11px;
}

.era--2015 .e-nav span {
    display: grid;
    place-items: center;
    padding: 0 12px;
}

.era--2015 .e-nav .e-hot {
    color: #ffffff;
    background: #3a3a3e;
    border-bottom: 3px solid #6d4aa8;
}

.era--2015 .e-slide {
    position: relative;
    height: 150px;
    margin: 14px 24px 0;
    background: #3d4a35;
}

.era--2015 .e-slide b {
    position: absolute;
    bottom: 18px;
    left: 18px;
    padding: 8px 12px;
    font-size: 13px;
    color: #ffffff;
    background: rgb(20 20 22 / 85%);
}

.era--2015 .e-diff {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 24px 0;
    padding: 14px;
    background: #323235;
}

.era--2015 .e-diff div {
    flex: 1;
}

.era--2015 .e-diff b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.era--2015 .e-diff p {
    font-size: 10px;
}

.era--2015 .e-btn {
    padding: 9px 22px;
    font-size: 11px;
    color: #ffffff;
    background: #6d4aa8;
}

.era--2015 .e-cols {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin: 14px 24px 0;
    font-size: 12px;
    font-weight: 600;
}

/* 2019: "The most advanced RuneScape clan", cookies */
.era--2019 {
    font-family: Helvetica, Arial, sans-serif;
    color: #e6e6e6;
    background: #2b2b2d;
}

.era--2019 .e-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    font-size: 9px;
    letter-spacing: 1px;
}

.era--2019 .e-logo {
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 16px;
    letter-spacing: 0;
}

.era--2019 .e-out {
    padding: 4px 8px;
    border: 1px solid #aaaaaa;
}

.era--2019 .e-hero {
    display: grid;
    align-items: center;
    gap: 20px;
    grid-template-columns: 200px 1fr;
    height: 210px;
    padding: 0 40px;
}

.era--2019 .e-fig {
    position: relative;
    width: 80px;
    height: 170px;
    margin: 0 auto;
}

.era--2019 .e-fig i {
    position: absolute;
    display: block;
}

.era--2019 .e-fig i:nth-child(1) { top: 18px; left: 28px; width: 24px; height: 26px; background: #b07b55; border-radius: 40%; }
.era--2019 .e-fig i:nth-child(2) { top: 44px; left: 18px; width: 44px; height: 70px; background: #23252b; border-radius: 6px; }
.era--2019 .e-fig i:nth-child(3) { top: 112px; left: 20px; width: 40px; height: 56px; background: #2f4f86; border-radius: 4px; }
.era--2019 .e-fig i:nth-child(4) { top: 0; left: 6px; width: 10px; height: 56px; background: #b07b55; border-radius: 5px; transform: rotate(-12deg); }

.era--2019 .e-hero h4 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 400;
}

.era--2019 .e-hero p {
    margin-bottom: 8px;
    font-size: 10px;
}

.era--2019 .e-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    background: #5b8be0;
}

.era--2019 .e-band {
    display: grid;
    gap: 30px;
    grid-template-columns: 200px 1fr;
    height: 160px;
    padding: 24px 40px;
    background: #3d7fdf;
}

.era--2019 .e-card {
    padding: 14px;
    font-size: 10px;
    color: #333333;
    background: #ffffff;
}

.era--2019 .e-band h4 {
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
}

/* 2026: the portal */
.era--2026,
.era--today {
    font-family: Rubik, sans-serif;
    color: #e8edf4;
    background: rgb(8 18 42);
}

.era--2026 .e-top,
.era--today .e-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 14px 20px 0;
    padding: 10px 14px;
    font-size: 11px;
    background: rgb(13 25 54);
    border: 1px solid rgb(122 143 184 / 22%);
    border-radius: 10px;
}

.era .e-s {
    font-size: 20px;
    font-weight: 800;
    color: #3d8ef8;
}

.era .e-dim {
    color: #8b99b0;
}

.era--2026 .e-greet {
    margin: 22px 24px 14px;
}

.era--2026 .e-greet small {
    font-size: 10px;
    color: #8b99b0;
}

.era--2026 .e-greet b {
    display: block;
    font-size: 22px;
}

.era--2026 .e-greet b span {
    color: #3d8ef8;
}

.era--2026 .e-grid,
.era--today .e-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1.3fr 1fr;
    margin: 0 24px;
}

.era .e-panel {
    padding: 14px;
    font-size: 11px;
    background: rgb(13 25 54);
    border: 1px solid rgb(122 143 184 / 22%);
    border-radius: 10px;
}

.era .e-panel h6 {
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b99b0;
}

.era .e-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 70px;
}

.era .e-bars i {
    flex: 1;
    background: #3d8ef8;
    border-radius: 3px 3px 0 0;
    opacity: 0.85;
}

.era .e-ringmini {
    width: 58px;
    height: 58px;
    border: 6px solid #f472b6;
    border-right-color: rgb(244 114 182 / 18%);
    border-radius: 50%;
}

/* Today: the game switcher open on three games */
.era--today .e-switch {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin: 22px 24px 14px;
}

.era--today .e-game {
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background: rgb(13 25 54);
    border: 1px solid rgb(122 143 184 / 22%);
    border-radius: 10px;
}

.era--today .e-game img {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    background: #17130f;
    border-radius: 12px;
    object-fit: cover;
}

.era--today .e-game--osrs {
    background: #2a241b;
    border-color: rgb(176 138 74 / 55%);
}

.era--today .e-game--dw {
    background: #2a1a14;
    border-color: rgb(240 122 44 / 45%);
}

/* Forums, January 2013: purple category bars, the board index */
.era--forum {
    font-family: Verdana, sans-serif;
    color: #cfcfd6;
    background: #1a1a1c;
}

.era--forum .e-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 56px;
    padding: 0 20px 10px;
    background: #2a3a44;
    border-bottom: 3px solid #23232a;
}

.era--forum .e-logo {
    font-family: Georgia, serif;
    font-size: 22px;
    font-style: italic;
    color: #eeeeff;
}

.era--forum .e-auth {
    font-size: 8px;
    letter-spacing: 1px;
}

.era--forum .e-crumb {
    padding: 8px 20px 4px;
    font-size: 10px;
    font-weight: 700;
}

.era--forum .e-cat {
    margin: 6px 20px 0;
    padding: 5px 10px;
    color: #ffffff;
    background: #4a3a86;
}

.era--forum .e-cat b {
    display: block;
    font-size: 11px;
}

.era--forum .e-cat small {
    font-size: 8px;
    opacity: 0.8;
}

.era--forum .e-board {
    display: grid;
    align-items: center;
    gap: 8px;
    grid-template-columns: 18px 1fr 54px 54px;
    margin: 0 20px;
    padding: 5px 10px;
    background: #222226;
    border-bottom: 1px solid #2d2d33;
}

.era--forum .e-board i {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    color: #aaaabb;
    background: #3a3a44;
    border-radius: 3px;
}

.era--forum .e-board b {
    display: block;
    font-size: 10px;
    color: #e8e8ff;
}

.era--forum .e-board small {
    display: block;
    font-size: 8px;
    opacity: 0.7;
}

.era--forum .e-board > span {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.era--forum .e-board > span small {
    font-size: 6px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.era--forum .e-stats {
    margin: 10px 20px 0;
    padding: 8px 10px;
    font-size: 10px;
    background: #222226;
}

.era--forum .e-stats b {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.era--forum.era--play .e-board {
    animation: forum-row-in 0.35s ease both;
}

.era--forum.era--play .e-board:nth-of-type(2) { animation-delay: 0.1s; }
.era--forum.era--play .e-board:nth-of-type(3) { animation-delay: 0.2s; }
.era--forum.era--play .e-board:nth-of-type(4) { animation-delay: 0.3s; }
.era--forum.era--play .e-board:nth-of-type(5) { animation-delay: 0.4s; }

@keyframes forum-row-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* 2026: the late forum lifts away, board by board, and the portal builds */
.era--2026 .e-oldforum {
    position: absolute;
    z-index: 2;
    display: none;
    font-family: Rubik, sans-serif;
    background: #142a52;
    inset: 0;
}

.era--2026 .e-fhead {
    display: grid;
    place-items: center;
    height: 90px;
    background: #1f4fa8;
}

.era--2026 .e-fs {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    font-size: 30px;
    font-weight: 800;
    color: #1f4fa8;
    background: #ffffff;
    border-radius: 50%;
}

.era--2026 .e-fcat {
    margin: 12px 24px 0;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: #2b62c9;
    border-radius: 8px 8px 0 0;
}

.era--2026 .e-frow {
    display: flex;
    justify-content: space-between;
    margin: 0 24px;
    padding: 9px 12px;
    font-size: 12px;
    color: #e6eeff;
    background: #1a3566;
    border-bottom: 1px solid #244581;
}

.era--2026 .e-frow span {
    font-size: 11px;
    color: #9fb4dc;
}

.era--2026.era--play .e-oldforum {
    display: block;
    animation: forum-away 2.6s ease forwards;
}

.era--2026.era--play .e-oldforum > * {
    animation: board-lift 0.45s ease forwards;
}

.era--2026.era--play .e-oldforum > :nth-child(1) { animation-delay: 1.3s; }
.era--2026.era--play .e-oldforum > :nth-child(2) { animation-delay: 1.15s; }
.era--2026.era--play .e-oldforum > :nth-child(3) { animation-delay: 1s; }
.era--2026.era--play .e-oldforum > :nth-child(4) { animation-delay: 0.85s; }
.era--2026.era--play .e-oldforum > :nth-child(5) { animation-delay: 0.7s; }
.era--2026.era--play .e-oldforum > :nth-child(6) { animation-delay: 0.55s; }
.era--2026.era--play .e-oldforum > :nth-child(7) { animation-delay: 0.4s; }

.era--2026.era--play .e-top,
.era--2026.era--play .e-greet,
.era--2026.era--play .e-panel {
    animation: portal-in 0.45s ease both;
}

.era--2026.era--play .e-top { animation-delay: 1.8s; }
.era--2026.era--play .e-greet { animation-delay: 1.95s; }
.era--2026.era--play .e-panel { animation-delay: 2.1s; }
.era--2026.era--play .e-panel + .e-panel { animation-delay: 2.2s; }

@keyframes board-lift {
    to {
        opacity: 0;
        transform: translateY(-18px);
    }
}

@keyframes forum-away {
    0%,
    62% {
        background-color: #142a52;
        opacity: 1;
    }

    100% {
        background-color: rgb(8 18 42);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes portal-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* The era's real logo (images/history) */
.era .e-logoimg {
    display: block;
    width: auto;
}

.era--2010 .e-logoimg { height: 62px; }
.era--2015 .e-logoimg { height: 40px; }
.era--2019 .e-logoimg { height: 22px; }

/* ===== Keepsakes: one small thing from each era, under its stop ===== */
.keep {
    margin-top: 20px;
}

.keep__art {
    position: relative;
    display: grid;
    place-items: center;
    height: 132px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.keep__text {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-3);
}

.keep__more {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: 0;
    cursor: pointer;
}

.keep__more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.keep--in .keep__art > * {
    animation: rise-in 0.5s cubic-bezier(.2, .7, .2, 1) both;
}

/* Skill Week #1: an old forum thread row */
.thread {
    display: grid;
    gap: 2px;
    width: 86%;
    padding: 12px 14px;
    font-family: Verdana, sans-serif;
    color: #cfcfd6;
    background: #222226;
    border-radius: 4px;
}

.thread__tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9b80e6;
}

.thread b {
    font-size: 15px;
    color: #e8e8ff;
}

.thread__meta {
    font-size: 11px;
    opacity: 0.7;
}

/* The newsletter */
.paper {
    width: 170px;
    padding: 12px 14px;
    color: #2a2620;
    background: #ece6d6;
    border-radius: 3px;
    transform: rotate(-2deg);
}

.paper__mast {
    padding-bottom: 4px;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border-bottom: 2px solid #2a2620;
    transition: opacity 0.25s ease;
}

.paper__mast--swap {
    opacity: 0;
}

.paper__issue {
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 10px;
    font-style: italic;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.paper__cols {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 8px;
}

.paper__cols i {
    height: 34px;
    background: repeating-linear-gradient(#2a262033 0 2px, transparent 2px 6px);
}

/* The awards */
.keep__art--award {
    align-content: center;
    gap: 4px;
    padding: 0 16px;
    text-align: center;
}

.award__for {
    display: block;
    font-size: 12px;
    color: var(--text-2);
}

.award__name {
    display: block;
    font-family: Georgia, serif;
    font-size: 19px;
    font-style: italic;
    line-height: 1.25;
}

.award__name--in {
    animation: rise-in 0.35s ease both;
}

/* Goal logs */
.goals {
    display: grid;
    gap: 10px;
    list-style: none;
}

.goal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.goal__box {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.goal__box::after {
    position: absolute;
    top: 1px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    content: "";
}

.keep--in .goal__box {
    background: var(--primary);
    border-color: var(--primary);
}

.keep--in .goal__box::after {
    opacity: 1;
    transform: rotate(45deg);
}

.keep--in .goal:nth-child(1) .goal__box,
.keep--in .goal:nth-child(1) .goal__box::after { transition-delay: 0.5s; }

.keep--in .goal:nth-child(2) .goal__box,
.keep--in .goal:nth-child(2) .goal__box::after { transition-delay: 1.1s; }

.keep--in .goal:nth-child(3) .goal__box,
.keep--in .goal:nth-child(3) .goal__box::after { transition-delay: 1.8s; }

/* Secret Santa: a gift tag that turns over */
.keep__art--santa {
    perspective: 600px;
}

.tag {
    position: relative;
    width: 218px;
    height: 84px;
    padding: 0;
    font: inherit;
    color: #3a2a1a;
    background: none;
    border: 0;
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.tag[aria-pressed="true"] {
    transform: rotateY(180deg);
}

.tag:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.tag__face {
    position: absolute;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 0 16px 0 34px;
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    background: #efe2c8;
    border-radius: 6px 22px 22px 6px;
    inset: 0;
    backface-visibility: hidden;
}

.tag__face::before {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 10px;
    height: 10px;
    background: var(--bg-deep);
    border-radius: 50%;
    transform: translateY(-50%);
    content: "";
}

.tag__face--back {
    color: #ffffff;
    background: #c94b4b;
    transform: rotateY(180deg);
}

/* Forum games: counting to 20 */
.count {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 0 16px;
    text-align: center;
}

.count__label {
    font-size: 12px;
    color: var(--text-2);
}

.count__num {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.count__num--reset {
    color: #e2686f;
    animation: shake 0.4s ease;
}

.count__note {
    font-size: 13px;
    color: var(--text-2);
}

@keyframes shake {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}


/* The 2012 HUB activity tracker, redrawn in its own Bootstrap 2 look */
.keep__art--bs2 {
    height: auto;
    padding: 12px;
}

.bs2 {
    width: 100%;
    min-height: 136px;
    padding: 10px 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    color: #333333;
    background: #ffffff;
    border-radius: 4px;
}

.bs2__week {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.bs2__head {
    margin: 4px 0 6px;
    font-size: 13px;
    font-weight: 700;
}

.bs2__head small {
    font-size: 11px;
    font-weight: 400;
    color: #999999;
}

.bs2__progress {
    display: flex;
    height: 14px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
}

.bs2__bar {
    height: 100%;
    background: #149bdf;
    transition: width 0.6s ease;
}

.bs2__bar--success { background: #5eb95e; }
.bs2__bar--info { background: #4bb1cf; }
.bs2__bar--warning { background: #faa732; }
.bs2__bar--danger { background: #dd514c; }

.bs2__bar--striped {
    background-image: linear-gradient(45deg, rgb(255 255 255 / 15%) 25%, transparent 25%, transparent 50%, rgb(255 255 255 / 15%) 50%, rgb(255 255 255 / 15%) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.bs2__msg {
    color: #555555;
}

/* 2026: the HUB then, and what it grew into */
.keep__art--then {
    height: auto;
    padding: 12px 14px;
}

.then {
    display: grid;
    gap: 8px;
    width: 100%;
    list-style: none;
}

.then li {
    display: grid;
    align-items: center;
    gap: 8px;
    grid-template-columns: minmax(0, 0.9fr) 16px minmax(0, 1.1fr);
    font-size: 13px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.then li::before {
    grid-column: 2;
    grid-row: 1;
    color: var(--text-3);
    content: "→";
}

.then__old {
    grid-column: 1;
    grid-row: 1;
    color: var(--text-3);
}

.then__new {
    grid-column: 3;
    grid-row: 1;
    font-weight: 500;
    color: var(--text);
}

.keep--in .then li {
    opacity: 1;
    transform: none;
}

.keep--in .then li:nth-child(2) { transition-delay: 0.35s; }
.keep--in .then li:nth-child(3) { transition-delay: 0.7s; }
.keep--in .then li:nth-child(4) { transition-delay: 1.05s; }

.keep--in .keep__art--then > * {
    animation: none;
}

/* ===== Features: each shown rather than told ===== */
.feat {
    display: grid;
    align-items: center;
    gap: 56px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin-top: 88px;
}

.feat--flip .feat__copy {
    order: 2;
}

.feat__then {
    margin-bottom: 10px;
    font-size: 14px;
    font-style: italic;
    color: var(--text-3);
}

.feat__title {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}

.feat__text {
    font-size: 17px;
    color: var(--text-2);
}

/* Signed-in members: "anyone can host one" goes to Hosting */
.feat__link {
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
    color: var(--text);
}

.feat__link:hover {
    text-decoration-color: currentColor;
}

.feat__scene {
    display: grid;
    place-items: center;
    min-height: 340px;
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Competitions: a live race, four kinds */
.race {
    width: 100%;
    max-width: 460px;
}

.race__tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.race__tab {
    margin-bottom: -1px;
    padding: 0 0 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.race__tab:hover {
    color: var(--text);
}

.race__tab--on {
    border-bottom-color: var(--primary);
    color: var(--text);
}

.race__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.race__icons {
    display: inline-flex;
    gap: 4px;
}

.race__icons img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.race__title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
}

.race__hour {
    font-size: 13px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.race__rows {
    position: relative;
    height: 216px;
    list-style: none;
}

.race__row {
    position: absolute;
    right: 0;
    left: 0;
    display: grid;
    align-items: center;
    gap: 10px;
    grid-template-columns: 22px minmax(0, 9.5em) minmax(0, 1fr) 4.2em;
    height: 36px;
    transition: top 0.6s cubic-bezier(.65, 0, .35, 1);
}

.race__pos {
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.race__name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

.race__who {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.race__name i {
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: var(--team, var(--primary));
    border-radius: 2px;
}

.race__track {
    display: block;
    height: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.race__fill {
    display: block;
    height: 100%;
    background: var(--team, var(--primary));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(.65, 0, .35, 1);
}

.race__val {
    font-size: 13px;
    text-align: right;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
}

.race__row--1 .race__pos {
    color: #e5c26b;
}

.race__note {
    min-height: 1.6em;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-2);
}

.race__note--in {
    animation: rise-in 0.4s ease both;
}

/* Your class: pick, and the card answers in that class's typeface */

/* The question and its options on top, the class card full width below */
.klass {
    display: grid;
    gap: 18px;
    width: 100%;
}

.klass__ask {
    display: grid;
    gap: 4px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding: 0;
    border: 0;
}

.klass__q {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.klass__opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    font-size: 14px;
    color: var(--text-2);
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.klass__opt:hover {
    color: var(--text);
    background: var(--bg-card);
}

.klass__opt input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.klass__box {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    transition: border-color 0.15s ease;
}

.klass__opt input:checked + .klass__box {
    border-color: var(--klass, var(--primary));
}

.klass__opt input:checked + .klass__box::after {
    position: absolute;
    inset: 2px;
    background: var(--klass, var(--primary));
    border-radius: 50%;
    content: "";
}

.klass__opt:has(input:checked) {
    color: var(--text);
}

.klass__opt:has(input:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.klass__card {
    --klass: #3b82f6;
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 150px;
    padding: 20px;
    overflow: hidden;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    justify-items: center;
}

.klass__card[data-class="explorer"] { --klass: #3b82f6; }
.klass__card[data-class="competitor"] { --klass: #f59e0b; }
.klass__card[data-class="socialite"] { --klass: #f472b6; }
.klass__card[data-class="mentor"] { --klass: #34d399; }
.klass__card[data-class="host"] { --klass: #a78bfa; }

.klass__the {
    font-size: 13px;
    color: var(--text-3);
}

.klass__name {
    max-width: 100%;
    font-size: 40px;
    line-height: 1.15;
    white-space: nowrap;
    color: var(--klass);
    transition: color 0.3s ease;
}

.klass__card[data-class="explorer"] .klass__name { font-family: "IM Fell English", Georgia, serif; font-style: italic; }
.klass__card[data-class="competitor"] .klass__name { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.klass__card[data-class="socialite"] .klass__name { font-family: Pacifico, cursive; font-size: 34px; }
.klass__card[data-class="mentor"] .klass__name { font-family: "EB Garamond", Garamond, serif; font-weight: 600; font-style: italic; }
.klass__card[data-class="host"] .klass__name { font-family: "Abril Fatface", Didot, serif; }

.klass__line {
    font-size: 14px;
    color: var(--text-2);
}

.klass__card--swap .klass__name,
.klass__card--swap .klass__line {
    animation: rise-in 0.4s ease both;
}

/* Fan mail: a letter, a stamp, a postmark */
.letter {
    --ink: #3b2a14;
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 22px 24px 20px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background: #efe3c4;
    border-radius: 4px 10px 6px 12px;
    transform: rotate(-1deg);
}

.letter__stamp {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    gap: 2px;
    width: 64px;
    padding: 8px 4px 6px;
    font-family: Rubik, sans-serif;
    color: #efe3c4;
    background: #0e7490;
    border: 3px dotted #efe3c4;
    outline: 1px solid #0e7490;
    transform: rotate(4deg);
    justify-items: center;
}

.letter__stamp small {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.letter__mark {
    position: absolute;
    top: 44px;
    right: 44px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    font-family: Rubik, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-align: center;
    color: rgb(30 20 8 / 75%);
    border: 2px solid rgb(30 20 8 / 65%);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.letter__dear {
    margin-bottom: 10px;
    font-size: 18px;
}

.letter__body {
    min-height: 5.4em;
    padding-right: 96px;
    font-size: 16px;
    line-height: 1.6;
}

.letter__sign {
    margin-top: 12px;
    font-size: 16px;
    text-align: right;
}

/* Playing: the stamp and postmark wait their turn */
.letter--play .letter__stamp,
.letter--play .letter__mark {
    opacity: 0;
}

.letter--stamped .letter__stamp {
    opacity: 1;
    animation: stamp-down 0.35s cubic-bezier(.2, .7, .2, 1) both;
}

.letter--marked .letter__mark {
    opacity: 1;
    animation: stamp-down 0.3s ease both;
}

@keyframes stamp-down {
    from {
        opacity: 0;
        transform: scale(1.4) rotate(10deg);
    }
}

/* Events: the loyalty card from /me */
.punch {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    padding: 18px 20px;
    color: #0f3d3a;
    background: #bfe9e1;
    border-radius: 10px;
    transform: rotate(-0.8deg);
}

.punch__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.punch__brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    font-style: italic;
}

.punch__count {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.punch__holes {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    list-style: none;
}

.punch__holes li {
    aspect-ratio: 1;
    border: 2px dashed rgb(15 61 58 / 30%);
    border-radius: 50%;
}

.punch__holes li.punch__now {
    border-color: rgb(15 61 58 / 60%);
}

.punch__holes li.punch__hit {
    background: var(--bg);
    border: 0;
    box-shadow: inset 0 2px 3px rgb(0 0 0 / 45%);
    animation: punch 0.25s ease both;
}

@keyframes punch {
    from {
        transform: scale(1.35);
    }
}

.punch__note {
    font-size: 14px;
    font-weight: 600;
}

/* Ranks: the /me guide's stairs, each rank in its colour, a climber */
.stairs {
    --step-gap: 6px;
    width: 100%;
    max-width: 440px;
}

.stairs__stage {
    position: relative;
    display: grid;
    align-items: end;
    gap: var(--step-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 236px;
}

.stairs__step {
    --step: #8390a2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: calc(var(--i) * 40px + 76px);
    padding-top: 10px;
    background: color-mix(in sRGB, var(--step) 14%, var(--bg-card));
    border-top: 3px solid var(--step);
    border-radius: 6px 6px 0 0;
    transition: background 0.3s ease;
}

.stairs__step--active { --step: #60a5fa; }
.stairs__step--contributor { --step: #fbbf24; }
.stairs__step--pillar { --step: #a78bfa; }

.stairs__step--here {
    background: color-mix(in sRGB, var(--step) 30%, var(--bg-card));
}

.stairs__step img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

.stairs__name {
    font-size: 13px;
    font-weight: 700;
    color: color-mix(in sRGB, var(--step) 75%, var(--text));
}

.stairs__need {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
}

.stairs__pips {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stairs__pips--on {
    opacity: 1;
}

.stairs__pips i {
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--step);
    border-radius: 50%;
}

.stairs__pips i.on {
    background: var(--step);
}

/* Cone Child, climbing: a yellow cone hat bouncing from step to step */
.stairs__climber,
.stairs__burst {
    position: absolute;
    left: calc((100% - 3 * var(--step-gap)) / 4 * (var(--at) + 0.5) + var(--at) * var(--step-gap) - 13px);
    width: 26px;
}

.stairs__climber {
    bottom: calc(var(--at) * 40px + 76px);
    height: 36px;
    transition: left 0.5s cubic-bezier(.3, 1.4, .5, 1), bottom 0.5s cubic-bezier(.3, 1.4, .5, 1);
}

.stairs__climber img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 28px;
    transform: translateX(-50%) rotate(-5deg);
    filter: drop-shadow(1px 0 0 #ffffff) drop-shadow(-1px 0 0 #ffffff) drop-shadow(0 1px 0 #ffffff) drop-shadow(0 -1px 0 #ffffff);
}

.stairs__burst {
    bottom: calc(var(--at) * 40px + 120px);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.stairs__burst--up,
.stairs__burst--down,
.stairs__burst--streak {
    animation: burst 1.1s ease-out both;
}

.stairs__burst--up { color: #22c55e; }
.stairs__burst--down { color: #ef4444; }
.stairs__burst--streak { color: #e0a93b; }

@keyframes burst {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.8);
    }

    25% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: translateY(-14px);
    }
}

.stairs__months {
    min-height: 1.5em;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.stairs__months b {
    color: var(--text);
}

.stairs__glyph--up { color: #22c55e; }
.stairs__glyph--down { color: #ef4444; }
.stairs__glyph--streak { color: #e0a93b; }

.stairs__note {
    min-height: 2.8em;
    margin-top: 4px;
    font-size: 15px;
    color: var(--text-2);
}

/* Your turn: pick a score, play the month */
.stairs__try {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.stairs__slider {
    display: grid;
    flex: 1 1 180px;
    gap: 4px 8px;
    grid-template-columns: 1fr auto;
    font-size: 13px;
    color: var(--text-2);
}

.stairs__slider b {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stairs__slider input {
    grid-column: 1 / -1;
    width: 100%;
    accent-color: var(--primary);
}

.stairs__reset {
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: var(--text-2);
    background: none;
    border: 0;
    cursor: pointer;
}

.stairs__reset:hover {
    text-decoration: underline;
    color: var(--text);
    text-underline-offset: 3px;
}

@media (width <= 900px) {
    .feat {
        gap: 24px;
        grid-template-columns: minmax(0, 1fr);
        margin-top: 64px;
    }

    .feat--flip .feat__copy {
        order: 0;
    }

    .feat__scene {
        min-height: 0;
        padding: 20px 16px;
    }

    .klass__ask {
        grid-template-columns: minmax(0, 1fr);
    }

    .klass__card {
        min-height: 150px;
    }

    .race__tabs {
        gap: 14px;
    }

    .race__row {
        gap: 8px;
        grid-template-columns: 18px minmax(0, 8em) minmax(0, 1fr) 3.8em;
    }

}

@media (width <= 900px) {
    .stairs__name {
        font-size: 11px;
    }

    .stairs__need {
        font-size: 11px;
    }
}

/* Small phones: the stairs tighten so every rank name fits its step */
@media (width <= 360px) {
    .feat__scene {
        padding: 16px 12px;
    }

    .stairs {
        --step-gap: 4px;
    }

    .stairs__name {
        font-size: 10px;
    }
}

/* ===== Jump in: carried forward into Surreal ===== */
.btn.is-going svg {
    transform: translateX(6px);
    transition: transform 0.2s ease;
}

.lp-leaving body > main,
.lp-leaving body > footer {
    opacity: 0;
    transform: scale(1.4);
    transition:
        transform 0.45s cubic-bezier(0.45, 0, 0.85, 0.45),
        opacity 0.28s ease 0.16s,
        filter 0.3s ease 0.12s;
    filter: blur(8px);
}

.lp-leaving .lp-nav {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lp-warp {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
}

.lp-leaving .lp-warp {
    opacity: 1;
    transition: opacity 0.25s ease 0.2s;
}
