/* ==================================================================
     the island (js/app-island.js)
   ==================================================================
   The one notification of every platform page: a shape at the top of the screen that morphs between a pill (a short
   result, a running task), a card (a result with its reason, a failure, a notification) and a small Bina orb (tasks
   running in the background). Colours: --app-island-* in app-ui.css, so it follows the page theme.

   How it is drawn (see .claude/REGRESSIONS.md R12 and R13 before changing it):
   - .app-isl is the outline colour and .app-isl-face the surface 1px inside it; both are cut out by a clip-path that
     js/app-island.js changes together, with the same curve and time, so the solid 1px outline morphs with the shape;
   - the shadow is one short drop-shadow on the wrapper, which never reaches the top bar's bottom line;
   - the curve never overshoots, the shape is never given will-change (its content would no longer be clipped), and a
     new content layer starts at opacity 0 and fades in once the shape has grown round it;
   - a card that closes by itself has its countdown traced round its outline (.app-isl-trace), drawn 1px beyond the
     shape and cut by it, fading in once the shape has grown.

   The wrapper is a fixed box (--app-isl-w x --app-isl-h) centred on --app-island-x at --app-island-top; it takes no
   clicks, and the shape inside it takes clicks only inside its clip-path. */

.app-isl-anchor {
    position: fixed;
    top: var(--app-island-top, 14px);
    left: var(--app-island-x, 50%);
    z-index: 1036;
    width: 0;
    height: 0;
}

.app-isl-wrap {
    position: absolute;
    top: 0;
    left: calc(var(--app-isl-w, 460px) / -2);
    width: var(--app-isl-w, 460px);
    height: var(--app-isl-h, 520px);
    pointer-events: none;
    filter: var(--app-island-shadow);
    /* Moved under the bar when its shape would cover the bar's controls (js/app-island.js) */
    transform: translateY(var(--app-isl-drop, 0px));
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-isl {
    position: absolute;
    inset: 0;
    background: var(--app-island-ring);
    color: var(--app-island-text);
    font-family: var(--app-font-family);
    pointer-events: auto;
    clip-path: inset(0 calc(50% - 18px) calc(100% - 36px) calc(50% - 18px) round 18px);
    transition: clip-path 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, transform 0.26s ease;
    touch-action: pan-x;
}

.app-isl-face {
    position: absolute;
    inset: 0;
    background: var(--app-island-bg);
    clip-path: inset(1px calc(50% - 17px) calc(100% - 35px) calc(50% - 17px) round 17px);
    transition: clip-path 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

/* A soft glow at the top of the surface */
.app-isl-face::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 0%, var(--app-island-glow), transparent 60%);
    pointer-events: none;
}

/* Leaving: it fades and lifts where it is; the outline only shrinks once it can no longer be seen */
.app-isl.app-isl-hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s ease;
}

/* A finger dragging it up on a phone: it follows without easing */
.app-isl.app-isl-dragging {
    transition: none;
}

