/* fonts */
@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2");
    unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-vietnamese-600-normal.woff2") format("woff2");
    unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-vietnamese-700-normal.woff2") format("woff2");
    unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-vietnamese-800-normal.woff2") format("woff2");
    unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("assets/fonts/joydigi-be-vietnam-pro-latin-800-normal.woff2") format("woff2");
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
    font-family: "Bungee";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/joydigi-bungee-vietnamese-400-normal.woff2") format("woff2");
    unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB
}

@font-face {
    font-family: "Bungee";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/joydigi-bungee-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

/* base */
:root.joydigi {
    --ink: #2a1e1c;
    --ink-2: #4a3b36;
    --tole: #e3eaeb;
    --tole-2: #c3cfd1;
    --card: #f8fbfb;
    --sign: #2f6fb5;
    --sign-2: #1f4f86;
    --chair: #d8343a;
    --chair-2: #a92429;
    --straw: #e9cf8a;
    --straw-2: #c9a85e;
    --leaf: #4f9e3f;
    --leaf-2: #357a2e;
    --gold: #f2c641;
    --gold-2: #c9962a;
    --canal: #1d4b56;
    --canal-2: #153a43;
    --paper: #fbf7ee;
    --muted: #5b686b;
    --warn: #e07b22;
    --violet: #7a3fc2;
    --font-sign: "Bungee", "Arial Black", "Segoe UI Black", system-ui, sans-serif;
    --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --col: 460px;
    --sa-t: env(safe-area-inset-top, 0px);
    --sa-b: env(safe-area-inset-bottom, 0px);
    --sa-l: env(safe-area-inset-left, 0px);
    --sa-r: env(safe-area-inset-right, 0px);
    --gesture-min: 0px;
    --safe-b: max(var(--sa-b), var(--gesture-min));
    --tabbar-h: calc(62px + var(--safe-b));
    --px-clip: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px));
    color-scheme: light
}

:where(html.joydigi) * {
    box-sizing: border-box
}

:where(html.joydigi) [hidden] {
    display: none !important
}

html.joydigi,
:where(html.joydigi) body {
    height: 100%
}

@supports (height: 100dvh) {

    html.joydigi,
    :where(html.joydigi) body {
        height: 100dvh
    }
}

html.joydigi {
    background: var(--ink)
}

html.joydigi {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

:where(html.joydigi) *,
:where(html.joydigi) *::before,
:where(html.joydigi) *::after {
    touch-action: pan-x pan-y
}

:where(html.joydigi) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:where(html.joydigi) textarea,
:where(html.joydigi) select {
    font-size: 16px !important
}

:root.joydigi:fullscreen {
    --gesture-min: 16px
}

@media (display-mode: fullscreen),
(display-mode: standalone) {
    :root.joydigi {
        --gesture-min: 16px
    }
}

:where(html.joydigi) body {
    margin: 0;
    background: var(--canal);
    color: var(--ink);
    background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .035) 22px 24px), radial-gradient(120% 60% at 50% 0%, #255d6a 0%, var(--canal) 60%, var(--canal-2) 100%);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none
}

:where(html.joydigi) button {
    font: inherit;
    color: inherit
}

:where(html.joydigi) .px {
    image-rendering: pixelated;
    image-rendering: crisp-edges
}

:where(html.joydigi) .icon {
    width: 24px;
    height: 24px;
    flex: none;
    background-repeat: no-repeat;
    display: inline-block
}

:where(html.joydigi) .icon.s16 {
    width: 16px;
    height: 16px
}

:where(html.joydigi) .icon.s32 {
    width: 32px;
    height: 32px
}

/* splash */
/* layout */
:where(html.joydigi) #app {
    height: 100%;
    max-width: var(--col);
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas: "hud" "strip" "scene" "board" "tabs";
    background: var(--tole);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 2px var(--ink), 0 20px 60px rgba(0, 0, 0, .45)
}

:where(html.joydigi) .hud {
    grid-area: hud
}

:where(html.joydigi) .mission-strip {
    grid-area: strip
}

:where(html.joydigi) .scene-band {
    grid-area: scene
}

:where(html.joydigi) .board {
    grid-area: board
}

:where(html.joydigi) .tabbar {
    grid-area: tabs
}

:where(html.joydigi) .gutter {
    padding-left: max(16px, var(--sa-l));
    padding-right: max(16px, var(--sa-r))
}

@media (max-width: 1023px) {
    :where(html.joydigi) #app {
        padding-bottom: var(--tabbar-h)
    }

    :where(html.joydigi) .tabbar {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        padding-left: max(calc(var(--sa-l) + 12px), calc((100% - var(--col)) / 2 + 16px));
        padding-right: max(calc(var(--sa-r) + 12px), calc((100% - var(--col)) / 2 + 16px))
    }
}

@media (min-width: 1024px) {
    :where(html.joydigi) #app {
        max-width: none;
        grid-template-columns: minmax(0, 1fr) 440px;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        grid-template-areas: "scene hud" "scene strip" "scene board" "scene tabs";
        box-shadow: none
    }

    :where(html.joydigi) .scene-band {
        border-right: 2px solid var(--ink);
        border-bottom: 0 !important;
        align-content: center
    }

    :where(html.joydigi) body {
        background-image: radial-gradient(circle at 12% 20%, rgba(79, 154, 63, .25) 0 6px, transparent 7px), radial-gradient(circle at 70% 80%, rgba(79, 154, 63, .2) 0 5px, transparent 6px), radial-gradient(120% 60% at 50% 0%, #255d6a 0%, var(--canal) 60%, var(--canal-2) 100%);
        background-size: 180px 140px, 240px 200px, auto
    }

    :where(html.joydigi) .sheet {
        left: auto !important;
        right: 0;
        transform: none !important;
        width: 440px !important;
        animation: rise-d .18s ease-out !important
    }

    :where(html.joydigi) .dialog {
        width: min(100%, 640px) !important
    }
}

