


:root {
  
  --c-brand:        #2f6fe0;
  --c-brand-strong: #1f57bd;
  --c-brand-soft:   #eaf1fe;
  --c-brand-ring:   rgba(47, 111, 224, .35);

  
  --c-ok:      #12805a;
  --c-ok-soft: #e6f5ee;
  --c-warn:      #9c5f08;
  --c-warn-soft: #fdf3e2;
  --c-danger:      #c0392b;
  --c-danger-soft: #fdecea;
  --c-accent:      #b4761a;   

  
  --n-50:  #f7f8fa;
  --n-100: #eef0f4;
  --n-300: #d3d8e0;
  --n-600: #5b6472;
  --n-900: #1a1e26;

  
  --text:      var(--n-900);
  --text-2:    var(--n-600);
  
  --text-3:    #646e7e;
  --bg:        #ffffff;
  --bg-2:      var(--n-50);
  --bg-3:      var(--n-100);
  --line:      var(--n-300);
  --line-soft: #e7eaf0;

  
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;

  
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  
  --sh-1: 0 1px 2px rgba(16, 20, 28, .06), 0 1px 3px rgba(16, 20, 28, .05);
  --sh-2: 0 8px 24px rgba(16, 20, 28, .12), 0 2px 6px rgba(16, 20, 28, .07);

  
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
          "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  
  --fs-body: 15.5px;
  --lh-body: 1.72;
  
  --fs-meta: 13.5px;
  
  --fs-small: 12.5px;

  
  --wide: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  
  --ph: linear-gradient(135deg, #dfe6f2 0%, #e9edf5 45%, #d7e0f0 100%);
}


:root[data-theme="dark"] {
  --c-brand:        #6fa2f5;
  --c-brand-strong: #8fb8ff;
  --c-brand-soft:   #1b2740;
  --c-brand-ring:   rgba(111, 162, 245, .45);

  --c-ok:      #4cc38a;
  --c-ok-soft: #14291f;
  --c-warn:      #e2b04a;
  --c-warn-soft: #2a2415;
  --c-danger:      #f0715f;
  --c-danger-soft: #2c1a18;
  --c-accent:      #ffcf70;

  --text:      #e8ecf3;
  --text-2:    #a9b3c2;
  
  --text-3:    #8b97a9;
  --bg:        #10131a;
  --bg-2:      #161b24;
  --bg-3:      #1d232e;
  --line:      #2b3340;
  --line-soft: #232b36;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-2: 0 10px 28px rgba(0, 0, 0, .55);

  --ph: linear-gradient(135deg, #222b39 0%, #1b2331 45%, #26313f 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-brand:        #6fa2f5;
    --c-brand-strong: #8fb8ff;
    --c-brand-soft:   #1b2740;
    --c-brand-ring:   rgba(111, 162, 245, .45);

    --c-ok:      #4cc38a;
    --c-ok-soft: #14291f;
    --c-warn:      #e2b04a;
    --c-warn-soft: #2a2415;
    --c-danger:      #f0715f;
    --c-danger-soft: #2c1a18;
    --c-accent:      #ffcf70;

    --text:      #e8ecf3;
    --text-2:    #a9b3c2;
    --text-3:    #8b97a9;
    --bg:        #10131a;
    --bg-2:      #161b24;
    --bg-3:      #1d232e;
    --line:      #2b3340;
    --line-soft: #232b36;

    --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
    --sh-2: 0 10px 28px rgba(0, 0, 0, .55);

    --ph: linear-gradient(135deg, #222b39 0%, #1b2331 45%, #26313f 100%);
  }
}


*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


body,
.topbar, .sitefoot, .wrap,
.card-head, .panel, .card, .mblock, .mstage, .mitem, .tier, .tier > .head, .tier .items,
.toolbar, .seg, .seg button, .iconbtn, .chip, .badge, .pricebadge .pb-value,
.tierlist li, .names .name, .lockline, .lockblock, .lockcorner, .commitbar,
.empty, .errorbox, .notice, .toast, .pager .pinfo,
.tablewrap, table.tbl, table.tbl thead th, table.tbl tbody tr,
.modal-mask, .modal, .modal-head, .modal-foot, .lockfull,
.pkgbox, .authbox, .lockedit, .bulkbar, .sk-card, .sk,
input, select, textarea, .btn, .linkbtn, .dragh {
  transition: background-color .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), box-shadow .28s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  body,
  .topbar, .sitefoot, .wrap,
  .card-head, .panel, .card, .mblock, .mstage, .mitem, .tier, .tier > .head, .tier .items,
  .toolbar, .seg, .seg button, .iconbtn, .chip, .badge, .pricebadge .pb-value,
  .tierlist li, .names .name, .lockline, .lockblock, .lockcorner, .commitbar,
  .empty, .errorbox, .notice, .toast, .pager .pinfo,
  .tablewrap, table.tbl, table.tbl thead th, table.tbl tbody tr,
  .modal-mask, .modal, .modal-head, .modal-foot, .lockfull,
  .pkgbox, .authbox, .lockedit, .bulkbar, .sk-card, .sk,
  input, select, textarea, .btn, .linkbtn, .dragh { transition: none !important; }
}


h1, h2, h3 { margin: 0 0 var(--s-3); line-height: 1.32; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(21px, 3.2vw, 27px); }
h2 { font-size: 19px; }
h3 { font-size: 17px; }
p { margin: 0 0 var(--s-2); }

a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-strong); text-decoration: underline; text-underline-offset: 2px; }

img { max-width: 100%; }


::selection { background: var(--c-brand); color: #fff; }
:root[data-theme="dark"] ::selection,
:root:not([data-theme="light"]) ::selection { background: var(--c-brand); color: #14101c; }
::-moz-selection { background: var(--c-brand); color: #fff; }
:root[data-theme="dark"] ::-moz-selection,
:root:not([data-theme="light"]) ::-moz-selection { background: var(--c-brand); color: #14101c; }

:focus-visible {
  outline: 3px solid var(--c-brand-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg); color: var(--text); padding: var(--s-2) var(--s-4);
  border-radius: 0 0 var(--r-sm) 0; box-shadow: var(--sh-2);
}
.skip:focus { left: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-6); }


.i { width: 20px; height: 20px; display: block; }


.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.topbar-in {
  max-width: var(--wide); margin: 0 auto;
  padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { color: var(--text); text-decoration: none; }

.brand .brandlogo {
  display: block;
  height: 30px;
  width: auto;
  flex: none;
  
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .10));
}

:root[data-theme="dark"] .brand .brandlogo,
:root:not([data-theme="light"]) .brand .brandlogo {
  background: none;
  border-radius: 0;
  padding: 0;
  
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 0 3px rgba(255, 255, 255, .28));
}

.brand .logo { width: 26px; height: 26px; color: var(--c-brand); flex: none; }
.brand-name { font-size: 16px; }



.searchbar {
  position: relative; flex: 1 1 220px; min-width: 160px; max-width: 420px; margin-left: auto;
  display: flex; align-items: center;
}
.searchbar .i { position: absolute; left: 10px; color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.searchbar input {
  width: 100%; padding: 8px var(--s-3) 8px 34px;
  font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.searchbar input::placeholder { color: var(--text-3); }
.searchbar input:hover { border-color: var(--text-3); }
.searchbar input:focus { border-color: var(--c-brand); background: var(--bg); }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; flex: none; cursor: pointer;
  color: var(--text-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.iconbtn:hover { color: var(--text); border-color: var(--text-3); }
.iconbtn .i-sun { display: none; }
:root[data-theme="dark"] .iconbtn .i-sun { display: block; }
:root[data-theme="dark"] .iconbtn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iconbtn .i-sun { display: block; }
  :root:not([data-theme="light"]) .iconbtn .i-moon { display: none; }
}

.sitefoot { border-top: 1px solid var(--line-soft); background: var(--bg-2); margin-top: var(--s-6); }
.sitefoot-in { max-width: var(--wide); margin: 0 auto; padding: var(--s-5) var(--s-4); color: var(--text-2); font-size: 13px; }
.sitefoot-in p { margin: 0 0 var(--s-1); }
.sitefoot .muted { color: var(--text-3); }
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13px;
  color: var(--text-3); text-decoration: underline; cursor: pointer;
}
.linkbtn:hover { color: var(--c-brand); }


.viewhead { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.viewhead .sub { color: var(--text-2); font-size: 14.5px; }
.viewhead .spacer { flex: 1 1 auto; }


.toolbar {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--s-3); margin-bottom: var(--s-5);
}
.toolbar .grow { flex: 1 1 220px; }
.toolbar label { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-2); font-size: 13px; }

.seg { display: inline-flex; gap: var(--s-1); background: var(--bg-3); border-radius: var(--r-pill); padding: 3px; }
.seg button {
  font: inherit; font-size: 13px; padding: 5px var(--s-3); border: 0; cursor: pointer;
  background: transparent; color: var(--text-2); border-radius: var(--r-pill);
}
.seg button:hover { background: var(--bg); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: var(--sh-1); font-weight: 600; }


select, input[type="number"], input[type="password"], input[type="text"], input[type="search"],
input[type="date"], textarea {
  font: inherit; font-size: 14.5px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px var(--s-3); min-height: 38px; line-height: 1.45;
}
select { padding-right: var(--s-1); cursor: pointer; }
input[type="date"] { cursor: text; font-variant-numeric: tabular-nums; }
input[type="date"]::-webkit-datetime-edit { padding: 0; }
input[type="date"]::-webkit-datetime-edit-fields-wrapper { color: var(--text); }
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .62; padding: 2px; border-radius: var(--r-xs);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--bg-3); }
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .72; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .72; }
}
select:hover, input:hover, textarea:hover { border-color: var(--text-3); }
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-ring);
}
select::placeholder, input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { width: 100%; resize: vertical; font-size: 14.5px; line-height: 1.6; min-height: 44px; }

