/*
 * Mini-games in the new design (owner, 2026-11-08: "их нужно адаптировать под новый дизайн и сделать
 * гипервизуализацию"). Loaded by app/Views/games/_nn.php after hanzo.css and the game's own sheet; the
 * frames and plates are the market's (card-frame-60, button-plate), the colours frame.css's --k-*.
 * Effects that need script (embers, tilt, score pops) are in newnew/js/games-fx.js.
 */

.is-legacy .page-shell .hanzo {
    --gx-gold: var(--k-gold, #d9a94e);
    --gx-gold2: var(--k-gold2, #f5d48a);
    --gx-red: var(--k-red2, #9c1c22);
    --gx-card: var(--k-card, #141215);
    --gx-mute: var(--k-mute, #a89f91);
    --hz-line: rgba(217, 169, 78, .28);
    --hz-card: rgba(20, 18, 21, .92);
    position: relative;
    isolation: isolate;
}

/* The embers canvas sits under everything in the panel. */
.is-legacy .page-shell .hanzo > .gx-embers {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .85;
}

.is-legacy .page-shell .hanzo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(156, 28, 34, .22), transparent 70%),
        radial-gradient(40% 30% at 85% 100%, rgba(217, 169, 78, .10), transparent 70%);
}

/* ---- Titles ---- */
.is-legacy .page-shell .hanzo h1,
.is-legacy .page-shell .hanzo h2,
.is-legacy .page-shell .hanzo .gx-title,
.is-legacy .page-shell .hanzo .hanzo__menutitle {
    font-family: var(--font-title, 'Exo 2', Inter, Arial, sans-serif);
    letter-spacing: .04em;
}

.is-legacy .page-shell .hanzo h2 {
    text-transform: uppercase;
    font-size: 15px;
    color: var(--gx-gold2);
}

.is-legacy .page-shell .hanzo .hanzo__menutitle,
.is-legacy .page-shell .hanzo .gx-title {
    text-transform: uppercase;
    background: linear-gradient(180deg, #fffaf0 0%, #ffe6a6 35%, #f5c96a 65%, #e0a648 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* hanzo.css's dark text-shadow would show through the clear glyphs; the glow is the filter's. */
    text-shadow: none;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 22px rgba(245, 190, 90, .55));
}

/* The menu over the board and the "how to play" rows: square, gold-edged, lit on hover. */
.is-legacy .page-shell .hanzo .hanzo__menu {
    border-radius: 0;
    border-color: rgba(217, 169, 78, .4);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, .55), 0 0 30px rgba(156, 28, 34, .2);
}

.is-legacy .page-shell .hanzo .hanzo__how {
    border-radius: 0;
    border-color: rgba(217, 169, 78, .22);
    background: linear-gradient(90deg, rgba(156, 28, 34, .12), rgba(0, 0, 0, .25) 45%);
    transition: border-color .2s, background .2s, transform .2s;
}

.is-legacy .page-shell .hanzo .hanzo__how:hover {
    border-color: rgba(245, 212, 138, .6);
    background: linear-gradient(90deg, rgba(156, 28, 34, .28), rgba(0, 0, 0, .25) 55%);
    transform: translateX(3px);
}

.is-legacy .page-shell .hanzo .hanzo__howpic {
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(217, 169, 78, .25), inset 0 0 24px rgba(0, 0, 0, .6);
}

/* ---- Framed cards (the market's frame) ---- */
.is-legacy .page-shell .hanzo .hanzo__card,
.is-legacy .page-shell .hanzo .hanzo__rules,
.is-legacy .page-shell .hanzo .hanzo__modal-box {
    position: relative;
    border: 6px solid transparent;
    border-image: url(../images/card-frame-60.webp) 60 / 60px stretch;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%) padding-box,
        var(--gx-card) padding-box;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.is-legacy .page-shell .hanzo .hanzo__modal-box {
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35), 0 30px 80px rgba(0, 0, 0, .8), 0 0 60px rgba(217, 169, 78, .18);
    animation: gx-rise .28s cubic-bezier(.2, .9, .3, 1.2);
}

.is-legacy .page-shell .hanzo .hanzo__toast {
    border: 1px solid rgba(217, 169, 78, .55);
    border-radius: 0;
    background: linear-gradient(180deg, #1d181a, #110e10);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .7), 0 0 24px rgba(217, 169, 78, .2);
    font-weight: 600;
    animation: gx-rise .25s ease-out;
}

/* ---- Buttons: the red plate for the big ones, a gold-edged dark plate for the rest ---- */
.is-legacy .page-shell .hanzo .hanzo__btn {
    position: relative;
    border: 1px solid rgba(217, 169, 78, .45);
    border-radius: 0;
    background: linear-gradient(180deg, #2a2125, #161214);
    color: var(--gx-gold2);
    font-family: var(--font-title, 'Exo 2', Inter, Arial, sans-serif);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: 13px;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    padding: 9px 20px;
    transition: filter .15s, transform .15s, box-shadow .15s;
}

.is-legacy .page-shell .hanzo .hanzo__btn:hover:not(:disabled) {
    filter: brightness(1.25);
    border-color: var(--gx-gold2);
}

.is-legacy .page-shell .hanzo .hanzo__btn:active:not(:disabled) {
    transform: translateY(1px) scale(.98);
}

.is-legacy .page-shell .hanzo .hanzo__btn--big,
.is-legacy .page-shell .hanzo .hanzo__btn--gold {
    border: 0;
    border-image: url(../images/button-plate.webp) 40 130 fill / 19px 34px / 0 stretch;
    clip-path: none;
    background: none;
    color: #fff;
    font-size: 16px;
    padding: 14px 44px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
    filter: drop-shadow(0 6px 14px rgba(156, 28, 34, .45));
}

.is-legacy .page-shell .hanzo .hanzo__btn--big:hover:not(:disabled),
.is-legacy .page-shell .hanzo .hanzo__btn--gold:hover:not(:disabled) {
    filter: brightness(1.2) drop-shadow(0 0 18px rgba(255, 120, 80, .55));
}

.is-legacy .page-shell .hanzo .hanzo__btn--big.hanzo__btn--ghost {
    border: 1px solid rgba(217, 169, 78, .4);
    border-image: none;
    background: rgba(0, 0, 0, .35);
    color: var(--gx-gold2);
    font-size: 14px;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
    filter: none;
}

.is-legacy .page-shell .hanzo .hanzo__btn[data-danger] {
    color: #ff9a8a;
    border-color: rgba(220, 70, 60, .55);
}

/* ---- Bars: gold fill with a running shine ---- */
.is-legacy .page-shell .hanzo .hanzo__bar {
    border-radius: 0;
    background: rgba(0, 0, 0, .45);
    box-shadow: inset 0 0 0 1px rgba(217, 169, 78, .25), inset 0 2px 6px rgba(0, 0, 0, .6);
}

.is-legacy .page-shell .hanzo .hanzo__bar i {
    background: linear-gradient(90deg, #8f6f35, #d9a94e 55%, #f5d48a);
    box-shadow: 0 0 12px rgba(245, 212, 138, .55);
    overflow: hidden;
}

.is-legacy .page-shell .hanzo .hanzo__bar i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    background-size: 220% 100%;
    animation: gx-sweep 2.6s linear infinite;
}

/* ---- Start screen of a game: the menu box glows over the dimmed board ---- */
.is-legacy .page-shell .hanzo .hanzo__menubox {
    position: relative;
}

.is-legacy .page-shell .hanzo .hanzo__menuicon {
    animation: gx-float 4.5s ease-in-out infinite;
    filter: drop-shadow(0 0 22px rgba(245, 212, 138, .45)) drop-shadow(0 10px 18px rgba(0, 0, 0, .7));
}

.is-legacy .page-shell .hanzo .hanzo__demo {
    filter: saturate(1.15);
}

/* ---- Game of the week line and strip ---- */
.is-legacy .page-shell .hanzo .gotw-line,
.is-legacy .page-shell .hanzo .gotw-strip {
    border-radius: 0;
    border: 1px solid rgba(217, 169, 78, .4);
    background: linear-gradient(90deg, rgba(156, 28, 34, .35), rgba(20, 18, 21, .9) 40%, rgba(20, 18, 21, .9) 60%, rgba(156, 28, 34, .35));
    box-shadow: 0 0 22px rgba(156, 28, 34, .25);
}

.is-legacy .page-shell .hanzo .gotw-badge {
    border-radius: 0;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
    background: linear-gradient(180deg, #f5d48a, #b8832f);
    color: #241606;
    animation: gx-pulse 2.4s ease-in-out infinite;
}

/* ---- Mastery tree ---- */
.is-legacy .page-shell .hanzo .hanzo__skill.is-on b {
    color: var(--gx-gold2);
    text-shadow: 0 0 10px rgba(245, 212, 138, .5);
}

/* ---- Hanzo: the workshop board, the hand and the trash ---- */
.is-legacy .page-shell .hanzo .hanzo__board {
    border-radius: 0;
    box-shadow:
        0 0 0 1px rgba(217, 169, 78, .45),
        0 0 0 5px rgba(0, 0, 0, .6),
        0 0 0 6px rgba(217, 169, 78, .22),
        0 0 46px rgba(156, 28, 34, .35),
        inset 0 0 70px rgba(0, 0, 0, .75);
    background:
        radial-gradient(70% 60% at 50% 45%, rgba(217, 169, 78, .07), transparent 70%),
        #080808;
}

.is-legacy .page-shell .hanzo .hanzo__handbox {
    border: 6px solid transparent;
    border-image: url(../images/card-frame-60.webp) 60 / 60px stretch;
    border-radius: 0;
    background: var(--gx-card) padding-box;
}

.is-legacy .page-shell .hanzo .hanzo__slot,
.is-legacy .page-shell .hanzo .hanzo__trash {
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(217, 169, 78, .25), inset 0 0 26px rgba(0, 0, 0, .65);
    transition: box-shadow .2s, transform .2s;
}

.is-legacy .page-shell .hanzo .hanzo__slot:hover {
    box-shadow: inset 0 0 0 1px rgba(245, 212, 138, .7), inset 0 0 26px rgba(0, 0, 0, .5), 0 0 18px rgba(245, 212, 138, .25);
    transform: translateY(-2px);
}

.is-legacy .page-shell .hanzo .hanzo__slot img {
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .7));
}

.is-legacy .page-shell .hanzo .hanzo__item img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7));
}