/* hud */
:where(html.joydigi) .hud {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1fr) auto;
    gap: 5px;
    align-items: center;
    padding-block: calc(7px + var(--sa-t)) 6px;
    background: var(--ink);
    color: var(--paper)
}

:where(html.joydigi) .res {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    background: #3a2c29;
    padding: 3px 8px 3px 4px;
    border: 1px solid #5a4641;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .res.money {
    transition: transform .15s;
    transform-origin: left center
}

:where(html.joydigi) .res b {
    font-family: var(--font-sign);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .res .lvl-wrap {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1
}

:where(html.joydigi) .res .lvl-wrap b {
    font-size: 12px
}

:where(html.joydigi) .bar {
    height: 5px;
    background: #5a4641;
    overflow: hidden
}

:where(html.joydigi) .bar>i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gold);
    transition: width .3s
}

:where(html.joydigi) .hud-mini {
    font-family: var(--font-sign);
    font-size: 12px;
    color: var(--ink);
    background: var(--paper);
    padding: 2px 5px;
    clip-path: var(--px-clip);
    display: inline-flex;
    gap: 2px;
    align-items: center;
    white-space: nowrap
}

:where(html.joydigi) .hud-mini.hot {
    background: var(--gold);
    animation: pulse .6s ease-in-out infinite alternate
}

:where(html.joydigi) .hud-mini.set {
    background: #e9dcff
}

:where(html.joydigi) .hud-btn {
    position: relative;
    border: 1px solid #5a4641;
    background: #3a2c29;
    width: 36px;
    height: 34px;
    display: grid;
    place-items: center;
    cursor: pointer;
    clip-path: var(--px-clip)
}

:where(html.joydigi) :focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

@keyframes pulse {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.08)
    }
}

/* mission-strip */
:where(html.joydigi) .mission-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    background: var(--straw);
    border-bottom: 2px solid var(--ink);
    padding-block: 5px
}

:where(html.joydigi) .ms-text {
    min-width: 0;
    display: grid
}

:where(html.joydigi) .mission-strip .eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b4a1e;
    white-space: nowrap
}

:where(html.joydigi) .mission-strip .title {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .mission-strip .goal,
:where(html.joydigi) .mission-strip .order-line {
    font-size: 12px;
    color: #4b3a20;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .mission-strip .order-line {
    color: var(--sign-2);
    font-weight: 700;
    font-size: 11px
}

:where(html.joydigi) .mission-strip.compact .goal {
    display: none
}

:where(html.joydigi) .mission-strip.compact .eyebrow {
    display: none
}

:where(html.joydigi) .mission-strip .prog {
    font-family: var(--font-sign);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

:where(html.joydigi) .mission-strip.ready {
    background: #ffe07a;
    animation: glow 1.2s ease-in-out infinite alternate
}

:where(html.joydigi) .claim-pill {
    background: var(--chair);
    color: #fff;
    border: 2px solid var(--ink);
    padding: 3px 10px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
    clip-path: var(--px-clip)
}

@keyframes glow {
    from {
        box-shadow: inset 0 0 0 0 rgba(216, 52, 58, 0)
    }

    to {
        box-shadow: inset 0 0 0 3px rgba(216, 52, 58, .55)
    }
}

/* scene */
:where(html.joydigi) .scene-band {
    position: relative;
    display: grid;
    place-items: center;
    background: #6f9a45;
    border-bottom: 2px solid var(--ink);
    touch-action: pan-x pan-y;
    overflow: hidden
}

:where(html.joydigi) #scene {
    display: block;
    cursor: pointer
}

:where(html.joydigi) .scene-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden
}

:where(html.joydigi) #sceneBanners {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    gap: 3px;
    justify-items: center;
    width: max-content;
    max-width: calc(100% - 12px)
}

:where(html.joydigi) .banner {
    font-family: var(--font-sign);
    font-size: 11px;
    color: #fff;
    background: var(--bc);
    border: 2px solid var(--ink);
    padding: 1px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    clip-path: var(--px-clip);
    letter-spacing: .02em
}

:where(html.joydigi) .chips-tl {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: flex;
    gap: 4px
}

:where(html.joydigi) .sweep {
    position: absolute;
    left: 0;
    right: 0;
    top: 38%;
    display: grid;
    justify-items: center;
    padding: 4px 0;
    background: rgba(42, 30, 28, .86);
    border-block: 2px solid var(--sc);
    animation: sweep var(--dur) linear forwards
}

:where(html.joydigi) .sweep b {
    font-family: var(--font-sign);
    font-weight: 400;
    color: var(--sc);
    font-size: clamp(16px, 5vw, 30px);
    letter-spacing: .04em;
    text-shadow: 2px 2px 0 var(--ink)
}

:where(html.joydigi) .sweep small {
    color: var(--paper);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    max-width: 94%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

:where(html.joydigi) .sweep.still {
    animation: fadeinout var(--dur) linear forwards
}

@keyframes sweep {
    0% {
        transform: translateX(100%)
    }

    18% {
        transform: translateX(0)
    }

    82% {
        transform: translateX(0);
        opacity: 1
    }

    100% {
        transform: translateX(-100%);
        opacity: 0
    }
}

@keyframes fadeinout {
    0% {
        opacity: 0
    }

    10%,
    85% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

:where(html.joydigi) #fxLayer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 55
}

:where(html.joydigi) #fxLayer .coin {
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform
}

:where(html.joydigi) .on-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ccf4e;
    box-shadow: 0 0 0 2px rgba(60, 207, 78, .25);
    flex: none
}

@media (pointer: coarse) {}

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

    to {
        opacity: .95;
        transform: none
    }
}

/* board */
:where(html.joydigi) .board {
    overflow: hidden;
    padding-block: 6px 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 6px
}

:where(html.joydigi) #boardList {
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    padding-bottom: 10px;
    min-height: 0
}

:where(html.joydigi) .bay-dock {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    gap: 5px
}