.btn {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 8px var(--s-3); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
}
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.btn.primary:hover { background: var(--c-brand-strong); border-color: var(--c-brand-strong); color: #fff; }
.btn.warn { background: var(--c-warn-soft); border-color: var(--c-warn); color: var(--c-warn); }
.btn[disabled], .btn:disabled { opacity: .5; cursor: default; }
.btn[disabled]:hover { border-color: var(--line); }

.btn.iconmini { padding: 5px 9px; font-size: var(--fs-small); font-weight: 650; line-height: 1.2; }


.bundle-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bundle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bundle-grid { gap: var(--s-4); grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--c-brand-ring); }

.card .thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ph); border-bottom: 1px solid var(--line-soft);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card .thumb .thumb-corner {
  position: absolute; right: var(--s-2); top: var(--s-2);
  display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; justify-content: flex-end;
  max-width: calc(100% - var(--s-4));
}
.card .thumb .badge {
  position: static;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-small); font-weight: 600; padding: 3px var(--s-2); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92); color: var(--n-900); box-shadow: var(--sh-1);
}
.card .thumb .badge.ended { background: rgba(26, 30, 38, .82); color: #fff; }
.card .thumb .badge.hot { background: var(--c-warn); color: #fff; }

.card .thumb .badge.hot-badge {
  background: color-mix(in srgb, var(--c-accent) 88%, #000 12%);
  color: #1a1204; border: 1px solid color-mix(in srgb, var(--c-accent) 60%, #000 40%);
  letter-spacing: .06em;
}
:root[data-theme="dark"] .card .thumb .badge.hot-badge { color: #201705; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card .thumb .badge.hot-badge { color: #201705; }
}


.lockcorner {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  font: inherit; font-size: var(--fs-small); font-weight: 600; line-height: 1;
  padding: 4px var(--s-2); border-radius: var(--r-pill);
  color: #fff; background: color-mix(in srgb, var(--c-warn) 88%, #000 12%);
  border: 1px solid color-mix(in srgb, var(--c-warn) 55%, #000 45%);
  box-shadow: var(--sh-1); white-space: nowrap;
}
.lockcorner:hover { background: var(--c-warn); }
.lockcorner .i { width: 13px; height: 13px; }
.lockcorner.mini { padding: 3px 6px; background: transparent; color: var(--c-warn); border-color: color-mix(in srgb, var(--c-warn) 45%, transparent); box-shadow: none; }
.lockcorner.mini:hover { background: var(--c-warn-soft); }

.card .thumb .thumb-corner { z-index: 1; }


.card .body { display: flex; flex-direction: column; gap: 14px; padding: 18px; flex: 1; }


.card .cardtitle {
  margin: 0; font-size: 17px; font-weight: 680; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .cardtitle a { color: var(--text); }
.card .cardtitle a:hover { color: var(--c-brand); text-decoration: none; }

.card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-top: auto; }


.pricebadge { display: inline-flex; flex-direction: column; gap: 2px; }
.pricebadge .pb-label { font-size: var(--fs-small); color: var(--text-3); }

.pricebadge .pb-value {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--c-accent); line-height: 1.12;
  text-shadow: 0 0 18px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.pricebadge.big .pb-value { font-size: clamp(30px, 5vw, 38px); }
.pricebadge.na .pb-value { color: var(--text-3); font-weight: 600; text-shadow: none; }

.meta { display: flex; flex-direction: column; gap: 2px; color: var(--text-3); font-size: var(--fs-meta); text-align: right; }
.meta b { color: var(--text-2); font-weight: 600; }
.meta b.soon { color: var(--c-warn); }
.meta b.over { color: var(--text-3); }

.chiprow { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip {
  display: inline-block; font-size: var(--fs-small); font-weight: 500; padding: 3px var(--s-2);
  border-radius: var(--r-pill); background: var(--bg-3); color: var(--text-2); white-space: nowrap;
}
.chip.brand { background: var(--c-brand-soft); color: var(--c-brand-strong); }
.chip.ok { background: var(--c-ok-soft); color: var(--c-ok); }
.chip.warn { background: var(--c-warn-soft); color: var(--c-warn); }
.chip.line { background: transparent; border: 1px solid var(--line); }

.chip.tchip { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--text); background: var(--bg-3); }


.tierline { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.tierline .tlab { font-size: var(--fs-small); color: var(--text-3); flex: none; }


.lockline {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  padding: 6px var(--s-2) 6px 6px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c-warn-soft) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-warn) 34%, transparent);
  font-size: var(--fs-small); line-height: 1.45;
}
.lockline .lockico { display: inline-flex; color: var(--c-warn); flex: none; }
.lockline .lockico .i { width: 16px; height: 16px; }
.lockline .lockmsg { color: var(--text-2); min-width: 0; }
.lockline .lockextra { color: var(--text-3); font-size: var(--fs-small); }
.lockline .lockmore { margin-left: auto; padding: 3px var(--s-3); font-size: var(--fs-small); border-radius: var(--r-pill); }
.lockline.wide { padding: var(--s-3) var(--s-4); font-size: 14.5px; gap: var(--s-3); }
.lockline.wide .lockico .i { width: 19px; height: 19px; }
.lockline.wide .lockmsg { font-size: 15px; font-weight: 600; color: var(--text); }
.lockline.wide .lockmore { padding: 5px var(--s-4); font-size: 14px; }


.lockblock {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c-warn-soft) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-warn) 34%, transparent);
}
.lockblock.none { background: var(--bg-2); border-color: var(--line-soft); }
.lockblock .lockhead {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 680; font-size: 14.5px; color: var(--c-warn);
}
.lockblock .lockhead .i { width: 18px; height: 18px; flex: none; }
.lockblock .lb-msg { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.lockblock.none .lb-msg { color: var(--text-3); font-size: var(--fs-meta); }
.lockblock .lb-until {
  display: inline-block; margin-left: var(--s-2); color: var(--text-3); font-size: var(--fs-meta);
}
.lockblock .lb-act { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.lockblock .lockmore { border-radius: var(--r-pill); }


.card.mcard { display: block; overflow: visible; box-shadow: var(--sh-1); }
.card.mcard:hover, .card.mcard:focus-within { transform: none; box-shadow: var(--sh-1); border-color: var(--line-soft); }


.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.card-head h2 { margin: 0; font-size: 17px; }
.card-head .muted { color: var(--text-2); }
.card-head .small { font-size: 13px; }


.mcard .card-head { margin-bottom: var(--s-5); }
.mcard .card-head h2 { font-size: clamp(19px, 2.4vw, 23px); letter-spacing: -.02em; }


.card.msection { display: block; overflow: visible; cursor: default; }
.card.msection:hover, .card.msection:focus-within { transform: none; border-color: var(--line-soft); box-shadow: var(--sh-1); }


.mb-list { display: flex; flex-direction: column; gap: var(--s-6); }
.mblock {
  display: flex; flex-direction: column; gap: var(--s-5);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--bg-2); padding: var(--s-6);
}


.mhero {
  
  width: 100%; max-width: 1152px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: start;
}
@media (min-width: 900px) {
  .mhero { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: var(--s-6); }
}
.mstagewrap { min-width: 0; }

.mstage {
  position: relative; overflow: hidden; display: block;
  width: 100%; max-width: 660px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--ph);
  box-shadow: var(--sh-2);
}
.mstage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }

