/* Гіфти (24.10): «Мої гіфти» в кабінеті (.gf-*), вікно відкриття (.go-*, public/gift-open.js), адмінка гіфтів (.ag-*).
   Арт коробок — public/art/gifts.css (.gift-art + data-art, .open — відкрита; генерує tools/art-build.js --gifts).
   Префікси свої — глобальні короткі класи style.css/site.css ламали нові сторінки (memory/LESSONS.md). */
.gift-art { display: block; background: center / contain no-repeat; }

/* ---------- «Мої гіфти» в кабінеті ---------- */
.gf-list { display: flex; flex-direction: column; gap: 10px; }
.gf-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 209, 102, .16); }
.gf-item.new { border-color: rgba(255, 209, 102, .55); background: radial-gradient(ellipse at 10% 50%, rgba(255, 209, 102, .14), transparent 60%), rgba(0, 0, 0, .28); }
.gf-pic { width: 88px; height: 88px; }
.gf-item.new .gf-pic { animation: gf-wobble 2.8s ease-in-out infinite; }
@keyframes gf-wobble { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-5deg) translateY(-3px); } 88% { transform: rotate(4deg); } 94% { transform: rotate(-2deg); } }
.gf-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gf-name { font: 800 16px/1.2 var(--font); color: #fff3da; }
.gf-from { font-size: 13px; color: #c9bc9f; line-height: 1.35; }
.gf-res { font-size: 13px; color: #9be3b3; line-height: 1.35; }
.gf-in { font-size: 13px; color: #a89c84; }
.gf-in summary { cursor: pointer; color: #ffd166; font-weight: 700; width: max-content; }
.gf-in ul { margin: 6px 0 0; padding: 0 0 0 16px; }
.gf-in li { margin: 2px 0; }
.gf-in .ch { color: #ffe7a8; font-weight: 700; font-variant-numeric: tabular-nums; }
.gf-act .btn { min-width: 112px; }
.gf-empty { margin: 0; color: #a89c84; font-size: 14px; line-height: 1.45; }
.gf-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; }
.gf-msg.err { color: #ff9b9b; }
/* «Приміряти» в «Що всередині» (24.10 вечір) */
.gf-try { appearance: none; margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(143, 211, 255, .55); background: rgba(143, 211, 255, .1); color: #bfe6ff; font: 700 12px/18px var(--font); cursor: pointer; }
.gf-try:hover, .gf-try:focus-visible { background: rgba(143, 211, 255, .22); outline: none; }
.gf-r-common { color: #d9d2c2; } .gf-r-rare { color: #6fb6ff; } .gf-r-epic { color: #c38bff; } .gf-r-legend { color: #ffc35a; }
@media (max-width: 600px) {
  .gf-item { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "pic txt" "act act"; gap: 8px 12px; }
  .gf-pic { grid-area: pic; width: 64px; height: 64px; }
  .gf-txt { grid-area: txt; }
  .gf-act { grid-area: act; }
  .gf-act .btn { width: 100%; }
}

/* ---------- сторінка /gifts (24.10, public/gifts.html) ---------- */
.gfp-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 22px; margin-bottom: 16px;
  background: radial-gradient(ellipse at 12% 50%, rgba(255, 209, 102, .16), transparent 55%), rgba(23, 16, 9, .92); }
.gfp-art { width: 150px; height: 150px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.gfp-who { min-width: 0; }
.gfp-h { margin: 0 0 6px; font: 400 32px/1.1 var(--display, 'Russo One', sans-serif); color: #fff3da; text-shadow: 0 2px 0 #000; }
.gfp-sub { margin: 0 0 8px; color: #c9bc9f; font-size: 14px; line-height: 1.45; max-width: 640px; }
.gfp-n { min-height: 1.4em; margin: 0; color: #a89c84; font: 700 15px/1.4 var(--font); }
.gfp-n.on { color: #ffd166; }
.gfp-act { display: flex; flex-direction: column; gap: 8px; }
.gfp-act .btn { text-align: center; white-space: nowrap; }
.gfp-body { display: flex; flex-direction: column; gap: 16px; }
.gf-sec { padding: 18px 20px; min-width: 0; }
.gf-sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 18px/1.2 var(--font); color: #ffe7a8; }
.gf-cnt { min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: #ffb43f; color: #2b1800; font: 800 13px/1 var(--font); }
.gfp-body > .gf-msg { margin: 0; }
.gfp-body > .gf-msg:empty { display: none; }
/* невідкриті — картками: коробка згори, текст, «Відкрити» на всю ширину */
.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gf-grid .gf-item { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: none; justify-items: center; align-items: start; text-align: center; gap: 10px; padding: 16px 14px 14px; }
.gf-grid .gf-pic { width: 132px; height: 132px; grid-area: auto; }
.gf-grid .gf-txt { align-items: center; grid-area: auto; }
.gf-grid .gf-in { text-align: left; align-self: stretch; }
.gf-grid .gf-in summary { margin: 0 auto; }
.gf-grid .gf-act { width: 100%; grid-area: auto; }
.gf-grid .gf-act .btn { width: 100%; }
.gf-sec-old .gf-item { grid-template-columns: 64px minmax(0, 1fr); }
.gf-sec-old .gf-pic { width: 64px; height: 64px; }
@media (max-width: 720px) {
  .gfp-head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .gfp-art { width: 96px; height: 96px; }
  .gfp-h { font-size: 24px; }
  .gfp-act { grid-column: 1 / -1; flex-direction: row; }
  .gfp-act .btn { flex: 1; }
  .gf-sec { padding: 14px 14px; }
  .gf-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- картка «Мої гіфти» в кабінеті (24.10: лише лічильник і посилання на /gifts) ---------- */
.cab-gf { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.cab-gf .gift-art { width: 76px; height: 76px; }
.cab-gf h2 { margin: 0 0 4px; }
.cab-gf-t { margin: 0; color: #c9bc9f; font-size: 14px; line-height: 1.45; }
.cab-gf-t.on { color: #ffd166; font-weight: 700; }
.cab-gf .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .cab-gf { grid-template-columns: 64px minmax(0, 1fr); }
  .cab-gf .gift-art { width: 64px; height: 64px; }
  .cab-gf .btn { grid-column: 1 / -1; text-align: center; }
}

/* ---------- попап «Тобі подарунок!» при вході (24.10, public/gift-popup.js) ---------- */
html.gp-lock, html.gp-lock body { overflow: hidden; }
.gp-wrap { position: fixed; inset: 0; z-index: 88; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: radial-gradient(ellipse at 50% 40%, rgba(60, 38, 12, .82), rgba(5, 3, 1, .9) 70%); font-family: var(--font, 'Rubik', system-ui, sans-serif); color: #eadfc8;
  animation: go-in .22s ease-out; }
.gp-box { position: relative; width: min(420px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 18px 20px 16px; border-radius: 22px; text-align: center;
  background: radial-gradient(ellipse at 50% -10%, rgba(255, 209, 102, .2), transparent 58%), linear-gradient(180deg, #1d140b, #120c07);
  border: 1px solid rgba(255, 209, 102, .4); box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .4) inset; }
.gp-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 209, 102, .22); background: rgba(0, 0, 0, .3);
  color: #eadfc8; font-size: 16px; cursor: pointer; z-index: 2; }
.gp-x:hover, .gp-x:focus-visible { background: rgba(255, 209, 102, .14); outline: none; }
.gp-kick { margin: 2px 0 2px; color: #ffd166; font: 800 12px/1.2 var(--font, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.gp-h { margin: 0 0 4px; font: 400 28px/1.15 var(--display, 'Russo One', sans-serif); color: #fff3da; text-shadow: 0 2px 0 #000; }
/* сцена: висота наперед — скриня, ореол і промені шарами в одному місці */
.gp-stage { position: relative; height: 210px; margin: 0 auto; }
.gp-art { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; z-index: 2; transform-origin: 50% 85%;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); animation: gp-hop 2.6s ease-in-out infinite; }
.gp-glow { position: absolute; left: 50%; top: 52%; width: 250px; height: 250px; margin: -125px 0 0 -125px; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 130, .5) 0%, rgba(255, 180, 60, .18) 40%, transparent 68%); animation: gp-breathe 2.6s ease-in-out infinite; }
.gp-rays { position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px; z-index: 0; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 130, .28) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 16%, transparent 60%); mask-image: radial-gradient(circle, #000 16%, transparent 60%); animation: go-spin 22s linear infinite; }
@keyframes gp-hop { 0%, 64%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-12px) rotate(-4deg); } 76% { transform: translateY(0) rotate(3deg) scale(1.03, .97); }
  82% { transform: translateY(-5px) rotate(-2deg); } 88% { transform: translateY(0) rotate(0); } }
@keyframes gp-breathe { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.gp-wrap.still .gp-art, .gp-wrap.still .gp-glow, .gp-wrap.still .gp-rays { animation: none; }
@media (prefers-reduced-motion: reduce) { .gp-art, .gp-glow, .gp-rays { animation: none !important; } }
.gp-what { display: flex; flex-direction: column; gap: 3px; margin: 2px 0 0; }
.gp-name { font: 800 18px/1.25 var(--font, sans-serif); color: #fff3da; }
.gp-from { color: #c9bc9f; font-size: 14px; line-height: 1.4; }
.gp-n { min-height: 1.3em; margin: 8px 0 0; color: #ffd166; font: 700 13px/1.3 var(--font, sans-serif); font-variant-numeric: tabular-nums; }
.gp-err { min-height: 1.3em; margin: 2px 0 0; color: #ff9b9b; font-size: 14px; }
.gp-err:empty { min-height: 0; }
.gp-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gp-acts .btn { width: 100%; }
@media (max-height: 560px) {
  .gp-stage { height: 130px; }
  .gp-art { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .gp-acts { flex-direction: row; }
}

/* ---------- вікно відкриття ---------- */
html.go-lock, html.go-lock body { overflow: hidden; }
.go-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: radial-gradient(ellipse at 50% 38%, rgba(60, 38, 12, .9), rgba(5, 3, 1, .94) 70%); font-family: var(--font, 'Rubik', system-ui, sans-serif); color: #eadfc8;
  animation: go-in .22s ease-out; }
@keyframes go-in { from { opacity: 0; } }
.go-box { position: relative; width: min(600px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 18px 18px 14px; border-radius: 22px; text-align: center;
  background: radial-gradient(ellipse at 50% -10%, rgba(255, 209, 102, .16), transparent 55%), linear-gradient(180deg, #1d140b, #120c07);
  border: 1px solid rgba(255, 209, 102, .32); box-shadow: 0 30px 90px rgba(0, 0, 0, .75); }
.go-h { margin: 2px 0 6px; font: 400 26px/1.15 var(--display, 'Russo One', sans-serif); color: #fff3da; text-shadow: 0 2px 0 #000; }
/* сцена: висота наперед; коробка, світіння, промені, спалах і частинки — шарами в одному місці */
.go-stage { position: relative; height: 250px; margin: 0 auto; width: 100%; }
.go-art { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -115px 0 0 -115px; z-index: 3; transform-origin: 50% 85%; }
.go-glow { position: absolute; left: 50%; top: 48%; width: 340px; height: 340px; margin: -170px 0 0 -170px; z-index: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 230, 150, .85) 0%, rgba(255, 190, 70, .35) 35%, transparent 68%); opacity: 0; transform: scale(.4); transition: opacity .9s ease-in, transform 1.1s ease-in; }
.go-rays { position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 0; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 130, .32) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%); mask-image: radial-gradient(circle, #000 18%, transparent 62%); }
.go-flash { position: absolute; inset: -40px; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(circle closest-side at 50% 46%, #fffbe8 0%, rgba(255, 246, 210, .9) 35%, transparent 100%); }
.go-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.go-wrap.shaking .go-art { animation: go-shake 1.5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes go-shake {
  0% { transform: translateY(0) rotate(0); } 10% { transform: translateY(-22px) rotate(-3deg); } 18% { transform: translateY(0) rotate(0) scale(1.04, .95); }
  26% { transform: translateY(-14px) rotate(3deg); } 33% { transform: translateY(0) scale(1.03, .97); }
  40%, 48%, 56%, 64%, 72%, 80%, 88% { transform: translateX(-7px) rotate(-4deg); } 44%, 52%, 60%, 68%, 76%, 84%, 92% { transform: translateX(7px) rotate(4deg); }
  100% { transform: translateX(0) rotate(0) scale(1.06); } }
.go-wrap.glowing .go-glow { opacity: 1; transform: scale(1); }
.go-wrap.flash .go-flash { animation: go-flash .55s ease-out both; }
@keyframes go-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
.go-wrap.opened .go-rays { opacity: 1; animation: go-spin 14s linear infinite; transition: opacity .4s; }
@keyframes go-spin { to { transform: rotate(360deg); } }
.go-wrap.opened .go-art { animation: go-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes go-pop { from { transform: scale(.85); } to { transform: scale(1.04); } }
/* картки: місце під усі — наперед (сітка фіксованих клітинок), поява — opacity/transform, без зсуву */
.go-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 132px); justify-content: center; gap: 10px; margin: 8px 0 4px; min-height: 176px; }
.go-cards.n1 { --cols: 1; } .go-cards.n2 { --cols: 2; } .go-cards.n3 { --cols: 3; } .go-cards.n4 { --cols: 4; } .go-cards.n5, .go-cards.n6 { --cols: 3; }
.go-card { --rc: #d9d2c2; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 176px; box-sizing: border-box; padding: 10px 6px 8px;
  border-radius: 14px; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 70%), rgba(10, 7, 4, .85);
  border: 2px solid color-mix(in srgb, var(--rc) 75%, transparent); box-shadow: 0 0 0 0 transparent; opacity: 0; transform: translateY(-70px) scale(.3); }
.go-card.rare { --rc: #4aa3ff; } .go-card.epic { --rc: #b36bff; } .go-card.legend { --rc: #ffb43f; }
.go-card.in { opacity: 1; transform: none; box-shadow: 0 0 22px color-mix(in srgb, var(--rc) 45%, transparent); animation: go-card .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes go-card { 0% { opacity: 0; transform: translateY(-80px) scale(.3) rotate(-8deg); } 70% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.go-card.dup { --rc: #8f846e; }
.go-card.dup .go-cv, .go-card.dup .go-fr { opacity: .55; filter: saturate(.5); }
.go-cv { display: block; width: 96px; height: 96px; flex: none; }
.go-fr { position: relative; display: block; width: 62px; height: 62px; margin: 17px; border-radius: 50%; flex: none; }
.go-fr .go-cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
/* дубль у вікні відкриття (24.10 вечір): «×2» на картці */
.go-dupx { position: absolute; top: 8px; right: 8px; z-index: 3; padding: 1px 8px; border-radius: 999px; background: linear-gradient(180deg, #ffe39a, #ffb43f); color: #2b1800; font: 800 14px/20px var(--font); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.go-coin { border-radius: 50%; width: 76px; height: 76px; margin: 10px; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd166 35%, #c9871a 75%, #8a5a0e); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 0 18px rgba(255, 209, 102, .5); }
.go-cn { max-width: 100%; font: 800 13.5px/1.2 var(--font, sans-serif); color: #fff3da; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-cr { font-size: 11.5px; font-weight: 700; color: var(--rc); line-height: 1.25; }
.go-card.dup .go-cr { color: #ffe7a8; }
.go-count { height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 22px/1 var(--font, sans-serif); color: #ffe7a8; visibility: hidden; font-variant-numeric: tabular-nums; }
.go-count.on { visibility: visible; }
.go-count .coin { font-size: 22px; }
.go-count.none { color: #a89c84; font-size: 16px; font-weight: 700; }
.go-count.none .coin { display: none; }
.go-acts { display: flex; gap: 8px; justify-content: center; margin-top: 8px; visibility: hidden; }
.go-acts.on { visibility: visible; }
.go-acts .btn { min-width: 150px; }
.go-skip { position: absolute; top: 10px; right: 12px; appearance: none; border: 0; background: none; color: #a89c84; font: 600 13px var(--font, sans-serif); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.go-skip[hidden] { display: none; }
.go-wrap.reduce, .go-wrap.reduce .go-art, .go-wrap.reduce .go-card, .go-wrap.reduce .go-rays { animation: none !important; transition: none !important; }
@media (max-width: 600px), (max-height: 640px) {
  .go-box { padding: 14px 10px 12px; }
  .go-h { font-size: 21px; }
  .go-stage { height: 190px; }
  .go-art { width: 176px; height: 176px; margin: -88px 0 0 -88px; }
  .go-cards { grid-template-columns: repeat(min(var(--cols, 3), 3), 104px); gap: 8px; min-height: 150px; }
  .go-card { height: 150px; padding: 8px 4px 6px; }
  .go-cv { width: 76px; height: 76px; }
  .go-fr { width: 50px; height: 50px; margin: 13px; }
  .go-coin { width: 60px; height: 60px; margin: 8px; }
  .go-acts .btn { min-width: 0; flex: 1; }
}

/* ---------- адмінка: гіфти ---------- */
.ag-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ag-tpl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 209, 102, .14); text-align: left; color: inherit; font: inherit; cursor: pointer; appearance: none; }
.ag-tpl:hover, .ag-tpl.on { border-color: rgba(255, 209, 102, .55); }
.ag-tpl.off { opacity: .6; }
.ag-tpl .gift-art { width: 64px; height: 64px; }
.ag-tpl b { display: block; color: #fff3da; font-size: 14.5px; }
.ag-tpl small { display: block; color: #a89c84; font-size: 12px; line-height: 1.35; }
.ag-new { display: flex; align-items: center; justify-content: center; min-height: 84px; border-style: dashed; color: #ffd166; font-weight: 800; }
.ag-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 209, 102, .2); }
.ag-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ag-arts { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-art { appearance: none; width: 78px; height: 78px; padding: 4px; border-radius: 12px; border: 2px solid rgba(255, 209, 102, .14); background: rgba(0, 0, 0, .3); cursor: pointer; }
.ag-art.on { border-color: #ffd166; background: rgba(255, 209, 102, .12); }
.ag-art .gift-art { width: 100%; height: 100%; }
.ag-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.ag-items th { text-align: left; color: #a89c84; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; }
.ag-items td { padding: 4px 6px; vertical-align: middle; }
.ag-items td.ag-x { width: 40px; }
.ag-items select, .ag-items input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid rgba(255, 209, 102, .22); background: rgba(0, 0, 0, .38); color: #f3ecdc; font: 600 14px var(--font); }
.ag-items .ag-ch { width: 90px; }
.ag-hint { display: block; margin-top: 3px; color: #ffcf8a; font-size: 12px; }
.ag-hint:empty { display: none; }
.ag-sum { font-weight: 800; }
.ag-sum.ok { color: #9be3b3; } .ag-sum.bad { color: #ff9b9b; }
.ag-trig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } /* пошта · тиждень 1–3 / · сезон 1–3 (24.10 вечір) */
.ag-trig select, .ag-form select { height: 36px; border-radius: 10px; border: 1px solid rgba(255, 209, 102, .22); background: rgba(0, 0, 0, .38); color: #f3ecdc; font: 600 14px var(--font); padding: 0 8px; }
.ag-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #c9bc9f; }
.ag-log b { color: #fff3da; }
@media (max-width: 700px) {
  .ag-trig { grid-template-columns: minmax(0, 1fr); }
  /* рядок вмісту: тип · шанс · ✕ угорі, предмет — на всю ширину під ними */
  .ag-items thead { display: none; }
  .ag-items, .ag-items tbody { display: block; }
  .ag-items tr { display: grid; grid-template-columns: minmax(0, 1fr) 84px 44px; gap: 6px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .ag-items td { padding: 0; }
  .ag-items td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ag-items .ag-ch { width: 100%; }
}
/* стани предметів в адмінці магазину (24.10): прихований — у сітці скінів і в рамках */
.as-tile.hid { outline: 2px dashed rgba(180, 160, 255, .7); outline-offset: -2px; }
.as-tp.hid { background: rgba(60, 40, 110, .9); border-color: rgba(180, 160, 255, .7); color: #e2d8ff; }
.as-fr.hid { outline: 2px dashed rgba(180, 160, 255, .7); outline-offset: -2px; }
.ag-chk { flex-direction: row; align-items: center; gap: 10px; }
.ag-chk input { width: 20px; height: 20px; }