@media (min-width: 1024px) {
    :where(html.joydigi) .bay-dock {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

:where(html.joydigi) .bay-card {
    display: grid;
    gap: 3px;
    align-content: start;
    min-width: 0;
    background: var(--card);
    border: 2px solid var(--ink);
    padding: 4px;
    clip-path: var(--px-clip);
    cursor: pointer
}

:where(html.joydigi) .bay-card .bc-top {
    display: flex;
    gap: 3px;
    align-items: center;
    min-width: 0;
    height: 16px
}

:where(html.joydigi) .bay-card .bc-top .icon,
:where(html.joydigi) .bay-card .bc-ic {
    flex: none;
    line-height: 0
}

:where(html.joydigi) .bay-card .bn {
    flex: none;
    min-width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-sign);
    font-weight: 400;
    font-size: 10px
}

:where(html.joydigi) .bay-card .l1 {
    min-width: 0;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip
}

:where(html.joydigi) .bay-card .l1 .tag {
    font-size: 9px;
    padding: 0 2px
}

:where(html.joydigi) .bay-card .l2 {
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .bay-dock.compact .bay-card:not(.add) .l2 {
    display: none
}

:where(html.joydigi) .bay-card .row-btn.tap {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    font-size: 14px;
    touch-action: pan-x pan-y
}

:where(html.joydigi) .bay-card.idle,
:where(html.joydigi) .bay-card.add {
    background: transparent;
    border-style: dashed;
    border-color: #9aa7aa;
    clip-path: none;
    cursor: default;
    color: var(--muted)
}

:where(html.joydigi) .bay-card.idle .row-btn {
    visibility: hidden
}

:where(html.joydigi) .bay-card.add {
    cursor: pointer;
    align-content: center;
    justify-items: center;
    text-align: center
}

:where(html.joydigi) .bay-card.add .l1 {
    color: var(--sign-2)
}

:where(html.joydigi) .bay-card.add .l2 {
    white-space: normal
}

:where(html.joydigi) .bay-card.flooded {
    background: #dcecf5
}

:where(html.joydigi) .bay-card.sel {
    background: #fff7d6
}

:where(html.joydigi) .bay-card.alert {
    background: #fff0e0;
    border-color: var(--chair)
}

:where(html.joydigi) .bay-card.alert .l1,
:where(html.joydigi) .bay-card.asking .l1 {
    color: var(--chair-2)
}

:where(html.joydigi) .bay-card.alert .l2,
:where(html.joydigi) .bay-card.asking .l2 {
    color: var(--chair-2);
    font-weight: 800
}

:where(html.joydigi) .row.diagq {
    background: #fff3d6;
    cursor: default
}

:where(html.joydigi) .row.diagq .extra.diag {
    flex-wrap: wrap;
    overflow: visible;
    gap: 4px
}

:where(html.joydigi) .row.diagq .diag .chip {
    font-size: 12px;
    padding: 3px 8px;
    min-height: 30px
}

:where(html.joydigi) .row.empty.more {
    cursor: pointer
}

:where(html.joydigi) .board h3 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-sign);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--sign-2)
}

:where(html.joydigi) .board h3 small {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0
}

:where(html.joydigi) .list {
    display: grid;
    gap: 5px
}

:where(html.joydigi) .row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    background: var(--card);
    border: 2px solid var(--ink);
    padding: 5px 6px 5px 5px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .row.sel {
    background: #fff7d6
}

:where(html.joydigi) .row .main {
    min-width: 0;
    display: grid;
    gap: 2px
}

:where(html.joydigi) .row .l1 {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .row .l2 {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .row .btns {
    display: flex;
    gap: 4px
}

:where(html.joydigi) .row .extra:empty {
    display: none
}

:where(html.joydigi) .row.done {
    background: #e6f6df;
    border-color: var(--leaf-2)
}

:where(html.joydigi) .row.blocked {
    background: #ffe9e4
}

:where(html.joydigi) .row.offer {
    background: #fff8db
}

:where(html.joydigi) .row.vip {
    background: #fffbe8
}

:where(html.joydigi) .row.alert {
    background: #fff0e0
}

:where(html.joydigi) .row.empty {
    cursor: default;
    background: transparent;
    border-style: dashed;
    border-color: #9aa7aa;
    color: var(--muted);
    grid-template-columns: auto 1fr auto;
    clip-path: none
}

:where(html.joydigi) .row:disabled {
    opacity: .6;
    cursor: not-allowed
}

:where(html.joydigi) .row-btn {
    border: 2px solid var(--ink);
    border-bottom-width: 4px;
    background: var(--straw);
    padding: 3px 8px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .row-btn.red {
    background: var(--chair);
    color: #fff
}

:where(html.joydigi) .row-btn.green {
    background: var(--leaf);
    color: #fff
}

:where(html.joydigi) .row-btn.ghost {
    background: var(--card)
}

:where(html.joydigi) .row-btn.tap {
    min-width: 54px;
    min-height: 40px;
    font-size: 13px
}

:where(html.joydigi) .row-btn:active {
    transform: translateY(2px);
    border-bottom-width: 2px
}

:where(html.joydigi) .row-btn:disabled {
    opacity: .45;
    cursor: not-allowed
}

:where(html.joydigi) .avatar {
    display: grid;
    place-items: center;
    min-width: 24px
}

:where(html.joydigi) .avwrap {
    position: relative;
    display: grid;
    place-items: center
}

:where(html.joydigi) .avwrap .svc {
    position: absolute;
    right: -6px;
    bottom: -6px;
    background: var(--paper);
    border: 1px solid var(--ink);
    line-height: 0
}

:where(html.joydigi) .need {
    position: relative;
    display: grid;
    place-items: center
}

:where(html.joydigi) .need b {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    background: var(--chair);
    color: #fff;
    font-size: 11px;
    line-height: 14px;
    text-align: center;
    font-weight: 900;
    animation: blink .7s steps(2) infinite
}

@keyframes blink {
    50% {
        opacity: .25
    }
}

:where(html.joydigi) .tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 0 4px;
    border: 1px solid currentColor;
    vertical-align: 1px
}

:where(html.joydigi) .tag.vip {
    color: #8a6a00;
    background: #fff1b8
}

:where(html.joydigi) .tag.quen {
    color: var(--leaf-2);
    background: #e3f3dc
}

:where(html.joydigi) .tag.kol {
    color: #fff;
    background: var(--chair);
    border-color: var(--ink)
}

:where(html.joydigi) .tag.warn {
    color: #9b4a0c;
    background: #ffe6cc
}

:where(html.joydigi) .tag.pha {
    color: #165a73;
    background: #d8f0f7
}

:where(html.joydigi) .tag.tour {
    color: #5b2f9b;
    background: #efe4ff
}

:where(html.joydigi) .pbar {
    height: 5px;
    background: var(--tole-2);
    overflow: hidden
}

:where(html.joydigi) .pbar>i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--leaf)
}

