﻿.dv-brand {display:flex; align-items:center; gap:12px; margin-right:auto; min-height:44px; text-decoration:none}
.dv-brand img {width:80px; height:auto}
.dv-brand-en {position:relative; padding-left:12px; font:600 15px/1 Georgia,"Times New Roman",serif; letter-spacing:.24em; white-space:nowrap;
  background:linear-gradient(180deg,#f5df9e,#c9a35b 55%,#8a6a2e); -webkit-background-clip:text; background-clip:text; color:transparent}
.dv-brand-en::before {content:""; position:absolute; left:0; top:50%; width:1px; height:22px; transform:translateY(-50%);
  background:linear-gradient(180deg,transparent,rgba(176,146,86,.60),transparent)}
.mast-action {gap:12px; white-space:nowrap}
.dv-reserve {display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 16px;
  border:1px solid #ad905e; color:#f1d6a2; background:linear-gradient(150deg,#332e27,#191b20); white-space:nowrap}
.dv-store {display:flex; flex-wrap:wrap; align-items:center; gap:8px}
[data-store-slot="footer"] {justify-content:center; margin:8px auto}
.dv-badge {position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px; text-decoration:none}
.dv-badge img {display:block; height:40px; width:auto; max-width:none}
.dv-badge-placeholder {display:grid; place-items:center; min-height:40px; padding:0 8px; border:1px dashed #ad905e; color:#efdfc3; font:600 13px/1.2 var(--sans)}
.dv-badge[aria-disabled] {cursor:default}
.dv-badge[aria-disabled] img {filter:grayscale(1); opacity:.66}
.dv-badge-tip {position:absolute; z-index:2; bottom:calc(100% - 5px); left:50%; transform:translateX(-50%); padding:4px 8px;
  visibility:hidden; white-space:nowrap; color:#f3e5cd; background:#171a20; border:1px solid #ad905e; font:500 13px/1.4 var(--sans)}
.dv-badge:focus .dv-badge-tip,.dv-badge[data-pressed] .dv-badge-tip {visibility:visible}
.dv-brand:focus-visible,.dv-reserve:focus-visible,.dv-badge:focus-visible {outline:2px solid #b09256; outline-offset:2px}
@media (hover:hover) and (pointer:fine) {
  .dv-badge:hover .dv-badge-tip {visibility:visible}
  .dv-reserve:hover,.dv-store a:hover {box-shadow:0 0 0 1px #be9f65}
  .dv-brand:hover {opacity:.85}
}
.dv-reserve:active,.dv-brand:active,.dv-store a:active {opacity:.8}
@media (max-width:1000px) and (min-width:761px) {
  .layout-A .mast {padding-inline:12px; gap:8px}
  .mast nav {gap:8px}
  .mast-action {min-width:0; gap:6px}
  .mast .sticky-slot {position:fixed; bottom:var(--cookie-height,0px); right:12px}
  body:has(.sticky-slot:not([hidden])) .endnotes {padding-bottom:70px}
}
@media (max-width:767px) {
  .dv-brand {gap:8px}
  .dv-brand img {width:60px}
  .dv-brand-en {font-size:12px; letter-spacing:.18em; padding-left:8px}
  .dv-brand-en::before {height:18px}
  .dv-reserve {padding:8px 12px; font-size:13px}
}
@media (max-width:760px) {
  .layout-A .mast {padding-inline:6px; gap:3px}
  .mast-action {margin-right:0; gap:4px}
  .mast-brand {letter-spacing:0}
}
@media (max-width:390px) {
  html:lang(en) .mast-brand {display:none !important}
}
@media (width < 360px) {
  .dv-brand-en {display:none}
}
/* WEB5B-pk 12/04：捲過首屏後黏性報名鍵進頂列，頂列太擠（英文 1440 以下、中文 1100 以下選單折兩行、和語言切換重疊）。
   1001px 以上黏性鍵出現時收起「即將開放」（兩鍵都通往報名，留較醒目的黏性鍵）；選單連結不折行。 */
#main-nav > a {white-space:nowrap}
@media (min-width:1001px) {
  html:not(:lang(en)) .mast-action:has(.sticky-slot:not([hidden])) .dv-reserve {display:none}
}
/* 英文報名鍵較長（約 300px）：1281px 以上才進頂列；761～1280px 比照中文 1000px 以下，固定在畫面右下 */
@media (min-width:1281px) {
  html:lang(en) .mast-action:has(.sticky-slot:not([hidden])) .dv-reserve {display:none}
}
@media (max-width:1280px) and (min-width:761px) {
  html:lang(en) .mast .sticky-slot {position:fixed; bottom:var(--cookie-height,0px); right:12px}
  html:lang(en) body:has(.sticky-slot:not([hidden])) .endnotes {padding-bottom:70px}
}
/* WEB-1204-mobile-fix 包 1（plan #1）：首頁頂列左右 16、元件間距 8；≤420 英文副標字距收 */
@media (max-width:760px){.layout-A .mast{padding-inline:16px;gap:8px}.mast-action{gap:8px}}
@media (max-width:420px){.dv-brand-en{letter-spacing:.12em}}
/* WEB-1204-home-mkt Q3：頁首鍵改用全站報名句，括號狀態字包 <small> 排第二行，頂列寬度與原本「即將開放」相近，不擠選單。 */
.dv-reserve {flex-direction:column; gap:1px; padding-block:4px; line-height:1.15}
.dv-reserve small {font-size:11px; font-weight:400; opacity:.85}
@media (max-width:767px) {
  .dv-reserve {padding:4px 10px}
}