/* ---- Jewels: deeper sockets, a lit selection ---- */
.is-legacy .page-shell .hanzo .jm__board {
    box-shadow: 0 0 0 1px rgba(217, 169, 78, .3), 0 0 40px rgba(120, 60, 200, .18), inset 0 0 60px rgba(0, 0, 0, .6);
}

.is-legacy .page-shell .hanzo .jm__cell {
    transition: transform .12s ease, filter .12s ease;
}

.is-legacy .page-shell .hanzo .jm__cell:hover {
    transform: scale(1.07);
    filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 255, 255, .35));
    z-index: 2;
}

/* ---- Score pops (games-fx.js) ---- */
.gx-pop {
    position: fixed;
    z-index: 70;
    pointer-events: none;
    font-family: var(--font-title, 'Exo 2', Inter, Arial, sans-serif);
    font-weight: 800;
    font-size: 22px;
    color: #f5d48a;
    text-shadow: 0 2px 0 #000, 0 0 14px rgba(245, 212, 138, .8);
    animation: gx-popup 1.1s ease-out forwards;
}

.gx-bump {
    animation: gx-bump .45s cubic-bezier(.2, .9, .3, 1.4);
}

.gx-spark {
    position: fixed;
    z-index: 69;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, #fff, #f5d48a 40%, rgba(217, 169, 78, 0) 70%);
}