:where(html.joydigi) .pbar.low>i {
    background: var(--chair)
}

:where(html.joydigi) .tapbar {
    position: relative;
    height: 10px;
    background: #d9e1e2;
    border: 1px solid var(--ink);
    overflow: hidden
}

:where(html.joydigi) .tapbar .fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--sign)
}

:where(html.joydigi) .tapbar.diag .fill {
    background: var(--warn)
}

:where(html.joydigi) .tapbar.solo .fill {
    background: var(--leaf)
}

:where(html.joydigi) .tapbar .zone {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(242, 198, 65, .75);
    box-shadow: inset 0 0 0 1px var(--gold-2)
}

:where(html.joydigi) .tapbar .zone.hard {
    background: rgba(255, 150, 60, .8)
}

:where(html.joydigi) .tapbar .needle {
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: 2px;
    background: var(--ink);
    left: -10px
}

:where(html.joydigi) .tapbar .needle.in {
    background: #fff;
    box-shadow: 0 0 0 1px var(--ink)
}

:where(html.joydigi) .tapbar.big {
    height: 22px
}

:where(html.joydigi) .diag:empty {
    display: none
}

:where(html.joydigi) .diag {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    align-items: center;
    overflow: hidden
}

:where(html.joydigi) .diag .chip {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
    padding: 0 4px;
    font-size: 10.5px
}

:where(html.joydigi) .diag small {
    font-size: 11px;
    font-weight: 800;
    color: var(--warn)
}

:where(html.joydigi) .chip {
    border: 2px solid var(--ink);
    background: var(--card);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    cursor: pointer;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .chip.hint {
    box-shadow: inset 0 0 0 2px var(--gold);
    background: #fff6cf
}

:where(html.joydigi) .chip.big {
    font-size: 12px;
    padding: 4px 8px;
    display: inline-flex;
    gap: 4px;
    align-items: center
}

:where(html.joydigi) .chip.on {
    background: #e9dcff
}

:where(html.joydigi) .chip:disabled {
    opacity: .5
}

:where(html.joydigi) .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

:where(html.joydigi) .row.incident {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    background: #fff3d6;
    border-color: var(--ink);
    cursor: default;
    padding: 6px 8px
}

:where(html.joydigi) .row.incident.large {
    background: #ffe5cc
}

:where(html.joydigi) .inc-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center
}

:where(html.joydigi) .inc-title {
    display: flex;
    gap: 6px;
    align-items: baseline;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden
}

:where(html.joydigi) .inc-title b {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .inc-title small {
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis
}

@media (max-width: 1023px) and (max-height: 900px) {
    :where(html.joydigi) .row.incident .inc-line {
        display: none
    }
}

:where(html.joydigi) .inc-timer {
    font-family: var(--font-sign);
    font-size: 13px;
    color: var(--chair-2)
}

:where(html.joydigi) .inc-line {
    margin: 0;
    font-size: 12.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

:where(html.joydigi) .inc-line.muted,
:where(html.joydigi) .muted {
    color: var(--muted)
}

:where(html.joydigi) .inc-prompt {
    margin: 0;
    font-weight: 800;
    font-size: 13px
}

:where(html.joydigi) .inc-got {
    margin: 0;
    font-weight: 800;
    color: var(--leaf-2);
    font-size: 12.5px
}

:where(html.joydigi) .inc-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

@media (max-height: 700px) {
    :where(html.joydigi) .row.incident .inc-line {
        display: none
    }

    :where(html.joydigi) .choice-sm {
        padding: 3px 6px;
        font-size: 12px
    }

    :where(html.joydigi) .choice-sm small {
        display: none
    }

    :where(html.joydigi) .inc-head .icon {
        display: none
    }
}

:where(html.joydigi) .choice-sm {
    text-align: left;
    border: 2px solid var(--ink);
    border-bottom-width: 4px;
    background: var(--card);
    padding: 5px 8px;
    min-height: 34px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .choice-sm.def {
    background: #fff8e6
}

:where(html.joydigi) .choice-sm small {
    font-weight: 600;
    color: var(--muted)
}

:where(html.joydigi) .choice-sm .cost {
    font-family: var(--font-sign);
    font-weight: 400;
    color: var(--chair-2)
}

:where(html.joydigi) .choice-sm:active {
    transform: translateY(2px);
    border-bottom-width: 2px
}

:where(html.joydigi) .inc-bar {
    height: 4px;
    background: rgba(0, 0, 0, .12)
}

:where(html.joydigi) .inc-bar>i {
    display: block;
    height: 100%;
    background: var(--warn)
}

:where(html.joydigi) .row.speedrun {
    background: #efe4ff;
    grid-template-columns: auto minmax(0, 1fr) auto;
    cursor: default
}

:where(html.joydigi) .tap-btn {
    border: 2px solid var(--ink);
    border-bottom-width: 5px;
    background: var(--violet);
    color: #fff;
    font-family: var(--font-sign);
    font-size: 18px;
    padding: 10px 14px;
    cursor: pointer;
    clip-path: var(--px-clip);
    touch-action: pan-x pan-y
}

:where(html.joydigi) .tap-btn:active {
    transform: translateY(3px);
    border-bottom-width: 2px
}

:where(html.joydigi) .row.orders {
    grid-template-columns: auto minmax(0, 1fr);
    background: #eef6f8
}

:where(html.joydigi) .order-chips {
    display: grid;
    gap: 3px
}

:where(html.joydigi) .ochip {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    background: #fff;
    border: 1px solid var(--tole-2);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}

:where(html.joydigi) .ochip>i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #dff1d9;
    z-index: 0
}

:where(html.joydigi) .ochip>span {
    position: relative;
    z-index: 1
}

:where(html.joydigi) .ochip.done {
    border-color: var(--leaf)
}

/* tabbar */
:where(html.joydigi) .tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    background: var(--ink);
    padding-block: 6px calc(6px + var(--safe-b));
    position: relative;
    z-index: 22
}

:where(html.joydigi) .tab {
    border: 0;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 4px 0;
    position: relative;
    min-width: 0;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .tab span:not(.icon) {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%
}

:where(html.joydigi) .tab:active,
:where(html.joydigi) .tab.on {
    background: #4d3b37
}

:where(html.joydigi) .tab.on .icon {
    animation: hop .5s ease-in-out infinite alternate
}

@keyframes hop {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(-3px)
    }
}

:where(html.joydigi) .inp {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--ink);
    background: #fff;
    padding: 9px 10px;
    font: inherit;
    font-size: 16px;
    margin-bottom: 6px;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .inp:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px
}

