/*! SAM Gifting 7.1 — Key Light.
 * A dark stage lit by one warm key light. Champagne marks what you pick and what is yours, tungsten marks what is live
 * and what needs attention. Square geometry: Slate (cut-corner) primary buttons, Frame (corner-bracket) secondary
 * buttons, square tags — no pill shapes. Instrument Sans (UI), Instrument Serif italic (names), JetBrains Mono (labels
 * and numbers). Logical properties throughout (RTL-safe). Same class names as 7.0: every script hook keeps working. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/instrument-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2009, U+2010-2027, U+202F-203A, U+20AC, U+2122, U+2190-2193, U+2212, U+2713, U+2605-2606; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00C0-00FF, U+2018-201D, U+2026; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2190-2193; }

:root {
  --samg-stage: #0E0F10; --samg-stage-2: #0B0C0D; --samg-panel: #141618; --samg-panel-2: #1B1D20; --samg-raised: #23262A;
  --samg-paper: #F3EEE6; --samg-ink-2: #DED6CA; --samg-muted: #ABA397; --samg-soft: #8C857B;
  --samg-line: rgba(243, 238, 230, .09); --samg-line-2: rgba(243, 238, 230, .16); --samg-line-3: rgba(243, 238, 230, .3);
  --samg-champ: #E7BE88; --samg-champ-2: #F4D9B0; --samg-bronze: #C48F56; --samg-bronze-ink: #8A5A2E; --samg-tung: #D9733A;
  --samg-on-light: #17120A;
  --samg-ok: #86CFA6; --samg-bad: #EE7366; --samg-warn: #F0A35E;
  /* 7.0 names kept for inline styles and add-ons */
  --samg-champagne: var(--samg-champ); --samg-ink: var(--samg-stage); --samg-faint: var(--samg-line); --samg-danger: var(--samg-bad); --samg-teal-300: var(--samg-champ-2);
  --samg-l-fan: #D8CAB3; --samg-l-supporter: #A9C4E6; --samg-l-patron: #D6A95F; --samg-l-star: #F2D48E; --samg-l-legend: #FFE7B0;
  --samg-font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans Arabic", Tahoma, sans-serif;
  --samg-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --samg-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --samg-cut: 12px; --samg-ease: cubic-bezier(.22, 1, .36, 1); --samg-expo: cubic-bezier(.16, 1, .3, 1);
  --samg-key: radial-gradient(560px 300px at 100% -80px, rgba(217, 115, 58, .2), transparent 70%), radial-gradient(440px 260px at -8% 110%, rgba(231, 190, 136, .07), transparent 70%);
  --samg-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
}
[dir="rtl"] .samg, .rtl .samg, [dir="rtl"] .samg-app, [dir="rtl"] .samg-sheet, [dir="rtl"] .samg-dock, .samg-sheet[dir="rtl"], .samg-dock[dir="rtl"] { --samg-font: "Noto Sans Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; --samg-serif: "Noto Naskh Arabic", "Amiri", Georgia, serif; }

/* ---------------- base & theme-proofing ---------------- */
.samg, .samg-app, .samg-sheet, .samg-board, .samg-feed, .samg-row, .samg-wallbox, .samg-bell, .samg-toasts, .samg-dock, .samg-shell { font-family: var(--samg-font); box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.003em; -webkit-tap-highlight-color: transparent; }
.samg *, .samg *::before, .samg *::after, .samg-app *, .samg-app *::before, .samg-app *::after, .samg-sheet *, .samg-sheet *::before, .samg-sheet *::after,
.samg-board *, .samg-feed *, .samg-row *, .samg-wallbox *, .samg-dock *, .samg-dock *::before, .samg-dock *::after { box-sizing: border-box; }
/* class-level (0,1,0) resets: beat theme element rules, lose to every component rule below */
.samg :where(h2, h3, p, ol, ul, li, figure), .samg-app :where(h2, h3, p, ol, ul, li, figure), .samg-sheet :where(h2, h3, p, ol, ul, li, figure), .samg-board :where(h3, ol, li), .samg-row :where(h3, ol, li), .samg-feed :where(ol, li) { margin: 0; padding: 0; }
.samg :where(ol, ul), .samg-app :where(ol, ul), .samg-sheet :where(ol, ul), .samg-board :where(ol), .samg-feed :where(ol), .samg-row :where(ol) { list-style: none; }
/* themes colour, round and uppercase every <button>: SAM surfaces set their own */
.samg button, .samg-app button, .samg-sheet button, .samg-board button, .samg-dock button, .samg-bell, .samg-app label.samg-chip {
  font-family: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; line-height: 1.15; margin: 0; min-width: 0; width: auto; height: auto;
  border-radius: 0; -webkit-appearance: none; appearance: none; box-shadow: none; text-decoration: none; }
.samg :focus-visible, .samg-sheet :focus-visible, .samg-app :focus-visible, .samg-board :focus-visible, .samg-dock :focus-visible, .samg-bell:focus-visible, .samg-row a:focus-visible, .samg-feed a:focus-visible { outline: 2px solid var(--samg-champ); outline-offset: 2px; border-radius: 0; }
.samg [hidden], .samg-app [hidden], .samg-sheet [hidden], .samg-bell [hidden], .samg-dock [hidden], .samg-dock__sheet[hidden] { display: none !important; }
.samg ::selection, .samg-app ::selection, .samg-sheet ::selection { background: var(--samg-champ); color: var(--samg-on-light); }
.samg-svg { inline-size: 100%; block-size: 100%; display: block; overflow: visible; }
.samg-coin { display: inline-block; flex: none; inline-size: .95em; block-size: .95em; border-radius: 50%; vertical-align: -.12em; margin-inline-end: .34em;
  background: radial-gradient(circle at 34% 30%, #fff8e6 0 16%, var(--samg-champ-2) 28%, var(--samg-champ) 52%, var(--samg-bronze) 78%, var(--samg-bronze-ink) 100%);
  box-shadow: 0 0 0 1px rgba(255, 236, 205, .35) inset, 0 0 0 1.5px rgba(23, 18, 10, .35), 0 2px 6px rgba(217, 115, 58, .35); }
.samg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1.2 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-champ); }
.samg-eyebrow::before { content: ""; inline-size: 6px; block-size: 6px; background: var(--samg-tung); box-shadow: 0 0 10px rgba(217, 115, 58, .8); flex: none; }
.samg-muted { color: var(--samg-muted); }
/* corner brackets (Frame) */
.samg-c { position: absolute; inline-size: 18px; block-size: 18px; pointer-events: none; z-index: 1; border-color: var(--samg-champ); border-style: solid; opacity: .7; transition: inline-size .5s var(--samg-expo), block-size .5s var(--samg-expo), opacity .3s; }
.samg-c--a { inset-block-start: 0; inset-inline-start: 0; border-width: 1.5px 0 0 1.5px; }
.samg-c--b { inset-block-end: 0; inset-inline-end: 0; border-width: 0 1.5px 1.5px 0; }
[dir="rtl"] .samg-c--a, .rtl .samg-c--a { border-width: 1.5px 1.5px 0 0; }
[dir="rtl"] .samg-c--b, .rtl .samg-c--b { border-width: 0 0 1.5px 1.5px; }

/* ---------------- the gift bar ---------------- */
.samg { position: relative; isolation: isolate; color: var(--samg-paper); background: var(--samg-key), var(--samg-stage); box-shadow: inset 0 0 0 1px var(--samg-line), var(--samg-shadow);
  border: 0; border-radius: 0; padding: 22px 18px 18px; margin-block: 28px; overflow: hidden; font-size: 15px; line-height: 1.45; }
.samg:hover .samg-c { inline-size: 26px; block-size: 26px; opacity: 1; }
.samg::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 1px; z-index: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(231, 190, 136, .55), transparent); opacity: .55; }
.samg > :not(.samg-stage):not(.samg-c) { position: relative; z-index: 2; }
.samg > .samg-stage { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.samg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.samg-head__title { display: grid; gap: 8px; min-inline-size: 0; }
.samg-head h2 { margin: 0; font: 600 clamp(1.3rem, 4.8vw, 1.7rem)/1.12 var(--samg-font); letter-spacing: -.02em; color: var(--samg-paper); }
.samg-head h2 em { font-family: var(--samg-serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: 0; color: var(--samg-champ); }
.samg-head__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.samg-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 4px 6px; font: 600 10px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-on-light); background: var(--samg-tung); border-radius: 0; }
.samg-live::before { content: ""; inline-size: 6px; block-size: 6px; background: #fff; animation: samg-live 1.2s steps(2, end) infinite; }
.samg-eyebrow .samg-live { margin-inline-start: 4px; }
.samg-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; font: 500 10.5px/1 var(--samg-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--samg-champ); background: rgba(231, 190, 136, .1); box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .35); border-radius: 0; justify-self: start; }
.samg .samg-sound, .samg .samg-balance { min-block-size: 40px; border: 0; background: rgba(243, 238, 230, .04); box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: box-shadow .2s, background .2s, color .2s; }
.samg .samg-sound { inline-size: 40px; }
.samg .samg-sound:hover, .samg .samg-balance:hover { box-shadow: inset 0 0 0 1px var(--samg-line-3); background: rgba(243, 238, 230, .08); }
.samg-sound span { display: block; inline-size: 16px; block-size: 14px; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 4h3l4-3v12L4 10H1z'/%3E%3Cpath d='M11 4l4 6M15 4l-4 6' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 4h3l4-3v12L4 10H1z'/%3E%3Cpath d='M11 4l4 6M15 4l-4 6' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; }
.samg-sound.is-on span { opacity: 1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 4h3l4-3v12L4 10H1z'/%3E%3Cpath d='M11 3.5c1.6 1.8 1.6 5.2 0 7M13 1.5c2.6 3 2.6 8 0 11' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 4h3l4-3v12L4 10H1z'/%3E%3Cpath d='M11 3.5c1.6 1.8 1.6 5.2 0 7M13 1.5c2.6 3 2.6 8 0 11' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E"); }
.samg .samg-sound.is-on { color: var(--samg-champ); box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .45); }
.samg .samg-balance { gap: 2px; padding-inline: 12px; font: 500 13px/1 var(--samg-mono); color: var(--samg-champ); font-variant-numeric: tabular-nums; }
.samg .samg-balance::after { content: "+"; margin-inline-start: 8px; padding-inline-start: 8px; border-inline-start: 1px solid var(--samg-line-2); color: var(--samg-paper); font-size: 15px; }

