/* Livecode24 /sale/* pages — unique skins, mobile-first, no 100vw overflow */
.sp { --sp-max: 1120px; --sp-radius: 18px; padding-bottom: 108px; }
.sp .wrap { max-width: var(--sp-max); }
.sp-main { padding: 84px 0 24px; }
.sp a { text-decoration: none; }
.sp .head .nav a:nth-child(n+5) { display: none; }
@media (max-width: 959px) {
  .sp .head .nav { display: flex; }
  .sp .head .nav a { display: none; }
  .sp .head .nav a[href="/terms/resell/"] { display: inline; }
  .sp .mem-btn span { display: none; }
}
.sp-kicker {
  display: inline-block; font-family: var(--hfont, Kanit, sans-serif);
  font-weight: 600; font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; margin: 0 0 10px; padding: 4px 10px;
  border-radius: 999px; background: var(--sp-chip, #ffd23f); color: var(--sp-chip-ink, #1b1240);
}
.sp h1 { font-size: clamp(1.7rem, 6.4vw, 3.15rem); line-height: 1.25; margin: 0 0 10px; max-width: 22ch; }
.sp-lead { font-size: 1.05rem; line-height: 1.55; margin: 0 0 16px; max-width: 46ch; color: var(--muted); }
.sp-price { margin: 0 0 18px; }
.sp-price .sp-baht, .sp-price .kp-baht {
  font-family: var(--hfont, Kanit, sans-serif); font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 4.4rem); line-height: 1; letter-spacing: 0;
  color: var(--sp-price, var(--red, #e12626));
}
.sp-price .unit { display: inline-block; margin-left: 8px; font-weight: 600; font-size: 1rem; vertical-align: 8px; }
.sp-price .pack { margin: 6px 0 0; font-size: .92rem; color: var(--muted); max-width: 46ch; }
.sp-thumbs { display: grid; gap: 10px; margin: 0 0 16px; }
.sp-thumbs a { display: block; border-radius: 14px; overflow: hidden; background: #0001; }
.sp-thumbs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 9/16; }
.sp-thumbs figcaption { font-size: .78rem; padding: 6px 2px 0; color: var(--muted); }
.sp-bullets { list-style: none; margin: 0 0 18px; padding: 0; }
.sp-bullets li { position: relative; padding: 0 0 8px 22px; font-size: .98rem; }
.sp-bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--sp-tick, #0a8a3a); }
.sp-more { font-size: .92rem; margin: 14px 0 0; color: var(--muted); }
.sp-more a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sp-sel { margin: 8px 0 12px; }
.sp-foot { border-top: 1px solid var(--line, #d9ccaa); padding: 22px 0 8px; font-size: .88rem; color: var(--muted); }
.sp-foot nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 8px; }
.sp-related { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.sp-related a {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: .85rem; font-weight: 600;
}

/* hide default style.css body wash when a skin sets --sp-bg */
[data-theme="light"] body.sp, [data-theme="dark"] body.sp { background: var(--sp-bg, var(--bg)); color: var(--sp-ink, var(--text)); }

/* 1 food — menu newspaper */
body.sp-food { --sp-bg: #f3e6d0; --sp-ink: #2a1408; --sp-price: #c1121f; --sp-chip: #c1121f; --sp-chip-ink: #fff; --sp-tick: #7a2e0b; }
body.sp-food .sp-main { background: repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(120,70,20,.07) 28px); }
.sp-food .sp-frame { background: #fff8ec; border: 3px solid #2a1408; box-shadow: 8px 8px 0 #2a1408; padding: 18px 16px; border-radius: 4px; }
.sp-food .sp-thumbs { grid-template-columns: repeat(3, 1fr); }
.sp-food h1 { font-style: italic; }
@media (min-width: 900px) {
  .sp-food .sp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .sp-food .sp-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* 2 temple — shrine centered gold/maroon */
body.sp-temple { --sp-bg: #2a0c14; --sp-ink: #f8e7c5; --sp-price: #e7c36a; --sp-chip: #e7c36a; --sp-chip-ink: #2a0c14; --sp-tick: #e7c36a; --muted: #d9c49a; --line: #7a4d28; }
[data-theme="light"] body.sp-temple { --sp-bg: #f8ead0; --sp-ink: #4a1414; --muted: #6a3a28; --line: #d9b56a; }
.sp-temple .sp-main { text-align: center; }
.sp-temple h1, .sp-temple .sp-lead, .sp-temple .sp-price .pack, .sp-temple .sp-more { margin-left: auto; margin-right: auto; }
.sp-temple .sp-shrine { max-width: 680px; margin: 0 auto; padding: 22px 14px; border: 3px solid #e7c36a; border-radius: 8px 8px 40px 40px; box-shadow: inset 0 0 0 6px #7a1d1d, 0 12px 40px rgba(0,0,0,.25); }
.sp-temple .sp-thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .sp-temple .sp-thumbs { grid-template-columns: repeat(5, 1fr); } }
.sp-temple .sp-thumbs a { border-radius: 8px 8px 40% 40%; border: 2px solid #e7c36a; }
.sp-temple .sp-sel { text-align: left; }
.sp-temple .sp-related { justify-content: center; }

/* 3 farm — horizon field */
body.sp-farm { --sp-bg: #e7f0c8; --sp-ink: #1d3310; --sp-price: #2d6a12; --sp-chip: #2d6a12; --sp-chip-ink: #fff; --sp-tick: #2d6a12; }
[data-theme="dark"] body.sp-farm { --sp-bg: #15240c; --sp-ink: #e9f5c8; --muted: #b7c98a; --line: #3a5a20; }
.sp-farm .sp-sky { background: linear-gradient(#9fd6ff 0%, #e7f0c8 70%); padding: 18px 0 8px; margin: -16px 0 16px; border-radius: 0 0 40% 40% / 0 0 24px 24px; }
[data-theme="dark"] .sp-farm .sp-sky { background: linear-gradient(#16304a 0%, #15240c 70%); }
.sp-farm .sp-thumbs { grid-template-columns: repeat(5, minmax(0,1fr)); }
.sp-farm .sp-thumbs a { border-radius: 6px; border: 3px solid #7a4a12; }

/* 4 nightlife — neon posters */
body.sp-nightlife { --sp-bg: #0b0614; --sp-ink: #f4eeff; --sp-price: #ff3cac; --sp-chip: #00f0ff; --sp-chip-ink: #041018; --sp-tick: #00f0ff; --muted: #c9b8e8; --line: #3a2a60; }
[data-theme="light"] body.sp-nightlife { --sp-bg: #1a1028; --sp-ink: #fff; } /* stay night-forward; toggle still shifts header */
.sp-nightlife h1 { color: #fff; text-shadow: 0 0 12px #ff3cac, 0 0 28px #00f0ff; letter-spacing: .02em; }
.sp-nightlife .sp-scroll { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -4px 16px; }
.sp-nightlife .sp-scroll a { flex: 0 0 38%; max-width: 180px; scroll-snap-align: start; border-radius: 8px; overflow: hidden; border: 2px solid #ff3cac; box-shadow: 0 0 16px #ff3cac55; }
.sp-nightlife .sp-scroll img { aspect-ratio: 9/16; width: 100%; object-fit: cover; }

/* 5 viewers — typographic campaign */
body.sp-viewers { --sp-bg: #f4ead6; --sp-ink: #1a0a0a; --sp-price: #e12626; --sp-chip: #e12626; --sp-chip-ink: #fff; }
[data-theme="dark"] body.sp-viewers { --sp-bg: #1a0a0a; --sp-ink: #f4ead6; --muted: #d0b8b8; --line: #5a3030; }
.sp-viewers h1 { max-width: 16ch; font-size: clamp(2.1rem, 9vw, 4.6rem); }
.sp-viewers .sp-thumbs { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
.sp-viewers .sp-poster { border-left: 8px solid #e12626; padding-left: 16px; }

/* 6 gifts — gold income */
body.sp-gifts { --sp-bg: #14100a; --sp-ink: #f8e7b0; --sp-price: #ffd23f; --sp-chip: #ffd23f; --sp-chip-ink: #14100a; --sp-tick: #ffd23f; --muted: #cbb886; --line: #5a4a20; }
[data-theme="light"] body.sp-gifts { --sp-bg: #fff6d8; --sp-ink: #3a2a08; --muted: #6a5420; --line: #e6d48a; }
.sp-gifts .sp-price .sp-baht { text-shadow: 0 2px 0 #8a5a00; }
.sp-gifts .sp-thumbs { grid-template-columns: repeat(4, 1fr); }
.sp-gifts .sp-goldbar { height: 8px; background: linear-gradient(90deg, #8a5a00, #ffd23f, #8a5a00); margin: 0 0 18px; }

/* 7 reseller — business navy */
body.sp-reseller { --sp-bg: #eef2f8; --sp-ink: #0c1a33; --sp-price: #0b3a8a; --sp-chip: #0b3a8a; --sp-chip-ink: #fff; --sp-tick: #0b3a8a; }
[data-theme="dark"] body.sp-reseller { --sp-bg: #0c1528; --sp-ink: #e8eef8; --muted: #a8b8d0; --line: #2a3a58; }
@media (min-width: 880px) {
  .sp-reseller .sp-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; }
}
.sp-reseller .sp-thumbs { grid-template-columns: repeat(4, 1fr); }

/* 8 vip — luxury black gold */
body.sp-vip { --sp-bg: #0a0a0a; --sp-ink: #f3e6c0; --sp-price: #e7c36a; --sp-chip: #e7c36a; --sp-chip-ink: #0a0a0a; --sp-tick: #e7c36a; --muted: #c8b894; --line: #4a4030; }
[data-theme="light"] body.sp-vip { --sp-bg: #f7f1e0; --sp-ink: #1a1408; --muted: #5a4a30; --line: #d4c8a0; }
.sp-vip .sp-lux { border: 1px solid #e7c36a; padding: 20px 16px; border-radius: 2px; }
.sp-vip h1 { letter-spacing: .08em; text-transform: uppercase; font-size: clamp(1.5rem, 5.5vw, 2.6rem); max-width: 24ch; }
.sp-vip .sp-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0 0 18px; }
.sp-vip .sp-mosaic a { overflow: hidden; }
.sp-vip .sp-mosaic img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* 9 beginner — soft steps */
body.sp-beginner { --sp-bg: #fffdf7; --sp-ink: #1b1240; --sp-price: #e12626; --sp-chip: #ffd23f; --sp-tick: #1a7a32; }
[data-theme="dark"] body.sp-beginner { --sp-bg: #16122a; --sp-ink: #f6f1e4; --muted: #c3b9ea; --line: #2c2558; }
.sp-beginner .sp-steps { display: grid; gap: 8px; margin: 0 0 18px; }
.sp-beginner .sp-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; list-style: none; }
.sp-beginner .sp-steps { padding: 0; }
.sp-beginner .sp-steps b { width: 36px; height: 36px; border-radius: 50%; background: #ffd23f; color: #1b1240; display: grid; place-items: center; font-family: var(--hfont); }
.sp-beginner .sp-thumbs { grid-template-columns: repeat(3, 1fr); }

/* 10 en — editorial */
body.sp-en { --sp-bg: #f5f3ee; --sp-ink: #161616; --sp-price: #c1121f; --sp-chip: #161616; --sp-chip-ink: #fff; }
[data-theme="dark"] body.sp-en { --sp-bg: #121212; --sp-ink: #f5f3ee; --muted: #b8b4aa; --line: #333; }
.sp-en h1 { font-size: clamp(2rem, 7vw, 3.6rem); max-width: 18ch; letter-spacing: 0; }
@media (min-width: 900px) {
  .sp-en .sp-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; }
}
.sp-en .sp-thumbs { grid-template-columns: repeat(3, 1fr); }

/* 11 party — confetti playful */
body.sp-party { --sp-bg: #ffe6f2; --sp-ink: #3b0750; --sp-price: #d10a7a; --sp-chip: #7c3aed; --sp-chip-ink: #fff; --sp-tick: #7c3aed; }
[data-theme="dark"] body.sp-party { --sp-bg: #2a0830; --sp-ink: #ffe6f2; --muted: #e0b8d4; --line: #6a3060; }
.sp-party h1 { transform: rotate(-1.4deg); }
.sp-party .sp-thumbs { grid-template-columns: repeat(3, 1fr); }
.sp-party .sp-thumbs a:nth-child(odd) { transform: rotate(-2deg); }
.sp-party .sp-thumbs a:nth-child(even) { transform: rotate(2deg); }
.sp-party .sp-confetti { height: 14px; margin: 0 0 16px; background: repeating-linear-gradient(90deg,#ff4d6d 0 16px,#ffd23f 16px 32px,#5eead4 32px 48px,#7c3aed 48px 64px); }

/* 12 youtube — two platforms */
body.sp-youtube { --sp-bg: #fff; --sp-ink: #111; --sp-price: #cc0000; --sp-chip: #cc0000; --sp-chip-ink: #fff; }
[data-theme="dark"] body.sp-youtube { --sp-bg: #121212; --sp-ink: #fff; --muted: #c0c0c0; --line: #333; }
.sp-youtube .sp-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.sp-youtube .sp-platforms div { border: 2px solid currentColor; border-radius: 12px; padding: 10px 12px; font-weight: 600; text-align: center; }
.sp-youtube .sp-thumbs { grid-template-columns: repeat(3, 1fr); }

/* 13 pets — polaroid pastel */
body.sp-pets { --sp-bg: #fde8ef; --sp-ink: #4a2040; --sp-price: #c45c8a; --sp-chip: #8ed1c6; --sp-chip-ink: #14332e; --sp-tick: #2a8a7a; }
[data-theme="dark"] body.sp-pets { --sp-bg: #2a1824; --sp-ink: #fde8ef; --muted: #e0b8c8; --line: #5a3048; }
.sp-pets .sp-thumbs { grid-template-columns: repeat(3, 1fr); }
.sp-pets .sp-thumbs a { background: #fff; padding: 8px 8px 22px; border-radius: 4px; box-shadow: 0 4px 12px #0002; transform: rotate(-1.5deg); }
.sp-pets .sp-thumbs a:nth-child(2) { transform: rotate(1.8deg); }
.sp-pets .sp-thumbs img { aspect-ratio: 1; }

/* 14 battle — esports angular */
body.sp-battle { --sp-bg: #0b0d12; --sp-ink: #e8f0ff; --sp-price: #ff3b3b; --sp-chip: #3b82f6; --sp-chip-ink: #fff; --sp-tick: #3b82f6; --muted: #a8b8d0; --line: #243044; }
[data-theme="light"] body.sp-battle { --sp-bg: #e8eef8; --sp-ink: #0b0d12; --muted: #334; --line: #c0c8d8; }
.sp-battle h1 { font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.sp-battle .sp-thumbs { grid-template-columns: repeat(4, 1fr); }
.sp-battle .sp-thumbs a { clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }

/* 15 faceless — letterbox cinema */
body.sp-faceless { --sp-bg: #0d0d0d; --sp-ink: #f0f0f0; --sp-price: #ffd23f; --sp-chip: #111; --sp-chip-ink: #ffd23f; --muted: #b8b8b8; --line: #333; }
[data-theme="light"] body.sp-faceless { --sp-bg: #1a1a1a; --sp-ink: #f0f0f0; }
.sp-faceless .sp-letterbox { position: relative; margin: 0 -16px 18px; }
.sp-faceless .sp-letterbox img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(.7) contrast(1.1); }
.sp-faceless .sp-letterbox::before, .sp-faceless .sp-letterbox::after {
  content: ""; display: block; height: 18px; background: #000;
}
.sp-faceless .sp-thumbs { grid-template-columns: repeat(4, 1fr); }

/* 16 onetime — comparison */
body.sp-onetime { --sp-bg: #f3efe4; --sp-ink: #1b1240; --sp-price: #0a7a32; --sp-chip: #0a7a32; --sp-chip-ink: #fff; }
[data-theme="dark"] body.sp-onetime { --sp-bg: #14121c; --sp-ink: #f3efe4; --muted: #c3b9ea; --line: #2c2558; }
.sp-onetime .sp-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.sp-onetime .sp-cmp div { padding: 12px; border-radius: 14px; border: 2px solid var(--line); }
.sp-onetime .sp-cmp .yes { border-color: #0a7a32; background: #0a7a3214; }
.sp-onetime .sp-cmp h3 { font-size: 1rem; margin: 0 0 6px; }
.sp-onetime .sp-thumbs { grid-template-columns: repeat(4, 1fr); }

/* 17 id — tropical teal */
body.sp-id { --sp-bg: #e6f7f4; --sp-ink: #042f2e; --sp-price: #0f766e; --sp-chip: #0f766e; --sp-chip-ink: #fff; --sp-tick: #0f766e; }
[data-theme="dark"] body.sp-id { --sp-bg: #042f2e; --sp-ink: #e6f7f4; --muted: #9cd6cf; --line: #125e57; }
.sp-id .sp-banner { background: #0f766e; color: #fff; padding: 10px 14px; border-radius: 0 0 24px 24px; margin: -12px 0 16px; font-weight: 600; }
[data-theme="dark"] .sp-id .sp-banner { background: #115e59; }
@media (min-width: 900px) { .sp-id .sp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } }
.sp-id .sp-thumbs { grid-template-columns: repeat(3, 1fr); }

/* 18 cafe — menu board brown */
body.sp-cafe { --sp-bg: #efe4d4; --sp-ink: #3b2416; --sp-price: #7a3e1d; --sp-chip: #7a3e1d; --sp-chip-ink: #fff8e8; --sp-tick: #7a3e1d; }
[data-theme="dark"] body.sp-cafe { --sp-bg: #24160e; --sp-ink: #efe4d4; --muted: #d0b8a0; --line: #5a3e28; }
.sp-cafe .sp-board { background: #3b2416; color: #fff8e8; padding: 18px 16px; border-radius: 8px; box-shadow: inset 0 0 0 4px #c4a574; }
.sp-cafe .sp-board .sp-lead, .sp-cafe .sp-board .pack { color: #e8d2b8; }
.sp-cafe .sp-board .sp-baht { color: #ffd23f; }
.sp-cafe .sp-thumbs { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }

/* 19 pack — giant value 990 */
body.sp-pack { --sp-bg: #fff3bf; --sp-ink: #1b1240; --sp-price: #e12626; --sp-chip: #e12626; --sp-chip-ink: #fff; }
[data-theme="dark"] body.sp-pack { --sp-bg: #2a2208; --sp-ink: #fff3bf; --muted: #e6d48a; --line: #6a5a20; }
.sp-pack h1 { max-width: 18ch; }
.sp-pack .sp-price .sp-baht { font-size: clamp(3rem, 16vw, 6rem); }
.sp-pack .sp-thumbs { grid-template-columns: repeat(5, 1fr); }

/* 20 es — terracotta */
body.sp-es { --sp-bg: #f8ebe3; --sp-ink: #3b1410; --sp-price: #c2410c; --sp-chip: #9a3412; --sp-chip-ink: #fff; --sp-tick: #9a3412; }
[data-theme="dark"] body.sp-es { --sp-bg: #2a1210; --sp-ink: #f8ebe3; --muted: #e0c0b4; --line: #6a3028; }
.sp-es h1 { max-width: 16ch; }
@media (min-width: 900px) { .sp-es .sp-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; } }
.sp-es .sp-thumbs { grid-template-columns: repeat(3, 1fr); }

/* index */
body.sp-index { --sp-bg: #f6f1e4; }
[data-theme="dark"] body.sp-index { --sp-bg: #140d2e; }
.sp-index h1 { max-width: 24ch; }
.sp-catalog { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .sp-catalog { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sp-catalog { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.sp-card { display: flex; flex-direction: column; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; }
.sp-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sp-card .sp-card-b { padding: 10px 12px 14px; }
.sp-card h2 { font-size: 1.02rem; margin: 0 0 4px; }
.sp-card p { font-size: .84rem; color: var(--muted); margin: 0 0 8px; }
.sp-card code { font-size: .75rem; background: #00000010; padding: 2px 6px; border-radius: 6px; }
.sp-note { font-size: .9rem; color: var(--muted); margin: 0 0 18px; max-width: 60ch; }

@media (max-width: 420px) {
  .sp-vip .sp-mosaic { grid-template-columns: repeat(4, 1fr); }
  .sp-farm .sp-thumbs, .sp-pack .sp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .sp-viewers .sp-thumbs, .sp-gifts .sp-thumbs, .sp-battle .sp-thumbs, .sp-faceless .sp-thumbs, .sp-onetime .sp-thumbs, .sp-cafe .sp-thumbs, .sp-reseller .sp-thumbs { grid-template-columns: repeat(3, 1fr); }
}


/* LC24_THEMECARRY: tick-a-theme chooser on category sale pages */
.sp-chosen { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:10px 12px; border-radius:14px; border:2px solid var(--yellow,#ffd23f); background:rgba(255,210,63,.16); }
.sp-chosen img { width:52px; height:78px; object-fit:cover; border-radius:8px; flex:0 0 auto; }
.sp-chosen b { font-family:var(--hfont, Kanit, sans-serif); }
.sp-choose .sp-thumbs button,
.sp-choose .sp-scroll button {
  appearance:none; -webkit-appearance:none; border:2px solid transparent; background:transparent; padding:0; cursor:pointer; color:inherit; font:inherit; text-align:left; border-radius:14px; overflow:hidden;
}
.sp-choose .sp-thumbs button.is-on,
.sp-choose .sp-scroll button.is-on {
  border-color: var(--yellow,#ffd23f); box-shadow:0 0 0 3px rgba(255,210,63,.35);
}
.sp-choose .sp-thumbs button:focus-visible,
.sp-choose .sp-scroll button:focus-visible { outline:3px solid var(--yellow,#ffd23f); outline-offset:2px; }