:where(html.joydigi) .acc-form {
    display: grid;
    gap: 2px
}

:where(html.joydigi) .acc-status {
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 13px
}

:where(html.joydigi) .acc-status.warn {
    color: var(--chair-2)
}

:where(html.joydigi) .acc-status.good {
    color: var(--leaf-2)
}

:where(html.joydigi) .linkbtn {
    background: none;
    border: 0;
    padding: 6px 0 0;
    color: var(--sign-2);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    font-size: 13px
}

:where(html.joydigi) .hud-btn .dot {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    background: var(--chair);
    border: 2px solid var(--ink);
    font-size: 9px;
    font-weight: 800;
    line-height: 10px;
    color: #fff;
    font-style: normal
}

:where(html.joydigi) .save-chip {
    position: absolute;
    top: 4px;
    right: 6px;
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 800;
    color: #eaf7e4;
    background: rgba(36, 82, 31, .82);
    border: 1px solid #1d3f19;
    opacity: 0;
    pointer-events: none
}

:where(html.joydigi) .save-chip.on {
    animation: savedflash 1.4s ease-out
}

@keyframes savedflash {
    0% {
        opacity: 0;
        transform: translateY(-3px)
    }

    12%,
    70% {
        opacity: 1;
        transform: none
    }

    100% {
        opacity: 0
    }
}

:where(html.joydigi) .tab .dot {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--chair);
    border: 2px solid var(--ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 12px;
    color: #fff;
    font-style: normal
}

/* sheets */
:where(html.joydigi) .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(21, 58, 67, .55);
    z-index: 20
}

:where(html.joydigi) .sheet {
    position: fixed;
    z-index: 21;
    bottom: var(--tabbar-h);
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, var(--col));
    max-height: calc(100% - var(--tabbar-h) - 40px - var(--sa-t));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: var(--tole);
    border: 2px solid var(--ink);
    border-bottom: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
    animation: rise .18s ease-out
}

:where(html.joydigi) .sheet.small {
    max-height: min(72%, calc(100% - var(--tabbar-h) - 40px - var(--sa-t)))
}

@keyframes rise {
    from {
        transform: translate(-50%, 24px);
        opacity: .6
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1
    }
}

@keyframes rise-d {
    from {
        opacity: .6
    }

    to {
        opacity: 1
    }
}

:where(html.joydigi) .sheet-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: var(--sign);
    color: #fff;
    padding-block: 10px;
    border-bottom: 3px solid var(--sign-2);
    position: relative
}

:where(html.joydigi) .sheet-head::before,
:where(html.joydigi) .sheet-head::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 5px;
    height: 5px;
    background: var(--gold);
    box-shadow: 0 0 0 1px var(--ink)
}

:where(html.joydigi) .sheet-head::before {
    left: 5px
}

:where(html.joydigi) .sheet-head::after {
    right: 5px
}

:where(html.joydigi) .sheet-head h2 {
    margin: 0;
    font-family: var(--font-sign);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: .03em;
    text-wrap: balance;
    line-height: 1.15
}

:where(html.joydigi) .sheet-head .sub {
    font-size: 11.5px;
    opacity: .9
}

:where(html.joydigi) .back-btn {
    border: 2px solid var(--ink);
    border-bottom-width: 4px;
    background: var(--paper);
    color: var(--ink);
    padding: 4px 10px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .sheet-body {
    overflow-y: auto;
    padding-block: 12px 24px;
    display: grid;
    gap: 10px;
    align-content: start;
    padding-bottom: 24px
}

:where(html.joydigi) .seg {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

:where(html.joydigi) .seg button {
    border: 2px solid var(--ink);
    background: var(--card);
    padding: 4px 12px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .seg button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper)
}

:where(html.joydigi) .sec-title {
    margin: 4px 0 0;
    font-family: var(--font-sign);
    font-weight: 400;
    font-size: 13px;
    color: var(--sign-2);
    letter-spacing: .03em
}

:where(html.joydigi) .note {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted)
}

:where(html.joydigi) .warnline {
    margin: 0;
    color: var(--chair-2);
    font-weight: 700;
    font-size: 12.5px
}

:where(html.joydigi) .goldline {
    margin: 0;
    color: #8a6a00;
    font-weight: 800
}

:where(html.joydigi) .card {
    background: var(--card);
    border: 2px solid var(--ink);
    padding: 10px;
    display: grid;
    gap: 8px;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .card.locked {
    background: #eef2f2;
    border-style: dashed;
    clip-path: none
}

:where(html.joydigi) .card.hot {
    background: #fff8db
}

:where(html.joydigi) .card.flash {
    animation: flash 1.2s ease-out 2
}

@keyframes flash {
    0% {
        background: #ffe58a
    }

    100% {
        background: var(--card)
    }
}

:where(html.joydigi) .card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start
}

:where(html.joydigi) .card h4 {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.25
}