.mstage:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .mstage img { transition: none; } .mstage:hover img { transform: none; } }

.mstage.ph { display: grid; place-items: center; color: var(--text-3); }
.mstage.ph svg { width: 46px; height: 46px; opacity: .8; }

.mlead { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; min-width: 0; }

.meyebrow {
  margin: 0; position: relative;
  font-size: 12.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-brand-strong); font-variant-numeric: tabular-nums;
}
.meyebrow::after {
  content: ''; display: block; width: 54px; height: 2px; margin-top: var(--s-3);
  background: linear-gradient(90deg, var(--c-brand), transparent); border-radius: 2px;
}

.mlead-kicker { margin: 0 0 var(--s-1); font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; }
.mlead-name {
  margin: 0; min-width: 0; overflow-wrap: anywhere;
  font-size: clamp(26px, 3.6vw, 44px); font-weight: 750; line-height: 1.1; letter-spacing: -.03em;
  color: var(--text);
}
.mrow { display: flex; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-2); }

.mcount { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mlead .chiprow { margin-top: var(--s-1); }
.msub { margin: 0; font-size: 13.5px; color: var(--text-3); }

.mexp { margin: 0; font-size: 13.5px; color: var(--text-2); }
.mexp strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }


.mmore-head {
  display: flex; align-items: center; gap: var(--s-4);
  font-size: 13px; color: var(--text-3); letter-spacing: .04em;
}
.mmore-head::before, .mmore-head::after {
  content: ''; height: 1px; flex: 1 1 auto;
  background: var(--line-soft);
}
.mgrid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.mitem {
  margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.mitem:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--c-brand-ring); }
.mitem img, .mitem .mi-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--ph); }

.mitem img.mi-broken { display: none; }
.mitem .mi-nm { padding: 0 var(--s-3) var(--s-3); font-size: 13px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }

.mnone { color: var(--text-3); font-size: 13.5px; margin: 0; }


@media (max-width: 767px) {
  .mblock { padding: var(--s-4); gap: var(--s-4); }
  .mgrid { gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: var(--s-4); }


.names { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .names { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .names { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.names .name {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3); font-size: 14px; word-break: break-word;
}
.names .name .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand); flex: none; }


.detail { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; } }
.detail .side { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: 84px; }
@media (max-width: 899px) { .detail .side { position: static; } }

.panel {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--s-4); box-shadow: var(--sh-1);
}
.panel > h2 { font-size: 16px; padding-bottom: var(--s-2); margin-bottom: var(--s-3); border-bottom: 1px solid var(--line-soft); }

.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--ph); display: block; }




.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s-3); margin: 0; font-size: 13px; align-items: start; }
.kv dt { color: var(--text-3); white-space: nowrap; }
.kv dd { margin: 0; color: var(--text); word-break: break-word; }

.kv dd .chip { padding: 0 7px; font-size: 12px; line-height: 1.7; white-space: nowrap; }

.kv dd { text-align: left; }


.regions { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }


.tierlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tierlist li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding: 6px var(--s-2); border-radius: var(--r-sm);
}
.tierlist li + li { border-top: 1px solid var(--line-soft); }
.tierlist .tn { color: var(--text-2); font-size: var(--fs-meta); min-width: 0; overflow-wrap: anywhere; }
.tierlist .tp { color: var(--c-accent); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; flex: none; }

.tier { border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-4); box-shadow: var(--sh-1); }
.tier > .head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; background: var(--bg-2); padding: var(--s-3) var(--s-4); }
.tier > .head .tlabel { font-weight: 680; font-size: 15.5px; }
.tier > .head .spacer { flex: 1 1 auto; }

.tier > .head .tprice { font-size: 19px; font-weight: 780; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.tier > .head .tprice.na { font-size: var(--fs-meta); font-weight: 500; color: var(--text-3); }
.tier .items { display: grid; gap: var(--s-2); grid-template-columns: 1fr; padding: var(--s-3) var(--s-4) var(--s-4); }
@media (min-width: 560px)  { .tier .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tier .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.item { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.item .ithumb {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); overflow: hidden;
  background: var(--ph); border: 1px solid var(--line-soft); position: relative;
}
.item .ithumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .iname { min-width: 0; font-size: 14.5px; line-height: 1.45; word-break: break-word; }
.item .iretail { color: var(--text-3); font-size: var(--fs-small); }
.item .lockcorner.mini { margin-left: auto; flex: none; }



.skeleton-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sk-card { border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); box-shadow: var(--sh-1); }
.sk { background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-2) 37%, var(--bg-3) 63%); background-size: 400% 100%; animation: sk 1.4s ease-in-out infinite; }
.sk-img { aspect-ratio: 16 / 9; border-radius: 0; }
.sk-line { height: 12px; border-radius: var(--r-pill); margin: var(--s-4) var(--s-4) 0; }
.sk-line.w80 { width: 80%; }
.sk-line.w45 { width: 45%; margin-bottom: var(--s-4); }
.sk-line + .sk-line { margin-top: var(--s-2); }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }


.empty, .errorbox {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  text-align: center; padding: var(--s-6) var(--s-4);
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty .bigicon, .errorbox .bigicon {
  width: 48px; height: 48px; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border-radius: 50%;
}
.empty .bigicon svg, .errorbox .bigicon svg { width: 26px; height: 26px; }
.empty h3, .errorbox h3 { margin: 0; font-size: 17px; }
.empty p, .errorbox p { margin: 0; color: var(--text-2); font-size: 14px; max-width: 46ch; }
.errorbox { border-color: color-mix(in srgb, var(--c-danger) 40%, var(--line)); background: var(--c-danger-soft); }
.errorbox .bigicon { background: color-mix(in srgb, var(--c-danger) 18%, transparent); color: var(--c-danger); }
.errorbox p.errmsg { color: var(--text); font-family: var(--font-mono); font-size: 13px; word-break: break-word; }


.pager { display: flex; align-items: center; justify-content: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); }
.pager .pinfo { color: var(--text-2); font-size: 13.5px; min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }


.toast-host {
  
  position: fixed; left: 50%; transform: translateX(-50%); top: var(--s-4);
  z-index: 90; display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  max-width: min(520px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  box-shadow: var(--sh-2); border-radius: var(--r-md); padding: var(--s-3) var(--s-4);
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--c-brand);
  font-size: 14px; animation: pop .18s var(--ease);
}
.toast.ok { border-left-color: var(--c-ok); }
.toast.warn { border-left-color: var(--c-warn); }
.toast.err { border-left-color: var(--c-danger); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.notice {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-left: 4px solid var(--c-brand);
  border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); color: var(--text-2); font-size: 14px; margin: var(--s-4) 0;
}
.notice.warn { border-left-color: var(--c-warn); }
.notice.err { border-left-color: var(--c-danger); }
.notice.ok { border-left-color: var(--c-ok); }
.hint { color: var(--text-3); font-size: 13px; }
.hint code { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-3); border-radius: var(--r-xs); padding: 1px 5px; }