.samg-soon { display: grid; gap: 3px; margin-block-start: 16px; padding: 12px 14px; background: linear-gradient(90deg, rgba(217, 115, 58, .16), rgba(217, 115, 58, .02) 70%); box-shadow: inset 3px 0 0 var(--samg-tung); }
[dir="rtl"] .samg-soon { box-shadow: inset -3px 0 0 var(--samg-tung); background: linear-gradient(-90deg, rgba(217, 115, 58, .16), rgba(217, 115, 58, .02) 70%); }
.samg-soon b { font-weight: 600; font-size: .95rem; color: var(--samg-paper); }
.samg-soon span { color: var(--samg-muted); font-size: .86rem; }

.samg-crown { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; padding: 9px 14px 9px 10px; inline-size: fit-content; max-inline-size: 100%;
  background: linear-gradient(90deg, rgba(231, 190, 136, .16), rgba(231, 190, 136, .02)); box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .22); animation: samg-in .6s var(--samg-ease) both; }
.samg-crown__icon { inline-size: 28px; block-size: 28px; flex: none; filter: drop-shadow(0 3px 8px rgba(231, 190, 136, .45)); }
.samg-crown__txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; min-inline-size: 0; }
.samg-crown__txt small { font: 500 10px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); }
.samg-crown__txt b { color: var(--samg-name, var(--samg-champ)); font-size: .98rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.samg-goal { margin-block-start: 14px; padding: 13px 14px 14px; background: rgba(243, 238, 230, .035); box-shadow: inset 0 0 0 1px var(--samg-line); }
.samg-goal__top { display: flex; align-items: baseline; gap: 10px; font-size: .9rem; }
.samg-goal__top b { flex: 1; min-inline-size: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.samg-goal__k { font: 500 10px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-tung); flex: none; }
.samg-goal__pct { font: 500 13px/1 var(--samg-mono); color: var(--samg-champ); flex: none; font-variant-numeric: tabular-nums; }
.samg-goal__unlock { display: block; margin-block-start: 8px; color: var(--samg-muted); font-size: .8rem; }
.samg-progress { position: relative; block-size: 6px; background: rgba(243, 238, 230, .08); overflow: hidden; margin-block-start: 10px; border-radius: 0; }
.samg-progress i { position: relative; display: block; block-size: 100%; background: linear-gradient(90deg, var(--samg-bronze), var(--samg-champ) 70%, var(--samg-champ-2)); box-shadow: 0 0 14px rgba(231, 190, 136, .55); transition: inline-size 1s var(--samg-expo); overflow: hidden; }
.samg-progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: samg-sweep 2.8s 1s var(--samg-ease) infinite; }

.samg-ticker { display: grid; gap: 6px; margin-block-start: 12px; }
.samg-ticker:empty { display: none; }
.samg-tick { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--samg-muted); padding: 8px 10px; background: rgba(243, 238, 230, .03); box-shadow: inset 2px 0 0 var(--samg-champ); animation: samg-tick .55s var(--samg-ease) both; }
[dir="rtl"] .samg-tick { box-shadow: inset -2px 0 0 var(--samg-champ); }
.samg-tick span:last-child { color: var(--samg-name, var(--samg-paper)); min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-tick__art { inline-size: 24px; block-size: 24px; flex: none; }

/* gift tiles */
.samg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-block-start: 18px; max-block-size: 352px; overflow-y: auto; overscroll-behavior: contain; padding: 1px;
  scrollbar-width: thin; scrollbar-color: var(--samg-line-2) transparent; -webkit-mask: linear-gradient(#000 calc(100% - 18px), transparent); mask: linear-gradient(#000 calc(100% - 18px), transparent); padding-block-end: 14px; }
@media (min-width: 640px) { .samg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-block-size: none; -webkit-mask: none; mask: none; padding-block-end: 1px; } }
@media (min-width: 980px) { .samg-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.samg--docked .samg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-block-size: 300px; -webkit-mask: linear-gradient(#000 calc(100% - 18px), transparent); mask: linear-gradient(#000 calc(100% - 18px), transparent); padding-block-end: 14px; }
.samg .samg-gift { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-block-size: 104px; padding: 12px 4px 10px; border: 0; border-radius: 0; isolation: isolate;
  background: linear-gradient(180deg, rgba(243, 238, 230, .045), rgba(243, 238, 230, .015)); box-shadow: inset 0 0 0 1px var(--samg-line); color: var(--samg-paper); cursor: pointer;
  transition: transform .22s var(--samg-ease), box-shadow .25s, background .25s; animation: samg-rise .5s var(--samg-ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.samg .samg-gift::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 34%, rgba(231, 190, 136, .22), transparent 70%); opacity: 0; transition: opacity .3s; }
.samg .samg-gift:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--samg-line-2); background: linear-gradient(180deg, rgba(243, 238, 230, .07), rgba(243, 238, 230, .02)); }
.samg .samg-gift:hover::before { opacity: .6; }
.samg .samg-gift:active { transform: scale(.96); }
.samg .samg-gift.is-on { background: linear-gradient(180deg, rgba(231, 190, 136, .16), rgba(231, 190, 136, .04)); box-shadow: inset 0 0 0 1.5px var(--samg-champ), 0 14px 30px -16px rgba(231, 190, 136, .65); }
.samg .samg-gift.is-on::before { opacity: 1; }
.samg .samg-gift.is-on::after { content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0; inline-size: 0; block-size: 0; border-style: solid; border-width: 0 16px 16px 0; border-color: transparent var(--samg-champ) transparent transparent; }
[dir="rtl"] .samg .samg-gift.is-on::after { border-width: 0 0 16px 16px; border-color: transparent transparent transparent var(--samg-champ); }
.samg .samg-gift.is-featured:not(.is-on)::after { content: ""; position: absolute; inset-block-start: 7px; inset-inline-end: 7px; inline-size: 6px; block-size: 6px; background: var(--samg-tung); box-shadow: 0 0 8px var(--samg-tung); }
.samg .samg-gift[data-tier="3"], .samg .samg-gift[data-tier="4"] { background: linear-gradient(180deg, rgba(217, 115, 58, .1), rgba(243, 238, 230, .015) 70%); }
.samg .samg-gift[data-tier="4"] .samg-gift__name { color: var(--samg-champ-2); }
.samg-gift__art { inline-size: 48px; block-size: 48px; transition: transform .35s cubic-bezier(.2, .9, .3, 1.5); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); }
.samg .samg-gift:hover .samg-gift__art { transform: translateY(-2px) scale(1.06); }
.samg .samg-gift.is-on .samg-gift__art { transform: scale(1.16) translateY(-2px); filter: drop-shadow(0 10px 16px rgba(217, 115, 58, .45)); }
.samg-gift__name { font-size: .74rem; font-weight: 600; line-height: 1.15; text-align: center; color: var(--samg-ink-2); max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-gift__price { font: 500 11px/1 var(--samg-mono); color: var(--samg-champ); display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }

/* combo — one segmented control */
.samg-combos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin-block-start: 14px; background: var(--samg-line); box-shadow: 0 0 0 1px var(--samg-line); }
.samg .samg-combo { min-block-size: 44px; padding: 0 4px; border: 0; background: var(--samg-stage); color: var(--samg-muted); font: 500 14px/1 var(--samg-mono); cursor: pointer; transition: background .2s, color .2s; }
.samg .samg-combo:hover { color: var(--samg-paper); background: var(--samg-panel); }
.samg .samg-combo.is-on { color: var(--samg-on-light) !important; background: var(--samg-champ); }
.samg .samg-compose-toggle { margin-block-start: 12px; background: none !important; border: 0; color: var(--samg-muted) !important; font: 500 12px/1 var(--samg-mono) !important; letter-spacing: .06em; cursor: pointer; padding: 8px 0; display: inline-flex; align-items: center; gap: 8px; }
.samg .samg-compose-toggle::before { content: "+"; display: inline-grid; place-items: center; inline-size: 18px; block-size: 18px; box-shadow: inset 0 0 0 1px var(--samg-line-3); font-size: 13px; transition: transform .25s var(--samg-ease); }
.samg .samg-compose-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.samg .samg-compose-toggle:hover, .samg .samg-compose-toggle:focus-visible { color: var(--samg-champ) !important; }
.samg-compose { margin-block-start: 4px; display: grid; gap: 8px; animation: samg-in .35s var(--samg-ease) both; }
.samg-compose textarea, .samg-app textarea, .samg-form input, .samg-inline-form input, .samg-inline-form select, .samg-studio__head select, .samg-app select {
  inline-size: 100%; border: 0; border-radius: 0; background: rgba(243, 238, 230, .04); box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-paper); padding: 12px 14px; font: 400 16px/1.4 var(--samg-font); margin: 0; min-block-size: 46px; transition: box-shadow .2s, background .2s; }
.samg-compose textarea:focus, .samg-app textarea:focus, .samg-form input:focus, .samg-inline-form input:focus, .samg-inline-form select:focus, .samg-app select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--samg-champ), 0 0 0 3px rgba(231, 190, 136, .14); background: rgba(243, 238, 230, .06); }
.samg-app select option, .samg-inline-form select option { background: var(--samg-panel); color: var(--samg-paper); }
.samg-anon { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--samg-muted); cursor: pointer; }
.samg-anon input { accent-color: var(--samg-champ); inline-size: 16px; block-size: 16px; margin: 0; }

/* actions: applause (Frame) + send (Slate) */
.samg-actions { display: flex; gap: 8px; margin-block-start: 14px; align-items: stretch; }
.samg--minor .samg-actions .samg-heart { flex: 1; justify-content: center; }
.samg .samg-heart { --b: rgba(243, 238, 230, .6); --l: 9px; position: relative; flex: none; display: inline-flex; align-items: center; gap: 10px; min-block-size: 56px; padding: 0 16px 0 12px; border: 0; color: var(--samg-paper); cursor: pointer;
  background-color: rgba(243, 238, 230, .035);
  background-image: linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b));
  background-repeat: no-repeat; background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-size: var(--l) 1.5px, 1.5px var(--l), var(--l) 1.5px, 1.5px var(--l), var(--l) 1.5px, 1.5px var(--l), var(--l) 1.5px, 1.5px var(--l);
  box-shadow: inset 0 0 0 1px rgba(243, 238, 230, .07); transition: background-size .35s var(--samg-expo), background-color .25s, transform .15s var(--samg-ease); }