/* Queued notices peek out under the card (js/app-island.js moves them with transform and sets their width) */
.app-isl-stack {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    border-radius: 0 0 16px 16px;
    background: var(--app-island-stack-1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-isl-stack.app-isl-stack-2 {
    background: var(--app-island-stack-2);
}

.app-isl-stack.app-isl-on {
    opacity: 1;
    visibility: visible;
}

/* ---------- content layers: each form's content cross-fades inside the shape ---------- */

.app-isl-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--app-island-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.app-isl-layer.app-isl-on {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.16s;
}

/* Every icon is a 1em square, so flex and grid centring is exact (R12) */
.app-isl .bx,
.app-isl-note .bx {
    display: block;
    flex: none;
    width: 1em;
    height: 1em;
    line-height: 1;
}

/* Reset for the island's own buttons and links */
/* The island's own controls start bare; its buttons under a card are the platform's app-btn and keep their look */
.app-isl button:not(.app-btn),
.app-isl a:not(.app-btn) {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* ---------- pill: as wide as its content (re-measured whenever its size changes), never cut ---------- */

/* Round items in a pill are 26px in a 36px pill, so they sit 5px from every edge */
.app-isl-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: var(--app-isl-max, 440px);
    height: 36px;
    padding: 0 14px 0 5px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

button.app-isl-pill {
    padding: 0 14px 0 5px;
    text-align: left;
}

/* The part of a pill with a description that opens it into a card */
.app-isl .app-isl-pill-open {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    height: 100%;
    text-align: left;
}

.app-isl-pill.app-isl-pill-act {
    padding-right: 5px;
}

.app-isl-pill-title {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
}

.app-isl-pill-sub {
    min-width: 0;
    overflow: hidden;
    color: var(--app-island-muted);
    text-overflow: ellipsis;
}

/* The pill's own action, such as Undo */
.app-isl .app-isl-pact {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 5px;
    height: 26px;
    margin-left: 3px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--app-island-action-bg);
    color: var(--app-island-action-text);
    font-weight: 600;
    line-height: 1;
}

.app-isl-pact .bx {
    font-size: 15px;
}

/* A task's only progress indicator: the ring around Bina (--v percent; several tasks give it one arc each) */
.app-isl-ring {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: conic-gradient(var(--app-island-progress) calc(var(--v, 0) * 1%), var(--app-island-track) 0);
}

.app-isl-ring img {
    display: block;
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--app-island-bg);
    border-radius: 50%;
    object-fit: cover;
}

/* The orb: tasks shrunk to Bina with her ring */
.app-isl .app-isl-orb {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
}

.app-isl-check,
.app-isl-tic {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 17px;
}

.app-isl-check {
    background: var(--app-island-check-bg);
    color: var(--app-island-check-text);
    font-size: 19px;
}

.app-isl-layer.app-isl-on .app-isl-check {
    animation: app-isl-check-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

@keyframes app-isl-check-pop {
    from {
        transform: scale(0.2) rotate(-40deg);
    }
}

.app-isl-tone-ok {
    background: var(--app-island-ok-bg);
    color: var(--app-island-ok);
}

.app-isl-tone-info {
    background: var(--app-island-info-bg);
    color: var(--app-island-info);
}

.app-isl-tone-warn {
    background: var(--app-island-warn-bg);
    color: var(--app-island-warn);
}

.app-isl-tone-error {
    background: var(--app-island-error-bg);
    color: var(--app-island-error);
}

.app-isl-spin {
    flex: none;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    margin: 2px;
    border: 2.5px solid var(--app-island-track);
    border-top-color: var(--app-island-progress);
    border-radius: 50%;
    animation: app-isl-spin 0.9s linear infinite;
}

@keyframes app-isl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- card: fixed wide, as tall as its content ---------- */

.app-isl-card {
    position: relative;
    width: var(--app-isl-card, 380px);
    padding: 18px;
    border-radius: 24px;
    white-space: normal;
}

.app-isl-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.app-isl-avatar-wrap {
    position: relative;
    flex: none;
}

.app-isl-avatar {
    display: block;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.app-isl-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border: 2px solid var(--app-island-bg);
    border-radius: 50%;
    color: var(--app-color-white);
    font-size: 13px;
}

.app-isl-badge-ok {
    background: var(--app-island-check-bg);
    color: var(--app-island-check-text);
}

.app-isl-badge-error {
    background: var(--app-island-badge-error);
}

.app-isl-badge-warn {
    background: var(--app-island-badge-warn);
}

.app-isl-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 21px;
}

.app-isl-text {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.app-isl-title {
    display: block;
    margin: 0;
    color: var(--app-island-strong);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.app-isl-message {
    display: block;
    margin: 3px 0 0;
    color: var(--app-island-muted);
    font-size: 12.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* The close button and the queue count in the card's corner: the 32px button sits 12px from the top and the side,
   the same as from the card's 18px padding less the 6px pulled back here (R12) */
.app-isl-head-btns {
    display: flex;
    flex: none;
    align-items: center;
    margin: -6px -6px 0 0;
}

.app-isl-queue {
    margin-right: 2px;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--app-island-hover);
    color: var(--app-island-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.app-isl .app-isl-close {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--app-island-muted);
    font-size: 20px;
}

@media (hover: hover) {
    .app-isl .app-isl-close:hover {
        background: var(--app-island-hover);
        color: var(--app-island-text);
    }

    .app-isl .app-isl-pact:hover {
        filter: brightness(1.08);
    }
}

/* A task's progress under its text */
.app-isl-progress {
    margin: 14px 0 0 52px;
}

.app-isl-progress-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--app-island-muted);
    font-size: 12.5px;
}

.app-isl-progress-row b {
    color: var(--app-island-strong);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.app-isl-progress-name {
    min-width: 0;
    overflow: hidden;
    color: var(--app-island-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-isl-bar {
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--app-island-track);
}

.app-isl-bar i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    background: var(--app-island-bar);
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* One row per task when several run */
.app-isl-task-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.app-isl-task-row > div {
    flex: 1;
    min-width: 0;
    font-size: 13px;
}

/* The buttons under a card are the platform's small buttons (app-btn app-btn-sm, 36px: the brand gradient, the red one
   or the soft one, js/app-island.js): two in a row share the width equally, the same height in every row (R12) */
.app-isl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0 52px;
}

.app-isl-actions.app-isl-actions-flush {
    margin-left: 0;
}

.app-isl-actions.app-isl-actions-two .app-isl-btn {
    flex: 1 1 0;
    min-width: 0;
}

/* Two labels too long to share a row: one button per row, each across the card (js/app-island.js) */
.app-isl-actions.app-isl-actions-stack {
    flex-direction: column;
}

.app-isl-actions.app-isl-actions-stack .app-isl-btn {
    flex: none;
    width: 100%;
}

/* A label is measured against its share of the row, so it must not spill past its button */
.app-isl-btn > span {
    min-width: 0;
    overflow: hidden;
}

.app-isl .app-isl-close:focus-visible,
.app-isl .app-isl-pact:focus-visible,
.app-isl .app-isl-pill:focus-visible,
.app-isl .app-isl-pill-open:focus-visible,
.app-isl .app-isl-orb:focus-visible,
.app-isl .app-isl-taskbar:focus-visible {
    outline: 2px solid var(--app-island-progress);
    outline-offset: 2px;
}

/* A running task that a notice arrives on top of stays in the same shape, as a slim row under the notice */
.app-isl .app-isl-taskbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% + 36px);
    height: 46px;
    margin: 16px -18px -18px;
    padding: 0 14px;
    border-top: 1px solid var(--app-island-line);
    background: var(--app-island-hover);
    font-size: 12.5px;
    line-height: 1;
    text-align: left;
}

.app-isl-taskbar-name {
    color: var(--app-island-text);
    font-weight: 600;
    white-space: nowrap;
}

.app-isl-taskbar-sub {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--app-island-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-isl-taskbar b {
    color: var(--app-island-strong);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.app-isl-taskbar .bx {
    color: var(--app-island-muted);
    font-size: 18px;
}

/* ---------- countdown: a gradient outline that runs out from the top middle down both sides ---------- */

.app-isl-trace {
    position: absolute;
    top: 0;
    display: none;
    pointer-events: none;
}

.app-isl-trace.app-isl-on {
    display: block;
    animation: app-isl-fade 0.2s 0.4s both;
}

.app-isl-trace path {
    fill: none;
    stroke-width: 3.5px;
    stroke-linecap: butt;
    stroke-dasharray: 100 100;
    animation: app-isl-trace 8s linear 0.4s forwards;
}

.app-isl-trace stop:nth-child(1) {
    stop-color: var(--app-island-trace-1);
}

.app-isl-trace stop:nth-child(2) {
    stop-color: var(--app-island-trace-2);
}

.app-isl-trace stop:nth-child(3) {
    stop-color: var(--app-island-trace-3);
}

.app-isl.app-isl-paused .app-isl-trace path {
    animation-play-state: paused;
}

@keyframes app-isl-trace {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -100;
    }
}

@keyframes app-isl-fade {
    from {
        opacity: 0;
    }
}

/* ---------- announcements and festival greetings: a picture across the top of the card ---------- */

.app-isl-art {
    position: relative;
    height: 118px;
    margin: -18px -18px 16px;
    overflow: hidden;
    color: var(--app-color-white);
}

.app-isl-art-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.app-isl-art-tag .bx {
    font-size: 14px;
}

.app-isl .app-isl-art .app-isl-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 7, 18, 0.45);
    color: var(--app-color-white);
}