.admin .panel { margin-bottom: var(--s-4); }
.admin h2 { font-size: 17px; }
.admin .row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.admin .row .spacer { flex: 1 1 20px; }
.admin .tokenbar input[type="password"] { width: min(320px, 100%); }
.admin .tabsbar { display: inline-flex; gap: var(--s-1); background: var(--bg-3); border-radius: var(--r-pill); padding: 3px; }
.admin .tabsbar button {
  font: inherit; font-size: 13.5px; padding: 5px var(--s-4); border: 0; cursor: pointer;
  background: transparent; color: var(--text-2); border-radius: var(--r-pill);
}
.admin .tabsbar button[aria-pressed="true"] { background: var(--c-brand); color: #fff; font-weight: 600; }


.commitbar {
  position: sticky; top: 6px; z-index: 3;
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-2) var(--s-3); margin-bottom: var(--s-3);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.commitbar .cmsg { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.commitbar .cmsg.on { color: var(--c-warn); }
.commitbar .spacer { flex: 1 1 20px; }
.commitbar .hint { font-size: var(--fs-small); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--bg); }
table.tbl { border-collapse: collapse; width: 100%; min-width: 1080px; font-size: 13.5px; }
table.tbl th, table.tbl td { padding: var(--s-2) var(--s-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
table.tbl thead th { background: var(--bg-2); color: var(--text-2); font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.tbl tbody tr:hover { background: var(--bg-2); }
table.tbl td.k { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); max-width: 190px; word-break: break-all; }
table.tbl td .sub { color: var(--text-3); font-size: var(--fs-small); }
table.tbl td .pre { font-weight: 700; font-size: 15px; color: var(--c-accent); font-variant-numeric: tabular-nums; }
table.tbl input[type="number"] { width: 96px; }
table.tbl input[type="text"] { width: 100%; min-width: 170px; }
table.tbl td.regionscell input { min-width: 110px; width: 120px; font-family: var(--font-mono); text-transform: uppercase; }
table.tbl td.act { white-space: nowrap; }
table.tbl textarea { min-height: 52px; }


table.tbl td.act .actrow { position: relative; display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }

table.admin-tbl tbody tr[draggable="true"] { cursor: default; }
table.admin-tbl tbody tr.dragging { opacity: .45; }
table.admin-tbl tbody tr.dropbefore { box-shadow: inset 0 2px 0 0 var(--c-brand); }
table.admin-tbl tbody tr.dropafter { box-shadow: inset 0 -2px 0 0 var(--c-brand); }
.dragh { color: var(--text-3); cursor: grab; margin-right: 6px; font-size: 15px; user-select: none; }
.dragh:active { cursor: grabbing; }


.btn.f-hot { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn.f-hot[aria-pressed="true"],
.btn.f-hot.is-on {
  background: var(--c-accent);
  border-color: color-mix(in srgb, var(--c-accent) 70%, #000 30%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--c-accent) 45%, #000 55%);
}

.btn.f-hot[aria-pressed="true"]:hover,
.btn.f-hot.is-on:hover {
  background: color-mix(in srgb, var(--c-accent) 88%, #fff 12%);
  color: #fff;
}
.btn.f-hot:active { transform: translateY(1px); }

.batch { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .batch { grid-template-columns: minmax(0, 1fr) 330px; } }
.batch textarea { font-family: var(--font-mono); font-size: 13px; }


.modal-mask { position: fixed; inset: 0; z-index: 80; background: rgba(8, 11, 17, .6); display: grid; place-items: center; padding: var(--s-4); }
.modal {
  width: min(560px, 96vw); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden;
}
.modal.modal-wide { width: min(1120px, 96vw); }
.modal-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; font-size: 16px; flex: 1 1 auto; }
.modal-body { padding: var(--s-4); overflow: auto; }
.modal-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.modal-foot .spacer { flex: 1 1 auto; }

.lockfull { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.6;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4); max-height: 46vh; overflow: auto; }
.modal-lead { margin: 0 0 var(--s-2); font-weight: 650; }

.modal-meta {
  margin: 0 0 var(--s-2);
  display: flex; width: fit-content; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--c-warn-soft); color: var(--c-warn);
  border: 1px solid color-mix(in srgb, var(--c-warn) 30%, transparent);
  font-size: 12.5px; white-space: nowrap;
}
.modal-meta b { font-weight: 800; font-variant-numeric: tabular-nums; }


.lockmore { margin-top: 0; }


.authbox { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); background: var(--bg-2); }
.authbox > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.authbox[open] > summary { margin-bottom: var(--s-3); }


.admin-tbl th.pickcol, .admin-tbl td.pick { width: 30px; text-align: center; }
.admin-tbl td.th { width: 132px; }
table.tbl .thumb-cell {
  display: block; width: 116px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-sm); background: var(--ph); border: 1px solid var(--line-soft);
}
table.tbl .thumb-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
table.tbl td.nm { max-width: 300px; }
table.tbl td.nm .nm-t { font-weight: 600; font-size: 14px; line-height: 1.4; word-break: break-word; }
table.tbl td.pricecell { white-space: nowrap; }


.lockedit { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-4); margin-bottom: var(--s-4); background: var(--bg-2); }
.lockedit + .lockedit { margin-top: var(--s-5); }
.lockedit-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.lockedit-thumb { flex: none; }
.lockedit-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lockedit-title b { font-size: 15.5px; }
.lockedit-title .hint { font-size: var(--fs-small); }

.bulkbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-3); margin-bottom: var(--s-3);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  backdrop-filter: saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
}
.bulkbar-t { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.bulkbar-t b { font-size: 14.5px; }
.bulkbar-fields { display: flex; align-items: flex-start; gap: var(--s-2); flex-wrap: wrap; }
.bulkbar-act { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.bulkbar .a-bulk-text { flex: 1 1 340px; min-width: 220px; min-height: 54px; }
.bulkbar .a-bulk-regions { width: 160px; }
.bulkbar .lk-date { display: inline-flex; align-items: center; gap: 6px; }

table.tbl.lock-tbl { min-width: 860px; table-layout: fixed; }
table.tbl.lock-tbl thead th:nth-child(1) { width: 38px; }
table.tbl.lock-tbl thead th:nth-child(2) { width: 200px; }
table.tbl.lock-tbl thead th:nth-child(4) { width: 226px; }   
table.tbl.lock-tbl td.pick { text-align: center; }
table.tbl.lock-tbl td.pn { font-weight: 600; word-break: break-word; }
table.tbl.lock-tbl td.ctext textarea { min-height: 62px; }
table.tbl.lock-tbl td.cregion input { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }

table.tbl.lock-tbl td.cdate input[type="date"] { width: 100%; max-width: 168px; }


table.tbl.lock-tbl th:nth-child(3), table.tbl.lock-tbl td.ctext { width: auto; }
table.tbl.lock-tbl td.cdate { width: 190px; }


table.tbl.lock-tbl input[type="date"]::-webkit-calendar-picker-indicator,
.dtp input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; pointer-events: none; }


table.tbl.lock-tbl td.cregion { display: none !important; }


table.tbl.lock-tbl { table-layout: fixed; }

table.tbl.lock-tbl { min-width: 720px; }
table.tbl.lock-tbl th:nth-child(1), table.tbl.lock-tbl td.pn { width: 240px; }
table.tbl.lock-tbl th:nth-child(2), table.tbl.lock-tbl td.ctext { width: auto; }
table.tbl.lock-tbl th:nth-child(2), table.tbl.lock-tbl td.pn { width: 230px; }
table.tbl.lock-tbl th:nth-child(3), table.tbl.lock-tbl td.ctext { width: auto; }

table.tbl.lock-tbl th:nth-child(4), table.tbl.lock-tbl td.cdate { width: 226px; }

table.tbl.lock-tbl td.cdate { overflow: visible; width: 226px; }

table.tbl.lock-tbl td.cdate .dtp { display: inline-flex; }

table.tbl.lock-tbl td.ctext textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.pkgbox { border: 1px dashed var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); background: var(--bg); }
.pkgbox > summary { cursor: pointer; font-size: 14px; color: var(--text-2); font-weight: 600; }
.pkgbox-body { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-3); }
.pkgbox-body label { display: flex; flex-direction: column; gap: 4px; }

@media print {
  .topbar, .sitefoot, .iconbtn, .searchbar { display: none !important; }
  .card, .panel { box-shadow: none; }
}




.meyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; flex-wrap: wrap; }
.meyebrow-row .meyebrow { margin: 0; }
.meyebrow-row .leadlock { flex: none; }


.card.hot {
  border-color: color-mix(in srgb, var(--c-accent) 52%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-accent) 26%, transparent),
              0 6px 22px -10px color-mix(in srgb, var(--c-accent) 55%, transparent),
              var(--sh-2);
  position: relative;
}

.card.hot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--c-accent) 92%, transparent),
    color-mix(in srgb, var(--c-accent) 45%, transparent));
  border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg);
  pointer-events: none;
}
.card.hot:hover {
  border-color: color-mix(in srgb, var(--c-accent) 70%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-accent) 34%, transparent),
              0 10px 26px -10px color-mix(in srgb, var(--c-accent) 62%, transparent),
              var(--sh-2);
}

:root[data-theme="dark"] .card.hot:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-accent) 30%, transparent),
              0 10px 24px -12px color-mix(in srgb, var(--c-accent) 45%, transparent),
              var(--sh-2);
}

.badge.hot-badge { letter-spacing: .06em; }


