/* Shared game lobby header. Existing Liquid controls and controllers own behavior. */
:root {
  --yuyi-header-height: var(--hdr-top, 64px);
  --yuyi-drawer-width: min(88vw, 360px);
  --yuyi-z-header: 1000;
  --yuyi-z-header-open: 10001;
  --yuyi-z-right-drawer: 10002;
  --yuyi-z-mega: 10003;
  --yuyi-z-modal: 100000;
  --yuyi-hud-type-step: 0px;
}
body.yb-game-theme { padding-top: var(--yuyi-header-height); }
#easystore-section-header {
  --hud-ink: #102b43;
  --hud-blue: #087cad;
  --hud-cyan: #50d4ff;
  --hud-yellow: #ffe05b;
  --hud-line: #bfd7e5;
  --yuyi-ui-icon-box: 42px;
  --yuyi-ui-icon-glyph: 25px;
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--yuyi-z-header);
  color: var(--hud-ink);
  transition: top .2s ease;
}
#easystore-section-header, #easystore-section-header * { box-sizing: border-box; }
#easystore-section-header.easystore-section-header-hidden { top: calc(-1 * var(--yuyi-header-height)); }
html.pc-menu-open #easystore-section-header { z-index: var(--yuyi-z-header-open); }
#easystore-section-header .header-wrapper {
  display: block;
  position: relative;
  overflow: visible;
  border: 0;
  background: linear-gradient(115deg, #142b3e 0%, #0d1e2d 58%, #152f43 100%);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 6px 20px #020a142e;
}
#easystore-section-header .header {
  position: relative;
  display: grid;
  grid-template-columns: auto var(--yuyi-ui-icon-box) minmax(0, 1fr) auto;
  grid-template-areas: none;
  grid-template-rows: var(--hud-brand-height, 44px);
  align-items: center;
  gap: var(--hud-tool-gap, 10px);
  width: var(--hud-layout-width, 100%);
  max-width: 2240px;
  min-height: 0;
  margin: 0 auto;
  padding: var(--hud-pad-top, 9px) var(--hud-pad-x, 24px) var(--hud-pad-bottom, 7px);
  color: var(--hud-ink);
}
#easystore-section-header .header a { color: inherit; text-decoration: none; }
#easystore-section-header .header :is(a, button, summary):focus-visible,
.yb-game-theme .yuyi-currency-overlay :is(button, select):focus-visible {
  outline: 3px solid #087cad;
  outline-offset: 3px;
}
#easystore-section-header button { font: inherit; cursor: var(--yb-game-action-cursor, pointer); }
#easystore-section-header summary { list-style: none; cursor: var(--yb-game-action-cursor, pointer); }
#easystore-section-header summary::-webkit-details-marker { display: none; }
#easystore-section-header header-drawer, #easystore-section-header .yuyi-right-drawer-container { display: none; }
#easystore-section-header .header__heading-link,
#easystore-section-header .header__heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: start;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  height: var(--hud-brand-height, 44px);
  max-width: 100%;
  margin: 0;
  padding: 4px 16px 4px 10px;
  isolation: isolate;
}
#easystore-section-header .header__heading-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, #f3f9fd, #d5e4ee 55%, #b9d0e0);
  border-left: 3px solid var(--hud-yellow);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #8faebe;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