:where(html.joydigi) .card p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-2)
}

:where(html.joydigi) .lv {
    font-family: var(--font-sign);
    font-size: 11px;
    color: var(--sign-2);
    white-space: nowrap
}

:where(html.joydigi) .kv {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    font-size: 12.5px;
    margin: 0
}

:where(html.joydigi) .kv dt {
    color: var(--muted)
}

:where(html.joydigi) .kv dd {
    margin: 0;
    font-weight: 600;
    min-width: 0
}

:where(html.joydigi) .effect {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
    font-weight: 700
}

:where(html.joydigi) .effect .arrow {
    color: var(--muted)
}

:where(html.joydigi) .effect .next {
    color: var(--leaf-2)
}

:where(html.joydigi) .meter {
    height: 7px;
    background: var(--tole-2);
    overflow: hidden
}

:where(html.joydigi) .meter>i {
    display: block;
    height: 100%;
    background: var(--sign)
}

:where(html.joydigi) .btn {
    border: 2px solid var(--ink);
    border-bottom-width: 5px;
    padding: 7px 14px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    background: var(--chair);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .btn.alt {
    background: var(--straw);
    color: var(--ink)
}

:where(html.joydigi) .btn.ok {
    background: var(--leaf)
}

:where(html.joydigi) .btn.ghost {
    background: var(--card);
    color: var(--ink)
}

:where(html.joydigi) .btn.wide {
    width: 100%
}

:where(html.joydigi) .btn:active {
    transform: translateY(3px);
    border-bottom-width: 2px
}

:where(html.joydigi) .btn:disabled {
    background: #b9c3c5;
    color: #5b686b;
    cursor: not-allowed
}

:where(html.joydigi) .btn .cost {
    font-family: var(--font-sign);
    font-weight: 400;
    font-variant-numeric: tabular-nums
}

:where(html.joydigi) .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

:where(html.joydigi) .lock-line {
    font-size: 12px;
    font-weight: 700;
    color: #8b4626;
    display: flex;
    align-items: center;
    gap: 4px
}

:where(html.joydigi) .stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px
}

:where(html.joydigi) .stat {
    background: var(--card);
    border: 2px solid var(--ink);
    padding: 6px 8px;
    display: grid;
    gap: 1px;
    min-width: 0;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .stat small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

:where(html.joydigi) .stat b {
    font-family: var(--font-sign);
    font-weight: 400;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

:where(html.joydigi) .toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

:where(html.joydigi) .switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex: none
}

:where(html.joydigi) .switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer
}

:where(html.joydigi) .switch i {
    position: absolute;
    inset: 0;
    background: #b9c3c5;
    border: 2px solid var(--ink);
    transition: background .15s;
    pointer-events: none
}

:where(html.joydigi) .switch i::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--paper);
    border: 2px solid var(--ink);
    transition: transform .15s
}

:where(html.joydigi) .switch input:checked+i {
    background: var(--leaf)
}

:where(html.joydigi) .switch input:checked+i::after {
    transform: translateX(22px)
}

:where(html.joydigi) .switch input:focus-visible+i {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

:where(html.joydigi) .switch input:disabled+i {
    opacity: .5
}

:where(html.joydigi) textarea {
    width: 100%;
    min-height: 70px;
    font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace;
    border: 2px solid var(--ink);
    padding: 6px;
    background: #fff;
    color: var(--ink);
    resize: vertical
}

:where(html.joydigi) .bul {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    display: grid;
    gap: 3px
}

:where(html.joydigi) .tier-pin {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-family: var(--font-sign);
    background: var(--tole-2);
    border: 2px solid var(--ink)
}

:where(html.joydigi) .tier-pin.done {
    background: var(--leaf);
    color: #fff
}

:where(html.joydigi) .pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

:where(html.joydigi) .piece {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border: 1px dashed #9aa7aa;
    color: #9aa7aa;
    background: #f0f3f3
}

:where(html.joydigi) .piece.got {
    border: 1px solid var(--ink);
    color: var(--ink);
    background: #fff6cf
}

:where(html.joydigi) .chest-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

:where(html.joydigi) .chest-btn {
    display: grid;
    justify-items: center;
    gap: 2px;
    border: 2px solid var(--ink);
    border-bottom-width: 4px;
    background: #fff8db;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .chest-btn b {
    color: var(--chair-2)
}

:where(html.joydigi) .mekong {
    position: relative;
    height: 180px;
    background: linear-gradient(160deg, #b9dca0 0%, #9cc884 60%, #86b874 100%);
    border: 2px solid var(--ink);
    overflow: hidden
}

:where(html.joydigi) .mekong::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: 40%;
    height: 18px;
    background: #3e8fae;
    transform: rotate(-14deg);
    box-shadow: 0 34px 0 -4px #3e8fae
}

:where(html.joydigi) .mekong .pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 2px solid var(--ink);
    font-family: var(--font-sign);
    font-size: 11px;
    z-index: 1
}

:where(html.joydigi) .mekong .pin.open {
    background: var(--chair);
    color: #fff
}

:where(html.joydigi) .mekong .pin.hq {
    background: var(--gold)
}

:where(html.joydigi) .kol-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px
}

