/* com_tasi3agifts — ركن الهدايا. The design of the first gifts page (mascots, gift boxes, Changa),
   inside the tasi3a template. Everything is scoped under .tg */

@font-face { font-family: "Changa"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/changa-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/changa-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/changa-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/changa-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/changa-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/changa-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* the template wraps components in a white notebook sheet: the gifts pages draw their own */
.tsa-component.tsa-sheet:has(> .tg) { padding: 0; background: none; border: 0; box-shadow: none; }
.tsa-component.tsa-sheet:has(> .tg)::before { display: none; }
/* the template highlights every h1 of a sheet with a yellow marker: not on the gifts pages */
.tsa-component.tsa-sheet .tg :is(h1, h2, h3), .tg :is(h1, h2, h3) { display: block; background: none; box-decoration-break: slice; -webkit-box-decoration-break: slice; }
.tsa-component.tsa-sheet .tg h1 + * { margin-top: 0; }
.tg [hidden] { display: none !important; }

.tg {
  --ink: #142c45;
  --blue: #1249d8;
  --blue-d: #0f39ae;
  --navy: #0d2350;
  --red: #ed202a;
  --muted: #5f6c85;
  --paper: #f6f8ff;
  --line: #e2e7f2;
  --gold: #ffc83d;
  --gold-d: #e0a100;
  --ok: #1f7a4d;
  --r: 22px;
  color: var(--ink);
  font-family: Changa, Tajawal, Tahoma, Arial, sans-serif;
  line-height: 1.7;
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}
.tg *, .tg *::before, .tg *::after { box-sizing: border-box; }
.tg a { color: inherit; text-decoration: none; }
.tg img { border-radius: 0; max-width: none; }
.tg h1, .tg h2, .tg h3 { font-family: inherit; color: var(--ink); background: none; display: block; }
.tg :focus-visible { outline: 3px solid #f3b731; outline-offset: 4px; border-radius: 8px; }
.tg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tg-red { color: var(--red); }

/* ------------------------------------------------------------------ buttons */
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border-radius: 14px; border: 1px solid transparent; font: 600 15px/1.2 Changa, Tahoma, sans-serif; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.tg-btn:hover { transform: translateY(-2px); }
.tg-btn.is-gold { background: linear-gradient(180deg, #ffd65c, var(--gold)); color: #3b2a00; box-shadow: 0 4px 0 var(--gold-d), 0 10px 22px #e0a10040; }
.tg-btn.is-gold:hover { box-shadow: 0 6px 0 var(--gold-d), 0 14px 28px #e0a10050; }
.tg-btn.is-ghost { background: #fff; color: var(--ink); border-color: #d6def0; }
.tg-btn.is-google { background: #fff; color: #222; border-color: #d6def0; }
.tg-btn.is-facebook { background: #1877f2; color: #fff; }

/* ------------------------------------------------------------------ hero */
.tg-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 430px; padding: 46px 230px 54px;
  border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 100%, #dfe9ff, transparent 66%), #fff;
  box-shadow: 0 1px 2px #0d235012, 0 14px 40px #0d235012;
}
.tg-hero::after { content: "+"; position: absolute; left: 12%; top: 40px; font: 70px Arial; color: #e4eaff; transform: rotate(15deg); z-index: -1; }
.tg-hero::before { content: "÷"; position: absolute; right: 16%; top: 28px; font: 54px Arial; color: #e4eaff; transform: rotate(-12deg); z-index: -1; }
.tg-hero-copy { position: relative; z-index: 2; max-width: 620px; }
.tg-eyebrow { color: var(--blue); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; background: #edf2ff; border-radius: 50px; padding: 6px 16px; }
.tg-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.tg h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.45; margin: 16px 0 18px; }
.tg h1 em { color: var(--blue); font-style: normal; position: relative; white-space: nowrap; }
.tg h1 em::after { content: ""; position: absolute; bottom: 2px; right: 0; width: 100%; height: 5px; background: var(--red); border-radius: 100%; transform: rotate(-3deg); }
.tg-intro { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 12px auto 22px; max-width: 520px; }
.tg-hero-link { display: inline-block; background: var(--blue); color: #fff !important; padding: 12px 28px; border-radius: 14px; font-size: 16px; font-weight: 600; box-shadow: 0 8px 20px #1249d833; transition: transform .2s, background .2s; }
.tg-hero-link:hover { background: var(--blue-d); transform: translateY(-2px); }
.tg-hero-note { font-size: 12px; color: #7b869d; margin-top: 14px; }
.tg-mascot { position: absolute; bottom: 0; z-index: 1; width: auto; height: 360px; pointer-events: none; animation: tg-float 6s ease-in-out infinite; transform-origin: 50% 100%; }
.tg-mascot.is-boy { right: 8px; }
.tg-mascot.is-girl { left: 8px; animation-delay: -3s; }
@keyframes tg-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.tg-strip { background: var(--ink); color: #fff; padding: 12px 18px; text-align: center; font-size: 14px; border-radius: 16px; }
.tg-strip span { opacity: .55; margin: 0 16px; }

/* ------------------------------------------------------------------ member bar */
.tg-me { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 22px; border-radius: 18px; background: #fff; border: 1px solid #c9d8ff; box-shadow: 0 6px 20px #1249d80d; }
.tg-me-hello { display: grid; gap: 2px; }
.tg-me-hello b { font-size: 17px; }
.tg-me-state { color: var(--muted); font-size: 14px; }
.tg-me-state.is-ok { color: var(--ok); font-weight: 600; }
.tg-clock { font-variant-numeric: tabular-nums; color: var(--blue); }
.tg-me-collection { display: grid; gap: 6px; min-width: min(260px, 100%); font-size: 14px; }
.tg-me-collection b { color: var(--blue); font-size: 18px; }
.tg-meter { display: block; height: 10px; border-radius: 10px; background: #edf2ff; overflow: hidden; }
.tg-meter i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #ff9f43); }

/* ------------------------------------------------------------------ gift boxes (first page) */
.tg-box { position: relative; width: 128px; height: 100px; margin-top: 34px; --box: #3159c4; --lid: #416ee4; --ribbon: #f2bf5a; filter: drop-shadow(0 12px 7px #153c9918); }
.tg-box-body { position: absolute; inset: 25px 5px 0; background: linear-gradient(100deg, var(--box), var(--lid)); border-radius: 3px 3px 10px 10px; }
.tg-box-body::before { content: ""; position: absolute; top: 0; bottom: 0; width: 23px; left: calc(50% - 11.5px); background: var(--ribbon); }
.tg-box-lid { position: absolute; inset: 12px 0 auto; height: 27px; background: var(--lid); border-radius: 5px; box-shadow: 0 4px 0 #0000000d; transition: transform .4s; }
.tg-box-lid::after { content: ""; position: absolute; left: calc(50% - 12px); width: 24px; height: 100%; background: var(--ribbon); }
.tg-bow { position: absolute; width: 42px; height: 28px; bottom: 100%; border: 8px solid var(--ribbon); border-radius: 70% 75% 0 70%; left: 23px; transform: rotate(13deg); }
.tg-bow.is-right { left: 63px; transform: scaleX(-1) rotate(13deg); }
.tg-paper { position: absolute; left: 38px; top: -15px; width: 55px; height: 65px; background: #fff; border-radius: 5px; box-shadow: 0 1px 15px #123c9e18; transform: rotate(8deg); font: 700 20px Arial; color: var(--blue); padding-top: 10px; text-align: center; }
.tg-paper::after { content: "≡"; display: block; font-size: 22px; color: #b5c6ed; line-height: 1; }
.tg-scene { height: 165px; display: flex; align-items: center; justify-content: center; position: relative; margin: 2px 0 6px; background: radial-gradient(ellipse, #eef3ff 0, transparent 66%); }
.tg-card .tg-box-lid, .tg-today .tg-box-lid { transform: translate(-8px, -38px) rotate(-12deg); }
.tg-card:hover .tg-box-lid { transform: translate(-12px, -46px) rotate(-16deg); }
.tg-spark { position: absolute; color: #eeb64f; font-size: 24px; top: 26px; right: calc(50% - 60px); }

/* ------------------------------------------------------------------ gift of the day */
.tg-today-card { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; align-items: center; gap: 10px 30px; padding: 26px 30px; border-radius: 26px; color: #fff !important;
  background: radial-gradient(circle at 85% 20%, #3a6cf0 0, transparent 45%), linear-gradient(135deg, #0d2350, #1239a0 60%, #1249d8);
  box-shadow: 0 18px 40px #0d235038; position: relative; overflow: hidden; transition: transform .25s; }
.tg-today-card:hover { transform: translateY(-3px); }
.tg-today-card::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#ffffff26 1px, transparent 1px); background-size: 22px 22px; mask: linear-gradient(90deg, #000, transparent 60%); pointer-events: none; }
.tg-today-art { position: relative; height: 210px; display: flex; align-items: center; justify-content: center; }
.tg-today-art .tg-box { transform: scale(1.35); animation: tg-breathe 3.2s ease-in-out infinite; }
.tg-glow { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, #ffd65c66, transparent 65%); }
.tg-today-art .tg-spark { color: #ffd65c; }
.tg-today-art .tg-spark.is-1 { top: 18px; right: 30px; }
.tg-today-art .tg-spark.is-2 { top: 70px; left: 26px; font-size: 18px; animation: tg-twinkle 2.4s infinite; }
.tg-today-art .tg-spark.is-3 { bottom: 26px; right: 46px; font-size: 16px; animation: tg-twinkle 2.4s infinite -1.2s; }
@keyframes tg-breathe { 0%, 100% { transform: scale(1.35); } 50% { transform: scale(1.42) rotate(-2deg); } }
@keyframes tg-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.tg-today-copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: 6px; }
.tg-today-tag { display: inline-block; background: #ffffff1f; border: 1px solid #ffffff38; border-radius: 30px; padding: 5px 14px; font-size: 13px; }
.tg-today-copy .tg-serial { color: #ffd65c; }
.tg-today-copy h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.35; margin: 0; }
.tg-today-copy p { margin: 0; color: #d9e3ff; font-size: 15px; }
.tg-today-copy .tg-btn { margin-top: 10px; }
.tg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tg-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 30px; font-size: 12px; background: #ffffff1f; border: 1px solid #ffffff30; }
.tg-chip.is-gold { background: #fff4cf; color: #6b4a00; border-color: #ffe08a; }

/* ------------------------------------------------------------------ collection */
.tg-section-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.tg-overline { font-family: Arial, sans-serif; letter-spacing: 2px; color: var(--blue); font-size: 10px; font-weight: 700; }
.tg-section-top h2 { font-size: 28px; font-weight: 800; margin: 4px 0; }
.tg-section-top p { font-size: 14px; color: var(--muted); margin: 0; }
.tg-count { white-space: nowrap; border: 1px solid #dde6f8; border-radius: 30px; padding: 8px 16px; background: #fff; font-size: 13px; }
.tg-count b { color: var(--blue); }

.tg-filters { display: grid; gap: 10px; margin: 0 0 20px; }
.tg-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-fchip { border: 1px solid #d6def0; background: #fff; color: var(--ink); border-radius: 30px; padding: 6px 16px; font: 500 14px Changa, Tahoma, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.tg-fchip:hover { border-color: var(--blue); }
.tg-fchip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tg-filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-search { flex: 1 1 260px; }
.tg-search input, .tg-select select { width: 100%; min-height: 44px; border: 1px solid #d6def0; border-radius: 14px; padding: 8px 16px; font: 15px Changa, Tahoma, sans-serif; background: #fff; color: var(--ink); }
.tg-select { flex: 0 1 240px; }

.tg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tg-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #b9ccff; border-radius: var(--r); background: #fff; text-align: center; padding: 18px 22px 22px; box-shadow: 0 7px 25px #1249d80a; transition: transform .25s, box-shadow .25s; }
.tg-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #152b501a; }
.tg-card.is-today { border: 2px solid var(--gold); box-shadow: 0 10px 30px #e0a10026; }
.tg-card.is-owned { border-color: #bfe3cf; }
.tg-card[hidden] { display: none; }
.tg-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.tg-status { padding: 3px 10px; border-radius: 20px; background: #e9f6ef; color: #28734f; }
.tg-card.is-today .tg-status { background: #fff4cf; color: #6b4a00; }
.tg-card.is-owned .tg-status { background: #e7f1ff; color: var(--blue); }
.tg-serial { font-family: Arial, sans-serif; letter-spacing: 1px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tg-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; line-height: 1.5; }
.tg-card-desc { color: var(--muted); font-size: 13px; min-height: 22px; margin: 0 0 16px; flex: 1; }
.tg-action { display: block; width: 100%; border-radius: 12px; background: var(--blue); color: #fff; padding: 10px 12px; font-size: 14px; font-weight: 600; transition: background .2s; }
.tg-card:hover .tg-action { background: var(--blue-d); }
.tg-card.is-owned .tg-action { background: #eaf0ff; color: var(--blue); }
.tg-more { text-align: center; margin-top: 22px; }
.tg-empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* ------------------------------------------------------------------ next closed boxes */
.tg-soon h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.tg-soon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.tg-soon-card { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 20px; border: 1px dashed #c3cfe8; background: #f3f6fd; text-align: center; }
.tg-soon-card b { font-size: 16px; color: var(--ink); }
.tg-soon-card small { color: var(--muted); font-size: 12px; }
.tg-scene.is-closed { height: 140px; background: none; filter: grayscale(.55) opacity(.75); }
.tg-lock { position: absolute; top: 46%; left: 50%; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); font: 800 18px/34px Changa, Arial; box-shadow: 0 4px 12px #0d235026; }

.tg-bottom-note { border: 1px dashed #c9d6ee; border-radius: 18px; padding: 20px; text-align: center; font-size: 15px; color: #526888; background: #edf3ff; }

/* ------------------------------------------------------------------ gift page */
.tg-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.tg-crumbs a { color: var(--blue); font-weight: 600; }
.tg-preview { margin: 0; padding: 10px 16px; border-radius: 14px; background: #fff4cf; border: 1px solid #ffe08a; color: #6b4a00; font-size: 14px; }

.tg-detail { min-height: 520px; padding: 40px 250px; align-items: stretch; }
.tg-detail .tg-mascot { height: 400px; }
.tg-panel { position: relative; z-index: 2; width: min(640px, 100%); margin: auto; padding: 30px 34px 30px; border-radius: 26px; text-align: center;
  background: #ffffffd9; backdrop-filter: blur(6px); border: 1px solid #dfe7fb; box-shadow: 0 20px 50px #0d23501c; }
.tg-panel-top { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.tg-panel-top .tg-chip { background: #eef3ff; border-color: #dbe5ff; color: var(--blue); }
.tg-panel-top .tg-chip.is-gold { background: #fff4cf; color: #6b4a00; border-color: #ffe08a; }
.tg-state-title { margin: 14px 0 0; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.35; color: var(--blue); }
.is-exhausted .tg-state-title { color: var(--red); }
.is-owned .tg-state-title { color: var(--ok); }
.tg .tg-gift-title { margin: 6px 0 4px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.5; }
.tg-gift-summary { margin: 0 auto; color: var(--muted); font-size: 16px; max-width: 520px; }
.tg-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 6px; padding: 0; }
.tg-facts li { padding: 5px 13px; border-radius: 30px; background: #f2f5fc; border: 1px solid #e1e8f6; font-size: 13px; }
.tg-desc { text-align: right; margin: 14px 0 0; padding: 14px 18px; border-radius: 16px; background: #f8faff; border: 1px solid #e8eefb; font-size: 15px; line-height: 1.9; }
.tg-desc > :first-child { margin-top: 0; }
.tg-desc > :last-child { margin-bottom: 0; }
.tg-desc ul, .tg-desc ol { padding-inline-start: 1.3rem; }

.tg-cta { margin-top: 22px; }
.tg-cta-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.tg-cta-note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the elegant button */
.tg-download { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; min-width: min(380px, 100%); padding: 14px 22px; border-radius: 20px; text-align: right;
  color: #fff !important; background: linear-gradient(135deg, #1249d8, #0d2f99); box-shadow: 0 6px 0 #0a2475, 0 18px 34px #1249d84d; transition: transform .2s, box-shadow .2s; }
.tg-download::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, #ffffff55, transparent); transform: skewX(-20deg); animation: tg-shine 3.6s ease-in-out infinite; }
.tg-download:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #0a2475, 0 22px 40px #1249d860; }
.tg-download:active { transform: translateY(3px); box-shadow: 0 2px 0 #0a2475, 0 10px 20px #1249d84d; }
.tg-download-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 28px; background: linear-gradient(180deg, #ffd65c, var(--gold)); box-shadow: inset 0 -3px 0 #e0a100; flex: none; }
.tg-download-txt { display: grid; flex: 1; }
.tg-download-txt b { font-size: 21px; font-weight: 800; line-height: 1.3; }
.tg-download-txt small { font-size: 12px; opacity: .8; }
.tg-download-arrow { font-size: 24px; animation: tg-bob 1.6s ease-in-out infinite; }
.tg-download.is-owned { background: linear-gradient(135deg, #1f7a4d, #155c39); box-shadow: 0 6px 0 #0f4129, 0 18px 34px #1f7a4d40; }
.tg-download.is-owned .tg-download-ic { background: #fff; box-shadow: none; }
@keyframes tg-shine { 0%, 60% { left: -80px; } 100% { left: 110%; } }
@keyframes tg-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }

.tg-after { padding: 16px 18px; border-radius: 18px; background: #e9f6ef; border: 1px solid #bfe3cf; }
.tg-after p { margin: 4px 0; }
.tg-after-title { font-size: 19px; font-weight: 800; color: var(--ok); }
.tg-after a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.tg-wait p { margin: 0 0 8px; font-size: 15px; }
.tg-countdown { display: inline-grid; gap: 2px; padding: 14px 26px; margin: 6px 0 4px; border-radius: 20px; background: linear-gradient(135deg, #0d2350, #1239a0); color: #fff; box-shadow: 0 14px 30px #0d235033; }
.tg-countdown-label { font-size: 13px; opacity: .8; }
.tg-countdown b { font: 800 clamp(30px, 5vw, 42px)/1.1 Changa, Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 2px; color: #ffd65c; }

.tg-guest p { margin: 0 0 12px; font-size: 15px; }
.tg-login-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* mascots react to the state */
.is-available .tg-mascot.is-boy { animation: tg-cheer 2.4s ease-in-out infinite; }
.is-available .tg-mascot.is-girl { animation: tg-cheer 2.4s ease-in-out infinite -1.2s; }
.is-exhausted .tg-mascot { animation: tg-sway 5s ease-in-out infinite; }
.is-exhausted .tg-mascot.is-girl { animation-delay: -2.5s; }
@keyframes tg-cheer { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 0 -10px; rotate: -2deg; } 50% { translate: 0 0; } 75% { translate: 0 -6px; rotate: 2deg; } }
@keyframes tg-sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }

/* confetti of « مبروك » */
.tg-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.tg-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: tg-fall 2.8s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes tg-fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--dx, 0), 560px, 0) rotate(var(--rot, 540deg)); } }

/* confirmation */
.tg-dialog { border: 0; padding: 0; border-radius: 24px; width: min(420px, calc(100% - 32px)); box-shadow: 0 30px 80px #0d235055; font-family: Changa, Tahoma, sans-serif; color: var(--ink); text-align: center; direction: rtl; }
.tg-dialog::backdrop { background: #0d2350a6; backdrop-filter: blur(3px); }
.tg-dialog form { padding: 26px 24px 22px; }
.tg-dialog-ic { font-size: 46px; margin: 0; line-height: 1; }
.tg-dialog-title { font-size: 19px; font-weight: 800; margin: 10px 0 6px; }
.tg-dialog p { margin: 0 0 10px; }
.tg-dialog-btns { display: grid; gap: 10px; margin-top: 16px; }

.tg-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.tg-pager-link { display: grid; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; min-width: 0; }
.tg-pager-link:hover { border-color: var(--blue); }
.tg-pager-link small { color: var(--muted); font-size: 12px; }
.tg-pager-link b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-pager-link.is-prev { text-align: left; }

/* ------------------------------------------------------------------ pack open to everyone (1.1.0) */
.tg-pack { border-radius: 26px; border: 1px solid #c9d8ff; background: linear-gradient(180deg, #f3f7ff, #fff 140px); padding: 24px clamp(16px, 3vw, 30px) 22px; box-shadow: 0 6px 24px #1249d80d; scroll-margin-top: 90px; }
.tg-pack-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.tg-pack-copy { flex: 1 1 340px; }
.tg-pack-badge { display: inline-block; background: #e9f6ef; color: #28734f; border-radius: 30px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.tg-pack-copy h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin: 6px 0 2px; line-height: 1.4; }
.tg-pack-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.tg-pack-cta { display: grid; justify-items: center; gap: 6px; }
.tg-pack-sub { font-size: 12px; color: var(--muted); }
a.tg-pack-sub { color: var(--blue); text-decoration: underline; }
.tg-pack-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tg-pack-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tg-pack-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #edf2ff; color: var(--blue); font: 700 14px Arial, sans-serif; }
.tg-pack-txt { flex: 1; min-width: 0; display: grid; }
.tg-pack-txt b { font-size: 15px; font-weight: 600; line-height: 1.5; }
.tg-pack-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-pack-dl { flex: none; background: var(--blue); color: #fff !important; border-radius: 12px; padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.tg-pack-dl:hover { background: var(--blue-d); }
.tg-pack-more { margin-top: 10px; }
.tg-pack-more > summary { cursor: pointer; text-align: center; color: var(--blue); font-weight: 600; padding: 10px; list-style: none; }
.tg-pack-more > summary::-webkit-details-marker { display: none; }
.tg-pack-more[open] > summary { display: none; }
@media (max-width: 767px) {
  .tg-pack { border-radius: 20px; }
  .tg-pack-head { text-align: center; justify-content: center; }
  .tg-pack-list { grid-template-columns: 1fr; }
  .tg-pack-item { padding: 10px; gap: 10px; }
  .tg-pack-txt b { font-size: 14px; }
  .tg-pack-txt small { white-space: normal; }
  .tg-pack-dl { padding: 8px 11px; font-size: 13px; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .tg-hero { padding-inline: 180px; }
  .tg-mascot { height: 300px; }
  .tg-detail { padding-inline: 150px; }
  .tg-detail .tg-mascot { height: 330px; }
}
@media (max-width: 860px) {
  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tg-detail { padding: 24px 14px 200px; min-height: 0; }
  .tg-detail .tg-mascot { height: 210px; }
  .tg-detail .tg-mascot.is-boy { right: calc(50% - 150px); }
  .tg-detail .tg-mascot.is-girl { left: calc(50% - 150px); }
  .tg-panel { padding: 24px 18px; }
}
@media (max-width: 767px) {
  .tg-hero { min-height: 0; padding: 30px 14px 200px; align-items: flex-start; border-radius: 22px; }
  .tg-mascot { height: 200px; }
  .tg-mascot.is-boy { right: calc(50% - 150px); }
  .tg-mascot.is-girl { left: calc(50% - 150px); }
  .tg h1 { font-size: 34px; margin-top: 12px; }
  .tg-intro { font-size: 14px; }
  .tg-strip { font-size: 12px; }
  .tg-strip span { margin: 0 6px; }
  .tg-today-card { grid-template-columns: 1fr; text-align: center; padding: 18px 18px 24px; }
  .tg-today-copy { justify-items: center; }
  .tg-today-art { height: 170px; }
  .tg-section-top { align-items: flex-start; }
  .tg-section-top h2 { font-size: 23px; }
  .tg-card { padding: 12px 10px 14px; border-radius: 16px; }
  .tg-scene { height: 140px; }
  .tg-scene .tg-box { transform: scale(.85); }
  .tg-card h3 { font-size: 15px; }
  .tg-card-desc { font-size: 11px; }
  .tg-action { font-size: 12px; padding: 9px 4px; }
  .tg-download { min-width: 100%; }
  .tg-download-txt b { font-size: 18px; }
  .tg-pager { grid-template-columns: 1fr 1fr; }
  .tg-pager > .tg-btn { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 380px) {
  .tg-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tg *, .tg *::before, .tg *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ live sessions box (1.2.0, com_rachedlive) */
.tg-live-card { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; align-items: center; gap: 10px 30px; padding: 22px 30px; border-radius: 26px; color: var(--ink) !important;
  background: radial-gradient(circle at 12% 30%, #ffe1e3 0, transparent 45%), linear-gradient(135deg, #fff, #fff6f6 60%, #fff1e6);
  border: 2px solid #ffc9cd; box-shadow: 0 14px 34px #ed202a1c; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.tg-live-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px #ed202a2a; }
.tg-live-card:hover .tg-box-lid { transform: translate(-12px, -46px) rotate(-16deg); }
.tg-live-art { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; }
.tg-live-art .tg-glow { background: radial-gradient(circle, #ff9aa066, transparent 65%); }
.tg-live-art .tg-box { transform: scale(1.3); }
.tg-live-art .tg-box-lid { transform: translate(-8px, -38px) rotate(-12deg); }
.tg-live-art .tg-spark { color: #ed6570; }
.tg-live-art .tg-spark.is-1 { top: 16px; right: 22px; }
.tg-live-art .tg-spark.is-2 { top: 72px; left: 18px; font-size: 18px; animation: tg-twinkle 2.4s infinite; }
.tg-live-screen { position: absolute; left: 30px; top: -18px; width: 68px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; border: 4px solid #243b61; background: #0d2350; color: #fff; font: 800 12px/1 Arial, sans-serif; letter-spacing: 1px; transform: rotate(-7deg); box-shadow: 0 6px 14px #0d235033; }
.tg-live-screen i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: tg-live-pulse 1.4s infinite; }
.tg-live-copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: 6px; }
.tg-live-tag { display: inline-flex; align-items: center; gap: 8px; background: #ffeef0; color: var(--red); border-radius: 30px; padding: 4px 14px; font-size: 13px; font-weight: 600; }
.tg-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: tg-live-pulse 1.6s infinite; }
@keyframes tg-live-pulse { 0% { box-shadow: 0 0 0 0 #ed202a70; } 70% { box-shadow: 0 0 0 8px #ed202a00; } 100% { box-shadow: 0 0 0 0 #ed202a00; } }
.tg-live-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.35; margin: 0; color: var(--ink); }
.tg-live-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.tg-live-copy .tg-chip { background: #fff; border-color: #f3d3d6; color: var(--ink); }
.tg-live-copy .tg-chip.is-gold { background: #fff4cf; color: #6b4a00; border-color: #ffe08a; }
.tg-live-copy .tg-btn { margin-top: 8px; }
@media (max-width: 767px) {
  .tg-live-card { grid-template-columns: 1fr; padding: 18px 16px 22px; text-align: center; }
  .tg-live-art { height: 160px; }
  .tg-live-copy { justify-items: center; }
  .tg-live-copy .tg-chips { justify-content: center; }
}

/* ------------------------------------------------------------------ weekly ranking card (1.3.0, com_rachedpoints) */
.tg-weekly-card { display: grid; grid-template-columns: 150px 1fr auto; align-items: stretch; border-radius: 22px; overflow: hidden; background: #fff; border: 2px solid #ffe08a; box-shadow: 0 10px 28px #e0a1001f; color: var(--ink) !important; transition: transform .25s, box-shadow .25s; }
.tg-weekly-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px #e0a1002e; }
.tg-weekly-score { display: grid; place-content: center; justify-items: center; gap: 2px; padding: 14px 10px; text-align: center; color: #3b2a00; background: radial-gradient(circle at 70% 15%, #fff1b8 0, transparent 55%), linear-gradient(160deg, #ffd65c, #e0a100); }
.tg-weekly-score small { font-size: 12px; font-weight: 600; }
.tg-weekly-score b { font: 800 46px/1 Changa, Arial, sans-serif; }
.tg-weekly-score span { font-size: 13px; font-weight: 600; }
.tg-weekly-score.is-guest b { font-size: 44px; }
.tg-weekly-copy { display: grid; gap: 4px; align-content: center; padding: 14px 22px; min-width: 0; }
.tg-weekly-tag { justify-self: start; padding: 2px 12px; border-radius: 30px; background: #fff4cf; color: #6b4a00; font-size: 12px; font-weight: 600; }
.tg-weekly-goal { font-size: clamp(17px, 2vw, 21px); font-weight: 800; line-height: 1.45; }
.tg-weekly-goal em { font-style: normal; color: var(--blue); }
.tg-weekly-goal.is-in { color: var(--ok); }
.tg-weekly-sub { font-size: 13px; color: var(--muted); }
.tg-weekly-top { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tg-weekly-p { padding: 2px 10px; border-radius: 30px; background: #f2f5fc; border: 1px solid #e1e8f6; font-size: 12px; font-weight: 600; }
.tg-weekly-p small { color: var(--muted); font-weight: 500; }
.tg-weekly-p.is-me { border-color: var(--blue); background: #edf2ff; }
.tg-weekly-go { align-self: center; margin-inline-end: 20px; white-space: nowrap; }
@media (max-width: 767px) {
  .tg-weekly-card { grid-template-columns: 1fr; }
  .tg-weekly-score { grid-auto-flow: column; align-items: center; gap: 10px; padding: 10px 14px; }
  .tg-weekly-score b { font-size: 34px; }
  .tg-weekly-copy { padding: 12px 16px 4px; }
  .tg-weekly-go { margin: 6px 16px 16px; }
}
