.item-icon.tour-locked { position: relative; }
.item-icon.tour-locked::after { content: ''; position: absolute; inset: 0; background: #5559; border-radius: inherit; pointer-events: none; }
.tour-product-badge { position: absolute; right: 0; bottom: 0; z-index: 1; background: #555; color: white; font-size: 10px; padding: 2px 3px; border-radius: 4px 0 0 0; pointer-events: none; }
.heb-overlay { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: center; justify-content: center; background: #04172dcc; color: #173551; font-family: 'Microsoft YaHei', sans-serif; }
.heb-overlay[hidden], .heb-overlay [hidden] { display: none !important; }
.heb-overlay * { box-sizing: border-box; }
.heb-overlay button, .heb-overlay select { font: inherit; }
.heb-overlay button { cursor: pointer; touch-action: manipulation; border: 1px solid #bbd7e4; border-radius: 12px; background: #fff; color: #173551; padding: 10px 14px; }
.heb-overlay button:disabled { cursor: default; opacity: .5; }
.heb-overlay button:focus-visible, .heb-overlay select:focus-visible { outline: 3px solid #e9aa42; outline-offset: 2px; }
.heb-card { position: relative; width: min(92vw, 420px); max-height: 92dvh; overflow-y: auto; padding: 28px 22px 20px; border: 2px solid #fff; border-radius: 24px; background: linear-gradient(155deg, #f4fcff, #dcecf7); box-shadow: 0 20px 70px #001c4155; }
.heb-close { position: absolute; right: 10px; top: 10px; padding: 4px 12px !important; font-size: 24px !important; }
.heb-eyebrow { font-size: 11px; letter-spacing: 3px; color: #517e99; margin: 4px 0 12px; }
.heb-card h2 { font-size: 21px; margin: 12px 25px 12px 0; line-height: 1.5; }
.heb-balance { font-size: 14px; }
.heb-ticket { width: 100%; text-align: left; display: flex; align-items: center; gap: 16px; margin-top: 10px; min-height: 65px; }
.heb-ticket strong { font-size: 25px; color: #327b9e; min-width: 65px; }
.heb-ticket span { font-size: 12px; line-height: 1.8; }
.heb-ticket em { display: block; font-size: 11px; font-style: normal; color: #587084; }
.heb-ticket.is-purchased { position: relative; overflow: hidden; }
.heb-ticket.is-purchased:disabled { opacity: 1; }
.heb-ticket.is-purchased::after { content: ''; position: absolute; inset: 0; background: #68727b80; pointer-events: none; }
.heb-ticket .heb-purchased-label { position: absolute; z-index: 1; right: 12px; top: 50%; transform: translateY(-50%); padding: 4px 10px; border-radius: 8px; background: #525c66; color: #fff; font-size: 14px; font-weight: bold; pointer-events: none; }
.heb-overlay .heb-image-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: zoom-in; }
.heb-overlay .heb-image-button:disabled { opacity: 1; cursor: default; }
.heb-overlay .heb-download { display: inline-block; padding: 10px 14px; border: 1px solid #bbd7e4; border-radius: 12px; background: #fff; color: #173551; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.heb-download:focus-visible { outline: 3px solid #e9aa42; outline-offset: 2px; }
#heb-postcard-zoom { z-index: 3700; background: #041326f2; }
.heb-postcard-large { width: min(96vw, 1200px); max-height: 96dvh; overflow-y: auto; text-align: center; color: #fff; }
.heb-postcard-large header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px; }
.heb-postcard-large h2 { font-size: 18px; }
.heb-postcard-large > img { display: block; width: 100%; max-height: 78dvh; object-fit: contain; margin: 8px auto 16px; }
.heb-postcard-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 10px 4px max(10px, env(safe-area-inset-bottom)); border-radius: 12px; background: #e3f2fa; z-index: 2; }
.heb-postcard-actions .heb-download { margin-bottom: 0; }
.heb-postcard-large .heb-postcard-actions { background: #102b40; }
.heb-reward-card { text-align: center; }
.heb-reward-card h2 { margin-right: 0; }
.heb-reward-image { display: block; width: 100%; height: min(42dvh, 320px); object-fit: contain; margin: 16px auto 22px; }
.heb-reward-image.is-shirt { width: min(100%, 220px); background: #ffffff99; border-radius: 18px; }
.heb-note { font-size: 12px; color: #587084; line-height: 1.7; }
.heb-message { min-height: 38px; font-size: 13px; line-height: 1.5; color: #a34b27; margin: 12px 0; }
.heb-primary { background: #255b7c !important; color: white !important; }
.heb-rewards { display: flex; gap: 8px; flex-wrap: wrap; }
.heb-postcard { width: 100%; max-height: 52dvh; object-fit: contain; border-radius: 10px; margin: 12px 0; }
#heb-game { z-index: 3600; background: #071c30; }
.heb-game-shell { width: min(100vw, 460px); height: 100dvh; padding: max(10px, env(safe-area-inset-top)) 14px max(10px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; background: radial-gradient(ellipse at top, #d7f3fc, #7daaca); overflow: hidden; }
.heb-game-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.heb-game-header h2 { font-size: 19px; margin: 0; }
.heb-game-header small { font-size: 10px; letter-spacing: 2px; color: #45647a; }
.heb-game-header button { padding: 6px 10px; font-size: 12px; }
.heb-game-stats { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; }
.heb-level-info { margin: 0; font-size: 10px; line-height: 1.4; color: #244962; text-align: center; flex-shrink: 0; }
.heb-game-stats select { border: 1px solid #aac7d7; border-radius: 8px; padding: 5px; color: #173551; background: #effaff; max-width: 112px; }
.heb-arena { min-height: 0; flex: 1; display: flex; justify-content: center; position: relative; }
#heb-board { display: block; height: 100%; max-width: 100%; aspect-ratio: 1 / 2; object-fit: contain; background: #102a40; border: 3px solid #effaff; border-radius: 6px; box-shadow: 0 8px 24px #163d6755; }
.heb-game-curtain { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #0c284aaa; border-radius: 8px; }
.heb-game-curtain > div { width: min(90%, 280px); padding: 22px; text-align: center; background: #eef9ff; border-radius: 20px; }
.heb-game-curtain p { font-size: 13px; line-height: 1.7; }
.heb-game-bottom { flex: 0 0 clamp(176px, 26dvh, 220px); display: flex; align-items: center; justify-content: space-around; gap: 20px; border-top: 1px solid #effaff66; padding-top: 8px; }
.heb-game-bottom, .heb-game-bottom * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}
.heb-game-bottom { touch-action: none; }
.heb-next { display: flex; align-items: center; font-size: 10px; text-align: center; padding: 2px 4px; background: #effaff88; border-radius: 10px; }
#heb-next { display: block; width: 68px; height: 43px; }
.heb-stick-area { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.heb-stick-area small { font-size: 11px; color: #244962; }
.heb-joystick { position: relative; width: clamp(140px, 38vw, 164px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #537a99 0%, #88aec8 52%, #e5f7ff 54%, #c4e1ef 70%); box-shadow: inset 0 2px 12px #284c6866, 0 5px 0 #527a97, 0 8px 18px #234c6944; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.heb-joystick:focus-visible { outline: 3px solid #e9aa42; outline-offset: 4px; }
.heb-stick-knob { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 25%, #fff, #d9eef8 55%, #98bed5); border: 2px solid #f7fcff; box-shadow: 0 5px 10px #23496266; pointer-events: none; }
.heb-stick-arrow { position: absolute; color: #335971; font-size: 18px; pointer-events: none; }
.heb-stick-arrow.left { top: 43%; left: 9%; }
.heb-stick-arrow.right { top: 43%; right: 9%; }
.heb-stick-arrow.down { bottom: 6%; left: 45%; }
.heb-overlay .heb-rotate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: clamp(104px, 29vw, 128px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #f4fcff; background: radial-gradient(circle at 35% 20%, #fff, #d1eafa 70%); box-shadow: 0 6px 0 #6089a5, 0 10px 20px #234c6944; font-size: 15px; touch-action: none; user-select: none; -webkit-user-select: none; }
.heb-rotate span { font-size: 48px; line-height: 1; }
.heb-rotate:active { transform: translateY(4px); box-shadow: 0 2px 0 #6089a5; }
.heb-game-help { margin: 0; font-size: 10px; text-align: center; color: #244962; }
@media (max-height: 650px) { .heb-game-shell { gap: 4px; padding-top: 6px; padding-bottom: 6px; } .heb-game-header h2 { font-size: 16px; } .heb-game-bottom { flex-basis: 174px; } }