.app-isl-art-egg {
    cursor: pointer;
}

/* ---------- the pictures of announcements and festival greetings (js/app-island-art.js) ---------- */

/* A small live website with the festival banner right under its navigation bar */
.app-isla-site {
    position: absolute;
    top: 14px;
    right: 56px;
    display: flex;
    flex-direction: column;
    width: 124px;
    height: 90px;
    overflow: hidden;
    border-radius: 9px;
    background: #FFFFFF;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    transform: rotate(3deg);
}

.app-isla-site-nav {
    display: flex;
    flex: none;
    align-items: center;
    gap: 3px;
    height: 11px;
    padding: 0 7px;
    background: #FFFFFF;
}

.app-isla-site-nav i {
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: #C9C2D6;
}

.app-isla-site-nav i:first-child {
    width: 16px;
    background: #3A2C55;
}

.app-isla-site-banner {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    height: 15px;
    overflow: hidden;
    color: #FFFFFF;
    font-size: 7.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.app-isla-site-hero {
    display: flex;
    flex: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: 30px;
    padding: 0 9px;
    background: #E9EEF2;
}

.app-isla-site-hero i {
    display: block;
    width: 60%;
    height: 4px;
    border-radius: 2px;
    background: #B9C3CC;
}

.app-isla-site-hero i + i {
    width: 40%;
}

.app-isla-site-rows {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 5px 7px;
}

.app-isla-site-rows i {
    border-radius: 3px;
    background: #F0F2F5;
}

/* The festival banner feature: the banner strip cycles through the festivals */
.app-isla-cycle {
    background: linear-gradient(90deg, #C8102E, #E0A100, #0F7A55, #E07A1F, #7A2CC4, #1B6E3C, #C8102E);
    background-size: 600% 100%;
    animation: app-isla-cycle 9s linear infinite;
}

@keyframes app-isla-cycle {
    to {
        background-position: 100% 0;
    }
}

/* Three website styles for the theme announcement */
.app-isla-themes {
    position: absolute;
    top: 12px;
    right: 56px;
    display: flex;
}

.app-isla-theme {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 78px;
    height: 86px;
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.app-isla-theme + .app-isla-theme {
    margin-left: -22px;
}

.app-isla-theme:nth-child(1) {
    transform: rotate(-8deg) translateY(6px);
}

.app-isla-theme:nth-child(2) {
    z-index: 1;
    transform: translateY(-2px);
}

.app-isla-theme:nth-child(3) {
    transform: rotate(8deg) translateY(6px);
}

.app-isla-theme-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 9px;
    padding: 0 6px;
}

.app-isla-theme-bar i {
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.7;
}

.app-isla-theme-bar i:first-child {
    width: 14px;
    opacity: 1;
}

.app-isla-theme-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: 34px;
    padding: 0 7px;
}

.app-isla-theme-hero i {
    display: block;
    width: 62%;
    height: 5px;
    border-radius: 3px;
    background: #FFFFFF;
}

.app-isla-theme-hero i + i {
    width: 44%;
    height: 3px;
    opacity: 0.75;
}

.app-isla-theme-rows {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 6px 7px;
}

.app-isla-theme-rows i {
    border-radius: 3px;
}

/* A search result being written, for the feature announcement */
.app-isla-seo {
    position: absolute;
    top: 20px;
    right: 58px;
    width: 150px;
    height: 80px;
    padding: 12px;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
}

.app-isla-seo i {
    display: block;
    height: 7px;
    margin-bottom: 7px;
    border-radius: 4px;
    background: #C9D6E8;
}

.app-isla-seo i:first-child {
    width: 60%;
    background: #1A56C9;
}

.app-isla-seo i:nth-child(2) {
    width: 90%;
}

.app-isla-seo i:nth-child(3) {
    width: 75%;
}

/* The offer of an offer announcement */
.app-isla-tiles {
    position: absolute;
    top: 18px;
    right: 54px;
    display: flex;
    gap: 10px;
}

.app-isla-tiles span {
    display: grid;
    place-items: center;
    width: 66px;
    height: 82px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    color: #5524B5;
    font-size: 22px;
    font-weight: 700;
    transform: rotate(-6deg);
}

/* Festive decorations on the left of the picture */
.app-isla-fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.app-isla-moon {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 9px -5px 0 0 #F7D774;
    filter: drop-shadow(0 0 8px rgba(247, 215, 116, 0.55));
}

.app-isla-ketupat {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: repeating-linear-gradient(45deg, #F7D774 0 3px, #2E9B5F 3px 6px);
    transform: rotate(45deg);
    animation: app-isla-bob 3s ease-in-out infinite alternate;
}

.app-isla-diya {
    position: absolute;
    width: 24px;
    height: 10px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(#E08A2E, #A4501A);
}

.app-isla-diya::after {
    content: "";
    position: absolute;
    top: -15px;
    left: 8px;
    width: 8px;
    height: 14px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 50% 70%, #FFF3B0, #FFB300 55%, #FF6A00);
    box-shadow: 0 0 12px 4px rgba(255, 170, 40, 0.55);
    transform-origin: 50% 100%;
    animation: app-isla-flicker 0.9s ease-in-out infinite alternate;
}

.app-isla-snow {
    position: absolute;
    top: -8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FFFFFF;
    opacity: 0.9;
    animation: app-isla-snow linear infinite;
}

.app-isla-lan {
    position: absolute;
    width: 22px;
    height: 44px;
    overflow: visible;
    filter: drop-shadow(0 0 8px rgba(255, 90, 70, 0.45));
    transform-origin: 50% -60%;
    animation: app-isla-swing 2.8s ease-in-out infinite alternate;
}

.app-isla-rpkt {
    position: absolute;
    top: 52px;
    left: 18px;
    width: 38px;
    height: 54px;
    filter: drop-shadow(0 4px 8px rgba(70, 0, 10, 0.4));
    transform: rotate(-10deg);
}

.app-isla-chun {
    position: absolute;
    top: 74px;
    left: 64px;
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 3px 6px rgba(70, 0, 10, 0.4));
    transform: rotate(8deg);
}

.app-isla-fstring {
    position: absolute;
    top: 46px;
    right: 18px;
    width: 26px;
    height: 69px;
    overflow: visible;
    filter: drop-shadow(0 3px 6px rgba(70, 0, 10, 0.4));
    transform-origin: 50% -40%;
    animation: app-isla-swing 3.4s ease-in-out infinite alternate;
}

.app-isla-fpair {
    position: absolute;
    top: 80px;
    left: 104px;
    width: 44px;
    height: 38px;
    filter: drop-shadow(0 3px 6px rgba(70, 0, 10, 0.4));
}

.app-isla-fz {
    transform-box: fill-box;
    transform-origin: center;
    animation: app-isla-twinkle 0.7s ease-in-out infinite alternate;
}

.app-isla-snowman {
    position: absolute;
    top: 66px;
    left: 30px;
    width: 30px;
    height: 44px;
    overflow: visible;
}

.app-isla-drift {
    position: absolute;
    right: -20px;
    bottom: -14px;
    left: -20px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(60% 100% at 30% 0%, #FFFFFF, #DDE8F2 70%);
    opacity: 0.92;
}

.app-isla-xtree {
    position: absolute;
    top: 20px;
    left: 88px;
    width: 66px;
    height: 94px;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.25));
}

.app-isla-xtree .app-isla-orn,
.app-isla-xtree .app-isla-xstar {
    transform-box: fill-box;
    transform-origin: center;
    animation: app-isla-twinkle 1.6s ease-in-out infinite alternate;
}

.app-isla-xtree .app-isla-xstar {
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.9));
    animation-duration: 1.2s;
}

