/* Giants Take Time tracker.
   Every size is the value from the brief multiplied by --u, where the card is 536px wide at --u = 1px
   (the width the reference was drawn at). The card therefore keeps exactly the same layout
   at every width from 320px to 720px: it only scales. */

.gtt {
  container-type: inline-size;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  --gtt-ground: #20211C;
  --gtt-line: #3A3B34;
  --gtt-text: #F1EEE5;
  --gtt-label: #E4DFD1;
  --gtt-muted: #B9B6A6;
  --gtt-gold: #D8BC7C;
  --gtt-gold-deep: #AD8B43;
  --gtt-serif: 'Cormorant Garamond', Georgia, serif;
  --gtt-sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

/* The tracker looks the same in both sprints. These hooks are here in case an accent needs to change. */
.gtt[data-skin="black-friday"] { }
.gtt[data-skin="christmas"] { }

.gtt-card {
  --u: calc(min(100vw, 720px) / 536);
  box-sizing: border-box;
  background: var(--gtt-ground);
  border: 1px solid var(--gtt-line);
  border-radius: 0;
  color: var(--gtt-text);
  font-family: var(--gtt-sans);
  text-align: left;
}
@supports (width: 1cqw) {
  .gtt-card { --u: calc(100cqw / 536); }
}
.gtt-card *, .gtt-card *::before, .gtt-card *::after { box-sizing: border-box; }
.gtt-card p { margin: 0; }

/* Portrait */
.gtt-portrait { position: relative; aspect-ratio: 4 / 5; background: #383932; overflow: hidden; }
.gtt-portrait canvas { display: block; width: 100%; height: 100%; }
.gtt-powered {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: calc(12 * var(--u));
  padding: calc(70 * var(--u)) calc(20 * var(--u)) calc(22 * var(--u));
  background: linear-gradient(180deg, rgba(32,33,28,0), rgba(32,33,28,0.88));
  font-family: var(--gtt-serif); font-style: italic; font-size: calc(24 * var(--u)); line-height: 1; color: var(--gtt-text);
}
.gtt-powered img { display: block; width: calc(150 * var(--u)); height: calc(32 * var(--u)); }
.gtt-powered[hidden] { display: none; }

/* Panel */
.gtt-panel {
  padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(18 * var(--u));
  display: flex; flex-direction: column; gap: calc(16 * var(--u));
}
.gtt-top { display: flex; flex-direction: column; gap: calc(10 * var(--u)); min-width: 0; }

.gtt-total { display: flex; align-items: baseline; gap: calc(12 * var(--u)); white-space: nowrap; }
.gtt-num {
  font-family: var(--gtt-serif); font-weight: 600; font-size: calc(30 * var(--u)); line-height: 1;
  color: var(--gtt-text); font-variant-numeric: tabular-nums;
}
.gtt-num.gtt-gold { color: var(--gtt-gold); }
.gtt-label {
  font-weight: 600; font-size: calc(14 * var(--u)); line-height: 1.3;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gtt-label);
}

.gtt-bar {
  box-sizing: content-box !important;
  height: calc(14 * var(--u)); border-radius: 999px;
  background: #383932; border: 1px solid #6E705A; overflow: hidden;
}
.gtt-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--gtt-gold-deep), var(--gtt-gold)); }

.gtt-status {
  font-weight: 500; font-size: calc(14 * var(--u)); line-height: 1.3;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gtt-muted); white-space: nowrap;
}
.gtt-matchmet { font-size: calc(15 * var(--u)); line-height: 1.45; color: var(--gtt-label); }
.gtt-matchmet[hidden] { display: none; }

.gtt-days {
  border-top: 1px solid var(--gtt-line); padding-top: calc(16 * var(--u));
  display: flex; align-items: center; gap: calc(12 * var(--u)); white-space: nowrap; min-width: 0;
}
.gtt-days svg { flex: none; display: block; width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.gtt-days [hidden] { display: none; }
.gtt-days .gtt-label { letter-spacing: 0.16em; margin-left: calc(2 * var(--u)); }

.gtt-foot {
  border-top: 1px solid var(--gtt-line); padding-top: calc(20 * var(--u));
  display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--u));
}
.gtt-sfg { display: block; width: calc(86 * var(--u)); height: calc(40 * var(--u)); }
.gtt-match { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.gtt-match span { font-family: var(--gtt-serif); font-style: italic; font-size: calc(15 * var(--u)); color: var(--gtt-label); white-space: nowrap; }
.gtt-sr { display: block; width: calc(103 * var(--u)); height: calc(22 * var(--u)); }

/* Optional line under the panel */
.gtt-matchline {
  margin: 12px 0 0; font-family: var(--gtt-sans); font-size: 15px; line-height: 1.5; color: var(--gtt-muted);
}
.gtt-matchline[hidden] { display: none; }