.lockcorner .lc-c { opacity: .85; margin-left: 1px; transition: transform .18s var(--ease); }
.lockcorner:hover .lc-c { transform: translateX(2px); }
.lockcorner:hover { background: var(--c-warn); transform: translateY(-1px); }
.lockcorner:active { transform: translateY(0); }
.lockcorner:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-brand-ring); }
@media (prefers-reduced-motion: reduce) {
  .lockcorner, .lockcorner .lc-c { transition: none; }
  .lockcorner:hover { transform: none; }
  .lockcorner:hover .lc-c { transform: none; }
}


.bubble {
  
  position: fixed; left: 0; top: 0; z-index: 200;
  white-space: nowrap; pointer-events: none;
  padding: 5px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 620;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh-2);
  color: var(--text-2); transition: opacity .2s var(--ease); animation: pop .16s var(--ease);
}

.bubble::after {
  content: ''; position: absolute; left: 50%; margin-left: -5px; top: 100%;
  width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--bg);
}
.bubble.ok { color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 40%, var(--line)); }
.bubble.err { color: var(--c-danger); border-color: color-mix(in srgb, var(--c-danger) 40%, var(--line)); }
.bubble.warn { color: var(--c-warn); border-color: color-mix(in srgb, var(--c-warn) 40%, var(--line)); }




body.is-admin .wrap { max-width: 1760px; }
@media (min-width: 1280px) { body.is-admin .wrap { padding-left: var(--s-5); padding-right: var(--s-5); } }

body.is-admin .admin .panel { padding: var(--s-5); }


.modal.modal-wide { width: min(1560px, 97vw); }
.modal.modal-wide .modal-body { padding: var(--s-4) var(--s-5); }


.lockedit { padding: var(--s-4) var(--s-5) var(--s-5); }
.lockedit-head { gap: var(--s-4); padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-soft); }
.lockedit-thumb img, .lockedit-thumb .ph { width: 84px; height: 48px; border-radius: var(--r-sm); }
.lockedit-title b { font-size: 16px; letter-spacing: .01em; }
.lockedit-title .hint { color: var(--text-2); }


.bulkbar {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-2); padding: var(--s-4) var(--s-4) var(--s-3);
  box-shadow: var(--sh-1);
}
.bulkbar-t { gap: var(--s-3); align-items: center; }
.bulkbar-t b { font-size: 15px; }
.bulkbar-t .hint { font-size: var(--fs-small); color: var(--text-2); }

.bulkbar-fields { display: grid; grid-template-columns: 1fr; gap: var(--s-2); align-items: start; }
@media (min-width: 860px) {
  .bulkbar-fields { grid-template-columns: minmax(0, 1fr) 220px 220px; }
  .bulkbar-fields > .a-bulk-text { grid-column: 1 / -1; }
}
.bulkbar-fields .a-bulk-text { min-height: 62px; resize: vertical; }
.bulkbar-fields .a-bulk-regions, .bulkbar-fields .a-bulk-until { width: 100%; }
.bulkbar-fields .lk-date { display: flex; flex-direction: column; gap: 4px; }
.bulkbar-act { margin-top: var(--s-1); }


table.tbl.lock-tbl { min-width: 1080px; table-layout: fixed; }
table.tbl.lock-tbl thead th:nth-child(1) { width: 44px; }
table.tbl.lock-tbl thead th:nth-child(2) { width: 260px; }
table.tbl.lock-tbl thead th:nth-child(3) { width: auto; }
table.tbl.lock-tbl thead th:nth-child(4) { width: 226px; }   
table.tbl.lock-tbl td { padding: var(--s-3) var(--s-3); vertical-align: top; }
table.tbl.lock-tbl td.pn { font-weight: 600; line-height: 1.45; }
table.tbl.lock-tbl tbody tr:hover { background: var(--bg-3); }

table.tbl.lock-tbl tbody tr:has(.f-prod-pick:checked) { background: color-mix(in srgb, var(--c-brand) 10%, transparent); }


table.tbl.lock-tbl td.ctext textarea { min-height: 68px; resize: vertical; line-height: 1.55; }
table.tbl.lock-tbl td.cregion input { letter-spacing: .06em; }
table.tbl.lock-tbl input[type="text"], table.tbl.lock-tbl input[type="date"] { height: 36px; }


.pkgbox { margin-top: var(--s-4); background: var(--bg-2); }
.pkgbox[open] { padding-bottom: var(--s-4); }
.pkgbox-body { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
@media (min-width: 860px) { .pkgbox-body { grid-template-columns: minmax(0, 1fr) 220px 220px; }
  .pkgbox-body > .lk-text, .pkgbox-body > textarea { grid-column: 1 / -1; } }




body.is-admin table.admin-tbl { min-width: 0; width: 100%; }
body.is-admin table.admin-tbl thead th:nth-child(1) { width: 44px; }
body.is-admin table.admin-tbl thead th:nth-child(2) { width: 92px; }
body.is-admin table.admin-tbl thead th:nth-child(3) { width: auto; }
body.is-admin table.admin-tbl thead th:nth-child(4) { width: 190px; }
body.is-admin table.admin-tbl thead th:nth-child(5) { width: 168px; }
body.is-admin table.admin-tbl thead th:nth-child(6) { width: 420px; }
body.is-admin table.admin-tbl thead th:nth-child(7) { width: 132px; }
body.is-admin table.admin-tbl td { padding: var(--s-3) var(--s-3); }
body.is-admin table.admin-tbl td .actrow { gap: var(--s-1); }


body.is-admin .admin .hint, body.is-admin .admin p.hint { font-size: 12.8px; line-height: 1.7; color: var(--text-2); }
body.is-admin .admin .panel > h2 { font-size: 16.5px; letter-spacing: .01em; }


body.is-admin .admin .panel { margin-bottom: var(--s-5); }
body.is-admin .admin .panel .row + .row, body.is-admin .admin .row + .hint { margin-top: var(--s-2); }
body.is-admin .commitbar { padding: var(--s-3) var(--s-4); }


@media (max-width: 1180px) {
  body.is-admin table.admin-tbl { min-width: 1080px; table-layout: auto; }
}


body.is-admin table.admin-tbl { table-layout: auto; }
body.is-admin table.admin-tbl thead th:nth-child(6) { width: auto; white-space: nowrap; }
body.is-admin table.admin-tbl thead th:nth-child(7) { width: 1%; white-space: nowrap; }

body.is-admin table.admin-tbl td .actrow { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-1); }
body.is-admin table.admin-tbl td .actrow .btn { flex: none; white-space: nowrap; }


body.is-admin table.admin-tbl { table-layout: auto; min-width: 0; width: 100%; }
body.is-admin table.admin-tbl thead th:nth-child(1) { width: 44px; }
body.is-admin table.admin-tbl thead th:nth-child(2) { width: 104px; }
body.is-admin table.admin-tbl thead th:nth-child(3) { width: 100%; }
body.is-admin table.admin-tbl thead th:nth-child(4) { width: 200px; }
body.is-admin table.admin-tbl thead th:nth-child(5) { width: 176px; }
body.is-admin table.admin-tbl thead th:nth-child(6) { width: 1%; white-space: nowrap; }
body.is-admin table.admin-tbl td { padding: var(--s-3) var(--s-3); }
body.is-admin table.admin-tbl td .actrow { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-1); }
body.is-admin table.admin-tbl td .actrow .btn { flex: none; white-space: nowrap; }

body.is-admin table.admin-tbl.tbl-choice thead th:nth-child(6) { width: 176px; white-space: normal; }
body.is-admin table.admin-tbl.tbl-choice thead th:nth-child(7) { width: 1%; white-space: nowrap; }