/* ================= The /games hub ================= */
.is-legacy .page-shell .gx-hub__head {
    text-align: center;
    margin: 4px auto 18px;
    max-width: 760px;
}

.is-legacy .page-shell .gx-hub__ornament {
    display: block;
    width: 220px;
    height: 26px;
    margin: 0 auto 6px;
    background: url(../images/title-ornament.webp) center / contain no-repeat;
    opacity: .9;
}

.is-legacy .page-shell .hanzo .gx-title {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.is-legacy .page-shell .gx-hub__head p {
    margin: 0;
    color: var(--gx-mute);
}

.is-legacy .page-shell .gx-hub .gotw-line {
    margin: 0 auto 22px;
    max-width: 980px;
}

.is-legacy .page-shell .gx-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    perspective: 1200px;
}

.is-legacy .page-shell .gx-game {
    --gx-tone: 217, 169, 78;
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: var(--k-text, #f2e8d5);
    text-decoration: none;
    background: var(--gx-card);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .55);
    animation: gx-rise .6s cubic-bezier(.2, .9, .3, 1) both;
}

.is-legacy .page-shell .gx-game:nth-child(2) { animation-delay: .08s; }
.is-legacy .page-shell .gx-game:nth-child(3) { animation-delay: .16s; }
.is-legacy .page-shell .gx-game:nth-child(4) { animation-delay: .24s; }