/* The Petronas Twin Towers for National Day: stepped towers, spires and the skybridge, with lit windows */
.app-isla-towers {
    position: absolute;
    top: 38px;
    left: 92px;
    width: 62px;
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(185, 198, 224, 0.45));
}

/* Fireworks: a ring of sparks that opens out and fades, then starts again */
.app-isla-fw {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 -20px 0 0, 14px -14px 0 0, 20px 0 0 0, 14px 14px 0 0, 0 20px 0 0, -14px 14px 0 0, -20px 0 0 0, -14px -14px 0 0, 0 -10px 0 -1px, 10px 0 0 -1px, 0 10px 0 -1px, -10px 0 0 -1px;
    color: var(--fw, #FFD45C);
    animation: app-isla-fw 2.2s ease-out infinite;
}

/* The year in light, for the New Year countdown */
.app-isla-year {
    position: absolute;
    color: #FFF6D6;
    font: 700 30px/1 var(--app-font-family);
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255, 214, 92, 0.8), 0 0 2px #FFD45C;
}

.app-isla-year small {
    display: block;
    margin-bottom: 4px;
    color: #FFD45C;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: none;
}

.app-isla-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #FFE7A0;
    box-shadow: 0 0 6px 2px rgba(255, 231, 160, 0.6);
    animation: app-isla-twinkle 1.8s ease-in-out infinite alternate;
}