:root {
  --c-brand:        #8a12d6;   
  --c-brand-strong: #4e00ff;
  --c-brand-soft:   #f5ecff;
  --c-brand-ring:   rgba(138, 18, 214, .30);
  
  --grad-brand: linear-gradient(135deg, #9a00da 0%, #4e00ff 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(154,0,218,.10) 0%, rgba(78,0,255,.10) 100%);

  --c-accent:      #8a12d6;   
  --c-accent-soft: #f5ecff;
  --c-ok:      #0f9d6b;
  --c-ok-soft: #e9f9f2;
  --c-warn:      #b45309;
  --c-warn-soft: #fdf4e8;
  --c-danger:      #dc2626;
  --c-danger-soft: #fdecec;

  --text:      #1a1a1a;
  --text-2:    #5f6470;
  --text-3:    #6b7280;
  --bg:        #ffffff;
  --bg-2:      #f8f9fa;
  --bg-3:      #f0f2f5;
  --line:      #e6e6f0;
  --line-soft: rgba(154, 0, 218, .14);   

  
  --r-xs: 8px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px;

  
  --sh-1: 0 2px 8px rgba(78, 0, 255, .07), 0 1px 3px rgba(78, 0, 255, .05);
  --sh-2: 0 14px 36px rgba(78, 0, 255, .13), 0 3px 10px rgba(78, 0, 255, .07);

  
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
          "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  
  --ph: linear-gradient(135deg, #ece4fb 0%, #f3f0fd 45%, #e6e0fb 100%);
}


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --c-brand:        #b366e0;
  --c-brand-strong: #c79bff;
  --c-brand-soft:   #24183a;
  --c-brand-ring:   rgba(179, 102, 224, .40);
  --grad-brand: linear-gradient(135deg, #b366e0 0%, #7a3fff 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(179,102,224,.16) 0%, rgba(122,63,255,.16) 100%);

  --c-accent:      #c79bff;
  --c-accent-soft: #24183a;
  --c-ok:      #4cc38a;
  --c-ok-soft: #14291f;
  --c-warn:      #e2b04a;
  --c-warn-soft: #2a2415;
  --c-danger:      #f0715f;
  --c-danger-soft: #2c1a18;

  --text:      #f0f0f5;
  --text-2:    #a0a0b0;
  --text-3:    #9096a6;
  --bg:        #0f0f1a;
  --bg-2:      #1a1a2e;
  --bg-3:      #151528;
  --line:      #2a2a44;
  --line-soft: rgba(179, 102, 224, .18);

  --sh-1: 0 2px 8px rgba(0, 0, 0, .5);
  --sh-2: 0 16px 40px rgba(0, 0, 0, .6), 0 4px 12px rgba(122, 63, 255, .10);

  --ph: linear-gradient(135deg, #221a38 0%, #1a1a2e 45%, #241f42 100%);
  }
}


:root[data-theme="dark"] {
  --c-brand:        #b366e0;
  --c-brand-strong: #c79bff;
  --c-brand-soft:   #24183a;
  --c-brand-ring:   rgba(179, 102, 224, .40);
  --grad-brand: linear-gradient(135deg, #b366e0 0%, #7a3fff 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(179,102,224,.16) 0%, rgba(122,63,255,.16) 100%);

  --c-accent:      #c79bff;
  --c-accent-soft: #24183a;
  --c-ok:      #4cc38a;
  --c-ok-soft: #14291f;
  --c-warn:      #e2b04a;
  --c-warn-soft: #2a2415;
  --c-danger:      #f0715f;
  --c-danger-soft: #2c1a18;

  --text:      #f0f0f5;
  --text-2:    #a0a0b0;
  --text-3:    #9096a6;
  --bg:        #0f0f1a;
  --bg-2:      #1a1a2e;
  --bg-3:      #151528;
  --line:      #2a2a44;
  --line-soft: rgba(179, 102, 224, .18);

  --sh-1: 0 2px 8px rgba(0, 0, 0, .5);
  --sh-2: 0 16px 40px rgba(0, 0, 0, .6), 0 4px 12px rgba(122, 63, 255, .10);

  --ph: linear-gradient(135deg, #221a38 0%, #1a1a2e 45%, #241f42 100%);
}


.btn { border-radius: var(--r-pill); font-weight: 600; letter-spacing: .01em;
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.btn.primary { background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(78, 0, 255, .28); }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(78, 0, 255, .38); transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0); }
.btn.primary:disabled { background: var(--bg-3); color: var(--text-3); box-shadow: none; border-color: var(--line); }

.btn:not(.primary):not(.iconmini) { border-color: color-mix(in srgb, var(--c-brand) 42%, transparent);
  color: var(--c-brand); background: var(--bg); }
.btn:not(.primary):not(.iconmini):hover { background: var(--c-brand-soft);
  border-color: var(--c-brand); box-shadow: 0 4px 14px rgba(78, 0, 255, .14); }


.topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft); box-shadow: 0 1px 0 rgba(78, 0, 255, .04); }


.card, .panel, .mblock, .tier, .pkgbox, .lockedit, .modal, .bulkbar, .notice, .errorbox {
  border-radius: var(--r-lg); }
.card { border-color: var(--line-soft); box-shadow: var(--sh-1); }
.card:hover { box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--c-brand) 30%, transparent); }
.panel { border-color: var(--line-soft); }


h1, .h1, .brand-name, .admin h2, .panel > h2 { letter-spacing: -.01em; }
h1, .h1 { font-weight: 800; }



table.tbl thead th, table.tbl thead td {
  background: color-mix(in srgb, var(--c-brand) 7%, var(--bg-2));
}
table.tbl thead th {
  border-bottom: 1px solid color-mix(in srgb, var(--c-brand) 30%, transparent);
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--c-brand); }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--c-brand-ring); outline-offset: 2px; }


* { scrollbar-color: color-mix(in srgb, var(--c-brand) 45%, transparent) transparent; }


