/* Treasure Island and Diary tabs. In the same layer as the site's override rules so these sizes hold. */
@layer club-desktop-standard {
  html:root body main.member-tools .mystar:not(#x):not(#y) { box-sizing:border-box !important; padding:20px 10px 16px !important; border:1px solid #dce2e1 !important; border-radius:10px !important; background:#fff !important; text-align:center !important; }
  html:root body main.member-tools .mystar .ms-head:not(#x):not(#y) { display:flex !important; align-items:center !important; justify-content:center !important; gap:8px !important; margin:0 0 16px !important; }
  html:root body main.member-tools .mystar .ms-heading:not(#x):not(#y) { min-width:0 !important; }
  html:root body main.member-tools .mystar .ms-title:not(#x):not(#y) { color:#14283c !important; line-height:1.35 !important; word-break:keep-all !important; overflow-wrap:anywhere !important; }
  html:root body main.member-tools .mystar span.ms-name:not(#x):not(#y) { font-size:18px !important; font-weight:700 !important; line-height:1.5 !important; letter-spacing:-.02em !important; color:#283735 !important; }
  html:root body main.member-tools .mystar span.ms-honor:not(#x):not(#y) { font:inherit !important; color:inherit !important; }
  html:root body main.member-tools .mystar span.ms-brand:not(#x):not(#y) { font-size:18px !important; font-weight:700 !important; line-height:1.5 !important; letter-spacing:-.02em !important; color:#283735 !important; }
  html:root body main.member-tools .mystar span.ms-sub:not(#x):not(#y) { display:block !important; margin:4px 0 0 !important; font-size:12px !important; line-height:1.5 !important; color:#4b5560 !important; word-break:keep-all !important; }
  html:root body main.member-tools .mystar .ms-row:not(#x):not(#y) { margin:0 0 8px !important; padding:14px 8px 12px !important; border-radius:8px !important; }
  html:root body main.member-tools .mystar .ms-mega:not(#x):not(#y) { background:#eef2f8 !important; --ms-ink:#172b3d; }
  html:root body main.member-tools .mystar .ms-hot:not(#x):not(#y) { background:#f5eef1 !important; --ms-ink:#482332; }
  html:root body main.member-tools .mystar .ms-main:not(#x):not(#y) { display:grid !important; grid-template-columns:98px minmax(0,1fr) !important; align-items:center !important; }
  html:root body main.member-tools .mystar .ms-side:not(#x):not(#y) { display:flex !important; flex-direction:column !important; align-items:center !important; align-self:stretch !important; justify-content:center !important; gap:6px !important; padding:0 6px 0 0 !important; border-right:1px solid #cfd3da !important; }
  html:root body main.member-tools .mystar span.ms-place:not(#x):not(#y) { font-size:12px !important; font-weight:700 !important; line-height:1.4 !important; color:var(--ms-ink) !important; white-space:nowrap !important; }
  html:root body main.member-tools .mystar span.ms-count:not(#x):not(#y) { font-size:28px !important; font-weight:700 !important; line-height:1.15 !important; color:var(--ms-ink) !important; white-space:nowrap !important; }
  html:root body main.member-tools .mystar .ms-count small:not(#x):not(#y) { font-size:17px !important; }
  html[lang="en"]:root body main.member-tools .mystar .ms-count small:not(#x):not(#y) { display:block !important; font-size:12px !important; font-weight:700 !important; text-align:center !important; }
  /* bars, then medals five to a line, then the small coins: each kind keeps one size */
  html:root body main.member-tools .mystar .ms-treasure:not(#x):not(#y) { --ms-size:clamp(34px,10.4vw,48px); --ms-coin:clamp(19px,5.6vw,26px); display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; gap:8px !important; min-width:0 !important; min-height:64px !important; padding:0 0 0 6px !important; }
  html:root body main.member-tools .mystar .ms-bars:not(#x):not(#y) { display:flex !important; flex-wrap:wrap !important; justify-content:center !important; gap:6px !important; width:100% !important; }
  html:root body main.member-tools .mystar .ms-medals:not(#x):not(#y) { display:grid !important; grid-template-columns:repeat(5,minmax(0,var(--ms-size))) !important; justify-content:center !important; gap:8px 2px !important; width:100% !important; }
  html:root body main.member-tools .mystar .ms-coins:not(#x):not(#y) { display:flex !important; flex-wrap:wrap !important; justify-content:center !important; gap:4px 2px !important; width:100% !important; max-width:calc(5 * var(--ms-coin) + 8px) !important; }
  html:root body main.member-tools .mystar .ms-treasure img:not(#x):not(#y) { display:block !important; min-width:0 !important; max-width:100% !important; height:auto !important; margin:0 !important; border-radius:0 !important; }
  html:root body main.member-tools .mystar .ms-bars img:not(#x):not(#y) { width:calc(var(--ms-size) * 2.2) !important; aspect-ratio:160/96 !important; }
  html:root body main.member-tools .mystar .ms-medals img:not(#x):not(#y) { width:100% !important; aspect-ratio:104/124 !important; }
  html:root body main.member-tools .mystar .ms-coins img:not(#x):not(#y) { width:var(--ms-coin) !important; aspect-ratio:1 !important; }
  html:root body main.member-tools .mystar span.ms-empty:not(#x):not(#y) { text-align:center !important; font-size:12px !important; line-height:1.5 !important; color:#756870 !important; word-break:keep-all !important; }
  html:root body main.member-tools .mystar .ms-goal:not(#x):not(#y) { display:flex !important; flex-wrap:wrap !important; justify-content:center !important; align-items:baseline !important; gap:2px 10px !important; margin:10px 0 0 !important; padding:9px 0 0 !important; border-top:1px solid rgba(23,43,61,.12) !important; }
  html:root body main.member-tools .mystar span.ms-club:not(#x):not(#y) { font-size:14px !important; font-weight:700 !important; color:var(--ms-ink) !important; }
  html:root body main.member-tools .mystar span.ms-next:not(#x):not(#y) { font-size:13px !important; line-height:1.5 !important; color:#2f363d !important; }
  html:root body main.member-tools .mystar .ms-words:not(#x):not(#y) { display:flex !important; flex-direction:column !important; gap:3px !important; margin:18px 4px 0 !important; }
  html:root body main.member-tools .mystar .ms-words span:not(#x):not(#y) { font-size:13px !important; line-height:1.65 !important; color:#2f363d !important; word-break:keep-all !important; }
  html:root body main.member-tools .mystar .ms-words span.ms-total:not(#x):not(#y) { margin:0 0 4px !important; font-size:15px !important; font-weight:700 !important; color:#14283c !important; }
  html:root body main.member-tools .mystar .ms-foot.ms-key + .ms-foot:not(#x):not(#y) { margin:2px 0 0 !important; }
  html:root body main.member-tools .mystar .ms-foot:not(#x):not(#y) { margin:14px 0 0 !important; font-size:12px !important; line-height:1.5 !important; color:#6a7076 !important; }
  @media (min-width:761px) {
    html:root body main.member-tools .mystar:not(#x):not(#y) { max-width:720px !important; margin-inline:auto !important; padding:34px 28px 24px !important; }
    html:root body main.member-tools .mystar span.ms-name:not(#x):not(#y) { font-size:23px !important; font-weight:700 !important; line-height:1.5 !important; letter-spacing:-.02em !important; color:#283735 !important; }
    html:root body main.member-tools .mystar span.ms-brand:not(#x):not(#y) { font-size:23px !important; font-weight:700 !important; line-height:1.5 !important; letter-spacing:-.02em !important; color:#283735 !important; }
    html:root body main.member-tools .mystar span.ms-sub:not(#x):not(#y) { font-size:14px !important; }
    html:root body main.member-tools .mystar .ms-main:not(#x):not(#y) { grid-template-columns:170px minmax(0,1fr) !important; }
    html:root body main.member-tools .mystar span.ms-place:not(#x):not(#y) { font-size:17px !important; }
    html:root body main.member-tools .mystar span.ms-count:not(#x):not(#y) { font-size:40px !important; }
    html:root body main.member-tools .mystar .ms-treasure:not(#x):not(#y) { --ms-size:74px; --ms-coin:42px; gap:14px !important; min-height:100px !important; }
    html:root body main.member-tools .mystar .ms-medals:not(#x):not(#y) { gap:12px 8px !important; }
    html:root body main.member-tools .mystar .ms-coins:not(#x):not(#y) { max-width:none !important; gap:8px !important; }
  }
  @media (max-width:360px) {
    html:root body main.member-tools .mystar .ms-main:not(#x):not(#y) { grid-template-columns:88px minmax(0,1fr) !important; }
    html:root body main.member-tools .mystar span.ms-count:not(#x):not(#y) { font-size:23px !important; }
    html:root body main.member-tools .mystar .ms-count small:not(#x):not(#y) { font-size:14px !important; }
    html:root body main.member-tools .mystar span.ms-place:not(#x):not(#y) { font-size:12px !important; }
  }
  /* Diary */
  html:root body main.member-tools .mydiary:not(#x):not(#y) { box-sizing:border-box !important; width:100% !important; padding:14px 8px 16px !important; border:1px solid #dce2e1 !important; border-radius:10px !important; background:#fff !important; text-align:center !important; }
  html:root body main.member-tools .mydiary .md-head:not(#x):not(#y) { display:flex !important; align-items:center !important; justify-content:center !important; gap:10px !important; margin:0 0 10px !important; }
  html:root body main.member-tools .mydiary .md-month:not(#x):not(#y) { min-width:150px !important; font-size:18px !important; font-weight:700 !important; line-height:1.5 !important; color:#283735 !important; }
  html:root body main.member-tools .mydiary button.md-turn:not(#x):not(#y) { display:flex !important; align-items:center !important; justify-content:center !important; width:40px !important; min-width:0 !important; height:40px !important; min-height:0 !important; margin:0 !important; padding:0 0 4px !important; border:1px solid #dce2e1 !important; border-radius:0 !important; background:#fff !important; color:#283735 !important; font-size:22px !important; line-height:1 !important; cursor:pointer !important; }
  html:root body main.member-tools .mydiary button.md-turn:disabled:not(#x):not(#y) { opacity:.3 !important; cursor:default !important; }
  html:root body main.member-tools .mydiary .md-grid:not(#x):not(#y) { display:grid !important; grid-template-columns:repeat(7,minmax(0,1fr)) !important; border-top:1px solid #e6e9ea !important; }
  html:root body main.member-tools .mydiary span.md-week:not(#x):not(#y) { padding:7px 0 !important; font-size:12px !important; line-height:1.4 !important; color:#5b646b !important; border-bottom:1px solid #e6e9ea !important; }
  html:root body main.member-tools .mydiary .md-day:not(#x):not(#y) { display:flex !important; flex-direction:column !important; align-items:center !important; gap:3px !important; min-width:0 !important; min-height:58px !important; padding:4px 0 5px !important; border-bottom:1px solid #e6e9ea !important; }
  html:root body main.member-tools .mydiary span.md-date:not(#x):not(#y) { display:block !important; width:22px !important; border-radius:50% !important; font-size:12px !important; line-height:22px !important; color:#2f363d !important; }
  html:root body main.member-tools .mydiary .md-today span.md-date:not(#x):not(#y) { background:#172b3d !important; color:#fff !important; }
html[lang="en"]:root body main.member-tools .mydiary .md-today span.md-date:not(#x):not(#y) { background:#482332 !important; }
  html:root body main.member-tools .mydiary .md-gems:not(#x):not(#y) { display:flex !important; flex-wrap:wrap !important; justify-content:center !important; gap:2px 1px !important; width:100% !important; }
  html:root body main.member-tools .mydiary img.md-gem:not(#x):not(#y) { display:block !important; width:16px !important; max-width:46% !important; min-width:0 !important; height:auto !important; aspect-ratio:40/48 !important; margin:0 !important; border-radius:0 !important; }
  html:root body main.member-tools .mydiary .md-key:not(#x):not(#y) { display:flex !important; flex-wrap:wrap !important; justify-content:center !important; gap:6px 20px !important; margin:14px 0 0 !important; }
  html:root body main.member-tools .mydiary span.md-key-item:not(#x):not(#y) { display:flex !important; align-items:center !important; gap:6px !important; font-size:13px !important; font-weight:700 !important; line-height:1.5 !important; color:#2f363d !important; }
  html:root body main.member-tools .mydiary .md-key img:not(#x):not(#y) { width:14px !important; min-width:0 !important; height:17px !important; margin:0 !important; border-radius:0 !important; }
  html:root body main.member-tools .mydiary span.md-total:not(#x):not(#y) { display:block !important; margin:10px 0 0 !important; font-size:15px !important; font-weight:700 !important; line-height:1.5 !important; color:#14283c !important; }
  html:root body main.member-tools .mydiary .md-foot:not(#x):not(#y) { margin:8px 4px 0 !important; font-size:12px !important; line-height:1.5 !important; color:#6a7076 !important; word-break:keep-all !important; }
  html:root body main.member-tools .mydiary span.md-tail:not(#x):not(#y) { border-bottom:1px solid #e6e9ea !important; }
  @media (min-width:761px) {
    html:root body main.member-tools .mydiary .md-day:not(#x):not(#y) { min-height:84px !important; }
    html:root body main.member-tools .mydiary img.md-gem:not(#x):not(#y) { width:24px !important; }
    html:root body main.member-tools .mydiary:not(#x):not(#y) { max-width:720px !important; margin-inline:auto !important; padding:24px 28px !important; }
  }
  /* no floating quick menu on My Page (this stylesheet is only loaded there) */
  html:root body :is(.class-quick-book, .club-back-top):not(#x):not(#y):not(#z) { display:none !important; }
  /* five tabs on phones: Korean on one line, English may take two */
  @media (max-width:760px) {
    html:root body main.member-tools .member-nav:not(#x):not(#y) { width:100% !important; justify-content:space-between !important; flex-wrap:nowrap !important; gap:4px !important; }
    html[lang="en"]:root body main.member-tools .member-nav:not(#x):not(#y):not(#z) { flex-wrap:wrap !important; justify-content:center !important; gap:2px 18px !important; }
    html:root body main.member-tools .member-nav a:not(#x):not(#y) { font-size:clamp(11.5px,3.55vw,16px) !important; white-space:nowrap !important; }
    html[lang="en"]:root body main.member-tools .member-nav a:not(#x):not(#y) { font-size:13px !important; }
  }
}