:where(html.joydigi) .kol-card {
    border: 2px solid var(--ink);
    background: var(--card);
    padding: 6px;
    display: grid;
    gap: 3px;
    justify-items: center;
    text-align: center;
    cursor: pointer;
    min-width: 0;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .kol-card .nm {
    font-weight: 800;
    font-size: 11.5px;
    line-height: 1.2;
    min-height: 2.4em;
    display: grid;
    place-items: center;
    overflow-wrap: anywhere
}

:where(html.joydigi) .kol-card .st {
    font-size: 10px;
    color: var(--muted)
}

:where(html.joydigi) .kol-card.dev {
    background: #eef2f2
}

:where(html.joydigi) .kol-card.slot {
    background: transparent;
    border-style: dashed;
    color: var(--muted);
    clip-path: none
}

:where(html.joydigi) .silhouette {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: var(--tole-2);
    font-family: var(--font-sign);
    font-size: 22px;
    color: #8a9799
}

:where(html.joydigi) .map {
    display: grid;
    gap: 0;
    position: relative
}

:where(html.joydigi) .map-node {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    position: relative;
    padding-bottom: 14px
}

:where(html.joydigi) .map-node::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 34px;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(#3e8fae 0 6px, transparent 6px 10px)
}

:where(html.joydigi) .map-node:last-child::before {
    display: none
}

:where(html.joydigi) .map-pin {
    width: 40px;
    height: 40px;
    border: 2px solid var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--font-sign);
    font-size: 16px;
    background: var(--card);
    z-index: 1;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .map-pin.here {
    background: var(--chair);
    color: #fff
}

:where(html.joydigi) .map-pin.done {
    background: var(--leaf);
    color: #fff
}

:where(html.joydigi) .rank-row {
    cursor: default;
    grid-template-columns: 44px minmax(0, 1fr) auto
}

:where(html.joydigi) .rank-row.me {
    background: #fff3c4;
    border-color: var(--gold-2)
}

:where(html.joydigi) .rank-no {
    font-family: var(--font-sign);
    font-size: 14px;
    text-align: center;
    color: var(--ink-2)
}

:where(html.joydigi) .rank-no.big {
    font-size: 22px;
    min-width: 52px
}

:where(html.joydigi) .rank-no.top1 {
    color: #b8860b
}

:where(html.joydigi) .rank-no.top2 {
    color: #7d8a8f
}

:where(html.joydigi) .rank-no.top3 {
    color: #a0522d
}

:where(html.joydigi) .rank-row .rank-no.top1,
:where(html.joydigi) .rank-row .rank-no.top2,
:where(html.joydigi) .rank-row .rank-no.top3 {
    background: var(--ink);
    color: var(--gold);
    clip-path: var(--px-clip);
    padding: 2px 0
}

:where(html.joydigi) .rank-row .rank-no.top2 {
    color: #dfe6e8
}

:where(html.joydigi) .rank-row .rank-no.top3 {
    color: #f0b48a
}

:where(html.joydigi) .rank-score {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 13.5px
}

:where(html.joydigi) .me-tag {
    margin-left: 6px;
    font-size: 10.5px;
    line-height: 1.5;
    font-weight: 800;
    background: var(--ink);
    color: var(--gold);
    padding: 0 5px;
    vertical-align: 1px
}

:where(html.joydigi) .rank-gap {
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: .2em;
    line-height: 1
}

:where(html.joydigi) .inp.code {
    letter-spacing: .25em;
    font-variant-numeric: tabular-nums;
    font-weight: 700
}

:where(html.joydigi) .owner-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    background: var(--card);
    border: 2px solid var(--ink);
    padding: 6px 8px;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .owner-line .owner-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

:where(html.joydigi) .owner-line .linkbtn {
    padding: 0
}

:where(html.joydigi) .row .l1.wrap,
:where(html.joydigi) .row .l2.wrap {
    white-space: normal;
    overflow-wrap: anywhere
}

:where(html.joydigi) textarea.inp {
    font: inherit;
    font-size: 16px;
    min-height: 76px
}

:where(html.joydigi) .news-card {
    background: #fff3d6
}

:where(html.joydigi) .news-card p,
:where(html.joydigi) .news-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

:where(html.joydigi) .news-text {
    font-size: 15px;
    line-height: 1.45;
    margin: 0
}

:where(html.joydigi) .note.warn {
    color: #a8322b
}

/* dialogs */
:where(html.joydigi) .dialog {
    position: fixed;
    z-index: 40;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(100%, var(--col));
    padding-bottom: calc(10px + var(--safe-b));
    display: grid;
    gap: 8px
}

:where(html.joydigi) .dialog-dim {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: linear-gradient(rgba(21, 58, 67, 0) 30%, rgba(21, 58, 67, .72) 55%, rgba(21, 58, 67, .82))
}

:where(html.joydigi) .dlg-box {
    background: var(--card);
    border: 2px solid var(--ink);
    border-bottom-width: 5px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    min-height: 132px;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .dlg-portrait {
    width: 96px;
    height: 96px;
    border: 2px solid var(--ink);
    background: var(--straw);
    display: grid;
    place-items: end center;
    overflow: hidden
}

:where(html.joydigi) .dlg-portrait.sys {
    background: var(--sign)
}

:where(html.joydigi) .dlg-portrait.rival {
    background: #f0b4a8
}

:where(html.joydigi) .dlg-portrait.kol {
    background: #9fd8d3
}

:where(html.joydigi) .dlg-name {
    display: inline-block;
    font-family: var(--font-sign);
    font-size: 13px;
    color: var(--paper);
    background: var(--ink);
    padding: 1px 8px;
    margin-bottom: 6px;
    letter-spacing: .03em
}

:where(html.joydigi) .dlg-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    min-height: 4.5em;
    text-wrap: pretty
}

:where(html.joydigi) .dlg-next {
    justify-self: end;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .05em
}

:where(html.joydigi) .dlg-title {
    justify-self: start;
    font-family: var(--font-sign);
    font-size: 11px;
    color: var(--paper);
    background: var(--sign);
    border: 2px solid var(--ink);
    padding: 2px 8px
}

:where(html.joydigi) .dlg-skip {
    justify-self: end;
    border: 0;
    background: transparent;
    color: var(--paper);
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    opacity: .85
}

:where(html.joydigi) .choices {
    display: grid;
    gap: 6px
}

:where(html.joydigi) .choices .prompt {
    background: var(--ink);
    color: var(--paper);
    padding: 10px 12px;
    font-weight: 700;
    font-size: 14px;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .choice {
    text-align: left;
    border: 2px solid var(--ink);
    border-bottom-width: 5px;
    background: var(--straw);
    padding: 10px 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .choice:active {
    transform: translateY(3px);
    border-bottom-width: 2px
}

/* modal-toast */
:where(html.joydigi) .modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(21, 58, 67, .7);
    padding: max(16px, var(--sa-t)) max(16px, var(--sa-r)) max(16px, var(--safe-b)) max(16px, var(--sa-l))
}

:where(html.joydigi) .modal-card {
    width: min(100%, 400px);
    max-height: calc(100% - 20px);
    overflow-y: auto;
    background: var(--card);
    border: 2px solid var(--ink);
    border-bottom-width: 6px;
    display: grid;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .modal-card header {
    background: var(--sign);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 3px solid var(--sign-2)
}

:where(html.joydigi) .modal-card header h2 {
    margin: 0;
    font-family: var(--font-sign);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.15
}

:where(html.joydigi) .modal-card .body {
    padding: 14px;
    display: grid;
    gap: 10px
}

:where(html.joydigi) .big-money {
    font-family: var(--font-sign);
    font-size: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums
}

:where(html.joydigi) .ledger {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 6px
}

:where(html.joydigi) .ledger .book {
    animation: hop .6s ease-in-out 3 alternate
}

:where(html.joydigi) .surprise {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff8db;
    border: 2px dashed var(--gold-2);
    padding: 6px 8px;
    font-size: 13px
}

:where(html.joydigi) .chest-stage {
    display: grid;
    place-items: center;
    min-height: 120px
}

:where(html.joydigi) .chest-stage.shake .icon {
    animation: chestshake .3s ease-in-out 3
}

@keyframes chestshake {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(-8deg)
    }

    75% {
        transform: rotate(8deg)
    }
}

:where(html.joydigi) .chest-stage.burst {
    background: radial-gradient(circle, rgba(255, 238, 160, .95) 0 30%, transparent 62%)
}

:where(html.joydigi) .chest-stage.burst.hiem {
    background: radial-gradient(circle, rgba(160, 210, 255, .95) 0 30%, transparent 62%)
}

:where(html.joydigi) .chest-stage.burst.huyen_thoai {
    background: radial-gradient(circle, rgba(220, 170, 255, .95) 0 30%, transparent 62%)
}

:where(html.joydigi) .chest-tier {
    margin: 0;
    font-family: var(--font-sign);
    font-weight: 400;
    text-align: center
}

:where(html.joydigi) .chest-tier.hiem {
    color: var(--sign-2)
}

:where(html.joydigi) .chest-tier.huyen_thoai {
    color: var(--violet)
}

:where(html.joydigi) body.sheet-open #toasts {
    bottom: calc(var(--safe-b) + 8px)
}

:where(html.joydigi) #toasts {
    position: fixed;
    z-index: 60;
    bottom: var(--toast-bottom, calc(var(--tabbar-h) + 8px));
    left: var(--toast-left, 50%);
    transform: translateX(-50%);
    width: var(--toast-w, min(calc(100% - 24px), 420px));
    display: grid;
    gap: 4px;
    pointer-events: none
}