:root {
  --c-hot:      #0d9488;   
  --c-hot-soft: #e6faf7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --c-hot: #2dd4bf; --c-hot-soft: #0f2b28; }
}
:root[data-theme="dark"] { --c-hot: #2dd4bf; --c-hot-soft: #0f2b28; }


.btn.f-hot[aria-pressed="true"], .btn.f-hot.is-on {
  background: var(--c-hot);
  border-color: color-mix(in srgb, var(--c-hot) 72%, #000 28%);
  color: #fff; font-weight: 700;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--c-hot) 38%, transparent);
}
.btn.f-hot[aria-pressed="true"]:hover, .btn.f-hot.is-on:hover {
  background: color-mix(in srgb, var(--c-hot) 86%, #fff 14%); color: #fff;
}
.btn.f-hot { border-color: var(--line); color: var(--text-2); background: transparent; }



.badge.hot, .badge.hot-badge { background: var(--c-hot); color: #fff; border-color: transparent; }


#month-sec, #weekly-sec {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

#month-sec > .card-head, #weekly-sec > .card-head { border-bottom: none; padding-bottom: 0; }



.topbar, .wrap, .sitefoot { position: relative; z-index: 1; }


:root .card .thumb .badge.hot,
:root .card .thumb .badge.hot-badge,
:root .badge.hot,
:root .badge.hot-badge,
:root[data-theme="dark"] .card .thumb .badge.hot,
:root[data-theme="dark"] .card .thumb .badge.hot-badge,
:root[data-theme="dark"] .badge.hot,
:root[data-theme="dark"] .badge.hot-badge,
:root:not([data-theme="light"]) .card .thumb .badge.hot,
:root:not([data-theme="light"]) .card .thumb .badge.hot-badge {
  background: var(--c-hot) !important;
  color: #fff !important;
  border-color: transparent !important;
}




.badge.hot-badge,
:root .card .thumb .badge.hot-badge,
:root[data-theme="dark"] .card .thumb .badge.hot-badge,
:root:not([data-theme="light"]) .card .thumb .badge.hot-badge {
  background: var(--c-hot) !important;
  color: #fff !important;
  border-color: transparent !important;
}


.card .thumb .badge.hot,
:root .card .thumb .badge.hot,
:root[data-theme="dark"] .card .thumb .badge.hot,
:root:not([data-theme="light"]) .card .thumb .badge.hot {
  background: var(--c-warn) !important;
  color: #fff !important;
  border-color: transparent !important;
}


:root { --c-hot: #0f766e; --c-hot-soft: #e6f6f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-hot: #14b8a6; --c-hot-soft: #0d2b28; } }
:root[data-theme="dark"] { --c-hot: #14b8a6; --c-hot-soft: #0d2b28; }

:root[data-theme="dark"] .badge.hot-badge,
:root:not([data-theme="light"]) .badge.hot-badge { color: #04211f !important; font-weight: 700 !important; }

:root[data-theme="dark"] .btn.f-hot.is-on,
:root:not([data-theme="light"]) .btn.f-hot.is-on { color: #04211f !important; }


:root[data-theme="dark"] .card .thumb .badge.hot-badge,
:root:not([data-theme="light"]) .card .thumb .badge.hot-badge {
  background: var(--c-hot) !important;
  color: #04211f !important;
  font-weight: 700 !important;
  border-color: transparent !important;
}


.topbar-in > .brand { margin-right: auto; }



.game-symbols {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.game-symbol {
  position: absolute;
  font-size: 1.8rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--game-symbol-color);
  font-weight: 300;
  animation: float-symbol 3s ease-in-out infinite;
  will-change: transform, opacity;
}

.game-symbol:nth-child(1) { top: 8%; left: 5%; animation-delay: 0s; }
.game-symbol:nth-child(2) { top: 12%; left: 25%; animation-delay: 0.3s; }
.game-symbol:nth-child(3) { top: 18%; right: 8%; animation-delay: 0.6s; }
.game-symbol:nth-child(4) { top: 22%; right: 30%; animation-delay: 0.9s; }
.game-symbol:nth-child(5) { top: 35%; left: 3%; animation-delay: 1.2s; }
.game-symbol:nth-child(6) { top: 38%; left: 40%; animation-delay: 1.5s; }
.game-symbol:nth-child(7) { top: 42%; right: 5%; animation-delay: 1.8s; }
.game-symbol:nth-child(8) { top: 48%; right: 25%; animation-delay: 2.1s; }
.game-symbol:nth-child(9) { top: 55%; left: 12%; animation-delay: 2.4s; }
.game-symbol:nth-child(10) { top: 58%; left: 35%; animation-delay: 2.7s; }
.game-symbol:nth-child(11) { top: 62%; right: 10%; animation-delay: 3s; }
.game-symbol:nth-child(12) { top: 68%; right: 35%; animation-delay: 3.3s; }
.game-symbol:nth-child(13) { top: 75%; left: 6%; animation-delay: 3.6s; }
.game-symbol:nth-child(14) { top: 78%; left: 28%; animation-delay: 3.9s; }
.game-symbol:nth-child(15) { top: 82%; right: 8%; animation-delay: 4.2s; }
.game-symbol:nth-child(16) { top: 88%; right: 22%; animation-delay: 4.5s; }
.game-symbol:nth-child(17) { top: 5%; left: 45%; animation-delay: 4.8s; }
.game-symbol:nth-child(18) { top: 92%; left: 15%; animation-delay: 5.1s; }
.game-symbol:nth-child(19) { top: 28%; left: 18%; animation-delay: 5.4s; }
.game-symbol:nth-child(20) { top: 65%; left: 50%; animation-delay: 5.7s; }


@keyframes float-symbol {
  0%   { transform: translateY(0)     rotate(0deg);   opacity: 0.20; }
  25%  { transform: translateY(-9px)  rotate(1.8deg); opacity: 0.28; }
  50%  { transform: translateY(-15px) rotate(3deg);   opacity: 0.35; }
  75%  { transform: translateY(-9px)  rotate(1.8deg); opacity: 0.28; }
  100% { transform: translateY(0)     rotate(0deg);   opacity: 0.20; }
}

@media (prefers-reduced-motion: reduce) {
  .game-symbol { animation: none; opacity: 0.25; }
}


:root { --game-symbol-color: rgba(128, 128, 128, 0.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --game-symbol-color: rgba(200, 200, 220, 0.15); } }
:root[data-theme="dark"] { --game-symbol-color: rgba(200, 200, 220, 0.15); }


.game-symbol {
  font-family: Inter, "Noto Sans SC", sans-serif;
}


.game-symbol {
  opacity: 0;
  animation-fill-mode: backwards;
}


:root { --game-symbol-color: rgba(128, 128, 128, 0.55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --game-symbol-color: rgba(200, 200, 220, 0.42); } }
:root[data-theme="dark"] { --game-symbol-color: rgba(200, 200, 220, 0.42); }


:root .card .thumb .badge.hot-badge,
:root[data-theme="dark"] .card .thumb .badge.hot-badge,
:root:not([data-theme="light"]) .card .thumb .badge.hot-badge,
:root .badge.hot-badge,
:root[data-theme="dark"] .badge.hot-badge,
:root:not([data-theme="light"]) .badge.hot-badge,
:root .card .thumb .badge.hot-badge:hover,
:root[data-theme="dark"] .card .thumb .badge.hot-badge:hover,
:root:not([data-theme="light"]) .card .thumb .badge.hot-badge:hover {
  background: #43e8c4 !important;
  background-image: none !important;
  color: #04140f !important;
  font-weight: 800 !important;
  border-color: transparent !important;
  box-shadow: 0 2px 12px rgba(67, 232, 196, .42) !important;
  text-shadow: none !important;
}


.viewhead .badge,
.viewhead .badge.hot-badge {
  align-self: center;
  font-size: .72rem;
  line-height: 1;
  padding: .34em .66em;
  border-radius: 999px;
  letter-spacing: .05em;
  font-weight: 800;
  margin-left: -.25em;
}
.viewhead .badge.hot-badge {
  background: #43e8c4 !important;
  background-image: none !important;
  color: #04140f !important;
  border-color: transparent !important;
  box-shadow: none !important;      
  text-shadow: none !important;
}
.viewhead .chip { font-size: 13px; }




select,
::picker(select) {
  appearance: base-select;
}


select {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 38px;
  padding: 0 var(--s-3);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
select:hover { border-color: color-mix(in srgb, var(--c-brand) 34%, var(--line-soft)); }
select:focus-visible {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-ring);
}


select::picker-icon {
  color: var(--text-3);
  font-size: 11px;
  transition: transform .18s var(--ease);
}
select:open::picker-icon { transform: rotate(180deg); }


::picker(select) {
  margin-top: 6px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  
  width: max-content;
  max-width: min(96vw, 360px);
  
  opacity: 0;
  translate: 0 -4px;
  transition: opacity .14s var(--ease), translate .14s var(--ease), display .14s allow-discrete, overlay .14s allow-discrete;
}
::picker(select):popover-open {
  opacity: 1;
  translate: 0 0;
}
@starting-style {
  ::picker(select):popover-open { opacity: 0; translate: 0 -4px; }
}


option {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14.5px;
  cursor: pointer;
}
option:hover,
option:focus-visible {
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  outline: none;
}
option:checked {
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  font-weight: 700;
}

option::checkmark {
  color: var(--c-brand);
  font-weight: 700;
  margin-left: auto;
  order: 2;
}

option::before { content: none; }


:root[data-theme="dark"] ::picker(select),
:root:not([data-theme="light"]) ::picker(select) {
  background: var(--bg-2);
}


@media (prefers-reduced-motion: reduce) {
  select::picker-icon,
  ::picker(select) { transition: none; }
}


.kv-tip { display: inline-flex; align-items: center; gap: 5px; }   
.tipdot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--c-warn-soft);
  color: var(--c-warn);
  border: 1px solid currentColor;
  font-size: 10.5px; font-weight: 800; line-height: 1;
  cursor: help;
  flex: none;
}
.kv-strong {
  color: var(--c-brand-strong) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}


.lockmode { display: flex; align-items: center; gap: var(--s-2); margin-bottom: 6px; flex-wrap: wrap; }
.lockmode .f-p-mode { width: auto; min-width: 96px; height: 30px; font-size: 13px; padding: 0 var(--s-2); }
.lockprefix { font-size: 13px; color: var(--text-2); }
.lk-allow { color: var(--c-ok); font-weight: 800; }
.lk-deny  { color: var(--c-danger); font-weight: 800; }
.lockcode { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; min-height: 20px; }
.lk-codes-label { font-size: 12.5px; color: var(--text-3); }
.lk-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.lk-chip {
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.lk-chip.allow { background: var(--c-ok-soft); color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); }
.lk-chip.deny  { background: var(--c-danger-soft); color: var(--c-danger); border-color: color-mix(in srgb, var(--c-danger) 30%, transparent); }
.lk-none { color: var(--text-3); font-size: 12.5px; font-style: normal; }

.lb-msg .lk-allow { color: var(--c-ok); font-weight: 800; }
.lb-msg .lk-deny  { color: var(--c-danger); font-weight: 800; }


.pkglist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.pkg-line {
  display: grid;
  grid-template-columns: minmax(112px, 186px) minmax(0, 1fr);
  grid-template-areas: "name text" "name codes";
  gap: 3px var(--s-3); align-items: start;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  font-size: 13px;
}
.pkg-name { grid-area: name; color: var(--text-2); font-weight: 600; word-break: break-word; }

.pkg-text { grid-area: text; color: var(--text); line-height: 1.6; overflow-wrap: anywhere; word-break: normal; }
.pkg-line.pkg-none .pkg-text { color: var(--c-ok); font-weight: 700; }

.pkg-rs { grid-area: codes; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-start; margin-top: 5px; }
.pkg-union { margin: var(--s-2) 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.pkg-union .lk-chip { margin: 2px 3px 2px 0; }
@media (max-width: 720px) {
  .pkg-line { grid-template-columns: 1fr; gap: 4px; }
  .pkg-rs { justify-content: flex-start; }
}


:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}


.dtp { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.dtp > input[type="date"] {
  width: 148px; height: 36px; padding: 0 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  font: inherit; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.dtp > input[type="date"]:focus-visible { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-ring); }
.dtp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  background: var(--bg); color: var(--text-2);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  cursor: pointer; font-size: 15px; line-height: 1;
}
.dtp-btn:hover { border-color: color-mix(in srgb, var(--c-brand) 34%, var(--line-soft)); color: var(--c-brand); }


.dtp-pop {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0;
  width: 286px; padding: 10px;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--sh-2);
}
.dtp-pop[hidden] { display: none; }
.dtp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dtp-title { flex: 1 1 auto; font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dtp-nav {
  width: 28px; height: 28px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--text-2);
  border: 1px solid var(--line-soft); border-radius: var(--r-xs);
  cursor: pointer; font-size: 13px; line-height: 1;
}
.dtp-nav:hover { background: var(--c-brand-soft); color: var(--c-brand-strong); border-color: transparent; }
.dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dtp-dow { text-align: center; font-size: 11.5px; color: var(--text-3); padding: 2px 0 4px; }
.dtp-day {
  height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text); border-radius: var(--r-xs);
  cursor: pointer; font-variant-numeric: tabular-nums;
  background: none; border: 1px solid transparent;
}
.dtp-day:hover { background: var(--c-brand-soft); color: var(--c-brand-strong); }
.dtp-day.out { color: var(--text-3); opacity: .45; }
.dtp-day.today { border-color: var(--c-brand); color: var(--c-brand); font-weight: 700; }
.dtp-day.on { background: var(--c-brand); color: #fff; font-weight: 700; }
.dtp-day.on:hover { background: var(--c-brand); color: #fff; }
.dtp-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.dtp-foot button {
  flex: 1 1 auto; height: 30px;
  background: var(--bg-2); color: var(--text-2);
  border: 1px solid var(--line-soft); border-radius: var(--r-xs);
  cursor: pointer; font: inherit; font-size: 12.5px;
}
.dtp-foot button:hover { background: var(--c-brand-soft); color: var(--c-brand-strong); border-color: transparent; }


.lockpkg { margin-top: var(--s-4); border-top: 1px solid var(--line-soft); padding-top: var(--s-3); }
.lp-h { margin: 0 0 var(--s-2); font-size: 13px; font-weight: 700; color: var(--text-2); }
.lockpkg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lockpkg-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  grid-template-areas: "n t" "n r";
  gap: 2px var(--s-3); align-items: start;
  padding: 7px 10px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  font-size: 13px;
}
.lockpkg-row .lp-n { grid-area: n; color: var(--text-2); font-weight: 600; word-break: break-word; }
.lockpkg-row .lp-t { grid-area: t; color: var(--text); line-height: 1.6; overflow-wrap: anywhere; }
.lockpkg-row .lp-r { grid-area: r; display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

.lockpkg-row.none .lp-t { color: var(--c-ok); font-weight: 700; }



.btn.f-locktoggle { font-variant-numeric: tabular-nums; }
.btn.f-locktoggle.is-on { background: var(--c-ok-soft); color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 34%, transparent); font-weight: 700; }
.btn.f-locktoggle:disabled { opacity: .6; cursor: progress; }


.lockedit-head .spacer { flex: 1 1 auto; }
.lock-switch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none;
  flex: none;
}
.lock-switch:hover { border-color: color-mix(in srgb, var(--c-brand) 34%, var(--line-soft)); }
.lock-switch input { width: 15px; height: 15px; accent-color: var(--c-brand); cursor: pointer; flex: none; }
.lock-switch .ls-t { white-space: nowrap; }
.lock-switch:has(input:checked) { background: var(--c-ok-soft); color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 32%, transparent); font-weight: 600; }


.btn.f-lockset.is-on {
  background: var(--c-ok-soft); color: var(--c-ok);
  border-color: color-mix(in srgb, var(--c-ok) 34%, transparent);
  font-weight: 700;
}




.modal.modal-lockview { width: min(var(--wide), 97vw); }


.badge.new-badge {
  background: var(--c-brand);
  color: #fff;
  letter-spacing: .02em;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--c-brand) 40%, transparent);
}
:root[data-theme="dark"] .badge.new-badge {
  background: var(--c-brand);
  color: #14101c;
}


.lk-copy { flex: none; font-size: 12.5px; padding: 3px 10px; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.panel-head > h2 { margin: 0; }

.mblock { position: relative; }
.mcopy { display: flex; justify-content: flex-end; margin-top: var(--s-3); }
.mcopy:empty { display: none; }


.none-pill {
  display: inline-flex; align-items: center;
  padding: 1px 9px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c-hot) 14%, transparent);
  color: var(--c-hot);
  border: 1px solid color-mix(in srgb, var(--c-hot) 34%, transparent);
  font-size: 12.5px; font-weight: 650; white-space: nowrap;
}