.samg .samg-heart:hover { --l: 16px; background-color: rgba(243, 238, 230, .07); }
.samg .samg-heart:active { transform: scale(.96); }
.samg .samg-heart.is-pop .samg-heart__icon { animation: samg-bump .45s var(--samg-ease); }
.samg-heart__icon { inline-size: 26px; block-size: 26px; flex: none; }
.samg-heart__txt { display: grid; gap: 3px; text-align: start; line-height: 1.05; }
.samg-heart__txt > span { font-weight: 600; font-size: .9rem; }
.samg-heart__count { font: 500 11px/1 var(--samg-mono); color: var(--samg-champ); font-variant-numeric: tabular-nums; }
.samg .samg-send { --c1: var(--samg-champ-2); --c2: var(--samg-champ); position: relative; flex: 1; min-inline-size: 0; min-block-size: 56px; border: 0; cursor: pointer; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 0 20px; white-space: nowrap; text-overflow: ellipsis;
  font: 600 15px/1.1 var(--samg-font) !important; letter-spacing: -.005em; color: var(--samg-on-light) !important;
  background: linear-gradient(225deg, transparent var(--samg-cut), var(--c2) calc(var(--samg-cut) + .5px)); filter: drop-shadow(0 12px 24px rgba(217, 115, 58, .3));
  transition: transform .15s var(--samg-ease), filter .25s, opacity .25s; }
[dir="rtl"] .samg .samg-send { background: linear-gradient(135deg, transparent var(--samg-cut), var(--c2) calc(var(--samg-cut) + .5px)); }
.samg .samg-send::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%); transform: translateX(-120%); pointer-events: none; }
.samg .samg-send:hover { --c2: var(--samg-champ-2); filter: drop-shadow(0 14px 28px rgba(217, 115, 58, .42)); }
.samg .samg-send:active { transform: scale(.975); }
.samg .samg-send .samg-coin { margin-inline-start: .3em; }
.samg .samg-send:disabled { --c2: #3a3631; color: rgba(243, 238, 230, .55) !important; cursor: default; filter: none; }
.samg .samg-send.is-ready::before { animation: samg-shine 1.6s var(--samg-ease) 2; }
.samg .samg-send[aria-busy="true"]::after { content: ""; inline-size: 14px; block-size: 14px; margin-inline-start: 10px; border: 2px solid currentColor; border-inline-end-color: transparent; border-block-end-color: transparent; animation: samg-spin .7s linear infinite; }
.samg-note { margin: 16px 0 0; color: var(--samg-muted); font-size: .92rem; line-height: 1.5; }

.samg-thanksnote { margin-block-start: 14px; padding: 12px 14px; background: rgba(243, 238, 230, .03); box-shadow: inset 0 0 0 1px var(--samg-line); }
.samg-thanksnote small { display: block; font: 500 10px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-champ); margin-block-end: 6px; }
.samg-thanksnote q { font-family: var(--samg-serif); font-style: italic; font-size: 1.08rem; color: var(--samg-paper); quotes: "“" "”"; }
.samg-wall { margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid var(--samg-line); }
.samg-wall h3 { margin: 0 0 10px; font: 500 10.5px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); }
.samg-wall ol { display: grid; gap: 8px; }
.samg-wall li { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--samg-muted); flex-wrap: wrap; animation: samg-in .4s var(--samg-ease) both; }
.samg-wall li b { color: var(--samg-name, var(--samg-paper)); font-weight: 600; }
.samg-wall li q { flex-basis: 100%; color: var(--samg-ink-2); font-family: var(--samg-serif); font-style: italic; font-size: 1rem; padding-inline-start: 30px; }
.samg-wall__art { inline-size: 22px; block-size: 22px; flex: none; }

/* not live yet */
.samg.is-soon .samg-grid { opacity: .5; filter: saturate(.55); pointer-events: none; }
.samg.is-soon .samg-combos, .samg.is-soon .samg-compose-toggle, .samg.is-soon .samg-compose, .samg.is-soon .samg-balance { display: none !important; }

/* ---------------- floating launcher on talent profiles ---------------- */
.samg-dock { position: fixed; z-index: 99980; inset-inline-end: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom)); }
.samg-dock .samg-launch { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; min-block-size: 60px; border: 0; cursor: pointer; overflow: hidden; color: var(--samg-paper);
  background: var(--samg-key), var(--samg-stage); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .35); filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .55)); transition: transform .2s var(--samg-ease);
  animation: samg-launch-in .7s .4s var(--samg-expo) both; }
[dir="rtl"] .samg-dock .samg-launch, .samg-dock[dir="rtl"] .samg-launch { clip-path: polygon(0 14px, 14px 0, 100% 0, 100% 100%, 0 100%); padding: 8px 8px 8px 20px; }
.samg-dock .samg-launch:hover { transform: translateY(-2px); }
.samg-dock .samg-launch:active { transform: scale(.97); }
.samg-launch__art { position: relative; inline-size: 44px; block-size: 44px; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(231, 190, 136, .35), rgba(217, 115, 58, .08) 70%); box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .3); }
.samg-launch__art svg { inline-size: 34px; block-size: 34px; animation: samg-float 3.2s ease-in-out infinite; }
.samg-launch__txt { display: grid; gap: 3px; text-align: start; line-height: 1.1; }
.samg-launch__txt small { font: 500 10px/1 var(--samg-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--samg-champ); max-inline-size: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-launch__txt b { font-weight: 600; font-size: 15px; color: var(--samg-paper); }
.samg-launch__glint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(244, 217, 176, .22) 50%, transparent 65%); transform: translateX(-120%); animation: samg-shine 1.4s 1.6s var(--samg-ease) 2; }
.samg-dock.has-live .samg-launch__art::after { content: ""; position: absolute; inset-block-start: -3px; inset-inline-end: -3px; inline-size: 9px; block-size: 9px; background: var(--samg-tung); box-shadow: 0 0 0 2px var(--samg-stage), 0 0 10px var(--samg-tung); animation: samg-live 1.2s steps(2, end) infinite; }
.samg-dock.is-open .samg-launch { visibility: hidden; }
.samg-dock__sheet { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
.samg-dock__scrim { position: absolute; inset: 0; background: rgba(5, 5, 6, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.samg-dock__panel { position: relative; inline-size: 100%; max-inline-size: 560px; max-block-size: min(92vh, 860px); overflow-y: auto; overscroll-behavior: contain; outline: none;
  background: var(--samg-stage); box-shadow: 0 -30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(231, 190, 136, .35); transform: translateY(100%); transition: transform .42s var(--samg-expo); padding-block-end: env(safe-area-inset-bottom); }
.samg-dock.is-open .samg-dock__scrim { opacity: 1; }
.samg-dock.is-open .samg-dock__panel { transform: none; }
.samg-dock__panel .samg { margin: 0; box-shadow: none; padding-block-start: 14px; }
.samg-dock__panel .samg-sheet__grip { position: relative; z-index: 3; margin: 10px auto 0; }
.samg-dock .samg-dock__close { position: absolute; z-index: 8; inset-block-start: 27px; inset-inline-end: 18px; }
@media (min-width: 720px) { .samg-dock .samg-dock__close { inset-block-start: 14px; } }
.samg-dock__panel .samg-head { padding-inline-end: 48px; }
@media (min-width: 720px) { .samg-dock__sheet { align-items: center; } .samg-dock__panel { transform: translateY(24px) scale(.98); opacity: 0; transition: transform .42s var(--samg-expo), opacity .3s; } .samg-dock.is-open .samg-dock__panel { opacity: 1; } .samg-dock__panel .samg-sheet__grip { display: none; } }
html.samg-lock, html.samg-lock body { overflow: hidden; }

/* ---------------- celebrations ---------------- */
.samg-anim { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.samg-anim__art { inline-size: 112px; block-size: 112px; filter: drop-shadow(0 14px 34px rgba(217, 115, 58, .5)); will-change: transform, opacity; }
.samg-anim--t1 .samg-anim__art { inline-size: 74px; block-size: 74px; }
.samg-anim--t3 { background: radial-gradient(60% 50% at 50% 45%, rgba(217, 115, 58, .22), transparent 70%); }
.samg-anim--t3 .samg-anim__art { inline-size: 168px; block-size: 168px; }
.samg-anim.is-full { position: fixed; z-index: 100002; background: radial-gradient(70% 55% at 50% 45%, rgba(217, 115, 58, .3), rgba(11, 12, 13, .88) 72%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.samg-anim.is-full .samg-anim__art { inline-size: min(66vw, 320px); block-size: min(66vw, 320px); }
.samg-anim__rays { position: absolute; inline-size: 560px; block-size: 560px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(244, 217, 176, .16) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%); }
.samg-anim__label { margin-block-start: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(11, 12, 13, .86); box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .35); color: var(--samg-name, var(--samg-paper)); font-weight: 600; font-size: .94rem; max-inline-size: 92%; font-family: var(--samg-font); }
.samg-anim__label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-anim__combo { font: 500 1.3rem/1 var(--samg-mono); color: var(--samg-champ); text-shadow: 0 0 14px rgba(231, 190, 136, .8); }
.samg-p { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 7px; block-size: 7px; border-radius: 0; }
.samg-p:nth-child(3n) { border-radius: 50%; }
.samg-floatheart { position: absolute; inset-block-start: 0; inset-inline-start: 14px; inline-size: 28px; block-size: 28px; pointer-events: none; z-index: 4; }
.g-spin { transform-origin: 50% 50%; animation: samg-spin 6s linear infinite; }
.g-spin-slow { transform-origin: 50% 50%; animation: samg-spin 14s linear infinite; }
.g-blink { animation: samg-blink 1.6s ease-in-out infinite; }
.g-steam { animation: samg-steam 2.4s ease-in-out infinite; }
.g-wave { animation: samg-wave 3s ease-in-out infinite; }
.g-wing { transform-origin: 50% 52%; animation: samg-wing 1.1s ease-in-out infinite; }
.g-glow { animation: samg-blink 2s ease-in-out infinite; }
.g-bob { animation: samg-bob 2.4s ease-in-out infinite; }
.g-clap { transform-origin: 16% 50%; animation: samg-clap 1.4s ease-in-out infinite; }
.g-beam { animation: samg-blink 2.2s ease-in-out infinite; }
/* the art animates when it is selected, hovered or celebrating — not 30 tiles at once */
.samg-gift:not(.is-on):not(:hover) :is(.g-spin, .g-spin-slow, .g-blink, .g-steam, .g-wave, .g-wing, .g-glow, .g-bob, .g-clap, .g-beam) { animation-play-state: paused; }

/* ---------------- sheets ---------------- */
.samg-sheet { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: flex-end; justify-content: center; color: var(--samg-paper); }
.samg-sheet__scrim { position: absolute; inset: 0; background: rgba(5, 5, 6, .68); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.samg-sheet__panel { position: relative; inline-size: 100%; max-inline-size: 540px; max-block-size: 90vh; overflow-y: auto; overscroll-behavior: contain; color: var(--samg-paper);
  background: var(--samg-key), var(--samg-stage); border: 0; border-radius: 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(231, 190, 136, .35);
  padding: 8px 22px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .42s var(--samg-expo); outline: none; font-size: 15px; line-height: 1.45; }
.samg-sheet.is-open .samg-sheet__scrim { opacity: 1; }
.samg-sheet.is-open .samg-sheet__panel { transform: none; }
@media (min-width: 720px) {
  .samg-sheet { align-items: center; }
  .samg-sheet__panel { box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--samg-line-2); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .42s var(--samg-expo), opacity .3s; padding-block-start: 22px; }
  .samg-sheet.is-open .samg-sheet__panel { opacity: 1; }
  .samg-sheet.is-wide .samg-sheet__panel { max-inline-size: 760px; }
  .samg-sheet__grip { display: none; }
}
.samg-sheet__grip { inline-size: 40px; block-size: 3px; background: rgba(243, 238, 230, .25); margin: 6px auto 14px; }
.samg-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block-end: 4px; }
.samg-sheet__head h2 { margin: 0; font: 400 1.7rem/1.1 var(--samg-serif); font-style: italic; color: var(--samg-paper); letter-spacing: 0; }
.samg-sheet .samg-x, .samg-dock .samg-x { flex: none; inline-size: 40px; block-size: 40px; min-inline-size: 40px; padding: 0; display: grid; place-items: center; border: 0; background: rgba(243, 238, 230, .04); box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-paper); font-size: 1.35rem; line-height: 1; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s var(--samg-ease); }
.samg-sheet .samg-x:hover, .samg-dock .samg-x:hover { background: rgba(243, 238, 230, .1); box-shadow: inset 0 0 0 1px var(--samg-line-3); transform: rotate(90deg); }
.samg-sheet__body { padding-block: 12px 4px; animation: samg-in .4s .05s var(--samg-ease) both; }
.samg-lead { color: var(--samg-muted); margin: 4px 0 16px; line-height: 1.55; }
.samg-form { display: grid; gap: 10px; }
.samg-form label { font: 500 10.5px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); margin-block-start: 4px; }
.samg-form .samg-code { letter-spacing: .6em; text-align: center; font: 500 1.5rem/1 var(--samg-mono) !important; padding-inline-start: calc(14px + .6em); }
.samg-msg { min-block-size: 1.2em; margin: 0; color: var(--samg-bad); font-size: .88rem; }
.samg-msg:empty { min-block-size: 0; }

/* buttons: Slate (primary) & Frame (secondary) */
.samg-sheet .samg-btn, .samg-app .samg-btn, .samg .samg-btn { --b: rgba(243, 238, 230, .55); --l: 9px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 48px; padding: 0 20px; border: 0; cursor: pointer;
  font: 600 14.5px/1.1 var(--samg-font); color: var(--samg-paper); background-color: rgba(243, 238, 230, .035);
  background-image: linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b));
  background-repeat: no-repeat; background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-size: var(--l) 1.5px, 1.5px var(--l), var(--l) 1.5px, 1.5px var(--l), var(--l) 1.5px, 1.5px var(--l), var(--l) 1.5px, 1.5px var(--l);
  box-shadow: inset 0 0 0 1px rgba(243, 238, 230, .07); transition: background-size .35s var(--samg-expo), background-color .25s, transform .15s var(--samg-ease), filter .25s; }
