/* Gifng website styles. Light and dark themes follow the logo: midnight tag, hot-pink flame. */
:root {
  --bg: #FFFFFF; --surface: #F5F5FA; --card: #FFFFFF; --img: #EEEEF6; --border: #E6E6F0;
  --ink: #14162E; --muted: #5A5D78; --link: #1B1F4B;
  --btn: #1B1F4B; --btn-ink: #FFFFFF; --btn-shadow: #0B0D24;
  --save: #0B7A4B; --save-tint: #DDF5E8; --heat: #C8175E; --flame: #FF4F8B;
  --panel: #1B1F4B; --panel-ink: #FFFFFF; --panel-heat: #FF7AA8; --thumb: #FFFFFF;
  --nav-on: #1B1F4B; --chip: #EEEEF6; --chip-ink: #2C3166; --warn-tint: #FFF1D6; --warn-ink: #7A4A00;
  --radius: 18px;
  --sora: 'Sora', system-ui, sans-serif;
  --onest: 'Onest', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0D24; --surface: #12153A; --card: #14173E; --img: #1E2250; --border: #262A5A;
  --ink: #FFFFFF; --muted: #A9ACCB; --link: #FF7AA8;
  --btn: #FFFFFF; --btn-ink: #1B1F4B; --btn-shadow: #6E72A8;
  --save: #4ADE95; --save-tint: #10331F; --heat: #FF7AA8;
  --panel: #14173E; --panel-ink: #FFFFFF; --thumb: #1E2250;
  --nav-on: #FF7AA8; --chip: #1E2250; --chip-ink: #D6D8F0; --warn-tint: #3A2A08; --warn-ink: #FFD27A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--onest); font-size: 15px; line-height: 1.45; }
a { color: var(--link); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.price { font-family: var(--sora); font-weight: 800; letter-spacing: -0.03em; }
.muted { color: var(--muted); }

/* logo: swap the light/dark file with the theme */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.logo .on-dark { display: none; }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 13px;
  background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 800; font-size: 14px; border: 0; cursor: pointer;
  box-shadow: 0 3px 0 var(--btn-shadow); font-family: inherit; white-space: nowrap; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-shadow); }
.btn.sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); box-shadow: none; }
.icon-btn { width: 42px; height: 42px; flex: none; border-radius: 13px; border: 1.5px solid var(--border); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--border); }
.top-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.top-row .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 15px; background: var(--surface); border: 1.5px solid var(--border); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.search:focus-within { border-color: var(--link); }
.top .search.phone { margin-bottom: 10px; }
.top .search.desk { display: none; flex: 1; max-width: 560px; }
.desk-nav { display: none; }
@media (min-width: 900px) {
  .top .search.phone { display: none; }
  .top .search.desk { display: flex; }
  .desk-nav { display: flex; gap: 4px; align-items: center; padding: 0 0 10px; overflow-x: auto; }
  .desk-nav a, .desk-nav summary { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; list-style: none; }
  .desk-nav a:hover, .desk-nav summary:hover { background: var(--surface); }
  .desk-nav summary::-webkit-details-marker { display: none; }
  .desk-nav details { position: relative; }
  .desk-nav .dropdown { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 240px; background: var(--card); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 6px; box-shadow: 0 12px 32px rgba(11,13,36,.18); display: grid; }
  .desk-nav .dropdown a { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
}

/* phone drawer menu */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(11,13,36,.5); }
.drawer .sheet { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--bg); overflow-y: auto; padding: 14px 16px 30px;
  display: flex; flex-direction: column; gap: 18px; }
.drawer .sheet-top { display: flex; align-items: center; justify-content: space-between; }
.drawer h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.drawer .list a { display: flex; align-items: center; justify-content: space-between; padding: 11px 4px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--border); }
.drawer .list a .count { font-weight: 600; font-size: 13px; color: var(--muted); }
.drawer .join { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; background: var(--surface); border-radius: 12px; }
.theme-switch button { height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(11,13,36,.15); }

/* sections */
main { padding-bottom: 96px; }
@media (min-width: 900px) { main { padding-bottom: 40px; } }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head h1, .section-head h2 { font-family: var(--sora); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.section-head .count { font-size: 13px; color: var(--muted); }
.section-head .more { margin-left: auto; font-weight: 800; font-size: 14px; text-decoration: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--save); box-shadow: 0 0 0 4px var(--save-tint); flex: none; }

/* heat */
.heat { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sora); font-weight: 800; color: var(--heat); }
.heat svg { width: 10px; height: 13px; }
.heat.off { color: var(--muted); }
.heat.off svg path { fill: var(--muted); }