.endedbox {
  margin-top: var(--s-4);
}
.endedbox > summary {
  cursor: pointer;
  user-select: none;
  padding: var(--s-2) var(--s-3);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
  font-weight: 650;
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.endedbox > summary:hover { border-color: var(--c-brand); }
.endedbox > summary .cnt {
  font-weight: 500;
  opacity: .8;
}
.endedbox[open] > summary { margin-bottom: var(--s-2); }



:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}


@keyframes ui-card-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { animation: ui-card-in .34s var(--ease-out) both; }
  
  .card:nth-child(2) { animation-delay: .025s; }
  .card:nth-child(3) { animation-delay: .05s; }
  .card:nth-child(4) { animation-delay: .075s; }
  .card:nth-child(5) { animation-delay: .1s; }
  .card:nth-child(6) { animation-delay: .12s; }
  .card:nth-child(n + 7) { animation-delay: .14s; }
}
.card {
  transition: transform .26s var(--ease-out), box-shadow .26s var(--ease-out),
              border-color .26s var(--ease-out);
  will-change: transform;
}
.card:hover { transform: translateY(-2px); }
.card:active { transform: translateY(0) scale(.997); }


.btn, .iconbtn, .seg button, .chip, .badge, .card .thumb .badge,
.tierlist li, .lockmore, .lk-copy {
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out),
              border-color .18s var(--ease-out), box-shadow .18s var(--ease-out),
              transform .12s var(--ease-out), filter .18s var(--ease-out);
}
.btn:active, .iconbtn:active, .seg button:active, .chip:active { transform: scale(.97); }
.btn:hover, .iconbtn:hover { transform: translateY(-1px); }


@keyframes ui-modal-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ui-mask-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .modal { animation: ui-modal-in .22s var(--ease-out) both; }
  .modal-mask { animation: ui-mask-in .18s ease both; }
}


.card .thumb img, .mitem img, .mstagewrap img {
  animation: ui-img-in .32s ease both;
}
@keyframes ui-img-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .card .thumb img, .mitem img, .mstagewrap img { animation: none; }
}


.pricebadge .pb-value {
  font-variant-numeric: tabular-nums;
  transition: filter .2s var(--ease-out);
}
.card:hover .pricebadge .pb-value, .mblock:hover .pricebadge .pb-value { filter: brightness(1.06); }
.tierlist .tp, .chip.tchip { font-variant-numeric: tabular-nums; }


:focus-visible { outline: 2px solid var(--c-brand-ring); outline-offset: 2px; border-radius: inherit; }


* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text-3) 42%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-3) 34%, transparent);
  border-radius: 8px; border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text-3) 55%, transparent); background-clip: content-box; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}



.lk-copyrow {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}
.lk-copyhint { font-size: var(--fs-small); color: var(--text-3); }



.card .thumb .badge.new-badge,
.card .thumb .new-badge.badge {
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--c-brand) 45%, transparent);
}
:root[data-theme="dark"] .card .thumb .badge.new-badge,
:root:not([data-theme="light"]) .card .thumb .badge.new-badge {
  background: var(--c-brand);
  color: #14101c;
}




:root[data-theme="dark"] .badge.hot,
:root:not([data-theme="light"]) .badge.hot,
:root[data-theme="dark"] .card .thumb .badge.hot,
:root:not([data-theme="light"]) .card .thumb .badge.hot {
  color: #201705 !important;
  font-weight: 700 !important;
}



@media (pointer: coarse), (max-width: 720px) {
  select {
    appearance: auto;          
    -webkit-appearance: menulist;
    display: inline-block;      
    min-height: 40px;
  }
  select::picker-icon { display: none; }
  option { display: block; }    
}