.samg-sheet .samg-btn:hover, .samg-app .samg-btn:hover, .samg .samg-btn:hover { --l: 16px; background-color: rgba(243, 238, 230, .08); }
.samg-sheet .samg-btn:active, .samg-app .samg-btn:active { transform: scale(.975); }
.samg-sheet .samg-btn--gold, .samg-app .samg-btn--gold, .samg .samg-btn--gold { --c: var(--samg-champ); color: var(--samg-on-light) !important; background: linear-gradient(225deg, transparent var(--samg-cut), var(--c) calc(var(--samg-cut) + .5px)); box-shadow: none; filter: drop-shadow(0 10px 22px rgba(217, 115, 58, .28)); }
[dir="rtl"] .samg-sheet .samg-btn--gold, [dir="rtl"] .samg-app .samg-btn--gold, .samg-sheet[dir="rtl"] .samg-btn--gold { background: linear-gradient(135deg, transparent var(--samg-cut), var(--c) calc(var(--samg-cut) + .5px)); }
.samg-sheet .samg-btn--gold:hover, .samg-app .samg-btn--gold:hover { --c: var(--samg-champ-2); background-color: transparent; }
.samg-sheet .samg-btn--ghost, .samg-app .samg-btn--ghost { --b: rgba(243, 238, 230, .4); }
.samg-btn--block { inline-size: 100%; }
a.samg-btn, a.samg-btn:hover, a.samg-btn:focus, .samg-app a.samg-chip, .samg-app a.samg-chip:hover { text-decoration: none !important; }
.samg-badges .samg-badge { padding: 8px 10px; font-size: 11px; }
.samg-sheet .samg-btn[disabled], .samg-app .samg-btn[disabled] { opacity: .45; pointer-events: none; filter: none; }
.samg-sheet .samg-link, .samg-app .samg-link { background: none; border: 0; color: var(--samg-champ); font: 500 12px/1 var(--samg-mono); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; padding: 12px 0; justify-self: center; }
.samg-row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block-start: 10px; }
.samg-row-btns .samg-btn { flex: 1; }
[aria-busy="true"]:not(.samg-app):not(.samg-send) { opacity: .7; pointer-events: none; }

/* coin packs */
.samg-offer { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 14px; background: linear-gradient(90deg, rgba(217, 115, 58, .2), rgba(217, 115, 58, .02)); box-shadow: inset 3px 0 0 var(--samg-tung); color: var(--samg-paper); font-size: .9rem; }
.samg-offer b { color: var(--samg-champ-2); font-weight: 600; }
.samg-wallet { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding-block-end: 12px; border-block-end: 1px solid var(--samg-line); }
.samg-wallet small { font: 500 10.5px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); }
.samg-wallet b { font: 600 1.35rem/1 var(--samg-font); color: var(--samg-champ); display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.samg-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.samg-sheet .samg-pack, .samg-app .samg-pack { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 12px 16px; border: 0; border-radius: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(243, 238, 230, .05), rgba(243, 238, 230, .015)); box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-paper); text-align: center;
  transition: transform .2s var(--samg-ease), box-shadow .25s, background .25s; animation: samg-rise .5s var(--samg-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.samg-pack::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 50% 0%, rgba(231, 190, 136, .18), transparent 70%); opacity: .5; transition: opacity .3s; }
.samg-sheet .samg-pack:hover, .samg-app .samg-pack:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--samg-champ); }
.samg-pack:hover::before { opacity: 1; }
.samg-sheet .samg-pack.is-best, .samg-app .samg-pack.is-best { box-shadow: inset 0 0 0 1.5px var(--samg-champ), 0 18px 36px -20px rgba(217, 115, 58, .7); background: linear-gradient(180deg, rgba(231, 190, 136, .14), rgba(231, 190, 136, .03)); }
.samg-pack[data-tag]::after { content: attr(data-tag); position: absolute; inset-block-start: 0; inset-inline-start: 0; padding: 5px 8px; font: 600 9.5px/1 var(--samg-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--samg-on-light); background: var(--samg-champ); }
.samg-pack:not(.is-best)[data-tag]::after { background: rgba(243, 238, 230, .14); color: var(--samg-paper); }
.samg-pack__coins { font: 600 1.55rem/1 var(--samg-font); letter-spacing: -.02em; color: var(--samg-paper); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.samg-pack__bonus { font: 500 11px/1 var(--samg-mono); color: var(--samg-tung); }
.samg-pack__price { margin-block-start: 6px; padding: 7px 12px; font: 600 .92rem/1 var(--samg-font); color: var(--samg-on-light); background: var(--samg-champ); min-inline-size: 70%; }
.samg-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font: 500 11px/1.3 var(--samg-mono); color: var(--samg-soft); text-align: center; }
.samg-secure::before { content: ""; inline-size: 10px; block-size: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1v7H1V5zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1v7H1V5zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.samg-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 10px; text-align: center; color: var(--samg-muted); }
.samg-empty b { color: var(--samg-paper); font-weight: 600; }
.samg-terms { margin-block-start: 16px; color: var(--samg-muted); font-size: .82rem; border-block-start: 1px solid var(--samg-line); padding-block-start: 10px; }
.samg-terms summary { cursor: pointer; color: var(--samg-champ); font: 500 11px/1.4 var(--samg-mono); letter-spacing: .08em; text-transform: uppercase; padding-block: 4px; }
.samg-terms p { margin-block-start: 8px; line-height: 1.55; }
.samg-levelup { text-align: center; display: grid; justify-items: center; gap: 6px; }
.samg-levelup__badge { inline-size: 132px; block-size: 132px; margin: 6px auto; animation: samg-pop .7s var(--samg-expo) both; filter: drop-shadow(0 16px 30px rgba(217, 115, 58, .45)); }
.samg-levelup__name { font: 400 2.4rem/1 var(--samg-serif); font-style: italic; margin: 0; color: var(--samg-name, var(--samg-champ)); }

/* ---------------- toasts & bell ---------------- */
.samg-toasts { position: fixed; z-index: 100003; inset-inline: 12px; inset-block-start: calc(14px + env(safe-area-inset-top)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.samg-toast { pointer-events: auto; max-inline-size: 460px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: rgba(20, 22, 24, .97); color: var(--samg-paper);
  box-shadow: inset 0 0 0 1px var(--samg-line-2), inset 3px 0 0 var(--samg-champ), 0 20px 50px rgba(0, 0, 0, .55); font: 500 14px/1.4 var(--samg-font); animation: samg-toast .4s var(--samg-expo) both; transition: opacity .3s, transform .3s; }
[dir="rtl"] .samg-toast { box-shadow: inset 0 0 0 1px var(--samg-line-2), inset -3px 0 0 var(--samg-champ), 0 20px 50px rgba(0, 0, 0, .55); }
.samg-toast.is-ok { box-shadow: inset 0 0 0 1px var(--samg-line-2), inset 3px 0 0 var(--samg-ok), 0 20px 50px rgba(0, 0, 0, .55); }
.samg-toast.is-error { box-shadow: inset 0 0 0 1px var(--samg-line-2), inset 3px 0 0 var(--samg-bad), 0 20px 50px rgba(0, 0, 0, .55); }
.samg-toast.is-out { opacity: 0; transform: translateY(-8px); }
.samg-bell { position: fixed; z-index: 99979; inset-inline-end: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom)); inline-size: 52px; block-size: 52px; padding: 0; border: 0; cursor: pointer;
  background: var(--samg-key), var(--samg-stage); color: var(--samg-champ); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .3); filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5)); transition: transform .2s var(--samg-ease); }
