/* tính năng mở rộng — Gấu Con du lịch Việt Nam (js/game-journey.js). Mọi lớp bắt đầu bằng gj-. */
body[data-scene="du-lich"] { --sky1: #19B5C9; --sky2: #D2F5F0; }
@media (min-width: 1040px) and (min-height: 561px) { body[data-scene="du-lich"] { --wide: 1280px; } }

/* thẻ ở trang chủ: tấm ảnh thật của một nơi đến */
.card .art > .gj-hcp { width: 2.3em; height: 1.75em; flex: none; object-fit: cover; border-radius: .26em; border: .09em solid #fff; box-shadow: 0 .09em 0 rgba(30, 42, 94, .25), 0 .2em .26em rgba(30, 42, 94, .3); }

/* hộp chung: cao đúng phần màn hình còn lại (js đặt height), mỗi màn tự chia chỗ bên trong */
.gj { position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; min-height: 240px; height: calc(var(--vh) - var(--bar) - 40px); }
.gj.gj-low { gap: 8px; }
.gj button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ---------- ảnh thật phủ kín khung; bên dưới là hình vẽ + tên (hiện khi chưa có ảnh) ---------- */
.gj-ph { position: absolute; inset: 0; display: block; overflow: hidden; container-type: size;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--teal)) 22%, #fff), color-mix(in srgb, var(--c, var(--teal)) 62%, #fff)); }
.gj-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.gj-ph-ok > img { opacity: 1; }
.gj-ph-fb { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2cqmin; padding: 4cqmin; text-align: center; font-size: 40cqmin; color: var(--navy); }
.gj-ph-fb b { font-size: max(12px, 11cqmin); line-height: 1.1; font-weight: 800; }
.gj-art { display: inline-block; width: 1.12em; height: 1.12em; vertical-align: middle; flex: none; }
.gj-art svg { display: block; width: 100%; height: 100%; }

/* nhãn tên nơi đến */
.gj-ribbon { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 20px); padding: 3px 16px 3px 8px;
  border-radius: 24px; background: linear-gradient(#fff 40%, #EEF2FB); border: 4px solid var(--c); box-shadow: 0 4px 0 rgba(30, 42, 94, .26), 0 8px 10px rgba(30, 42, 94, .22), inset 0 -3px 5px rgba(30, 42, 94, .08); color: var(--navy); text-align: left;
  font-weight: 800; font-size: clamp(1.05rem, 5cqmin + .45rem, 2rem); line-height: 1.1; pointer-events: none; }
.gj-ribbon .emo { font-size: 1.2em; }

/* ================= bản đồ ================= */
.gj-s-map.gj-land { flex-direction: row; }
.gj-sea { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; container-type: size; display: grid; place-items: center; overflow: hidden;
  border-radius: 28px; border: 5px solid #fff; box-shadow: var(--lift);
  background: radial-gradient(90% 60% at 80% 14%, rgba(196, 246, 255, .95) 0, rgba(196, 246, 255, 0) 62%), radial-gradient(90% 70% at 100% 100%, #1565B4 0, rgba(21, 101, 180, 0) 70%), linear-gradient(165deg, #74D8F3, #36A6E3 50%, #1F84CF); }
/* mép khay nước: tối dần vào trong, như mặt nước nằm thấp hơn thành khay */
.gj-sea::after { content: ""; position: absolute; inset: 0; z-index: 7; border-radius: 22px; pointer-events: none; box-shadow: inset 0 4px 10px rgba(6, 50, 100, .32), inset 0 0 36px rgba(6, 50, 100, .2); }
.gj-land .gj-sea { flex: 0 0 auto; height: 100%; width: auto; aspect-ratio: 2 / 3; }
.gj-mapbox { position: relative; width: min(100cqw, 100cqh * 2 / 3); height: min(100cqh, 100cqw * 3 / 2); container-type: size; touch-action: manipulation; cursor: pointer; }
.gj-svg { position: absolute; inset: 0; pointer-events: none; transform: translateZ(0); } /* lớp riêng: bộ lọc chiếu sáng chỉ phải tính một lần */
.gj-svg svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* mô hình nổi (js: mapSvg). Màu gradient ghi trong thẻ svg; ở đây chỉ có màu trơn, nét và độ trong. */
.gj-shoal path { fill: none; stroke: #C6F7F1; stroke-width: 30; stroke-linejoin: round; opacity: .62; }
.gj-nb { stroke: #FFF8DF; stroke-width: 1.4; stroke-linejoin: round; }
.gj-nb-side-lo { fill: #B99C5E; } .gj-nb-side-hi { fill: #D2B97C; }
.gj-waves path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; opacity: .62; }
.gj-waves .gj-wave-lo { stroke: #0E5AA8; stroke-width: 2.6; opacity: .22; }
.gj-vn-sh, .gj-isl-sh { fill: rgba(6, 40, 88, .5); }
.gj-vn-side-lo { fill: #8C6A43; } .gj-vn-side-hi { fill: #2E9156; }
.gj-vn, .gj-isl { stroke: #F3FBC9; stroke-width: 1.4; stroke-linejoin: round; }
.gj-beach { fill: none; stroke: #FFF4B8; stroke-width: 9; opacity: .7; }
.gj-forest { fill: #1F8F58; }
.gj-delta { fill: #E6F88E; opacity: .75; }
.gj-river-bed { fill: none; stroke: #2E8F63; stroke-width: 4.6; stroke-linecap: round; opacity: .55; }
.gj-river { fill: none; stroke: #A9EBFB; stroke-width: 2.4; stroke-linecap: round; }
.gj-zone { stroke: rgba(255, 255, 255, .75); stroke-width: 1.3; stroke-dasharray: 1.5 5; stroke-linecap: round; }
.gj-sand circle { stroke: #FFFDF0; stroke-width: .7; }
.gj-sea-name { font: italic 700 17px var(--font-ui); fill: #fff; opacity: .92; letter-spacing: .08em; }
.gj-isle-name { font: 800 21px var(--font-ui); fill: var(--navy); stroke: #fff; stroke-width: 5; stroke-linejoin: round; paint-order: stroke; }
.gj-route-bed { fill: none; stroke: rgba(20, 70, 60, .26); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.gj-route, .gj-route-sh, .gj-route-hi { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 10; }
.gj-route { stroke: #fff; stroke-width: 5; }
.gj-route-sh { stroke: rgba(20, 50, 70, .45); stroke-width: 5; }
.gj-route.gj-route-done { stroke: var(--orange); stroke-width: 6.5; stroke-dasharray: .1 9; }
.gj-route-sh.gj-route-done { stroke: #A95A06; stroke-width: 6.5; stroke-dasharray: .1 9; }
.gj-route-hi { stroke: #FFE3A6; stroke-width: 2.2; stroke-dasharray: .1 9; }

.gj-deco { position: absolute; transform: translate(-50%, -50%); font-size: clamp(14px, 8cqw, 40px); pointer-events: none; animation: gj-float 4.5s ease-in-out infinite; }
.gj-isle { position: absolute; z-index: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.gj-isle-hs { left: 85.5%; top: 44%; width: 27%; height: 15%; }
.gj-isle-ts { left: 86.5%; top: 85.5%; width: 26%; height: 20%; }
.gj-isle.gj-ping { animation: gj-ping .6s ease-out; }

/* điểm dừng: một cái bệ tròn nổi nằm trên mặt đất (nhìn chếch nên dẹt lại, có thành bệ và bóng đổ), hình 3D của nơi đó đứng trên bệ */
.gj-pin { position: absolute; z-index: 2; width: clamp(24px, 10cqw, 46px); aspect-ratio: 1 / .8; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 26%, #fff 0, #fff 40%, #DCE6F7 100%); border: clamp(2px, .9cqw, 4px) solid var(--c, var(--blue));
  box-shadow: 0 .17em 0 rgba(0, 0, 0, .36), 0 .17em 0 var(--c, var(--blue)), .1em .36em .2em rgba(6, 40, 80, .5), inset 0 -.12em .16em rgba(30, 42, 94, .18); font-size: clamp(13px, 5.8cqw, 27px); line-height: 1; }
.gj-pin > .emo { position: absolute; left: 50%; bottom: 26%; margin-left: -.56em; font-size: 1.36em; pointer-events: none; filter: drop-shadow(.03em .07em .04em rgba(6, 40, 80, .5)); }
.gj-pin.gj-p-lock { --c: #B8C4DD; width: clamp(18px, 7cqw, 32px); background: radial-gradient(circle at 34% 26%, #fff 0, #EEF3FB 45%, #C6D2E8 100%); color: #7F8DB2; text-shadow: 0 1px 0 #fff; font-size: clamp(11px, 4.2cqw, 19px); }
.gj-pin i { font-style: normal; font-weight: 800; }
.gj-pin.gj-p-next { z-index: 3; background: radial-gradient(circle at 34% 26%, #FFFBD6 0, #FFE169 45%, #FFB52E 100%); border-color: #fff;
  box-shadow: 0 .17em 0 #C9820C, .1em .36em .2em rgba(6, 40, 80, .5), 0 0 0 clamp(3px, 1.6cqw, 7px) rgba(255, 210, 63, .55), inset 0 -.12em .16em rgba(180, 100, 0, .3); animation: gj-beat 1.1s ease-in-out infinite; }
.gj-pin.gj-sel { z-index: 4; outline: clamp(2px, .9cqw, 4px) solid var(--navy); outline-offset: 2px; }
.gj-pin.gj-pin-isle:not(.gj-p-lock) { transform: translate(-50%, -50%) scale(.7); }
.gj-pin.gj-pin-isle > .emo { font-size: 1.7em; }
.gj-pin.gj-new { animation: gj-pop .5s cubic-bezier(.3, 1.6, .5, 1) both, gj-beat 1.1s .5s ease-in-out infinite; }
.gj-pin.gj-shy { animation: gj-shy .45s; }

/* Gấu Con trên bản đồ; lúc đi thì ngồi trên xe, tàu, máy bay */
.gj-token { position: absolute; z-index: 5; width: clamp(34px, 15cqw, 72px); transform: translate(-50%, -88%); pointer-events: none;
  transition: left var(--ms, 0ms) ease-in-out, top var(--ms, 0ms) ease-in-out; }
.gj-token .buddy { display: block; pointer-events: auto; }
.gj-token::before { content: ""; position: absolute; z-index: -1; left: 10%; right: 6%; bottom: -5%; height: 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 40, 80, .55), rgba(6, 40, 80, 0)); } /* bóng của Gấu Con trên mặt đất */
.gj-veh { display: none; }
.gj-token.gj-going { z-index: 6; }
.gj-token.gj-going .buddy { transform: translateY(-34%) scale(.82); }
.gj-token.gj-going .gj-veh { display: block; position: absolute; left: 50%; bottom: -8%; z-index: 1; font-size: clamp(34px, 15cqw, 72px); line-height: 1; translate: -50% 0;
  filter: drop-shadow(.04em .1em .05em rgba(6, 40, 80, .5)); animation: gj-bobble .42s ease-in-out infinite alternate; }
.gj-token[data-by="plane"].gj-going { animation: gj-lift var(--ms, 2s) ease-in-out both; }

/* cột bên: tấm ảnh nơi sắp tới (bấm để đi) + hộ chiếu */
.gj-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.gj-s-map:not(.gj-land) .gj-side { height: clamp(112px, 24%, 190px); }
.gj-s-map.gj-land .gj-side { flex: 1 1 0; height: 100%; }
.gj-side[data-pass="col"], .gj-side[data-pass="mini"] { flex-direction: row; }
.gj-ticket { position: relative; display: block; flex: 1 1 0; min-width: 0; min-height: 0; container-type: size; overflow: hidden; border-radius: 28px; border: 5px solid #fff; background: #fff; box-shadow: var(--lift); }
.gj-ticket.gj-pop { animation: gj-pulse .3s; }
.gj-seal { position: absolute; right: 8px; top: 8px; z-index: 2; display: grid; place-items: center; font-size: 40px; line-height: 1; filter: drop-shadow(0 3px 3px rgba(30, 42, 94, .4)); rotate: 8deg; } /* dấu tích 3D: nơi này đã có dấu */
.gj-gobtn { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: .12em; min-height: 64px; padding: 4px .34em 4px .26em; border-radius: 999px;
  background: radial-gradient(120% 70% at 30% 0, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 60%), linear-gradient(rgba(255, 255, 255, .12), rgba(0, 0, 0, .14)), var(--c);
  border: 5px solid #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 60%, #000), 0 10px 14px rgba(30, 42, 94, .28);
  font-size: clamp(38px, 16cqmin, 66px); line-height: 1; animation: gj-beat 1.1s ease-in-out infinite; }
.gj-gobtn .emo { filter: drop-shadow(0 .05em .04em rgba(10, 60, 30, .45)); }
.gj-play { display: grid; place-items: center; width: .8em; height: .8em; }
.gj-play svg { display: block; width: 100%; height: 100%; fill: #fff; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 .05em 0 rgba(10, 60, 30, .5)); }
.gj-riding .gj-gobtn { display: none; }
.gj-ride { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; background: linear-gradient(transparent 30%, rgba(255, 255, 255, .6)); }
.gj-ride-v { position: absolute; left: 0; bottom: 6%; display: grid; justify-items: center; font-size: clamp(64px, 44cqmin, 220px); line-height: 1; animation: gj-ride var(--ms, 2s) linear both; }
.gj-ride-v .emo { grid-area: 1 / 1; align-self: end; scale: -1 1; animation: gj-bobble .35s ease-in-out infinite alternate; filter: drop-shadow(0 .07em .05em rgba(30, 42, 94, .38)); }
.gj-ride[data-by="plane"] .gj-ride-v { bottom: 30%; }
.gj-ride[data-by="plane"] .gj-ride-v .emo { scale: 1; rotate: 45deg; }
.gj-rider { grid-area: 1 / 1; align-self: start; width: .62em; margin-top: -.4em; }

.gj-pass { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border-radius: 22px; border: 4px solid #fff;
  background: linear-gradient(170deg, #FFFBEA, #FBEFC8); box-shadow: 0 6px 0 rgba(30, 42, 94, .18), inset 0 -8px 12px rgba(190, 150, 60, .14); }
.gj-pass:active { transform: translateY(3px); }
/* quyển hộ chiếu nhỏ: bìa đỏ có gáy, mép các trang giấy và bìa sau lộ ra ở cạnh phải và cạnh dưới (sổ có độ dày), ngôi sao và chữ dập nhũ vàng */
.gj-book { position: relative; flex: none; display: grid; place-items: center; align-content: center; gap: 4px; width: 58px; height: 76px; border-radius: 4px 10px 10px 4px; color: #F5D472; line-height: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .34) 0, rgba(0, 0, 0, .1) 7%, rgba(255, 255, 255, .26) 10%, rgba(255, 255, 255, 0) 16%), radial-gradient(120% 80% at 30% 0, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #DC3541, #B4202D 62%, #8F1723);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 1.5px 1.5px 0 #FFFBEA, 3px 3px 0 #D8CFB4, 4.5px 4.5px 0 #FFFBEA, 6px 6px 0 #7E1420, 9px 11px 9px rgba(30, 42, 94, .34); rotate: -4deg; }
.gj-book::after { content: ""; position: absolute; inset: 5px 5px 5px 10px; border: 1px solid rgba(245, 212, 114, .6); border-radius: 2px 6px 6px 2px; pointer-events: none; }
.gj-book i { font-size: 26px; width: 1em; height: 1em; filter: drop-shadow(0 1px 0 rgba(80, 8, 16, .75)) drop-shadow(0 -.5px 0 rgba(255, 255, 255, .35)); }
.gj-foil::before { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #FFF6C2, #F2C14E 42%, #C98A12 62%, #FFE38A 86%);
  -webkit-clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.gj-book b { font-weight: 800; font-size: 10.5px; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(80, 8, 16, .8), 0 -.5px 0 rgba(255, 255, 255, .3); }
.gj-count { flex: none; padding: 0 10px; border-radius: 999px; background: linear-gradient(#fff, #FFF3C4); border: 3px solid var(--yellow); box-shadow: 0 3px 0 #D9A50F, 0 5px 6px rgba(30, 42, 94, .2); font-weight: 800; font-size: 1.05rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.gj-minis { display: grid; gap: 6px; min-width: 0; min-height: 0; }
/* ô dấu tí hon: chưa có thì là một cái hốc lõm trên giấy, có rồi thì là tấm ảnh tròn nổi lên */
.gj-mini { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #F3E7C3; border: 0; color: #B9A671; font-weight: 800; font-size: .95rem; line-height: 1;
  box-shadow: inset 0 3px 4px rgba(120, 90, 30, .38), inset 0 -1px 0 rgba(255, 255, 255, .8), 0 1px 0 rgba(255, 255, 255, .9); }
.gj-mini i { font-style: normal; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.gj-mini.gj-got { background: #fff; border: 3px solid var(--c); box-shadow: 0 3px 0 rgba(30, 42, 94, .28), 0 5px 6px rgba(30, 42, 94, .25); }
.gj-mini.gj-got::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(90% 60% at 30% 8%, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 60%); box-shadow: inset 0 -4px 6px rgba(30, 42, 94, .22); }
.gj-side[data-pass="row"] .gj-pass { height: clamp(84px, 19%, 108px); }
.gj-side[data-pass="row"] .gj-minis { flex: 1 1 0; align-self: stretch; container-type: size; grid-template-columns: repeat(10, auto); justify-content: space-evenly; align-content: center; }
.gj-side[data-pass="row"] .gj-mini { width: min(8.6cqw, 96cqh); }
.gj-side[data-pass="col"] .gj-pass { flex-direction: column; width: clamp(108px, 21%, 150px); padding: 8px 6px; gap: 6px; }
.gj-side[data-pass="col"] .gj-book { width: 46px; height: 58px; } .gj-side[data-pass="col"] .gj-book i { font-size: 20px; } .gj-side[data-pass="col"] .gj-book b { font-size: 8.5px; }
.gj-side[data-pass="col"] .gj-minis { flex: 1 1 0; align-self: stretch; container-type: size; grid-template-columns: repeat(2, auto); justify-content: center; align-content: center; gap: 4px 8px; }
.gj-side[data-pass="col"] .gj-mini { width: min(44cqw, 18cqh); }
.gj-side[data-pass="col"] .gj-count { display: none; }
.gj-side[data-pass="mini"] .gj-pass { flex-direction: column; justify-content: center; width: clamp(84px, 26%, 108px); padding: 6px; gap: 6px; }
.gj-side[data-pass="mini"] .gj-minis { display: none; }

/* ================= tới nơi ================= */
.gj-hero { position: relative; flex: 1 1 0; min-height: 0; container-type: size; overflow: hidden; border-radius: 30px; border: 6px solid #fff; background: #fff; box-shadow: var(--lift); cursor: pointer; }
.gj-hero.gj-pulse { animation: gj-pulse .3s; }
.gj-hero > .gj-ph > img { animation: gj-ken 9s ease-out both; }
.gj-hero .gj-ribbon { left: 14px; top: 14px; font-size: clamp(1.35rem, 6cqmin + .5rem, 2.7rem); animation: gj-pop .5s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
.gj-fact { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 30px 16px calc(clamp(72px, 16vmin, 104px) + 26px); text-align: center; text-wrap: balance;
  font-weight: 800; font-size: clamp(1.1rem, 3.4cqmin + .5rem, 1.8rem); line-height: 1.2; color: #fff; text-shadow: 0 2px 0 rgba(30, 42, 94, .85), 0 0 12px rgba(30, 42, 94, .7);
  background: linear-gradient(transparent, rgba(30, 42, 94, .6) 45%); pointer-events: none; }
.gj-land .gj-fact { padding: 30px clamp(110px, 18vmin + 30px, 190px) 18px; }
.gj-credit { position: absolute; right: 10px; top: 10px; z-index: 2; max-width: 44%; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--soft);
  font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.gj-hero-bear { position: absolute; left: 10px; bottom: 8px; z-index: 3; width: clamp(72px, 17vmin, 140px); }
.gj-hero-bear .buddy { display: block; }
.gj-next { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: grid; place-items: center; width: clamp(72px, 16vmin, 104px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(90% 60% at 32% 10%, rgba(255, 255, 255, .62) 0, rgba(255, 255, 255, 0) 60%), linear-gradient(rgba(255, 255, 255, .1), rgba(0, 0, 0, .16)), var(--c);
  border: 6px solid #fff; box-shadow: 0 7px 0 color-mix(in srgb, var(--c) 60%, #000), 0 12px 16px rgba(30, 42, 94, .3); }
.gj-next:active { translate: 0 4px; }
.gj-next svg { display: block; width: 54%; height: 54%; translate: 5% 0; fill: #fff; stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(10, 60, 30, .5)); }
.gj-next.gj-beat { animation: gj-beat 1s ease-in-out infinite; }

/* ================= câu đố ================= */
.gj-s-task > .ask { flex: none; }
.gj-task { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.gj-task.gj-wide { flex-direction: row; }
.gj-low .gj-task { gap: 8px; }
.gj-prog { position: absolute; left: 10px; top: 10px; z-index: 4; display: flex; gap: 2px; padding: 4px 9px; border-radius: 999px; background: linear-gradient(#fff, #EEF2FB); box-shadow: 0 3px 0 rgba(30, 42, 94, .22), 0 5px 7px rgba(30, 42, 94, .2), inset 0 -3px 4px rgba(30, 42, 94, .08); pointer-events: none; }
.gj-ps { display: block; font-size: 23px; line-height: 1; filter: grayscale(1) opacity(.38); }
.gj-ps.on { filter: drop-shadow(0 1px 1px rgba(160, 100, 0, .5)); }
.gj-scene { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; container-type: size; overflow: hidden; border-radius: 28px; border: 5px solid #fff; background: #fff; box-shadow: var(--lift); }
.gj-opts { flex: none; display: grid; gap: 12px; min-width: 0; min-height: 0; container-type: size; --gj-fs: min(62cqh, (100cqw - 24px) / 3 * .56); }
.gj-task:not(.gj-wide) .gj-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); height: clamp(84px, 25%, 150px); }
.gj-task.gj-wide .gj-opts { grid-template-rows: repeat(3, minmax(0, 1fr)); width: clamp(132px, 22%, 250px); --gj-fs: min(52cqw, (100cqh - 24px) / 3 * .62); }
.gj-low .gj-opts { gap: 8px; }
.gj-opt { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; width: 100%; height: 100%; }
/* ô chữ, ô số, ô đồ vật: những viên gạch nhựa dày — mặt trên bóng, sáng ở góc trên trái, thành viên gạch màu đậm bên dưới, bóng đổ mềm */
.gj-opt.block { aspect-ratio: auto; font-size: var(--gj-fs); border-width: max(4px, .09em); border-radius: clamp(16px, .26em, 28px);
  background: radial-gradient(110% 70% at 24% 0, #fff 0, rgba(255, 255, 255, 0) 62%), linear-gradient(rgba(255, 255, 255, .93), rgba(255, 255, 255, .8)), var(--c);
  box-shadow: 0 .15em 0 rgba(0, 0, 0, .36), 0 .15em 0 var(--c), 0 .3em .28em rgba(30, 42, 94, .32), inset 0 -.07em .09em rgba(30, 42, 94, .16), inset 0 .05em 0 #fff;
  text-shadow: 0 .035em 0 #fff, 0 .07em .06em rgba(30, 42, 94, .22); }
.gj-opt.gj-thing { --c: var(--blue); font-size: calc(var(--gj-fs) * 1.12); border: max(4px, .06em) solid var(--c); border-radius: clamp(16px, .22em, 28px);
  background: radial-gradient(110% 70% at 24% 0, #fff 0, rgba(255, 255, 255, 0) 62%), linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .8)), var(--c);
  box-shadow: 0 .12em 0 rgba(0, 0, 0, .36), 0 .12em 0 var(--c), 0 .22em .24em rgba(30, 42, 94, .3), inset 0 -.06em .08em rgba(30, 42, 94, .14), inset 0 .04em 0 #fff; }
.gj-opt.gj-thing > .emo { filter: drop-shadow(0 .05em .04em rgba(30, 42, 94, .3)); }
.gj-opt.gj-thing:active, .gj-pick:active { transform: translateY(4px); }
.gj-opt.gj-ok { --c: var(--green); background: radial-gradient(110% 70% at 24% 0, #fff 0, rgba(255, 255, 255, 0) 62%), linear-gradient(rgba(233, 251, 233, .9), rgba(215, 246, 215, .86)), var(--green); animation: gj-yes .45s; z-index: 1; }
.gj-opt.gj-fade { opacity: .4; }
.gj-opt.gj-no { animation: gj-no .45s; }
.gj-opts.gj-ready .gj-opt { animation: gj-beat 1s ease-in-out infinite; }
/* tìm ảnh: ba tấm ảnh chia đều cả khu chơi */
.gj-task .gj-opts.gj-photos { flex: 1 1 0; width: auto; height: auto; grid-template-columns: none; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.gj-task.gj-wide .gj-opts.gj-photos { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gj-pick { overflow: hidden; border-radius: 26px; border: 5px solid #fff; background: #fff; box-shadow: 0 3px 0 #E3E8F4, 0 6px 0 #C9D1E6, 0 9px 0 rgba(30, 42, 94, .2), 0 18px 24px rgba(30, 42, 94, .22); } /* tấm ảnh in dày như bìa cứng */
.gj-pick.gj-ok { border-color: var(--green); box-shadow: 0 0 0 6px var(--green), var(--lift); }

/* chữ đầu: từ nằm trên ảnh, chữ đầu đóng khung */
.gj-word { position: absolute; left: 50%; bottom: 4cqmin; z-index: 2; translate: -50% 0; padding: .04em .3em .1em; border-radius: .34em; background: linear-gradient(#fff 45%, #EDF1FA); box-shadow: 0 .07em 0 #C9D1E6, 0 .13em 0 rgba(30, 42, 94, .22), 0 .22em .22em rgba(30, 42, 94, .3), inset 0 -.05em .08em rgba(30, 42, 94, .08);
  font: 700 clamp(30px, 15cqmin, 84px)/1.2 var(--font-letter); color: var(--navy); white-space: nowrap; pointer-events: none; }
.gj-word > .emo { font-size: 1.05em; margin-right: .18em; vertical-align: -.16em; }
.gj-first { display: inline-block; min-width: .9em; margin-right: .06em; padding: 0 .12em; border-radius: .2em; border: .07em dashed var(--pink); color: var(--pink); text-align: center; line-height: 1.1; }
.gj-first.gj-found { border-style: solid; border-color: var(--green); background: #E7FBEA; color: var(--navy); }
/* đếm: đồ vật là những hình dán nằm trên ảnh */
.gj-t-count .gj-scene > .gj-ph::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .26); }
.gj-it { position: absolute; z-index: 2; display: grid; place-items: center; width: 1.12em; height: 1.12em; margin: -.56em 0 0 -.56em; padding: 0; line-height: 1; border-radius: 50%; animation: gj-drop .4s cubic-bezier(.3, 1.5, .5, 1) backwards;
  filter: drop-shadow(0 .03em 0 #fff) drop-shadow(0 -.03em 0 #fff) drop-shadow(.03em 0 0 #fff) drop-shadow(-.03em 0 0 #fff) drop-shadow(0 .05em .03em rgba(30, 42, 94, .4)); }
.gj-it b { position: absolute; right: -.02em; top: -.04em; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--yellow); color: var(--navy); border: .1em solid #fff;
  font: 800 max(13px, .3em)/1 var(--font-letter); animation: gj-pop .3s; }
.gj-it.gj-hop { animation: gj-hop .4s; }
/* tìm đồ vật: cái bóng của nó nằm trong ô tròn trên ảnh */
.gj-cue { position: absolute; left: 4cqmin; bottom: 4cqmin; z-index: 2; display: grid; place-items: center; width: clamp(92px, 42cqmin, 230px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 26%, #fff 0, #fff 45%, #E9EEF9 100%); border: 5px solid var(--yellow);
  box-shadow: 0 6px 0 #D9A50F, 0 12px 14px rgba(30, 42, 94, .3), inset 0 -8px 12px rgba(30, 42, 94, .1); font-size: clamp(56px, 26cqmin, 142px); line-height: 1; pointer-events: none; }
.gj-cue .gj-shadow { filter: brightness(0); opacity: .72; transition: filter .4s, opacity .4s; }
.gj-cue.gj-lit .gj-shadow { filter: none; opacity: 1; }
.gj-cue i { position: absolute; right: -4%; top: -4%; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--pink); color: #fff; border: 4px solid #fff; font: 800 .34em/1 var(--font-ui); font-style: normal; }
.gj-cue.gj-lit i { display: none; }

/* ================= con dấu ================= */
.gj-stamp { position: relative; display: block; width: 100%; aspect-ratio: 1; container-type: inline-size; rotate: var(--tilt, 0deg); }
/* chỗ chưa có dấu: một vòng chì mờ in sẵn trên giấy, lõm nhẹ */
.gj-stamp-pic { position: absolute; inset: 5%; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 2.4cqw dashed #CDBE8E; background: rgba(214, 190, 120, .16); box-shadow: inset 0 2px 4px rgba(120, 90, 30, .22); }
/* dấu mực thật: ảnh nơi đến in tròn ở giữa, quanh nó là vòng mực (.gj-stamp-ink, vẽ bằng svg) màu của nơi đó, mực đậm nhạt không đều */
.gj-got > .gj-stamp-pic { inset: 16%; border: 0; background: #fff; box-shadow: 0 0 0 1px rgba(30, 42, 94, .12); }
.gj-got > .gj-stamp-pic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 250, 230, .55), inset 0 0 10px rgba(60, 40, 10, .28); }
.gj-stamp-ink { position: absolute; inset: 0; color: var(--c); filter: brightness(.82) saturate(1.25); pointer-events: none; }
.gj-stamp-ink svg { display: block; width: 100%; height: 100%; overflow: visible; font-family: var(--font-ui); }
.gj-stamp-pic .gj-dim { font-size: 44cqw; filter: brightness(0); opacity: .13; }
.gj-stamp-pic > i { position: absolute; font: 800 34cqw/1 var(--font-ui); font-style: normal; color: #BBAA78; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.gj-stamp-name { position: absolute; left: 50%; bottom: -2%; translate: -50% 0; max-width: 108%; padding: 0 3.4cqw; border-radius: 999px; background: #FFF9E6; border: 1.2cqw solid #CDBE8E; color: #BBAA78;
  font-weight: 800; font-size: clamp(10px, 10.5cqw, 40px); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gj-got > .gj-stamp-name { border-color: var(--c); color: var(--navy); box-shadow: 0 2px 0 rgba(120, 90, 30, .25); }

/* trang hộ chiếu (màn đóng dấu và màn "Hộ chiếu của bé"): giấy kem có hoa văn chìm, gáy sổ tối bên trái, mép các trang và bìa đỏ dày lộ ra quanh trang */
.gj-page, .gj-stamps { border: 0; border-radius: 12px 26px 26px 12px; margin: 0 7px 14px;
  background: linear-gradient(90deg, rgba(110, 80, 30, .3) 0, rgba(110, 80, 30, .08) 2.2%, rgba(255, 255, 255, .5) 3.4%, rgba(255, 255, 255, 0) 6%),
    radial-gradient(circle, rgba(200, 150, 60, 0) 0 30%, rgba(200, 150, 60, .1) 31% 36%, rgba(200, 150, 60, 0) 37% 56%, rgba(190, 70, 70, .07) 57% 62%, rgba(190, 70, 70, 0) 63%) 0 0 / 58px 58px,
    radial-gradient(circle, rgba(200, 150, 60, 0) 0 30%, rgba(200, 150, 60, .1) 31% 36%, rgba(200, 150, 60, 0) 37% 56%, rgba(190, 70, 70, .07) 57% 62%, rgba(190, 70, 70, 0) 63%) 29px 29px / 58px 58px,
    linear-gradient(165deg, #FFFCEE, #FBF1CF 70%, #F3E4B4);
  box-shadow: inset 0 0 22px rgba(170, 130, 50, .16), 2px 2px 0 #E9DDB6, 4px 4px 0 #FFFBEA, 6px 6px 0 #DDD0A6, 0 0 0 7px #BC2733, 5px 8px 0 7px #861521, 8px 22px 22px 4px rgba(30, 42, 94, .3); }
.gj-page { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px 12px; overflow: hidden; }
.gj-page.gj-thud { animation: gj-thud .35s; }
.gj-page-title { flex: none; font-weight: 800; font-size: clamp(1.2rem, 4.4vmin, 2rem); line-height: 1.1; color: #B4232E; }
.gj-slam { position: relative; flex: 1 1 0; min-height: 0; width: 100%; display: grid; place-items: center; container-type: size; }
.gj-slam > .gj-stamp { width: min(84cqw, 92cqh); }
.gj-slam-go > .gj-stamp { animation: gj-slam .55s cubic-bezier(.2, .8, .3, 1.2) both; }
.gj-ink { position: absolute; width: min(60cqw, 66cqh); aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--c); opacity: 0; pointer-events: none; }
.gj-slam-go > .gj-ink { animation: gj-ink .75s .38s ease-out both; }
.gj-page > .gj-minis { flex: none; grid-template-columns: repeat(10, minmax(0, 46px)); justify-content: center; width: 100%; padding-inline: clamp(84px, 18vmin, 150px); }
.gj-s-stamp:not(.gj-land) .gj-page { padding-bottom: calc(clamp(72px, 16vmin, 104px) + 22px); }
.gj-s-stamp:not(.gj-land) .gj-page > .gj-minis { padding-inline: 0; }
.gj-mini.gj-now { box-shadow: 0 0 0 4px var(--yellow); animation: gj-pop .5s .6s both; }

/* ================= hộ chiếu của bé ================= */
.gj-pass-head { flex: none; display: flex; align-items: center; gap: 12px; }
.gj-pass-head h2 { flex: 1; min-width: 0; font-weight: 800; font-size: clamp(1.5rem, 5.4vw, 2.3rem); line-height: 1; }
.gj-stamps { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 2), minmax(0, 1fr)); gap: 8px 10px; padding: 10px; place-items: center; }
.gj-slot { display: block; width: var(--size, 90px); max-width: 100%; animation: gj-pop .4s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.gj-slot.gj-hop { animation: gj-hop .4s; }
.gj-slot.gj-shy { animation: gj-shy .45s; }
.gj-pass-foot { flex: none; display: flex; justify-content: center; gap: 10px; }
.gj-small { min-height: 34px; padding: 2px 14px; font-size: .82rem; box-shadow: 0 3px 0 rgba(30, 42, 94, .2); }
.gj-credits { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 14px; background: rgba(30, 42, 94, .5); }
.gj-credits-in { box-sizing: border-box; max-width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 14px 18px; border-radius: 20px; background: #fff; color: var(--navy); font-size: 14px; line-height: 1.45; }
.gj-credits-in h3 { margin: 0 0 6px; font-size: 16px; }
.gj-credits-in ul { margin: 0 0 8px; padding: 0; list-style: none; }
.gj-credits-in p { font-size: 12px; color: var(--soft); }

/* ================= đi hết hành trình ================= */
.gj-s-finale { justify-content: center; }
.gj-fin { display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; padding: 18px 16px 22px; text-align: center; border-radius: 36px; background: #fff; box-shadow: var(--lift); }
.gj-fin h2 { font-weight: 800; font-size: clamp(1.8rem, 7.5vw, 3.4rem); line-height: 1.05; background: var(--rainbow, linear-gradient(90deg, var(--red), var(--orange), var(--green), var(--blue), var(--purple)));
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 var(--navy)); }
.gj-fin .gj-minis { grid-template-columns: repeat(5, minmax(0, 76px)); justify-content: center; width: 100%; gap: 8px; }
.gj-land .gj-fin .gj-minis { grid-template-columns: repeat(10, minmax(0, 76px)); }
.gj-fin .gj-mini { animation: gj-pop .45s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.gj-low .gj-fin { gap: 6px; padding: 8px 16px 12px; }
.gj-low .gj-fin h2 { font-size: 1.7rem; }
.gj-low .gj-fin .gj-minis { grid-template-columns: repeat(10, minmax(0, 44px)); }

/* ---------- chuyển động ---------- */
@keyframes gj-beat { 0%, 100% { scale: 1; } 50% { scale: 1.1; } }
@keyframes gj-pop { from { scale: 0; } to { scale: 1; } }
@keyframes gj-pulse { 50% { scale: .985; } }
@keyframes gj-shy { 0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 60% { translate: 5px 0; } }
@keyframes gj-no { 0%, 100% { translate: 0 0; rotate: 0deg; } 20% { translate: -8px 0; rotate: -4deg; } 50% { translate: 8px 0; rotate: 4deg; } 80% { translate: -5px 0; } }
@keyframes gj-yes { 40% { scale: 1.08; } }
@keyframes gj-hop { 0%, 100% { translate: 0 0; scale: 1; } 40% { translate: 0 -14%; scale: 1.12; } }
@keyframes gj-drop { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes gj-float { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -8%; rotate: 3deg; } }
@keyframes gj-bobble { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-5%) rotate(1.5deg); } }
@keyframes gj-lift { 0%, 100% { scale: 1; } 50% { scale: 1.45; } }
@keyframes gj-ride { from { transform: translateX(-110%); } to { transform: translateX(100cqw); } }
@keyframes gj-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .9); } 100% { box-shadow: 0 0 0 22px rgba(255, 210, 63, 0); } }
@keyframes gj-slam { 0% { scale: 2.7; rotate: -30deg; opacity: 0; } 55% { scale: .9; opacity: 1; } 78% { scale: 1.06; } 100% { scale: 1; } }
@keyframes gj-ink { 0% { scale: .8; opacity: .75; } 100% { scale: 2.3; opacity: 0; } }
@keyframes gj-ken { from { scale: 1.1; } to { scale: 1; } }
@keyframes gj-thud { 0%, 100% { translate: 0 0; } 25% { translate: 0 7px; } 55% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) {
  .gj *, .gj { animation: none !important; transition: none !important; }
}
/* con dấu và ảnh tí hon khi chưa có ảnh thật: chỉ còn hình vẽ (tên đã có ở nhãn bên dưới) */
.gj-stamp .gj-ph-fb b, .gj-mini .gj-ph-fb b { display: none; }
.gj-stamp .gj-ph-fb, .gj-mini .gj-ph-fb { font-size: 56cqmin; padding: 0; }

/* ---------- wave 6: compat (trình duyệt cũ) ---------- */
/* Bản dự phòng cho máy cũ của các luật phía trên (giải thích ở cuối css/style.css); sửa luật gốc thì sửa luôn dòng tương ứng ở đây. */
/* chưa có color-mix() */
@supports not (color: color-mix(in srgb, red, blue)) {
  .gj-ph { background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .38)), var(--c, var(--teal)); }
  .gj-pin.gj-p-lock { --ck: #8D99B9; }
  .gj-gobtn { box-shadow: 0 6px 0 rgba(0, 0, 0, .4), 0 6px 0 var(--c), 0 10px 14px rgba(30, 42, 94, .28); }
  .gj-next { box-shadow: 0 7px 0 rgba(0, 0, 0, .4), 0 7px 0 var(--c), 0 12px 16px rgba(30, 42, 94, .3); }
  .gj-opt.gj-thing { --ck: var(--k-blue); }
  .gj-opt.gj-ok { --ck: var(--k-green); }
}
/* chưa có đơn vị cqw/cqh, @container */
@supports not (width: 1cqw) {
  .gj-ph { --cq: size; contain: size; }
  .gj-ph-fb { gap: min(calc(2 * var(--cqw)), calc(2 * var(--cqh))); padding: min(calc(4 * var(--cqw)), calc(4 * var(--cqh))); font-size: min(calc(40 * var(--cqw)), calc(40 * var(--cqh))); }
  .gj-ph-fb b { font-size: max(12px, min(calc(11 * var(--cqw)), calc(11 * var(--cqh)))); }
  .gj-ribbon { font-size: clamp(1.05rem, min(calc(5 * var(--cqw)), calc(5 * var(--cqh))) + .45rem, 2rem); }
  .gj-sea { --cq: size; contain: size; }
  .gj-mapbox { width: min(calc(100 * var(--cqw)), calc(100 * var(--cqh)) * 2 / 3); height: min(calc(100 * var(--cqh)), calc(100 * var(--cqw)) * 3 / 2); --cq: size; contain: size; }
  .gj-deco { font-size: clamp(14px, calc(8 * var(--cqw)), 40px); }
  .gj-pin { width: clamp(24px, calc(10 * var(--cqw)), 46px); border: clamp(2px, calc(.9 * var(--cqw)), 4px) solid var(--c, var(--blue)); font-size: clamp(13px, calc(5.8 * var(--cqw)), 27px); }
  .gj-pin.gj-p-lock { width: clamp(18px, calc(7 * var(--cqw)), 32px); font-size: clamp(11px, calc(4.2 * var(--cqw)), 19px); }
  .gj-pin.gj-p-next { box-shadow: 0 .17em 0 #C9820C, .1em .36em .2em rgba(6, 40, 80, .5), 0 0 0 clamp(3px, calc(1.6 * var(--cqw)), 7px) rgba(255, 210, 63, .55), inset 0 -.12em .16em rgba(180, 100, 0, .3); }
  .gj-pin.gj-sel { outline: clamp(2px, calc(.9 * var(--cqw)), 4px) solid var(--navy); }
  .gj-token { width: clamp(34px, calc(15 * var(--cqw)), 72px); }
  .gj-token.gj-going .gj-veh { font-size: clamp(34px, calc(15 * var(--cqw)), 72px); }
  .gj-ticket { --cq: size; contain: size; }
  .gj-gobtn { font-size: clamp(38px, min(calc(16 * var(--cqw)), calc(16 * var(--cqh))), 66px); }
  .gj-ride-v { font-size: clamp(64px, min(calc(44 * var(--cqw)), calc(44 * var(--cqh))), 220px); }
  .gj-side[data-pass="row"] .gj-minis { --cq: size; contain: size; }
  .gj-side[data-pass="row"] .gj-mini { width: min(calc(8.6 * var(--cqw)), calc(96 * var(--cqh))); }
  .gj-side[data-pass="col"] .gj-minis { --cq: size; contain: size; }
  .gj-side[data-pass="col"] .gj-mini { width: min(calc(44 * var(--cqw)), calc(18 * var(--cqh))); }
  .gj-hero { --cq: size; contain: size; }
  .gj-hero .gj-ribbon { font-size: clamp(1.35rem, min(calc(6 * var(--cqw)), calc(6 * var(--cqh))) + .5rem, 2.7rem); }
  .gj-fact { font-size: clamp(1.1rem, min(calc(3.4 * var(--cqw)), calc(3.4 * var(--cqh))) + .5rem, 1.8rem); }
  .gj-scene { --cq: size; contain: size; }
  .gj-opts { --cq: size; contain: size; --gj-fs: min(calc(62 * var(--cq-h)), (calc(100 * var(--cq-w)) - 24px) / 3 * .56); }
  .gj-task.gj-wide .gj-opts { --gj-fs: min(calc(52 * var(--cq-w)), (calc(100 * var(--cq-h)) - 24px) / 3 * .62); }
  .gj-word { bottom: min(calc(4 * var(--cqw)), calc(4 * var(--cqh))); font: 700 clamp(30px, min(calc(15 * var(--cqw)), calc(15 * var(--cqh))), 84px)/1.2 var(--font-letter); }
  .gj-cue { left: min(calc(4 * var(--cqw)), calc(4 * var(--cqh))); bottom: min(calc(4 * var(--cqw)), calc(4 * var(--cqh))); width: clamp(92px, min(calc(42 * var(--cqw)), calc(42 * var(--cqh))), 230px); font-size: clamp(56px, min(calc(26 * var(--cqw)), calc(26 * var(--cqh))), 142px); }
  .gj-stamp { --cq: inline-size; }
  .gj-stamp-pic { border: calc(2.4 * var(--cqw)) dashed #CDBE8E; }
  .gj-got > .gj-stamp-pic { border: 0; }
  .gj-stamp-pic .gj-dim { font-size: calc(44 * var(--cqw)); }
  .gj-stamp-pic > i { font: 800 calc(34 * var(--cqw))/1 var(--font-ui); }
  .gj-stamp-name { padding: 0 calc(3.4 * var(--cqw)); border: calc(1.2 * var(--cqw)) solid #CDBE8E; font-size: clamp(10px, calc(10.5 * var(--cqw)), 40px); }
  .gj-got > .gj-stamp-name { border-color: var(--c); }
  .gj-slam { --cq: size; contain: size; }
  .gj-slam > .gj-stamp { width: min(calc(84 * var(--cqw)), calc(92 * var(--cqh))); }
  .gj-ink { width: min(calc(60 * var(--cqw)), calc(66 * var(--cqh))); }
  @keyframes gj-ride { from { transform: translateX(-110%); } to { transform: translateX(calc(100 * var(--cqw))); } }
  .gj-stamp .gj-ph-fb, .gj-mini .gj-ph-fb { font-size: min(calc(56 * var(--cqw)), calc(56 * var(--cqh))); }
}
/* chưa có translate/rotate/scale rời */
@supports not (translate: 0) {
  .gj-deco { transform: var(--i-t) translate(-50%, -50%); }
  .gj-pin.gj-p-next { transform: var(--i-t) translate(-50%, -50%); }
  .gj-pin.gj-new { transform: var(--i-t) translate(-50%, -50%); }
  .gj-pin.gj-shy { transform: var(--i-t) translate(-50%, -50%); }
  .gj-token.gj-going .gj-veh { --i-tx: -50%; --i-ty: 0px; transform: var(--i-t); }
  .gj-token[data-by="plane"].gj-going { transform: var(--i-t) translate(-50%, -88%); }
  :where(.gj-ticket.gj-pop) { transform: var(--i-t); }
  .gj-seal { --i-r: 8deg; transform: var(--i-t); }
  :where(.gj-gobtn) { transform: var(--i-t); }
  .gj-ride-v .emo { --i-sx: -1; --i-sy: 1; transform: var(--i-t); }
  .gj-ride[data-by="plane"] .gj-ride-v .emo { --i-sx: 1; --i-sy: 1; --i-r: 45deg; transform: var(--i-t); }
  .gj-book { --i-r: -4deg; transform: var(--i-t); }
  :where(.gj-hero.gj-pulse) { transform: var(--i-t); }
  :where(.gj-hero > .gj-ph > img) { transform: var(--i-t); }
  :where(.gj-hero .gj-ribbon) { transform: var(--i-t); }
  .gj-next:active { --i-tx: 0px; --i-ty: 4px; transform: var(--i-t); }
  .gj-next svg { --i-tx: 5%; --i-ty: 0px; transform: var(--i-t); }
  :where(.gj-next.gj-beat) { transform: var(--i-t); }
  :where(.gj-opt.gj-ok) { transform: var(--i-t); }
  :where(.gj-opt.gj-no) { transform: var(--i-t); }
  :where(.gj-opts.gj-ready .gj-opt) { transform: var(--i-t); }
  .gj-word { --i-tx: -50%; --i-ty: 0px; transform: var(--i-t); }
  :where(.gj-it) { transform: var(--i-t); }
  :where(.gj-it b) { transform: var(--i-t); }
  :where(.gj-it.gj-hop) { transform: var(--i-t); }
  .gj-stamp { --i-r: var(--tilt, 0deg); transform: var(--i-t); }
  .gj-stamp-name { --i-tx: -50%; --i-ty: 0px; transform: var(--i-t); }
  :where(.gj-page.gj-thud) { transform: var(--i-t); }
  :where(.gj-slam-go > .gj-stamp) { transform: var(--i-t); }
  :where(.gj-slam-go > .gj-ink) { transform: var(--i-t); }
  :where(.gj-mini.gj-now) { transform: var(--i-t); }
  :where(.gj-slot) { transform: var(--i-t); }
  :where(.gj-slot.gj-hop) { transform: var(--i-t); }
  :where(.gj-slot.gj-shy) { transform: var(--i-t); }
  :where(.gj-fin .gj-mini) { transform: var(--i-t); }
  @keyframes gj-beat { 0%, 100% { --i-sx: 1; --i-sy: 1; } 50% { --i-sx: 1.1; --i-sy: 1.1; } }
  @keyframes gj-pop { from { --i-sx: 0; --i-sy: 0; } to { --i-sx: 1; --i-sy: 1; } }
  @keyframes gj-pulse { 50% { --i-sx: .985; --i-sy: .985; } }
  @keyframes gj-shy { 0%, 100% { --i-tx: 0px; --i-ty: 0px; } 25% { --i-tx: -5px; --i-ty: 0px; } 60% { --i-tx: 5px; --i-ty: 0px; } }
  @keyframes gj-no { 0%, 100% { --i-tx: 0px; --i-ty: 0px; --i-r: 0deg; } 20% { --i-tx: -8px; --i-ty: 0px; --i-r: -4deg; } 50% { --i-tx: 8px; --i-ty: 0px; --i-r: 4deg; } 80% { --i-tx: -5px; --i-ty: 0px; } }
  @keyframes gj-yes { 40% { --i-sx: 1.08; --i-sy: 1.08; } }
  @keyframes gj-hop { 0%, 100% { --i-tx: 0px; --i-ty: 0px; --i-sx: 1; --i-sy: 1; } 40% { --i-tx: 0px; --i-ty: -14%; --i-sx: 1.12; --i-sy: 1.12; } }
  @keyframes gj-drop { from { --i-sx: 0; --i-sy: 0; opacity: 0; } to { --i-sx: 1; --i-sy: 1; opacity: 1; } }
  @keyframes gj-float { 0%, 100% { --i-tx: 0px; --i-ty: 0px; --i-r: -3deg; } 50% { --i-tx: 0px; --i-ty: -8%; --i-r: 3deg; } }
  @keyframes gj-bobble { from { transform: var(--i-t) translateY(0) rotate(-1.5deg); } to { transform: var(--i-t) translateY(-5%) rotate(1.5deg); } }
  @keyframes gj-lift { 0%, 100% { --i-sx: 1; --i-sy: 1; } 50% { --i-sx: 1.45; --i-sy: 1.45; } }
  @keyframes gj-slam { 0% { --i-sx: 2.7; --i-sy: 2.7; --i-r: -30deg; opacity: 0; } 55% { --i-sx: .9; --i-sy: .9; opacity: 1; } 78% { --i-sx: 1.06; --i-sy: 1.06; } 100% { --i-sx: 1; --i-sy: 1; } }
  @keyframes gj-ink { 0% { --i-sx: .8; --i-sy: .8; opacity: .75; } 100% { --i-sx: 2.3; --i-sy: 2.3; opacity: 0; } }
  @keyframes gj-ken { from { --i-sx: 1.1; --i-sy: 1.1; } to { --i-sx: 1; --i-sy: 1; } }
  @keyframes gj-thud { 0%, 100% { --i-tx: 0px; --i-ty: 0px; } 25% { --i-tx: 0px; --i-ty: 7px; } 55% { --i-tx: 0px; --i-ty: -3px; } }
}