/* deal row card (live deals) */
.rows { display: grid; gap: 10px; }
@media (min-width: 700px) { .rows { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rows { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--ink); position: relative; }
.row-card { display: flex; gap: 12px; padding: 10px; }
.row-card .pic { width: 96px; height: 116px; flex: none; border-radius: 13px; background: var(--img); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pic img { width: 84%; height: 84%; object-fit: contain; }
.row-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.title-link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.title-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .btn, .card .heat { position: relative; z-index: 1; }
.pricing { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pricing .price { font-size: 19px; }
.pct { font-size: 13px; font-weight: 800; color: var(--save); }
.mrp { font-size: 12px; color: var(--muted); }
.breakdown { font-size: 12px; color: var(--muted); }
.meta { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.meta .btn { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; background: var(--chip); color: var(--chip-ink); }
.chip.warn { background: var(--warn-tint); color: var(--warn-ink); }

/* expired */
.expired .pic img { filter: grayscale(1); opacity: .55; }
.expired .price, .expired .title-link { color: var(--muted); }
.ended-tag { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 7px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

/* hottest today */
.hot-panel { background: var(--panel); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .hot-panel { grid-template-columns: repeat(5, 1fr); gap: 10px; } }
.hot-item { display: flex; align-items: center; gap: 10px; position: relative; color: var(--panel-ink); }
@media (min-width: 900px) { .hot-item { flex-direction: column; align-items: stretch; background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px; } }
.rank { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--sora); font-weight: 800; font-size: 13px; }
.rank.r1 { background: #FF4F8B; color: #FFFFFF; } .rank.r2 { background: #FF8FB5; color: #3A0B1E; } .rank.r3 { background: #FFC2D7; color: #3A0B1E; }
.rank.r4, .rank.r5 { background: #2C3166; color: #FFFFFF; }
.hot-item .thumb { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--thumb); object-fit: contain; padding: 4px; }
@media (min-width: 900px) { .hot-item .thumb { width: 100%; height: 120px; } .hot-item .rank { position: absolute; top: 8px; left: 8px; } }
.hot-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hot-item .info a { color: var(--panel-ink); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-item .info a::after { content: ""; position: absolute; inset: 0; }
.hot-item .price { font-size: 14px; }
.hot-item .heat { color: var(--panel-heat); font-size: 15px; z-index: 1; position: relative; }
.hot-item .btn { background: #FFFFFF; color: #1B1F4B; position: relative; z-index: 1; }
.hot-item .end { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .hot-item .end { justify-content: space-between; } }

/* horizontal category rows */
.scroller { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
.mini { flex: none; width: 150px; padding: 8px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
@media (min-width: 900px) { .mini { width: 190px; } }
.mini .pic { height: 100px; border-radius: 11px; background: var(--img); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mini .title-link { font-size: 12.5px; min-height: 33px; }
.mini .mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.mini .price { font-size: 16px; }
.pic .heat-badge { position: absolute; top: 6px; right: 6px; background: var(--card); border-radius: 8px; padding: 2px 6px; font-size: 12px; }

/* grid (all deals, category, search) */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.grid .mini { width: auto; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* deal page */
.deal { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 900px) { .deal { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
.deal .hero { border-radius: 24px; background: var(--img); aspect-ratio: 1 / 1; max-height: 460px; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.deal .hero img { width: 78%; height: 78%; object-fit: contain; }
.status-pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 11px; background: var(--card); font-size: 12px; font-weight: 800; }
.deal .info { display: flex; flex-direction: column; gap: 14px; }
.deal h1 { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.deal .heat-big { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sora); font-size: 26px; font-weight: 800; color: var(--heat); }
.deal .heat-big svg { width: 22px; height: 29px; }
.calc { border: 1.5px solid var(--border); border-radius: 18px; overflow: hidden; }
.calc div { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.calc div:last-child { border-bottom: 0; background: var(--surface); font-weight: 800; }
.calc .minus { color: var(--save); font-weight: 700; }
.calc .total { font-family: var(--sora); font-size: 20px; }
.how { background: var(--surface); border-radius: 18px; padding: 14px 16px; }
.how h2 { font-size: 15px; margin-bottom: 6px; }
.how ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.buy-bar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--border); }
.buy-bar .btn { flex: 1; height: 52px; font-size: 17px; border-radius: 16px; }
@media (min-width: 900px) { .buy-bar { position: static; padding: 0; border: 0; } .buy-bar .btn { flex: none; min-width: 260px; } }
.fine { font-size: 12px; color: var(--muted); }

/* reel (phone) */
.reel-page { background: var(--bg); }
.reel { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; }
.reel-item { height: 100dvh; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 64px 14px 16px; max-width: 520px; margin: 0 auto; }
.reel-top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(var(--bg) 60%, transparent); max-width: 520px; margin: 0 auto; }
.reel-top .spacer { flex: 1; }
.reel-item .pic { flex: 1; min-height: 0; border-radius: 24px; background: var(--img); display: flex; align-items: center; justify-content: center; position: relative; }
.reel-item .pic img { width: 78%; height: 78%; object-fit: contain; }
.reel-item .heat-box { position: absolute; top: 12px; right: 12px; width: 74px; height: 74px; border-radius: 22px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 4px 0 var(--flame); font-size: 21px; }
.reel-item .heat-box svg { width: 15px; height: 20px; }
.reel-item .store-tag { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 11px; background: var(--card); font-size: 12px; font-weight: 800; }
.reel-item .info { border-radius: 22px; background: var(--card); border: 1.5px solid var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.reel-item h2 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.reel-item .pricing .price { font-size: 30px; }
.reel-item .btn { height: 56px; font-size: 18px; border-radius: 18px; flex: none; }

/* phone bottom nav */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: space-around; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; }
.tabbar a[aria-current="page"] { color: var(--nav-on); font-weight: 800; }
.tabbar svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* footer */
.foot { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.foot nav a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* prose pages */
.prose { max-width: 720px; }
.prose h1 { font-family: var(--sora); font-size: 26px; margin: 18px 0 10px; }
.prose h2 { font-size: 18px; margin: 22px 0 6px; }
.reel-item .info { position: relative; }
.heat-big.off { color: var(--muted); }
.heat-big.off svg path { fill: var(--muted); }
.deal .hero.ended img { filter: grayscale(1); opacity: .55; }

.deal-price .pricing { gap: 10px; align-items: baseline; }
.deal-price .price { font-size: 30px; }
.deal-price .mrp { font-size: 16px; }
.deal-price .pct { font-size: 16px; }
.mrp-note { font-size: 12px; }
.about h2 { font-size: 16px; margin-bottom: 6px; }
.about ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.pic img.ph, .hero img.ph { width: 45%; height: 45%; opacity: .7; filter: none; }
.how a { word-break: break-all; font-weight: 700; }
.how .reward-btn { background: #FF4F8B; color: #FFFFFF; box-shadow: none; margin: 2px 0; word-break: normal; }
.how li::marker { font-weight: 700; }
.heat.new, .heat-big.new { font-family: var(--onest); font-weight: 800; }
.heat-big.new { font-size: 18px; }
.reel-item .heat-box .heat.new { font-size: 15px; }

/* footer */
.foot { padding: 32px 0 24px; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 10px; }
.foot-brand p { margin: 0; max-width: 460px; }
.foot-join { display: flex; gap: 8px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.foot nav h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.foot nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-legal { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; font-size: 12px; }
.foot-legal p { margin: 0 0 6px; }
/* cookie notice */
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 40; max-width: 520px; margin: 0 auto; display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(11,13,36,.15); font-size: 13px; }
.cookie-note p { margin: 0; flex: 1; }
@media (min-width: 900px) { .cookie-note { bottom: 16px; } }
.legal h2 { font-size: 18px; margin: 22px 0 6px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal code { font-size: 12px; background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.list-filter { display: flex; gap: 6px; margin: 0 0 12px; }
.list-filter a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 700; text-decoration: none; color: inherit; }
.list-filter a[aria-current="true"] { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.scores { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius, 16px); padding: 14px; background: var(--card); }
.scores h2 { margin: 0; font-size: 17px; }
.scores h3 { margin: 0 0 4px; font-size: 13px; }
.score-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .score-row { grid-template-columns: 1fr 1fr; } }
.score-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 13.5px; }
.score-top b { font-family: var(--sora); font-size: 22px; }
.score-top small { font-size: 12px; color: var(--muted); font-weight: 600; }
.score-bar { height: 7px; border-radius: 99px; background: var(--surface); overflow: hidden; margin-top: 4px; }
.score-bar i { display: block; height: 100%; background: var(--flame); border-radius: 99px; }
.score-sub { font-size: 11.5px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.proscons ul { margin: 0; padding-left: 16px; }
.verdict { margin: 0; font-weight: 600; }
.chip.score-chip { background: var(--save-tint); color: var(--save); }
.guide h1 { margin: 0 0 4px; }
.guide-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.guide-item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; }
.guide-item.over { opacity: .7; }
.guide-item .rank { position: absolute; top: 8px; left: 8px; z-index: 1; }
.gi-pic { height: 92px; border-radius: 11px; background: var(--img); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gi-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gi-body h3 { margin: 0 0 4px; font-size: 15px; }
.gi-body p { margin: 4px 0; font-size: 13.5px; }
.gi-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.gi-watch { font-size: 12.5px !important; }
.gi-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.gi-foot .price { font-family: var(--sora); font-weight: 800; font-size: 18px; }
.gi-usual { font-size: 12px; margin-left: 6px; }
.guide-src { margin-top: 14px; font-size: 14px; }
.guide-src ul { padding-left: 18px; font-size: 13px; }
.guide-item .rank:not(.r1):not(.r2):not(.r3) { background: #2C3166; color: #fff; }

/* "hidden" always wins over display rules (cookie note etc.) */
[hidden] { display: none !important; }
.reel-end { justify-content: center; }
.reel-end-box { border-radius: 22px; background: var(--card); border: 1.5px solid var(--border); padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.reel-end-box h2 { margin: 0; font-size: 20px; }
.reel-end-box p { margin: 0; }
.reel-nav { display: none; }
@media (min-width: 900px) {
  .reel-nav { display: flex; flex-direction: column; gap: 10px; position: fixed; right: calc(50% - 330px); top: 50%; transform: translateY(-50%); z-index: 6; }
  .reel-nav .icon-btn { width: 48px; height: 48px; }
}
/* deal filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 0 14px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.filters select, .filters input { font: 600 14px var(--onest); color: var(--ink); background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; padding: 7px 8px; min-height: 36px; }
@media (max-width: 899px) { .filters select, .filters input { font-size: 16px; } }
.filters .pr { display: flex; gap: 4px; }
.filters .pr input { width: 84px; }
.filters label.toggle { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); min-height: 36px; }
.filters label.toggle input { min-height: 0; width: 18px; height: 18px; accent-color: var(--flame); }
.filters .clear { font-size: 13px; font-weight: 700; color: var(--link); align-self: center; min-height: 0; }
@media (max-width: 599px) { .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; } .filters label { flex: none; } }
.ended-badge { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 7px; background: var(--card); color: var(--muted); border: 1px solid var(--border); }
/* several deals in one card */
.chip.opts-chip { background: var(--panel, #1B1F4B); color: #fff; }
.options { display: flex; flex-direction: column; gap: 8px; }
.options h2 { margin: 0; font-size: 17px; }
.option { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--card); scroll-margin-top: 80px; }
.option:target { border-color: var(--flame); }
.opt-pic { height: 72px; border-radius: 10px; background: var(--img); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.opt-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.opt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opt-title { font-weight: 700; font-size: 14px; }
.opt-body .price { font-size: 18px; }
.opt-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* admin tools (only shown to a logged-in admin) */
.admin-end { position: relative; z-index: 5; margin-top: 6px; align-self: flex-start; font: 800 12px var(--onest); padding: 6px 10px; border-radius: 9px; border: 1.5px dashed #d33; background: transparent; color: #d33; cursor: pointer; }
.admin-end:disabled { opacity: .6; }
/* card holding several deals: swiping slides */
.group-card { position: relative; }
.gslides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gslides::-webkit-scrollbar { display: none; }
.gslide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.mini.group-card .gslide .title-link { font-size: 12.5px; min-height: 33px; }
.row-card.group-card { flex-direction: column; gap: 6px; }
.row-card.group-card .gslide { flex-direction: row; gap: 12px; }
.group-card .heat-badge.g { position: absolute; z-index: 2; top: 14px; right: 14px; background: var(--card); border-radius: 8px; padding: 2px 6px; font-size: 12px; }
.row-card.group-card .heat-badge.g { left: 14px; right: auto; }
.gdots { display: flex; justify-content: center; gap: 5px; }
.gdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background .2s, width .2s; }
.gdots i.on { background: var(--flame); width: 14px; border-radius: 3px; }
.in-card { margin-top: 6px; }
.in-card .section-head h2 { font-size: 17px; margin: 0; }
.rows > *, .grid > * { min-width: 0; }
.group-card .mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
/* blog */
.post-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.post-cover { aspect-ratio: 16 / 9; background: var(--img); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.post-card-body h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.post-card-body p { margin: 0; font-size: 14px; color: var(--muted); }
.post-card-body .muted { font-size: 12.5px; }
.post { max-width: 720px; }
.post h1 { font-size: 28px; line-height: 1.2; margin: 4px 0 14px; }
.post-meta { font-size: 13px; margin: 0; }
.post-hero { width: 100%; border-radius: 16px; margin-bottom: 14px; }
.post-body { font-size: 16.5px; line-height: 1.65; }
.post-body img { max-width: 100%; border-radius: 12px; }
.post-body blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--flame); background: var(--surface); border-radius: 0 10px 10px 0; }
.post-embed { max-width: 260px; margin: 12px 0; }
.post-embed .mini { width: auto; }
.preview-note { background: var(--warn-tint); color: var(--warn-ink); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