.samg-dock ~ .samg-bell, body.samg-has-dock .samg-bell { inset-block-end: calc(88px + env(safe-area-inset-bottom)); }
.samg-bell:hover { transform: translateY(-2px); }
.samg-bell__icon { display: block; inline-size: 22px; block-size: 22px; margin: auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.samg-bell__n { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; min-inline-size: 18px; block-size: 18px; background: var(--samg-tung); color: var(--samg-on-light); font: 600 10px/18px var(--samg-mono); text-align: center; padding-inline: 4px; }
.samg-bell.is-ping { animation: samg-ring .9s var(--samg-ease) 1; }
.samg-inbox { margin: 0 0 14px; padding: 0; display: grid; gap: 1px; background: var(--samg-line); box-shadow: 0 0 0 1px var(--samg-line); }
.samg-inbox a { display: grid; gap: 3px; padding: 13px 14px; background: var(--samg-stage); color: var(--samg-paper); text-decoration: none; transition: background .2s; }
.samg-inbox a:hover { background: var(--samg-panel); }
.samg-inbox .is-new a { box-shadow: inset 3px 0 0 var(--samg-tung); }
[dir="rtl"] .samg-inbox .is-new a { box-shadow: inset -3px 0 0 var(--samg-tung); }
.samg-inbox b { font-weight: 600; }
.samg-inbox span { color: var(--samg-muted); font-size: .86rem; }

/* ---------------- boards, feed, rows ---------------- */
.samg-board, .samg-feed, .samg-row, .samg-wallbox { position: relative; color: var(--samg-paper); background: var(--samg-key), var(--samg-stage); box-shadow: inset 0 0 0 1px var(--samg-line), var(--samg-shadow); border: 0; border-radius: 0; padding: 20px 18px; margin-block: 24px; font-size: 15px; line-height: 1.45; }
.samg-board h3, .samg-row h3, .samg-wallbox h3 { margin: 0 0 14px; font: 600 1.25rem/1.15 var(--samg-font); letter-spacing: -.015em; color: var(--samg-paper); display: flex; align-items: center; gap: 10px; }
.samg-board h3::before, .samg-row h3::before, .samg-wallbox h3::before { content: ""; inline-size: 6px; block-size: 6px; background: var(--samg-tung); box-shadow: 0 0 10px rgba(217, 115, 58, .8); flex: none; }
.samg-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin-block-end: 14px; background: var(--samg-line); box-shadow: 0 0 0 1px var(--samg-line); }
.samg-tabs [role="tab"] { min-block-size: 42px; border: 0 !important; background: var(--samg-stage) !important; color: var(--samg-muted) !important; font: 500 12px/1 var(--samg-mono) !important; letter-spacing: .04em; cursor: pointer; padding: 0 6px; transition: color .2s, background .2s; }
.samg-tabs [role="tab"]:hover { color: var(--samg-paper) !important; }
.samg-tabs [aria-selected="true"] { color: var(--samg-on-light) !important; background: var(--samg-champ) !important; }
.samg-board__list, .samg-feed__list, .samg-wall-list { display: grid; gap: 6px; }
.samg-board__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(243, 238, 230, .03); box-shadow: inset 0 0 0 1px var(--samg-line); animation: samg-rise .45s var(--samg-ease) both; }
.samg-board__list li:nth-child(2) { animation-delay: .04s; } .samg-board__list li:nth-child(3) { animation-delay: .08s; } .samg-board__list li:nth-child(4) { animation-delay: .12s; } .samg-board__list li:nth-child(n+5) { animation-delay: .16s; }
.samg-board__list li.is-first { background: linear-gradient(90deg, rgba(231, 190, 136, .18), rgba(231, 190, 136, .02)); box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .35); }
.samg-board__list b { color: var(--samg-name, var(--samg-paper)); flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.samg-board__list small { color: var(--samg-muted); font: 500 10.5px/1 var(--samg-mono); letter-spacing: .08em; text-transform: uppercase; }
.samg-board__list li.samg-muted { justify-content: center; color: var(--samg-muted); }
.samg-rank { inline-size: 30px; block-size: 30px; display: grid; place-items: center; font: 500 12px/1 var(--samg-mono); background: rgba(243, 238, 230, .06); color: var(--samg-ink-2); flex: none; }
.is-first .samg-rank { background: var(--samg-champ); color: var(--samg-on-light); }
li:nth-child(2) > .samg-rank { box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .5); color: var(--samg-champ); }
li:nth-child(3) > .samg-rank { box-shadow: inset 0 0 0 1px rgba(196, 143, 86, .5); color: var(--samg-bronze); }
.samg-feed { display: flex; align-items: flex-start; gap: 14px; }
.samg-feed > .samg-live { flex: none; margin-block-start: 4px; }
.samg-feed__list { flex: 1; min-inline-size: 0; }
.samg-feed__list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; animation: samg-tick .55s var(--samg-ease) both; min-inline-size: 0; }
.samg-feed__list a, .samg-feed__list span:last-child { color: var(--samg-paper); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-feed__list a:hover { color: var(--samg-champ); }
.samg-feed__list:empty::before { content: "…"; color: var(--samg-soft); }
.samg-row__list { padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(144px, 42%); justify-content: start; gap: 10px; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: var(--samg-line-2) transparent; }
@media (min-width: 720px) { .samg-row__list { grid-auto-columns: minmax(160px, 200px); } }
.samg-row__list li { scroll-snap-align: start; animation: samg-rise .5s var(--samg-ease) both; }
.samg-row__list li:nth-child(2) { animation-delay: .05s; } .samg-row__list li:nth-child(3) { animation-delay: .1s; } .samg-row__list li:nth-child(n+4) { animation-delay: .15s; }
.samg-row__list a { position: relative; display: grid; gap: 8px; color: var(--samg-paper); text-decoration: none; }
.samg-row__list a > b { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-row__list img, .samg-row__ph { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; background: linear-gradient(160deg, var(--samg-panel-2), var(--samg-stage-2)); display: block; transition: transform .5s var(--samg-expo), filter .4s; filter: saturate(.92); }
.samg-row__list a:hover img { transform: scale(1.03); filter: saturate(1.05); }
.samg-row__list a::after { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 5; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 13, .7)); }
.samg-row__list li { overflow: hidden; }
.samg-row__rank { position: absolute; z-index: 1; inset-block-start: 0; inset-inline-start: 0; inline-size: 30px; block-size: 30px; display: grid; place-items: center; background: var(--samg-stage); color: var(--samg-champ); font: 500 12px/1 var(--samg-mono); }
.samg-row__list li:first-child .samg-row__rank { background: var(--samg-champ); color: var(--samg-on-light); }
.samg-row__list .samg-badge { position: absolute; z-index: 1; inset-block-start: 0; inset-inline-end: 0; background: var(--samg-stage); }
.samg-disclosure { margin: 14px 0 0; color: var(--samg-soft); font-size: .78rem; line-height: 1.5; }

/* ---------------- Fan Hub & Talent Studio ---------------- */
.samg-page { max-inline-size: none; margin: 0; padding: 0; }
.samg-shell { --head: 0px; position: relative; isolation: isolate; inline-size: calc(100vw - var(--sbw, 0px)); max-inline-size: none; margin-inline: calc(50% - (100vw - var(--sbw, 0px)) / 2); padding-block: calc(var(--head) + 28px) 56px; padding-inline: clamp(14px, 4vw, 40px);
  color: var(--samg-paper); background: radial-gradient(900px 480px at 100% -120px, rgba(217, 115, 58, .2), transparent 70%), radial-gradient(700px 420px at -10% 0%, rgba(231, 190, 136, .06), transparent 70%), var(--samg-stage-2); overflow: hidden; }