#easystore-section-header .header__heading-logo { display: block; width: var(--hud-logo-width, 104px); max-width: 100%; height: auto; max-height: var(--hud-logo-height, 38px); object-fit: contain; padding: 2px 4px; border-radius: 2px; }
#easystore-section-header .yuyi-nav-icons-row { display: contents; }
#easystore-section-header .header__icons { display: flex; align-items: center; justify-content: flex-end; gap: var(--hud-tool-gap, 8px); grid-column: 4; grid-row: 1; margin: 0; padding: 0; }
#easystore-section-header .header__inline-menu { display: block; grid-column: 3; grid-row: 1; justify-self: center; margin: 0; min-width: 0; }
#easystore-section-header .header__inline-menu > .list-menu--inline { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
#easystore-section-header .header__inline-menu > ul > li { flex: 0 0 auto; min-width: 0; }
#easystore-section-header .header__inline-menu > ul > li > a,
#easystore-section-header .header__inline-menu > ul > li > details-disclosure > details > summary {
  --hex-fill: linear-gradient(110deg, #d6882e 0%, #bc5933 50%, #933942 100%);
  --hex-border: linear-gradient(145deg, #f9dc9f, #ce9877 65%);
  --hex-shine: #ffe3c866;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  height: 48px;
  min-height: 0;
  min-width: 66px;
  padding: 0 calc(var(--hud-menu-pad-x, 10px) + 8px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff8f6;
  font-size: var(--hud-menu-size, 13px);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(-3px);
}
#easystore-section-header .header__inline-menu > ul > li:nth-child(even) > a,
#easystore-section-header .header__inline-menu > ul > li:nth-child(even) > details-disclosure > details > summary { transform: translateY(3px); }
/* Shape only the trigger decoration; the fixed Mega Menu stays outside it. */
#easystore-section-header .header__inline-menu > ul > li > a::before,
#easystore-section-header .header__inline-menu > ul > li > details-disclosure > details > summary::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: var(--hex-border); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); }
#easystore-section-header .header__inline-menu > ul > li > a::after,
#easystore-section-header .header__inline-menu > ul > li > details-disclosure > details > summary::after { content: ""; position: absolute; inset: 1px; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, var(--hex-shine), transparent) center 2px / calc(100% - 36px) 1px no-repeat, var(--hex-fill); clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%); }
#easystore-section-header .header__inline-menu .yuyi-menu-label { padding: 0; font: inherit; }
#easystore-section-header .header__inline-menu > ul > li > a[aria-current="page"] { --hex-fill: linear-gradient(110deg, #e5ab4d, #d5783d 55%, #b14e3c); --hex-border: linear-gradient(130deg, #ffedb8, #edbd89); --hex-shine: #fff0ce; color: #fffaf0; }
#easystore-section-header .header__inline-menu > ul > li > a:hover,
#easystore-section-header .header__inline-menu > ul > li > details-disclosure > details > summary:hover { --hex-fill: linear-gradient(110deg, #e49b41, #d16b39 55%, #a34842); --hex-border: #ffe4ce; color: #fff; }
#easystore-section-header .header__inline-menu > ul > li > details-disclosure > details[open] > summary,
#easystore-section-header .header__inline-menu > ul > li > a:focus-visible,
#easystore-section-header .header__inline-menu > ul > li > details-disclosure > details > summary:focus-visible { --hex-fill: linear-gradient(110deg, #dfa64b, #ce783e 55%, #a94d3b); --hex-border: #ffe2b7; color: #fff8e8; outline-color: #ffe2b7; }
#easystore-section-header .header__inline-menu .icon-caret { position: static; width: calc(9px + var(--yuyi-hud-type-step)); height: calc(9px + var(--yuyi-hud-type-step)); margin: 0; }
#easystore-section-header details[open] > summary .icon-caret { transform: rotate(180deg); }

/* Tool group: decoration belongs to each tile, never to the dialog ancestors. */
#easystore-section-header .header__icon,
#easystore-section-header .yb-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--yuyi-ui-icon-box);
  width: var(--yuyi-ui-icon-box);
  min-width: var(--yuyi-ui-icon-box);
  height: var(--yuyi-ui-icon-box);
  margin: 0;
  padding: 0;
  border: 1px solid var(--hud-line);
  border-radius: 3px;
  background: #fff;
  color: var(--hud-ink);
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#easystore-section-header .header__icon:hover,
#easystore-section-header .yb-notify-btn:hover { border-color: var(--hud-blue); background: #eaf8ff; box-shadow: 0 3px 0 rgba(8,124,173,.16); }
#easystore-section-header .header__icon--account { border: 0; background: none; }
#easystore-section-header .header__link-label { display: none; }
#easystore-section-header a.yuyi-mobile-search { grid-column: 2; grid-row: 1; }
#easystore-section-header :is(.yuyi-left-menu-icons, .yuyi-right-menu-icons, .yuyi-currency-globe, .header__icon--cart, .yuyi-header-icon-glyph, .yb-notify-icon) { display: inline-flex; align-items: center; justify-content: center; }
#easystore-section-header .yuyi-ui-svg,
#easystore-section-header .yb-notify-icon svg { display: block; width: var(--yuyi-ui-icon-glyph); height: var(--yuyi-ui-icon-glyph); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#easystore-section-header :is(.yuyi-ui-svg, .yb-notify-icon svg) :is(path, circle, line, polyline) { vector-effect: non-scaling-stroke; }
#easystore-section-header #cart-icon-bubble { background: var(--hud-yellow); border-color: #ebca49; }
#easystore-section-header .cart-count-bubble,
#easystore-section-header .yb-notify-count { position: absolute; top: -6px; right: -5px; bottom: auto; left: auto; display: flex; align-items: center; justify-content: center; min-width: calc(19px + var(--yuyi-hud-type-step)); height: calc(19px + var(--yuyi-hud-type-step)); margin: 0; padding: 0 4px; border: 2px solid white; border-radius: calc(9px + var(--yuyi-hud-type-step)); background: #087cad; color: white; font-size: calc(10px + var(--yuyi-hud-type-step)); font-weight: 800; line-height: 1; }
#easystore-section-header .cart-count-bubble.hidden,
#easystore-section-header .yb-notify-count[hidden] { display: none; }

/* The selected dialogue frame is shared by drawers and the desktop Mega Menu. */
#easystore-section-header :is(.menu-drawer, .yuyi-mega-panel) { isolation: isolate; border: 0; border-radius: 0; box-shadow: 0 24px 70px #00132138; background: transparent; color: #f4fbff; overflow: visible; }
#easystore-section-header :is(.menu-drawer, .yuyi-mega-panel)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(120deg,transparent 0 54px,#bfeaff06 54px 55px),linear-gradient(105deg,#0a263e,#103c52 65%,#09263e); clip-path: polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px); }
#easystore-section-header :is(.menu-drawer, .yuyi-mega-panel)::after { content: ""; position: absolute; left: 24px; top: 0; width: 54px; height: 3px; background: #ffe06b; pointer-events: none; }
#easystore-section-header .yb-menu-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; fill: none; overflow: visible; }
#easystore-section-header .yb-menu-frame path { vector-effect: non-scaling-stroke; }
#easystore-section-header .yb-menu-frame__outline { stroke: #9edbec; stroke-width: 1.2; }
#easystore-section-header .yb-menu-frame__inner { stroke: #94d5e6; stroke-width: .7; opacity: .33; }
#easystore-section-header .yb-menu-frame__light { stroke: #c3f5ff; stroke-width: 2; }
#easystore-section-header .yb-menu-frame__track { stroke: #69aeca; stroke-width: 1; opacity: .55; }
#easystore-section-header .yb-menu-frame__gold { stroke: #ffe16a; stroke-width: 2.5; }
#easystore-section-header .yb-menu-speaker { position: absolute; z-index: 7; top: -16px; left: 20px; display: flex; align-items: center; gap: 9px; min-width: 158px; padding: 6px 25px 8px 12px; border-bottom: 3px solid #ffe06b; background: linear-gradient(115deg,#eaf8ff,#bcdcea); box-shadow: inset 0 0 0 1px #edfbff; color: #173f58; font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: .7px; clip-path: polygon(10px 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%,0 10px); pointer-events: none; }
#easystore-section-header .yb-menu-speaker svg { width: 23px; height: 23px; flex: none; fill: none; stroke: #34728e; stroke-width: 1.3; }
#easystore-section-header .yb-menu-speaker small { font-size: 10px; letter-spacing: 1.2px; color: #527b91; font-weight: 700; }
#easystore-section-header :is(.menu-drawer, .yuyi-mega-panel) :focus-visible { outline: 2px solid #ffe16a; outline-offset: 2px; }

/* Desktop stays horizontal; all existing data-level navigation is retained. */
#easystore-section-header nav.header__inline-menu .header__submenu[data-drill-ready="1"] {
  position: fixed;
  top: calc(var(--yuyi-header-height) + 29px);
  left: 0;
  right: 0;
  z-index: var(--yuyi-z-mega);
  width: 1080px;
  min-width: 0;
  max-width: calc(100vw - 64px);
  height: auto;
  max-height: calc(100dvh - var(--yuyi-header-height) - 52px);
  margin: 0 auto;
  padding: 40px 23px 25px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#easystore-section-header nav.header__inline-menu details[open] > .header__submenu[data-drill-ready="1"] { opacity: 1; visibility: visible; pointer-events: auto; }
#easystore-section-header nav.header__inline-menu .header__submenu.yuyi-mega-closing { opacity: 0; transition: opacity .19s ease; }
#easystore-section-header .yuyi-drill,
#easystore-section-header .yuyi-drill__viewport { position: relative; min-width: 0; }
#easystore-section-header .yuyi-drill__viewport { overflow: hidden; }
#easystore-section-header .yuyi-drill__level { --yb-menu-row-fill: linear-gradient(115deg,#acc3d8eb,#89a4beeb); --yb-menu-row-line: #c8dfed; --yb-menu-row-ink: #19394b; display: none; max-height: calc(100dvh - var(--yuyi-header-height) - 122px); overflow-y: auto; overscroll-behavior: contain; padding: 3px 5px 3px 3px; scrollbar-width: thin; scrollbar-color: #6fa5bf transparent; }
#easystore-section-header .yuyi-drill__level[data-menu-depth="2"] { --yb-menu-row-fill: linear-gradient(115deg,#d0c6dbeb,#b0a2c2eb); --yb-menu-row-line: #e2d5ef; --yb-menu-row-ink: #3a3150; }
#easystore-section-header .yuyi-drill__level[data-menu-depth="3"] { --yb-menu-row-fill: linear-gradient(115deg,#b5d6cdeb,#8bb8aeeb); --yb-menu-row-line: #cceae0; --yb-menu-row-ink: #183e3d; }
#easystore-section-header .yuyi-drill__level[data-menu-depth="4"] { --yb-menu-row-fill: linear-gradient(115deg,#ded0b7eb,#c1b39aeb); --yb-menu-row-line: #eee0c7; --yb-menu-row-ink: #473a2a; }
#easystore-section-header .yuyi-drill__level.is-active { display: block; }
#easystore-section-header .yuyi-drill__level.is-leaving { display: block; position: absolute; inset: 0 0 auto; pointer-events: none; }
#easystore-section-header .yuyi-drill__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 42px 12px 0; margin-bottom: 15px; border-bottom: 1px solid #9edbec44; background: transparent; color: #d4f3ff; }
#easystore-section-header .yuyi-drill__title { flex: 1; min-width: 0; color: #d4f3ff; font-weight: 800; font-size: 17px; letter-spacing: .6px; overflow-wrap: anywhere; }
#easystore-section-header .yuyi-drill__depth { display: block; margin-bottom: 3px; color: #bdd3df; font-size: 12px; font-weight: 400; line-height: 1.4; }
#easystore-section-header :is(.yuyi-drill__back, .yuyi-drill__all) { display: inline-flex; align-items: center; min-height: calc(36px + var(--yuyi-hud-type-step)); padding: 7px 12px; border: 1px solid #9edbec66; border-radius: 0; background: #b3def312; color: #d2f1ff; font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif; font-size: 18px; font-weight: 900; }
#easystore-section-header .yuyi-drill__back { flex: none; min-height: 44px; padding: 10px 16px; border-color: #ffeac8; background: linear-gradient(115deg,#ffe7ae,#e6bf74); color: #4a3719; font-weight: 900; clip-path: polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px); }
#easystore-section-header .yuyi-drill__items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px 20px; padding: 0; margin: 0; list-style: none; }
#easystore-section-header .yuyi-drill__items > li { min-width: 0; }
#easystore-section-header .yuyi-drill__items > li > :is(a, button) { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--yb-menu-row-line); border-left: 2px solid var(--yb-menu-row-line); border-radius: 0; background: var(--yb-menu-row-fill); color: var(--yb-menu-row-ink); font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif; font-size: 18px; font-weight: 900; line-height: 1.5; text-align: left; overflow-wrap: anywhere; clip-path: polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px)); }
#easystore-section-header .yuyi-drill__items > li > :is(a, button):hover { filter: brightness(1.08); }
#easystore-section-header .yuyi-drill__next::after { content: "›"; margin-left: 10px; color: var(--yb-menu-row-ink); font-size: 20px; }
#easystore-section-header .yuyi-mega-close { position: absolute; top: 0; right: 0; z-index: 2; width: 38px; height: 34px; min-width: 38px; min-height: 34px; padding: 0; border: 1px solid #9edbec6b; border-radius: 0; background: #0a263e66; color: #c3f5ff; font-size: 0; line-height: 1.2; }
#easystore-section-header .yuyi-mega-close::before { content: "×"; font-size: 25px; }

/* Transparent outside-click dismissal stays behind the header within its own stacking context. */
html.pc-menu-open, html.yuyi-currency-open { overflow: hidden; overscroll-behavior: none; }
html.pc-menu-open #easystore-section-header::before { content: ""; position: fixed; inset: 0; z-index: -1; background: transparent; }
#easystore-section-header :is(#menu-drawer, #yuyi-right-menu-drawer) { position: fixed; top: calc(var(--yuyi-header-height) + 30px); width: calc(100vw - 32px); max-width: 360px; height: calc(100dvh - var(--yuyi-header-height) - 48px); max-height: calc(100dvh - var(--yuyi-header-height) - 48px); margin: 0; padding: 22px 12px 16px; overscroll-behavior: contain; }
#easystore-section-header #menu-drawer { display: flex; flex-direction: column; left: 16px; right: auto; }
#easystore-section-header #yuyi-right-menu-drawer { left: auto; right: 16px; z-index: var(--yuyi-z-right-drawer); padding-top: 42px; transform: translateX(100%); visibility: hidden; }
#easystore-section-header details[open] > #yuyi-right-menu-drawer { transform: translateX(0); visibility: visible; }
#easystore-section-header details[data-yuyi-drawer-managed] > .menu-drawer { transition: none; }
#easystore-section-header details[data-yuyi-drawer-managed][open] > .menu-drawer { transform: translateX(0); visibility: visible; }
#easystore-section-header details[data-yuyi-drawer-state="closing"] > .menu-drawer { pointer-events: none; }
#easystore-section-header details:not([open]) > .menu-drawer { pointer-events: none; }
#easystore-section-header .menu-drawer__inner-container { min-height: 0; flex: 1; width: 100%; height: auto; padding: 0; background: transparent; overflow: hidden; scrollbar-color: #6fa5bf transparent; scrollbar-width: thin; }
#easystore-section-header #yuyi-right-menu-drawer > .menu-drawer__inner-container { height: 100%; }
#easystore-section-header .menu-drawer__navigation-container { display: block; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; background: transparent; scrollbar-color: #6fa5bf transparent; scrollbar-width: thin; }
#easystore-section-header .menu-drawer__navigation { --yb-menu-row-fill: linear-gradient(115deg,#acc3d8eb,#89a4beeb); --yb-menu-row-line: #c8dfed; --yb-menu-row-ink: #19394b; padding: 12px 0 16px; }
#easystore-section-header #menu-drawer [data-menu-depth="2"] { --yb-menu-row-fill: linear-gradient(115deg,#d0c6dbeb,#b0a2c2eb); --yb-menu-row-line: #e2d5ef; --yb-menu-row-ink: #3a3150; }
#easystore-section-header #menu-drawer [data-menu-depth="3"] { --yb-menu-row-fill: linear-gradient(115deg,#b5d6cdeb,#8bb8aeeb); --yb-menu-row-line: #cceae0; --yb-menu-row-ink: #183e3d; }
#easystore-section-header #menu-drawer [data-menu-depth="4"] { --yb-menu-row-fill: linear-gradient(115deg,#ded0b7eb,#c1b39aeb); --yb-menu-row-line: #eee0c7; --yb-menu-row-ink: #473a2a; }
#easystore-section-header #menu-drawer .yb-menu-context { display: grid; gap: 4px; margin: 10px 7px 12px; padding: 0 4px; color: #f4fbff; }
#easystore-section-header #menu-drawer .yb-menu-context span { color: #bdd3df; font-size: 12px; line-height: 1.4; letter-spacing: .6px; }
#easystore-section-header #menu-drawer .yb-menu-context strong { color: #f4fbff; font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
#easystore-section-header #menu-drawer .yb-menu-context--root { margin-top: 0; margin-bottom: 11px; }
#easystore-section-header .menu-drawer__submenu { top: 0; bottom: 0; height: 100%; padding-top: 4px; border: 0; background: linear-gradient(105deg,#0b2b40,#10364c); color: #f4fbff; }
#easystore-section-header .menu-drawer__inner-submenu { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 18px; }
#easystore-section-header .menu-drawer__menu > li { margin: 0 7px 10px; }
#easystore-section-header #menu-drawer .menu-drawer__menu-item { position: relative; min-height: 51px; padding: 13px 16px; border: 1px solid var(--yb-menu-row-line); border-left: 2px solid var(--yb-menu-row-line); border-radius: 0; background: var(--yb-menu-row-fill); color: var(--yb-menu-row-ink); font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif; font-weight: 900; font-size: 18px; line-height: 1.5; clip-path: polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px)); }
#easystore-section-header #menu-drawer .menu-drawer__menu-item:hover { filter: brightness(1.08); }
#easystore-section-header #menu-drawer .menu-drawer__menu-item .icon { color: var(--yb-menu-row-ink); }
#easystore-section-header summary.menu-drawer__menu-item > .yuyi-menu-label { flex: 1; min-width: 0; padding-right: 22px; }
#easystore-section-header #menu-drawer .menu-drawer__close-button { display: flex; align-items: center; gap: 10px; width: fit-content; min-width: 156px; min-height: 44px; margin: 8px 7px 18px; padding: 10px 16px; border: 1px solid #ffeac8; border-radius: 0; background: linear-gradient(115deg,#ffe7ae,#e6bf74); color: #4a3719; font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif; font-size: 18px; font-weight: 900; clip-path: polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px); }
#easystore-section-header .menu-drawer__close-button svg { width: 16px; height: 16px; }
#easystore-section-header .yuyi-left-drawer-topbar { display: flex; justify-content: flex-end; flex: none; min-height: 42px; margin: 0 8px; padding: 0 0 8px; border-bottom: 1px solid #9edbec35; background: transparent; }
#easystore-section-header #menu-drawer.yuyi-submenu-open > .yuyi-left-drawer-topbar { display: none; }
#easystore-section-header :is(.yuyi-left-drawer-close, .btn-close-right-drawer) { width: 38px; min-width: 38px; height: 34px; min-height: 34px; padding: 0; border: 1px solid #9edbec6b; border-radius: 0; background: #0a263e66; color: #c3f5ff; font-size: 12px; line-height: 1.2; }
#easystore-section-header .btn-close-right-drawer { position: absolute; top: 21px; right: 20px; z-index: 4; }
#easystore-section-header .menu-drawer__bottom-logo { padding: 22px 20px 12px; text-align: center; opacity: .9; }
#easystore-section-header .menu-drawer__bottom-logo img { max-width: 140px; height: auto; }
#easystore-section-header .yuyi-right-drawer-topbar { display: flex; align-items: center; gap: 10px; margin: 0 8px; padding: 16px 0 11px; border-bottom: 1px solid #9edbec35; background: transparent; color: #c8eafa; }
#easystore-section-header .yuyi-right-currency-select { flex: 1; min-width: 0; }
#easystore-section-header .currency-label { font-size: 12px; font-weight: 700; white-space: nowrap; color: #c5dce7; }
#easystore-section-header .yuyi-right-drawer-content { padding: 16px 8px 12px; }
#easystore-section-header .menu-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
#easystore-section-header .menu-cards li { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 116px; padding: 8px; border: 1px solid #9edbec55; border-radius: 0; background: linear-gradient(135deg,#87c1db13,#142f4529); clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px); }
#easystore-section-header .menu-cards li::after { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 2px; background: #ffe16a8c; }
#easystore-section-header .menu-cards li:hover { background: #9edbec18; border-color: #c3f5ff; }
#easystore-section-header .quick-img-card { display: flex; justify-content: center; width: 100%; }
#easystore-section-header .quick-img-card img { width: auto; max-width: 100%; max-height: 112px; height: auto; object-fit: contain; }
@media(prefers-reduced-motion:no-preference) {
  #easystore-section-header details[open] > :is(.menu-drawer, .yuyi-mega-panel) > :is(.yb-menu-frame, .yb-menu-speaker) { animation: yb-menu-frame-in .32s ease-out both; }
  @keyframes yb-menu-frame-in { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
}
@media(prefers-reduced-motion:reduce) {
  #easystore-section-header :is(.menu-drawer, .yuyi-mega-panel),
  #easystore-section-header :is(.menu-drawer, .yuyi-mega-panel) * { animation: none !important; transition: none !important; }
}
@media(max-width:350px) {
  #easystore-section-header .yb-menu-speaker { font-size: 14px; min-width: 140px; left: 16px; }
  #easystore-section-header :is(#menu-drawer, #yuyi-right-menu-drawer) { left: 12px; right: auto; width: calc(100vw - 24px); max-width: none; padding-inline: 10px; }
  #easystore-section-header #yuyi-right-menu-drawer { right: 12px; left: auto; }
  #easystore-section-header .menu-cards { gap: 10px; }
  #easystore-section-header .menu-cards li { min-height: 106px; }
  #easystore-section-header .quick-img-card img { max-height: 104px; }
}

/* The currency controller moves the overlay to body; scope it to the theme. */
.yb-game-theme .yuyi-currency-overlay { position: fixed; inset: 0; z-index: var(--yuyi-z-modal); display: flex; align-items: center; justify-content: center; padding: 20px; isolation: isolate; }
.yb-game-theme .yuyi-currency-overlay[hidden] { display: none; }
.yb-game-theme .yuyi-currency-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7,29,47,.55); }
.yb-game-theme .yuyi-currency-overlay[data-state="opening"]::before { animation: yuyi-currency-fade-in .4s cubic-bezier(.3,1.3,.3,1) both; }
.yb-game-theme .yuyi-currency-overlay[data-state="closing"]::before { animation: yuyi-currency-fade-out .4s cubic-bezier(.3,1.3,.3,1) both; }
.yb-game-theme .yuyi-currency-overlay[data-state="opening"] .yuyi-currency-modal { animation: yuyi-currency-rise-in .4s cubic-bezier(.3,1,.3,1) both, yuyi-currency-fade-in .4s cubic-bezier(.3,1.3,.3,1) both; }
.yb-game-theme .yuyi-currency-overlay[data-state="closing"] .yuyi-currency-modal { animation: yuyi-currency-shrink-out .4s cubic-bezier(.3,1.3,.3,1) both, yuyi-currency-fade-out .4s cubic-bezier(.3,1.3,.3,1) both; }
@keyframes yuyi-currency-rise-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes yuyi-currency-shrink-out { from { transform: scale(1); } to { transform: scale(.5); } }
@keyframes yuyi-currency-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes yuyi-currency-fade-out { from { opacity: 1; } to { opacity: 0; } }
.yb-game-theme .yuyi-currency-modal { position: relative; width: min(500px,100%); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #b7d7e8; border-top: 4px solid #087cad; border-radius: 3px 3px 14px 3px; background: #f6fbff; color: #102b43; box-shadow: 0 20px 80px rgba(0,20,35,.3); }
.yb-game-theme .yuyi-currency-head { padding: 20px 60px 16px 22px; border-bottom: 1px solid #cee0eb; font-size: calc(20px + var(--yuyi-hud-type-step)); font-weight: 800; }
.yb-game-theme .yuyi-currency-close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 1px solid #bfd7e5; border-radius: 2px; background: white; color: #102b43; font-size: 27px; cursor: pointer; }
.yb-game-theme .yuyi-currency-body { padding: 22px; }
.yb-game-theme .yuyi-currency-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 20px; }
.yb-game-theme .yuyi-currency-label { min-width: 64px; font-size: calc(14px + var(--yuyi-hud-type-step)); font-weight: 700; }
.yb-game-theme .yuyi-currency-select { min-width: 0; color: #000; }
.yb-game-theme .yuyi-currency-select select { width: 100%; min-width: 90px; height: calc(44px + var(--yuyi-hud-type-step)); padding: 8px 24px 8px 10px; border: 1px solid #aacbde; border-radius: 2px; background: white; color: #102b43; font-size: calc(15px + var(--yuyi-hud-type-step)); }
.yb-game-theme .yuyi-currency-modal .yuyi-currency-select { flex: 1; }

/* Notifications remain readable and keep all unread/hidden states. */
#easystore-section-header .yb-notify { position: relative; display: inline-flex; width: var(--yuyi-ui-icon-box); height: var(--yuyi-ui-icon-box); }
#easystore-section-header .yb-notify-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 100040; width: 350px; max-width: calc(100vw - 24px); border: 1px solid var(--hud-line); border-top: 3px solid var(--hud-blue); border-radius: 3px 3px 10px 3px; background: white; box-shadow: 0 15px 45px rgba(7,36,57,.2); overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease; }
#easystore-section-header .yb-notify-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
#easystore-section-header .yb-notify-panel[hidden] { display: none; }
#easystore-section-header .yb-notify-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--hud-line); background: #eaf6fd; }
#easystore-section-header .yb-notify-head-title { font-size: calc(15px + var(--yuyi-hud-type-step)); font-weight: 800; }
#easystore-section-header .yb-notify-readall { min-height: calc(32px + var(--yuyi-hud-type-step)); padding: 4px 8px; border: 1px solid var(--hud-line); background: white; color: var(--hud-blue); font-size: calc(12px + var(--yuyi-hud-type-step)); font-weight: 700; }
#easystore-section-header .yb-notify-list { max-height: min(420px,calc(100dvh - var(--yuyi-header-height) - 90px)); overflow-y: auto; overscroll-behavior: contain; }
#easystore-section-header .yb-notify-item { display: block; width: 100%; padding: 14px; border: 0; border-bottom: 1px solid #e3edf3; background: white; color: var(--hud-ink); text-align: left; }
#easystore-section-header .yb-notify-item.is-unread { background: #edf8ff; }
#easystore-section-header .yb-notify-item:hover { background: #e2f3fd; }
#easystore-section-header .yb-notify-title { display: flex; align-items: center; gap: 7px; font-size: calc(14px + var(--yuyi-hud-type-step)); font-weight: 800; line-height: 1.5; }
#easystore-section-header .yb-notify-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #087cad; }
#easystore-section-header .yb-notify-body { margin-top: 5px; color: #4e6a7e; font-size: calc(13px + var(--yuyi-hud-type-step)); line-height: 1.6; overflow-wrap: anywhere; }
#easystore-section-header .yb-notify-time { margin-top: 7px; color: #6e8392; font-size: calc(11px + var(--yuyi-hud-type-step)); line-height: 1.4; }
#easystore-section-header .yb-notify-empty { padding: 28px 14px; color: #61788a; text-align: center; font-size: calc(14px + var(--yuyi-hud-type-step)); }

/* Keep the brand, navigation and tools on one desktop row. */
@media (min-width: 1090px) {
  :root { --yuyi-header-height: var(--hdr-top, calc(clamp(44px, 2.8vw, 54px) + 20px)); --yuyi-hud-type-step: clamp(1px, calc(.25vw - 1.8px), 4px); }
  #easystore-section-header {
    --hud-layout-width: 96%;
    --hud-pad-x: 0px;
    --hud-pad-top: 10px;
    --hud-pad-bottom: 10px;
    --hud-brand-height: clamp(44px, 2.8vw, 54px);
    --hud-logo-width: clamp(88px, 7vw, 124px);
    --hud-logo-height: clamp(34px, 2.3vw, 44px);
    --hud-menu-height: 38px;
    --hud-menu-size: clamp(14px, calc(.58vw + 7.65px), 16px);
    --hud-menu-gap: clamp(4px, calc(1.15vw - 8.5px), 10px);
    --hud-menu-pad-x: clamp(4px, calc(1.15vw - 8.5px), 10px);
    --hud-tool-gap: clamp(5px, .4vw, 9px);
    --yuyi-ui-icon-box: clamp(36px, 2.3vw, 48px);
    --yuyi-ui-icon-glyph: clamp(23px, 1.5vw, 29px);
  }
}
@media (max-width: 1089px) {
  #easystore-section-header { --yuyi-ui-icon-box: 40px; --yuyi-ui-icon-glyph: 23px; }
  #easystore-section-header .header { display: flex; flex-wrap: nowrap; gap: 7px; min-height: 64px; padding: 10px 14px; }
  #easystore-section-header header-drawer { display: flex; flex: 0 0 auto; order: 0; margin: 0; }
  #easystore-section-header .header__heading-link, #easystore-section-header .header__heading { flex: 0 0 auto; width: fit-content; min-width: 0; order: 1; height: 40px; padding: 3px 8px; margin-right: auto; }
  #easystore-section-header .header__heading-logo { width: 94px; max-height: 34px; }
  #easystore-section-header .header__inline-menu { display: none; }
  #easystore-section-header .yuyi-mobile-search { order: 3; }
  #easystore-section-header .header__icons { order: 2; gap: 7px; }
  #easystore-section-header .header__icons > .yuyi-currency-pop,
  #easystore-section-header .header__icons > .header__icon--account,
  #easystore-section-header .header__icons > #cart-icon-bubble { display: none; }
  #easystore-section-header .yuyi-right-drawer-container { display: flex; order: 4; margin: 0; padding: 0; }
  #easystore-section-header .yb-notify-panel { position: fixed; top: calc(var(--yuyi-header-height) + 8px); left: 12px; right: 12px; width: auto; max-width: none; }
}
@media (max-width: 480px) {
  :root { --yuyi-header-height: var(--hdr-top, 62px); }
  #easystore-section-header { --yuyi-ui-icon-box: 36px; --yuyi-ui-icon-glyph: 22px; }
  #easystore-section-header .header { min-height: 62px; gap: 5px; padding: 10px 8px; }
  #easystore-section-header .header__icons { gap: 5px; }
  #easystore-section-header .header__heading-logo { width: 84px; }
  #easystore-section-header .header__heading-link { padding-inline: 6px; }
  #easystore-section-header .header__icon::after,
  #easystore-section-header .yb-notify-btn::after { content: ""; position: absolute; inset: -4px -2px; }
}
@media (max-width: 360px) {
  #easystore-section-header .header { gap: 4px; padding-inline: 6px; }
  #easystore-section-header .header__icons { gap: 4px; }
  #easystore-section-header .header__heading-logo { width: 66px; }
  #easystore-section-header .header__heading-link { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #easystore-section-header, #easystore-section-header *, .yb-game-theme .yuyi-currency-overlay *, .yb-game-theme .yuyi-currency-overlay::before { animation-duration: .01ms!important; transition-duration: .01ms; scroll-behavior: auto; }
}
@media (forced-colors: active) {
  #easystore-section-header .header__icon, #easystore-section-header .yb-notify-btn { border-color: ButtonText; }
}