.is-legacy .page-shell .gx-game--violet { --gx-tone: 170, 110, 255; }
.is-legacy .page-shell .gx-game--blood { --gx-tone: 230, 50, 50; }

/* The market frame drawn over the card, so the art runs under its corners. */
.is-legacy .page-shell .gx-game::after {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: 3;
    border: 6px solid transparent;
    border-image: url(../images/card-frame-60.webp) 60 / 60px stretch;
    pointer-events: none;
}

/* The light that follows the mouse. */
.is-legacy .page-shell .gx-game::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--gx-tone), .22), transparent 45%);
    opacity: 0;
    transition: opacity .25s;
}

.is-legacy .page-shell .gx-game:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, .7), 0 0 46px rgba(var(--gx-tone), .35);
}

.is-legacy .page-shell .gx-game:hover::before {
    opacity: 1;
}

.is-legacy .page-shell .gx-game__art {
    position: relative;
    display: block;
    aspect-ratio: 920 / 403;
    overflow: hidden;
    background: #0b0a0c;
}

.is-legacy .page-shell .gx-game__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .6s ease, filter .6s ease;
    filter: saturate(1.05) contrast(1.05);
}

.is-legacy .page-shell .gx-game:hover .gx-game__art img {
    transform: scale(1.09);
    filter: saturate(1.25) contrast(1.1) brightness(1.08);
}

.is-legacy .page-shell .gx-game__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, var(--gx-card) 100%);
}

.is-legacy .page-shell .gx-game__shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 150% 0;
}

.is-legacy .page-shell .gx-game:hover .gx-game__shine {
    animation: gx-sheen .9s ease-out;
}

.is-legacy .page-shell .gx-game__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: -44px;
    padding: 0 22px 22px;
    transform: translateZ(30px);
}

.is-legacy .page-shell .gx-game__icon {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(var(--gx-tone), .55)) drop-shadow(0 8px 12px rgba(0, 0, 0, .8));
    animation: gx-float 5s ease-in-out infinite;
}

.is-legacy .page-shell .gx-game:nth-child(2) .gx-game__icon { animation-delay: -1.6s; }
.is-legacy .page-shell .gx-game:nth-child(3) .gx-game__icon { animation-delay: -3.1s; }

.is-legacy .page-shell .gx-game__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.is-legacy .page-shell .gx-game__title {
    font-family: var(--font-title, 'Exo 2', Inter, Arial, sans-serif);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gx-gold2);
    text-shadow: 0 2px 0 #000, 0 0 18px rgba(var(--gx-tone), .45);
}

.is-legacy .page-shell .gx-game__intro {
    color: var(--gx-mute);
    font-size: 14px;
    line-height: 1.45;
}

.is-legacy .page-shell .gx-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 44px;
    padding: 0 26px;
    border: 0;
    border-image: url(../images/button-plate.webp) 40 130 fill / 19px 34px / 0 stretch;
    color: #fff;
    font-family: var(--font-title, 'Exo 2', Inter, Arial, sans-serif);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
    filter: drop-shadow(0 6px 12px rgba(156, 28, 34, .5));
    transition: filter .2s, transform .2s;
}

.is-legacy .page-shell .gx-game:hover .gx-plate {
    filter: brightness(1.2) drop-shadow(0 0 16px rgba(255, 110, 70, .6));
    transform: scale(1.05);
}