.samg-shell__in { max-inline-size: 1080px; margin-inline: auto; }
body.samg-stage-page { background-color: #0B0C0D; }
.samg-app { position: relative; color: var(--samg-paper); background: none; border: 0; border-radius: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-block-size: 260px; font-size: 15px; line-height: 1.45; }
.samg-app__guest { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(30px, 6vw, 64px) 18px; background: var(--samg-key), var(--samg-stage); box-shadow: inset 0 0 0 1px var(--samg-line); }
.samg-app__guest h2 { font: 400 clamp(2.2rem, 7vw, 3.4rem)/1 var(--samg-serif); font-style: italic; color: var(--samg-paper); margin: 0; }
.samg-app__guest p { color: var(--samg-muted); max-inline-size: 46ch; margin: 0 0 6px; }
.samg-perks { display: grid; gap: 8px; margin-block-start: 14px !important; text-align: start; }
.samg-perks li { display: flex; align-items: center; gap: 10px; color: var(--samg-ink-2); font-size: .92rem; }
.samg-perks li::before { content: ""; inline-size: 8px; block-size: 8px; background: var(--samg-champ); flex: none; }
.samg-skel { block-size: 180px; background: linear-gradient(90deg, rgba(243, 238, 230, .03), rgba(243, 238, 230, .08), rgba(243, 238, 230, .03)); background-size: 200% 100%; animation: samg-shimmer 1.4s infinite; }
.samg-skel--hero { block-size: 220px; }
.samg-skel--sm { block-size: 96px; }
.samg-app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block-end: 8px; }
.samg-app-head h1, .samg-app-head h2 { margin: 6px 0 0; font: 600 clamp(1.8rem, 5vw, 2.6rem)/1.05 var(--samg-font); letter-spacing: -.03em; color: var(--samg-paper); }
.samg-app-head h1 em, .samg-app-head h2 em { font: 400 1.12em/1 var(--samg-serif); font-style: italic; color: var(--samg-champ); letter-spacing: 0; }
.samg-app-head__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.samg-hero { display: grid; gap: 1px; background: var(--samg-line); box-shadow: 0 0 0 1px var(--samg-line); }
@media (min-width: 760px) { .samg-hero { grid-template-columns: 1.05fr 1.25fr; } }
.samg-hero > * { position: relative; background: var(--samg-stage); padding: 20px; }
.samg-hero__bal { display: grid; gap: 10px; align-content: start; background: radial-gradient(420px 220px at 100% 0, rgba(217, 115, 58, .2), transparent 70%), var(--samg-stage) !important; }
.samg-hero__bal small, .samg-kpi small, .samg-hero__lvl small.samg-k { font: 500 10.5px/1.2 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); }
.samg-hero__bal b { font: 600 clamp(2.4rem, 8vw, 3.2rem)/1 var(--samg-font); letter-spacing: -.03em; color: var(--samg-paper); display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.samg-hero__bal b .samg-coin { inline-size: .62em; block-size: .62em; margin-inline-end: .2em; }
.samg-hero__bal .samg-btn { justify-self: start; margin-block-start: 4px; }
.samg-hero__stats { display: flex; gap: 18px; flex-wrap: wrap; margin-block-start: 4px; color: var(--samg-muted); font-size: .84rem; }
.samg-hero__stats b { font: 500 .95rem/1 var(--samg-mono); color: var(--samg-paper); display: block; margin-block-end: 4px; letter-spacing: 0; }
.samg-hero__lvl { display: grid; gap: 10px; align-content: start; }
.samg-lvl { font: 400 2.3rem/1 var(--samg-serif); font-style: italic; color: var(--samg-name, var(--samg-champ)); }
.samg-hero__lvl > small { display: block; color: var(--samg-muted); font-size: .84rem; }
.samg-ladder { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 3px; margin-block-start: 4px; }
.samg-ladder li { display: grid; gap: 6px; font: 500 9.5px/1.1 var(--samg-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--samg-soft); min-inline-size: 0; }
.samg-ladder li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-ladder li i { display: block; block-size: 4px; background: rgba(243, 238, 230, .1); position: relative; overflow: hidden; }
.samg-ladder li i::after { content: ""; position: absolute; inset: 0; background: var(--c, var(--samg-champ)); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); transition: transform 1s var(--samg-expo); }
[dir="rtl"] .samg-ladder li i::after { transform-origin: 100% 50%; }
.samg-ladder li.is-done, .samg-ladder li.is-cur { color: var(--samg-ink-2); }
.samg-ladder li.is-cur span { color: var(--c, var(--samg-champ)); }
.samg-streak { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-muted); font: 500 12px/1 var(--samg-mono); justify-self: start; }
.samg-streak::before { content: ""; inline-size: 8px; block-size: 8px; background: var(--samg-soft); }
.samg-streak.is-alive { color: var(--samg-champ); box-shadow: inset 0 0 0 1px rgba(231, 190, 136, .45); }
.samg-streak.is-alive::before { background: var(--samg-tung); box-shadow: 0 0 10px var(--samg-tung); animation: samg-live 1.2s steps(2, end) infinite; }
.samg-grid2 { display: grid; gap: 14px; }
@media (min-width: 900px) { .samg-grid2 { grid-template-columns: 1.3fr 1fr; align-items: start; } .samg-grid2 > .samg-stack { display: grid; gap: 14px; } }
.samg-stack { display: grid; gap: 14px; min-inline-size: 0; }
.samg-card { position: relative; padding: 18px; background: var(--samg-stage); box-shadow: inset 0 0 0 1px var(--samg-line); min-inline-size: 0; animation: samg-rise .5s var(--samg-ease) both; }
.samg-card > h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font: 500 10.5px/1.2 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); }
.samg-card > h3 .samg-count { color: var(--samg-champ); }
.samg-card--feature { background: var(--samg-key), var(--samg-stage); }
.samg-card .samg-lead { margin-block-start: -6px; font-size: .9rem; }
.samg-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.samg-clubs, .samg-thanks, .samg-history { display: grid; gap: 1px; }
.samg-clubs li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-block-end: 1px solid var(--samg-line); }
.samg-clubs li:last-child { border-block-end: 0; }
.samg-clubs img, .samg-ph { inline-size: 48px; block-size: 48px; border-radius: 0; object-fit: cover; background: linear-gradient(160deg, var(--samg-panel-2), var(--samg-stage-2)); display: block; }
.samg-clubs a { color: var(--samg-paper); text-decoration: none; display: grid; gap: 3px; min-inline-size: 0; }
.samg-clubs a b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-clubs a:hover b { color: var(--samg-champ); }
.samg-clubs small { color: var(--samg-muted); font: 500 10.5px/1.2 var(--samg-mono); letter-spacing: .06em; }
.samg-app .samg-chip, .samg-sheet .samg-chip { min-block-size: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; background: rgba(243, 238, 230, .04); box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-champ); font: 500 11.5px/1 var(--samg-mono); cursor: pointer; transition: box-shadow .2s, background .2s; white-space: nowrap; }
.samg-app .samg-chip:hover { box-shadow: inset 0 0 0 1px var(--samg-champ); background: rgba(231, 190, 136, .08); }
.samg-app .samg-chip.is-rec { color: var(--samg-on-light); background: var(--samg-bad); box-shadow: none; animation: samg-blink 1s infinite; }
.samg-thanks li { display: grid; gap: 6px; padding: 14px 0; border-block-end: 1px solid var(--samg-line); }
.samg-thanks li:last-child { border-block-end: 0; }
.samg-thanks b { font-weight: 600; color: var(--samg-champ); }
.samg-thanks q, .samg-q q { display: block; color: var(--samg-paper); font-family: var(--samg-serif); font-style: italic; font-size: 1.12rem; line-height: 1.35; }
.samg-thanks audio, .samg-thanks video { inline-size: 100%; margin-block-start: 4px; border-radius: 0; background: #000; }
.samg-history li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .88rem; color: var(--samg-muted); border-block-end: 1px solid var(--samg-line); padding-block: 10px; }
.samg-history li:last-child { border-block-end: 0; }
.samg-history li span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-history b { font: 500 13px/1 var(--samg-mono); font-variant-numeric: tabular-nums; flex: none; }
.samg-history .is-pos { color: var(--samg-ok); }
.samg-history .is-neg { color: var(--samg-paper); }
.samg-packs--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .samg-packs--inline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.samg-trend { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 30%); gap: 8px; overflow-x: auto; scroll-snap-type: inline mandatory; padding-block-end: 6px; scrollbar-width: thin; scrollbar-color: var(--samg-line-2) transparent; }
@media (min-width: 720px) { .samg-trend { grid-auto-columns: minmax(130px, 170px); justify-content: start; } }
.samg-trend li { scroll-snap-align: start; }
.samg-trend a { position: relative; display: grid; gap: 6px; color: var(--samg-paper); text-decoration: none; }
.samg-trend img, .samg-trend .samg-ph { inline-size: 100%; block-size: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--samg-expo); }
.samg-trend a:hover img { transform: scale(1.03); }
.samg-trend span.samg-tr-rank { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 26px; block-size: 26px; display: grid; place-items: center; background: var(--samg-stage); color: var(--samg-champ); font: 500 11px/1 var(--samg-mono); }
.samg-trend b { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-trend small { color: var(--samg-tung); font: 500 10px/1 var(--samg-mono); letter-spacing: .08em; text-transform: uppercase; }
.samg-trend li { overflow: hidden; }

/* Studio */
.samg-studio__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.samg-studio__head h2 { margin: 6px 0 0; font: 400 clamp(2.1rem, 6vw, 3rem)/1 var(--samg-serif); font-style: italic; color: var(--samg-paper); }
.samg-studio__head select { inline-size: auto; min-inline-size: 180px; }
.samg-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--samg-line); box-shadow: 0 0 0 1px var(--samg-line); }
@media (min-width: 760px) { .samg-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.samg-kpi { position: relative; padding: 16px 16px 18px; background: var(--samg-stage); display: grid; gap: 8px; align-content: start; animation: samg-rise .5s var(--samg-ease) both; }
.samg-kpi:nth-child(2) { animation-delay: .05s; } .samg-kpi:nth-child(3) { animation-delay: .1s; } .samg-kpi:nth-child(4) { animation-delay: .15s; }
.samg-kpi b { font: 600 clamp(1.35rem, 4vw, 1.75rem)/1 var(--samg-font); letter-spacing: -.02em; color: var(--samg-paper); font-variant-numeric: tabular-nums; }
.samg-kpi.is-key { background: radial-gradient(260px 140px at 100% 0, rgba(217, 115, 58, .22), transparent 70%), var(--samg-stage); }
.samg-kpi.is-key b { color: var(--samg-champ); }
.samg-kpi em { font: 500 10.5px/1.3 var(--samg-mono); font-style: normal; color: var(--samg-soft); }
.samg-spark { position: relative; margin: 0; color: var(--samg-champ); block-size: 96px; }
.samg-spark svg { inline-size: 100%; block-size: 96px; display: block; overflow: visible; }
.samg-spark .samg-spark__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: samg-draw 1.4s .2s var(--samg-expo) forwards; }
.samg-spark .samg-spark__area { opacity: 0; animation: samg-fade .8s 1s forwards; }
.samg-spark figcaption { display: flex; justify-content: space-between; margin-block-start: 8px; font: 500 10px/1 var(--samg-mono); letter-spacing: .08em; color: var(--samg-soft); text-transform: uppercase; }
.samg-funnel { display: grid; gap: 10px; }
.samg-funnel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; font-size: .86rem; color: var(--samg-ink-2); }
.samg-funnel li b { font: 500 13px/1 var(--samg-mono); color: var(--samg-paper); font-variant-numeric: tabular-nums; }
.samg-funnel li i { grid-column: 1 / -1; display: block; block-size: 6px; background: rgba(243, 238, 230, .07); position: relative; overflow: hidden; }
.samg-funnel li i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--samg-bronze), var(--samg-champ)); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); animation: samg-grow 1s var(--samg-expo) both; }
[dir="rtl"] .samg-funnel li i::after { transform-origin: 100% 50%; }
.samg-funnel li:nth-child(2) i::after { animation-delay: .1s; } .samg-funnel li:nth-child(3) i::after { animation-delay: .2s; } .samg-funnel li:nth-child(4) i::after { animation-delay: .3s; }
.samg-share { display: flex; align-items: center; gap: 14px; }
.samg-share__ring { --p: 50; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--samg-champ) calc(var(--p) * 1%), rgba(243, 238, 230, .1) 0); -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 77%); mask: radial-gradient(closest-side, transparent 76%, #000 77%); animation: samg-pop .8s var(--samg-expo) both; }
.samg-share__pct { position: absolute; inset: 0; inline-size: 74px; block-size: 74px; display: grid; place-items: center; font: 600 1.1rem/1 var(--samg-font); color: var(--samg-paper); }
.samg-share__wrap { position: relative; inline-size: 74px; block-size: 74px; flex: none; }
.samg-share p { color: var(--samg-muted); font-size: .88rem; line-height: 1.5; margin: 0 0 10px; }
.samg-q { display: grid; gap: 10px; padding: 16px 0 18px; border-block-end: 1px solid var(--samg-line); animation: samg-rise .45s var(--samg-ease) both; }
.samg-q:last-of-type { border-block-end: 0; }
.samg-q__top { display: flex; align-items: center; gap: 10px; font-size: .92rem; min-inline-size: 0; }
.samg-q__top b { font-weight: 600; }
.samg-q__top span { color: var(--samg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samg-q__art { inline-size: 32px; block-size: 32px; flex: none; }
.samg-q textarea { min-block-size: 64px; resize: vertical; }
.samg-q .samg-row-btns { margin-block-start: 0; }
.samg-q .samg-row-btns .samg-btn { flex: 0 0 auto; margin-inline-start: auto; }
.samg-app .samg-file { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.samg-app label.samg-chip { cursor: pointer; font: 500 11.5px/1 var(--samg-mono); }
.samg-app .samg-file:focus-visible + .samg-btn, .samg-app label.samg-chip:focus-within { outline: 2px solid var(--samg-champ); outline-offset: 2px; }
.samg-inline-form { display: grid; gap: 8px; grid-template-columns: 1fr; margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--samg-line); }
.samg-inline-form label { display: grid; gap: 6px; font: 500 10px/1.2 var(--samg-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--samg-muted); }
@media (min-width: 720px) { .samg-inline-form { grid-template-columns: 2fr 1fr 1.4fr; align-items: end; } .samg-inline-form .samg-btn { grid-column: 1 / -1; justify-self: end; } }
.samg-card .samg-goal { margin-block: 0 10px; }
.samg-goal__state { font: 500 10px/1 var(--samg-mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-muted); flex: none; }
.samg-goal__state.is-approved { color: var(--samg-ok); box-shadow: inset 0 0 0 1px rgba(134, 207, 166, .4); }
.samg-goal__state.is-funded { color: var(--samg-on-light); background: var(--samg-champ); box-shadow: none; }
.samg-goal__state.is-pending_review { color: var(--samg-warn); box-shadow: inset 0 0 0 1px rgba(240, 163, 94, .45); }
.samg-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding-block: 14px; border-block-end: 1px solid var(--samg-line); }
.samg-switch:last-child { border-block-end: 0; }
.samg-switch label { font-weight: 600; font-size: .94rem; color: var(--samg-paper); cursor: pointer; grid-column: 1; grid-row: 1; }
.samg-switch small { grid-column: 1; grid-row: 2; color: var(--samg-muted); font-size: .82rem; line-height: 1.4; }
.samg-switch input { grid-column: 2; grid-row: 1 / span 2; appearance: none; -webkit-appearance: none; inline-size: 46px; block-size: 26px; border-radius: 0; background: rgba(243, 238, 230, .1); box-shadow: inset 0 0 0 1px var(--samg-line-2); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .25s; }
.samg-switch input::after { content: ""; position: absolute; inset-block-start: 4px; inset-inline-start: 4px; inline-size: 18px; block-size: 18px; background: var(--samg-muted); transition: transform .3s var(--samg-expo), background .25s; }
.samg-switch input:checked { background: rgba(231, 190, 136, .22); box-shadow: inset 0 0 0 1px var(--samg-champ); }
.samg-switch input:checked::after { transform: translateX(20px); background: var(--samg-champ); }
[dir="rtl"] .samg-switch input:checked::after { transform: translateX(-20px); }
.samg-switch input:disabled { opacity: .4; cursor: not-allowed; }
.samg-switch input:disabled + label { opacity: .6; }
.samg-note-line { margin: 10px 0 0; color: var(--samg-soft); font-size: .8rem; }

/* ---------------- motion ---------------- */
@keyframes samg-spin { to { transform: rotate(360deg); } }
@keyframes samg-blink { 50% { opacity: .45; } }
@keyframes samg-steam { 50% { transform: translateY(-3px); opacity: .5; } }
@keyframes samg-wave { 50% { transform: translateY(2px); } }
@keyframes samg-wing { 50% { transform: scaleY(.82); } }
@keyframes samg-bob { 50% { transform: translateY(-3px); } }
@keyframes samg-clap { 50% { transform: rotate(-9deg); } }
@keyframes samg-live { 50% { opacity: .25; } }
@keyframes samg-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes samg-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes samg-tick { from { opacity: 0; transform: translateX(-10px); } }
@keyframes samg-toast { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes samg-pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes samg-bump { 40% { transform: scale(1.35); } }
@keyframes samg-shine { to { transform: translateX(120%); } }
@keyframes samg-sweep { 60%, 100% { transform: translateX(100%); } }
@keyframes samg-float { 50% { transform: translateY(-3px) rotate(-3deg); } }
@keyframes samg-launch-in { from { opacity: 0; transform: translateY(30px); } }
@keyframes samg-ring { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
@keyframes samg-shimmer { to { background-position: -200% 0; } }
@keyframes samg-draw { to { stroke-dashoffset: 0; } }
@keyframes samg-fade { to { opacity: 1; } }
@keyframes samg-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .samg *, .samg-sheet *, .samg-app *, .samg-feed *, .samg-board *, .samg-row *, .samg-dock *, .samg-toast, .samg-bell, .samg-anim, .samg-anim * { animation: none !important; transition: none !important; }
  .samg-sheet__panel, .samg-dock__panel { transition: none !important; }
  .samg-spark .samg-spark__line { stroke-dashoffset: 0; } .samg-spark .samg-spark__area { opacity: 1; }
}
@media (max-width: 420px) {
  .samg { padding: 18px 14px 14px; }
  .samg .samg-heart { padding: 0 12px 0 10px; }
  .samg-heart__txt > span { display: none; }
  .samg .samg-send { padding: 0 14px; font-size: 14px !important; }
}

/* talent cannot receive coin gifts (missing birth date, paused market…): applause stays open */
.samg.is-closed .samg-grid { opacity: .45; filter: saturate(.5); pointer-events: none; }
.samg.is-closed .samg-combos, .samg.is-closed .samg-compose-toggle, .samg.is-closed .samg-compose { display: none !important; }
.samg-fix { display: grid; gap: 6px; padding: 16px 18px; background: linear-gradient(90deg, rgba(217, 115, 58, .16), rgba(217, 115, 58, .02) 70%), var(--samg-stage); box-shadow: inset 3px 0 0 var(--samg-tung), inset 0 0 0 1px var(--samg-line); }
[dir="rtl"] .samg-fix { box-shadow: inset -3px 0 0 var(--samg-tung), inset 0 0 0 1px var(--samg-line); }
.samg-fix b { font-weight: 600; color: var(--samg-paper); }
.samg-fix span { color: var(--samg-muted); font-size: .9rem; }

/* ======================================================================================================
 * 7.2 — richer gift grid (rarity, filters, legendary light), coin sheet with exact top-up, buyer check.
 * Same Key Light system: square geometry, Slate cut-corner primaries, Frame secondaries, no pills.
 * ==================================================================================================== */
@property --samg-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---- tier filter ---- */
.samg-filter { display: flex; gap: 1px; margin-block-start: 18px; background: var(--samg-line); box-shadow: 0 0 0 1px var(--samg-line); overflow-x: auto; scrollbar-width: none; }
.samg-filter::-webkit-scrollbar { display: none; }
.samg .samg-filter__t { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-block-size: 38px; padding: 0 14px; border: 0; border-radius: 0; background: var(--samg-stage); color: var(--samg-muted); font: 600 12.5px/1 var(--samg-font); cursor: pointer; transition: color .2s, background .2s; }
.samg .samg-filter__t small { font: 500 10px/1 var(--samg-mono); color: var(--samg-soft); }
.samg .samg-filter__t:hover { color: var(--samg-paper); background: var(--samg-panel); }
.samg .samg-filter__t[aria-selected="true"] { color: var(--samg-on-light); background: var(--samg-champ); }
.samg .samg-filter__t[aria-selected="true"] small { color: rgba(23, 18, 10, .6); }
.samg-filter + .samg-grid { margin-block-start: 8px; }

/* ---- tiles: bigger art, rarity ribbons, legendary frame ---- */
.samg .samg-gift { min-block-size: 118px; padding-block-start: 16px; gap: 6px; }
.samg-gift__art { inline-size: 54px; block-size: 54px; }
.samg-gift__price { gap: 1px; }
.samg-gift__tier { position: absolute; inset-block-start: 0; inset-inline-start: 0; padding: 3px 6px 3px 5px; font: 600 8.5px/1 var(--samg-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--samg-champ-2); background: rgba(231, 190, 136, .12); clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); pointer-events: none; }
[dir="rtl"] .samg-gift__tier { clip-path: polygon(0 0, 100% 0, 100% 100%, 5px 100%); }
.samg .samg-gift[data-tier="3"] { background: linear-gradient(115deg, transparent 35%, rgba(244, 217, 176, .09) 50%, transparent 65%) 0 0 / 260% 100% no-repeat, linear-gradient(180deg, rgba(217, 115, 58, .1), rgba(243, 238, 230, .015) 70%); animation: samg-rise .5s var(--samg-ease) both, samg-sheen 5.5s 1.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 28ms), calc(1.2s + var(--i, 0) * 120ms); }
.samg .samg-gift[data-tier="4"] { border: 1px solid transparent; box-shadow: 0 10px 26px -18px rgba(217, 115, 58, .9);
  background: linear-gradient(180deg, #1b1714, #121314 75%) padding-box, conic-gradient(from var(--samg-a), rgba(231, 190, 136, .15), #E7BE88 18%, rgba(217, 115, 58, .3) 34%, rgba(231, 190, 136, .12) 55%, #F4D9B0 72%, rgba(231, 190, 136, .15)) border-box;
  animation: samg-rise .5s var(--samg-ease) both, samg-orbit 7s linear infinite; }
.samg .samg-gift[data-tier="4"] .samg-gift__tier { color: var(--samg-on-light); background: linear-gradient(90deg, var(--samg-champ), var(--samg-champ-2)); }
.samg .samg-gift[data-tier="4"] .samg-gift__art { filter: drop-shadow(0 0 14px rgba(231, 190, 136, .35)) drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.samg .samg-gift[data-tier="4"]::before { background: radial-gradient(70% 60% at 50% 34%, rgba(231, 190, 136, .3), transparent 70%); opacity: .45; }
.samg .samg-gift[data-tier="4"].is-on { box-shadow: inset 0 0 0 1px var(--samg-champ), 0 18px 34px -16px rgba(231, 190, 136, .75); }
.samg .samg-gift[data-season]:not([data-season=""]) .samg-gift__tier { color: var(--samg-on-light); background: var(--samg-tung); }
@keyframes samg-orbit { to { --samg-a: 360deg; } }
@keyframes samg-sheen { 0%, 70% { background-position: 130% 0, 0 0; } 100% { background-position: -40% 0, 0 0; } }

/* ---- send: short of coins ---- */
.samg .samg-send.is-short { --c2: var(--samg-tung); --c1: #F0A35E; }
.samg .samg-send.is-short:hover { --c2: #F0A35E; }

/* ---- coin sheet (wide on desktop) ---- */
.samg-topup { display: grid; gap: 14px; }
.samg-topup > * { margin: 0 !important; }
.samg-sheet .samg-wallet { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 14px 16px; border: 0; background: radial-gradient(260px 120px at 0 0, rgba(231, 190, 136, .14), transparent 70%), var(--samg-panel); box-shadow: inset 0 0 0 1px var(--samg-line); }
.samg-sheet .samg-wallet > div { display: grid; gap: 6px; }
.samg-sheet .samg-wallet b { font-size: 1.9rem; letter-spacing: -.02em; }
.samg-wallet__need { text-align: end; }
.samg-sheet .samg-wallet__need b { color: var(--samg-tung); font-size: 1.35rem; font-family: var(--samg-mono); font-weight: 500; }
.samg-offer.is-warn { box-shadow: inset 3px 0 0 var(--samg-warn); background: linear-gradient(90deg, rgba(240, 163, 94, .16), transparent); }
.samg-sub { font: 500 10.5px/1 var(--samg-mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); margin-block-end: -4px !important; }

/* packs */
.samg-packs { gap: 6px; }
@media (min-width: 640px) { .samg-sheet.is-wide .samg-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.samg-sheet .samg-pack, .samg-app .samg-pack { padding: 26px 12px 14px; gap: 4px; }
.samg-sheet .samg-pack.is-short, .samg-app .samg-pack.is-short { opacity: .62; }
.samg-sheet .samg-pack.is-short:hover, .samg-app .samg-pack.is-short:hover { opacity: 1; }
.samg-sheet .samg-pack.is-cover, .samg-app .samg-pack.is-cover { box-shadow: inset 0 0 0 1.5px var(--samg-tung), 0 18px 36px -20px rgba(217, 115, 58, .8); background: linear-gradient(180deg, rgba(217, 115, 58, .16), rgba(217, 115, 58, .03)); }
.samg-pack.is-cover[data-tag]::after { background: var(--samg-tung) !important; color: var(--samg-on-light) !important; }
.samg-pack__bonus.is-none { color: var(--samg-soft); }
.samg-pack__price { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); transition: background .2s; }
.samg-pack:hover .samg-pack__price { background: var(--samg-champ-2); }
.samg-pack[aria-busy="true"] .samg-pack__price::after { content: ""; display: inline-block; inline-size: 10px; block-size: 10px; margin-inline-start: 8px; border: 2px solid currentColor; border-inline-end-color: transparent; animation: samg-spin .7s linear infinite; vertical-align: -1px; }

/* stacked coin art: one coin per size step */
.samg-stack-art { position: relative; display: block; inline-size: 64px; block-size: 40px; margin-block-end: 2px; }
.samg-stack-art .samg-coin { position: absolute; inset-inline-start: calc(50% - 11px + (var(--k) - 2) * 6px); inset-block-end: calc(var(--k) * 4px); inline-size: 22px; block-size: 22px; margin: 0; box-shadow: 0 2px 0 var(--samg-bronze-ink), 0 6px 10px rgba(0, 0, 0, .45); }
.samg-stack-art[data-t="1"] .samg-coin { inset-inline-start: calc(50% - 11px); }
.samg-pack:hover .samg-stack-art .samg-coin { transform: translateY(calc(var(--k) * -2px)); transition: transform .3s var(--samg-ease); }

/* exact top-up */
.samg-exact { display: grid; gap: 10px; padding: 16px; background: var(--samg-panel); box-shadow: inset 0 0 0 1px var(--samg-line-2); }
.samg-exact.is-need { background: linear-gradient(180deg, rgba(217, 115, 58, .14), rgba(217, 115, 58, .02)), var(--samg-panel); box-shadow: inset 0 0 0 1.5px rgba(217, 115, 58, .7); }
.samg-exact__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.samg-exact__price { font: 600 1.15rem/1 var(--samg-font); color: var(--samg-champ-2); font-variant-numeric: tabular-nums; }
.samg-exact__row { display: grid; grid-template-columns: 48px 1fr 48px; gap: 6px; }
.samg-sheet .samg-step { min-block-size: 52px; border: 0; border-radius: 0; background: rgba(243, 238, 230, .05); box-shadow: inset 0 0 0 1px var(--samg-line-2); color: var(--samg-paper); font: 500 22px/1 var(--samg-font); cursor: pointer; }
.samg-sheet .samg-step:hover { box-shadow: inset 0 0 0 1px var(--samg-champ); color: var(--samg-champ); }
.samg-exact__field { display: flex; align-items: center; gap: 8px; padding-inline: 14px; background: var(--samg-stage); box-shadow: inset 0 0 0 1px var(--samg-line-2); }
.samg-exact__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--samg-champ); }
.samg-sheet .samg-exact__in { flex: 1; min-inline-size: 0; inline-size: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--samg-paper); font: 600 1.6rem/1 var(--samg-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: 10px 0; text-align: center; -moz-appearance: textfield; outline: 0; }
.samg-exact__in::-webkit-outer-spin-button, .samg-exact__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.samg-exact__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.samg-sheet .samg-exact__chips .samg-chip { min-block-size: 32px; font-family: var(--samg-mono); font-size: 12px; }
.samg-sheet .samg-exact__chips .samg-chip[aria-pressed="true"] { background: var(--samg-champ); color: var(--samg-on-light); box-shadow: none; }
.samg-sheet .samg-exact__chips .samg-chip.is-need { box-shadow: inset 0 0 0 1px var(--samg-tung); }
.samg-exact__go { min-block-size: 52px !important; font-size: 1rem !important; }
.samg-exact__go.is-going, .samg-pack.is-going { filter: brightness(1.1); }
.samg-exact__note { color: var(--samg-soft); font: 500 10.5px/1.4 var(--samg-mono); }
.samg-limit { color: var(--samg-muted); font-size: .86rem; }
.samg-limit p { margin: 6px 0 !important; }
.samg-limit b { color: var(--samg-paper); font-weight: 600; }
.samg-limit__set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 8px; }
.samg-money { display: inline-flex; }
.samg-money i { display: grid; place-items: center; padding-inline: 9px; font: 500 11px/1 var(--samg-mono); font-style: normal; color: var(--samg-muted); background: var(--samg-panel-2); box-shadow: inset 0 0 0 1px var(--samg-line-2); }
.samg-sheet .samg-money input { inline-size: 110px; min-block-size: 38px; border: 0; border-radius: 0; background: var(--samg-stage); color: var(--samg-paper); box-shadow: inset 0 0 0 1px var(--samg-line-2); padding-inline: 10px; }
.samg-ar { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: .95rem; line-height: 1.8; text-align: right; }

/* buyer check */
.samg-check .samg-field { display: grid; gap: 6px; margin-block-end: 14px; }
.samg-check .samg-field > span { font: 500 10.5px/1 var(--samg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--samg-muted); }
.samg-check .samg-field small { color: var(--samg-soft); font-size: .8rem; }
.samg-sheet .samg-check input[type="date"] { min-block-size: 50px; border: 0; border-radius: 0; background: var(--samg-stage); color: var(--samg-paper); box-shadow: inset 0 0 0 1px var(--samg-line-2); padding-inline: 14px; font: 500 1.05rem var(--samg-font); color-scheme: dark; }
.samg-sheet .samg-check input[type="date"]:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--samg-champ); }
.samg-tick { display: flex; gap: 10px; align-items: flex-start; margin-block: 10px; font-size: .92rem; color: var(--samg-ink-2); cursor: pointer; }
.samg-sheet .samg-tick input { appearance: none; -webkit-appearance: none; flex: none; inline-size: 20px; block-size: 20px; margin: 1px 0 0; border: 0; border-radius: 0; background: var(--samg-stage); box-shadow: inset 0 0 0 1.5px var(--samg-line-3); cursor: pointer; display: grid; place-items: center; }
.samg-sheet .samg-tick input:checked { background: var(--samg-champ); box-shadow: none; }
.samg-sheet .samg-tick input:checked::after { content: ""; inline-size: 10px; block-size: 6px; border: 2px solid var(--samg-on-light); border-block-start: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
.samg-terms--open { margin-block-start: 4px !important; }
.samg-form__msg:empty { display: none; }
.samg-form__msg { color: var(--samg-bad); font-size: .88rem; margin-block: 6px 10px !important; }

@media (prefers-reduced-motion: reduce) {
  .samg .samg-gift[data-tier="3"], .samg .samg-gift[data-tier="4"] { animation: none !important; }
  .samg-pack:hover .samg-stack-art .samg-coin { transform: none; }
}
@media (forced-colors: active) { .samg .samg-gift[data-tier="4"] { border-color: CanvasText; } .samg-gift__tier { forced-color-adjust: none; } }
/* 7.2 buyer check: undo the generic form label/input look for the tick rows */
.samg-sheet .samg-form label.samg-tick { font: 400 .92rem/1.4 var(--samg-font); letter-spacing: 0; text-transform: none; color: var(--samg-ink-2); margin: 4px 0; }
.samg-sheet .samg-form .samg-tick input { inline-size: 20px; block-size: 20px; min-block-size: 0; padding: 0; flex: none; }
.samg-sheet .samg-form label.samg-field { font: inherit; text-transform: none; letter-spacing: 0; margin: 0 0 6px; }
@media (max-width: 639px) { .samg-gift__tier { font-size: 7px; letter-spacing: .05em; padding: 2px 4px 2px 3px; } .samg .samg-gift { padding-block-start: 18px; } }