:where(html.joydigi) .toast {
    background: var(--ink);
    color: var(--paper);
    padding: 6px 10px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #5a4641;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    animation: tin .2s ease-out;
    display: flex;
    gap: 8px;
    align-items: center;
    clip-path: var(--px-clip)
}

:where(html.joydigi) .toast .tx {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0
}

:where(html.joydigi) .toast.warn {
    background: #7a2a1e
}

:where(html.joydigi) .toast.good {
    background: #24521f
}

@keyframes tin {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* responsive */
@media (max-height: 700px) {
    :where(html.joydigi) .row {
        padding-block: 3px
    }

    :where(html.joydigi) .board {
        gap: 4px;
        padding-top: 5px
    }

    :where(html.joydigi) .board h3 {
        display: none
    }

    :where(html.joydigi) .row .l1 {
        font-size: 12.5px
    }

    :where(html.joydigi) .bay-card {
        padding-block: 3px
    }

    :where(html.joydigi) .bay-card .row-btn.tap {
        min-height: 40px
    }

    :where(html.joydigi) .bay-dock {
        gap: 4px
    }
}

@media (prefers-reduced-motion: reduce) {

    :where(html.joydigi) *,
    :where(html.joydigi) *::before,
    :where(html.joydigi) *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important
    }
}

@media (pointer: coarse) {
    :where(html.joydigi) .row-btn {
        min-height: 40px;
        min-width: 52px;
        padding-inline: 10px
    }

    :where(html.joydigi) .row .btns {
        gap: 10px
    }

    :where(html.joydigi) .btn {
        min-height: 42px
    }

    :where(html.joydigi) .back-btn {
        min-height: 40px;
        padding-inline: 12px
    }

    :where(html.joydigi) .seg {
        gap: 8px
    }

    :where(html.joydigi) .seg button {
        min-height: 40px
    }

    :where(html.joydigi) .chip,
    :where(html.joydigi) .row.diagq .diag .chip {
        min-height: 40px;
        padding-inline: 10px
    }

    :where(html.joydigi) .row.diagq .extra.diag,
    :where(html.joydigi) .inc-opts {
        gap: 8px
    }

    :where(html.joydigi) .choice-sm {
        min-height: 42px
    }

    :where(html.joydigi) .hud-btn {
        width: 44px;
        height: 40px
    }

    :where(html.joydigi) .tabbar {
        gap: 6px
    }

    :where(html.joydigi) .linkbtn {
        padding: 10px 6px;
        margin: -10px -6px
    }

    :where(html.joydigi) .owner-line .linkbtn {
        padding: 10px 6px
    }

    :where(html.joydigi) .switch::before {
        content: "";
        position: absolute;
        inset: -8px -6px
    }
}

:where(html.joydigi) .row-btn.armed,
:where(html.joydigi) .dlg-skip.armed {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--ink);
    opacity: 1
}

:where(html.joydigi) .dlg-skip.armed {
    padding: 2px 8px;
    border: 2px solid var(--ink)
}

@media (pointer: coarse) {
    :where(html.joydigi) .dlg-skip {
        padding: 10px 8px;
        margin-top: -4px;
        font-size: 12px
    }
}
/* Smooth 3D chibi artwork. */
:where(html.joydigi) .px {
    image-rendering: auto;
}