.is-legacy .page-shell .gx-plate--dark {
    border: 1px solid rgba(217, 169, 78, .5);
    border-image: none;
    background: linear-gradient(180deg, #2a2125, #161214);
    color: var(--gx-gold2);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
    filter: none;
}

/* Game of the week: a living gold aura and a ribbon. */
.is-legacy .page-shell .gx-game.is-gotw {
    box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 212, 138, .6), 0 0 38px rgba(245, 212, 138, .35);
    animation: gx-rise .6s cubic-bezier(.2, .9, .3, 1) both, gx-aura 3s ease-in-out .6s infinite;
}

.is-legacy .page-shell .gx-game__ribbon {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    padding: 6px 16px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #f5d48a, #b8832f);
    color: #241606;
    font-family: var(--font-title, 'Exo 2', Inter, Arial, sans-serif);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
}

/* The leaderboard card: a podium instead of a banner. */
.is-legacy .page-shell .gx-game__podium {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 920 / 403;
    padding-bottom: 50px;
    background:
        radial-gradient(50% 70% at 50% 100%, rgba(217, 169, 78, .35), transparent 70%),
        linear-gradient(180deg, #1b1416, #0f0c0e);
    overflow: hidden;
}

.is-legacy .page-shell .gx-game__podium img {
    width: 22%;
    max-width: 120px;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .8));
    transition: transform .4s ease;
}

.is-legacy .page-shell .gx-game__podium img:nth-child(2) {
    width: 30%;
    max-width: 160px;
    filter: drop-shadow(0 0 24px rgba(245, 212, 138, .6)) drop-shadow(0 10px 14px rgba(0, 0, 0, .8));
    animation: gx-float 4s ease-in-out infinite;
}

.is-legacy .page-shell .gx-game--board:hover .gx-game__podium img:nth-child(1) { transform: translateY(-6px) rotate(-4deg); }
.is-legacy .page-shell .gx-game--board:hover .gx-game__podium img:nth-child(3) { transform: translateY(-6px) rotate(4deg); }

.is-legacy .page-shell .gx-game--board .gx-game__body {
    grid-template-columns: minmax(0, 1fr) auto;
}

/* ---- Keyframes ---- */
@keyframes gx-rise {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}

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

@keyframes gx-sweep {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

@keyframes gx-sheen {
    from { background-position: 150% 0; }
    to { background-position: -60% 0; }
}

@keyframes gx-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 6px rgba(245, 212, 138, .7)); }
}

@keyframes gx-aura {
    0%, 100% { box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 212, 138, .5), 0 0 26px rgba(245, 212, 138, .25); }
    50% { box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 212, 138, .9), 0 0 54px rgba(245, 212, 138, .5); }
}

@keyframes gx-popup {
    0% { opacity: 0; transform: translate(-50%, 6px) scale(.7); }
    18% { opacity: 1; transform: translate(-50%, -8px) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -54px) scale(1); }
}

@keyframes gx-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.28); color: #fff; text-shadow: 0 0 18px rgba(245, 212, 138, .9); }
    100% { transform: scale(1); }
}

/* ---- Phones ---- */
@media (max-width: 860px) {
    .is-legacy .page-shell .gx-hub__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .is-legacy .page-shell .gx-game {
        transform: none;
    }

    .is-legacy .page-shell .gx-game__body {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0 16px 18px;
        margin-top: -34px;
    }

    .is-legacy .page-shell .gx-game__body .gx-plate {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .is-legacy .page-shell .gx-game--board .gx-game__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .is-legacy .page-shell .gx-game__icon {
        width: 64px;
        height: 64px;
    }

    .is-legacy .page-shell .gx-game__title {
        font-size: 19px;
    }
}

/* A phone: a small icon by the title, so the text keeps the width. */
@media (max-width: 520px) {
    .is-legacy .page-shell .gx-game__body {
        gap: 12px;
        padding: 0 12px 16px;
    }

    .is-legacy .page-shell .gx-game__icon {
        width: 46px;
        height: 46px;
        align-self: start;
        margin-top: 4px;
    }
}