/* Easter egg: tapping a festival picture sets off a small burst in the colours of the festival */
.app-isla-burst {
    position: absolute;
    top: 55%;
    left: 38%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.app-isla-burst i {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--c);
    animation: app-isla-burst 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes app-isla-swing {
    from {
        transform: rotate(-7deg);
    }

    to {
        transform: rotate(7deg);
    }
}

@keyframes app-isla-bob {
    to {
        translate: 0 5px;
    }
}

@keyframes app-isla-flicker {
    to {
        opacity: 0.85;
        transform: scale(0.88, 1.12);
    }
}

@keyframes app-isla-snow {
    to {
        transform: translateY(130px);
    }
}

@keyframes app-isla-twinkle {
    from {
        opacity: 0.25;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes app-isla-fw {
    0% {
        opacity: 0;
        transform: scale(0.15);
    }

    15% {
        opacity: 1;
    }

    70% {
        opacity: 0.9;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

@keyframes app-isla-burst {
    to {
        opacity: 0;
        transform: rotate(var(--r)) translateY(calc(var(--d) * -1)) rotate(180deg);
    }
}

/* ---------- the notification bell taking a notice in ---------- */

/* Two brand-coloured ripples spread from the bell (js/app-island.js places each one over it, at its size); the script
   also swings its icon once and pops its red dot. A small label under it says where the notice went. */
.app-isl-ripple {
    position: fixed;
    z-index: 1037;
    border: 2px solid var(--app-accent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: app-isl-ripple 0.76s var(--app-ease-out) both;
}

@keyframes app-isl-ripple {
    from {
        transform: scale(0.7);
        opacity: 0.75;
    }

    to {
        transform: scale(2.1);
        opacity: 0;
    }
}

/* The label sits under the bell, centred on it but kept on screen, its arrow on the bell's centre
   (--app-isl-note-arrow); it grows out of its arrow's tip and shrinks back into it, and never takes clicks */
.app-isl-note {
    --app-isl-note-arrow: 50%;

    position: fixed;
    z-index: 1037;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100vw - 24px);
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--app-color-primary);
    box-shadow: var(--app-shadow-primary);
    color: var(--app-color-white);
    font-family: var(--app-font-family);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.85);
    transform-origin: var(--app-isl-note-arrow) -6px;
    transition: opacity 0.24s ease, transform 0.3s var(--app-ease-out);
}

.app-isl-note::before {
    content: "";
    position: absolute;
    top: -4px;
    left: var(--app-isl-note-arrow);
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 2px 0 0 0;
    background: var(--app-color-primary);
    transform: rotate(45deg);
}

.app-isl-note .bx {
    font-size: 15px;
}

.app-isl-note.app-isl-on {
    opacity: 1;
    transform: none;
}

/* A printed page never carries the island or its label under the bell */
@media print {
    .app-isl-anchor,
    .app-isl-note,
    .app-isl-ripple {
        display: none !important;
    }
}

/* ---------- phones: pills show their title only (tap one to read the rest) ---------- */

@media (max-width: 767.98px) {
    .app-isl-pill-sub {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-isl {
        transition: opacity 0.2s ease;
    }

    .app-isl-face {
        transition: none;
    }

    .app-isl.app-isl-hidden {
        transform: none;
    }

    .app-isl-layer.app-isl-on .app-isl-check,
    .app-isl-trace.app-isl-on,
    .app-isl-trace path {
        animation: none;
    }

    .app-isl-stack {
        transition: opacity 0.2s ease;
    }

    .app-isl-spin {
        animation-duration: 2s;
    }

    /* Every looping decoration of the pictures stands still */
    .app-isla-cycle,
    .app-isla-ketupat,
    .app-isla-diya::after,
    .app-isla-snow,
    .app-isla-lan,
    .app-isla-fstring,
    .app-isla-fz,
    .app-isla-xtree .app-isla-orn,
    .app-isla-xtree .app-isla-xstar,
    .app-isla-fw,
    .app-isla-spark {
        animation: none;
    }

    .app-isl-note {
        transform: none;
        transition: opacity 0.2s ease;
    }
}
