/* The giveaway time card (/timecard). Builds on style.css, memecontest.css and giveaway.css (the sky, the GTA type,
   the buttons). Everything here starts with .tc. */
.tc { --tc-ok: #2f9e44; --tc-wait: #e8a317; --tc-miss: #d9415a; --tc-todo: #8a8170; --tc-paper: #fbf6e8; --tc-shadow: 6px 7px 0 rgba(0, 0, 0, .55);
  max-width: 1080px; margin: 0 auto; color: var(--chalk); }
.tc [hidden] { display: none !important; }
.tc a { color: inherit; }

/* ---------- the top ---------- */
.tc-top { position: relative; z-index: 2; text-align: center; padding: 8px 0 26px; }
.tc-title { margin: 6px 0 8px; font: 400 clamp(56px, 10vw, 128px)/.86 var(--gta); text-transform: uppercase; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff6c9 0%, #ffd23f 38%, #ff8a3d 70%, #ff4fa3 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #1a0b24; paint-order: stroke fill; filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .55)); }
.tc-title span { display: block; }
.tc-sub { margin: 0; font: 800 17px/1.4 var(--body); color: #f1d7e6; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.tc-sub a { color: var(--yellow); text-decoration: underline wavy var(--vc-pink) 1.5px; text-underline-offset: 4px; }
.tc-clock { display: inline-block; margin: 14px 0 0; padding: 7px 14px; background: var(--vc-night); border: 2.5px solid var(--vc-pink); border-radius: 999px;
  font: 400 15px/1 var(--type); color: #f1d7e6; box-shadow: 0 0 24px rgba(255, 79, 163, .35); }
.tc-load { position: relative; z-index: 2; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 40px 0; font: 400 22px/1 var(--hand); }

/* ---------- panels (sign in, wizard) ---------- */
.tc-panel { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: clamp(20px, 4vw, 34px); background: var(--tc-paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px 16px 11px 14px; box-shadow: var(--tc-shadow); }
.tc-panel h2 { margin: 4px 0 8px; font: 400 clamp(32px, 5vw, 44px)/1 var(--gta); text-transform: uppercase; }
.tc-panel > p { margin: 0 0 14px; font: 700 16px/1.45 var(--body); color: #3b3833; }
.tc-panel a { text-decoration: underline wavy var(--red) 1.5px; text-underline-offset: 4px; }
.tc .gv-mission { margin: 0; font: 400 15px/1 var(--gta); letter-spacing: .1em; text-transform: uppercase; color: #c21f6a; }
.tc-form { display: grid; gap: 12px; }
.tc-form fieldset { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tc-form legend { padding: 0; margin-bottom: 4px; font: 800 19px/1.3 var(--body); }
.tc-form label { display: grid; gap: 5px; }
.tc-form label > span { font: 400 19px/1 var(--hand); }
.tc-form label i { font-style: normal; color: #6a655c; }
.tc-form input { width: 100%; min-height: 50px; padding: 10px 12px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px 12px 9px 11px; font: 400 18px/1.2 var(--type); }
.tc-form input:focus { outline: 3px solid var(--vc-teal); outline-offset: 1px; }
.tc-otp { letter-spacing: .5em; text-align: center; font-size: 26px !important; }
.tc-form .btn-red { justify-self: start; cursor: pointer; font-size: 22px; padding: 12px 20px 10px; }
.tc-form .btn-red[disabled], .tc-btn[disabled] { opacity: .6; cursor: wait; }
.tc-sent { margin: 0; font: 700 16px/1.4 var(--body); }
.tc-msg { min-height: 1.4em; margin: 12px 0 0; font: 400 19px/1.3 var(--hand); color: var(--red); }
.tc-msg.ok { color: #1f7a33; }
.tc-link { padding: 4px 0; background: none; border: 0; cursor: pointer; font: 400 17px/1.2 var(--hand); color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tc-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 4px; }
.tc-note { margin: 0; font: 700 14px/1.4 var(--body); color: #4a4a52; }
.tc-invited { margin: 0; padding: 6px 10px; background: #bff0ad; font: 400 18px/1.25 var(--hand); }
.tc-progress { display: flex; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tc-progress li { flex: 1; display: flex; gap: 6px; align-items: center; padding: 7px 10px; border: 2.5px solid var(--ink); border-radius: 8px; font: 400 16px/1 var(--gta); text-transform: uppercase; letter-spacing: .04em; background: #eee7d6; color: #8a8170; }
.tc-progress li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #8a8170; color: #fff; font: inherit; }
.tc-progress li.now { background: var(--yellow); color: var(--ink); }
.tc-progress li.now b { background: var(--ink); }
.tc-progress li.done { background: #bff0ad; color: var(--ink); }
.tc-progress li.done b { background: var(--tc-ok); }
.tc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-choice button { min-height: 58px; padding: 10px; cursor: pointer; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px; font: 800 17px/1.2 var(--body); box-shadow: 3px 3px 0 var(--ink); }
.tc-choice button.on { background: var(--yellow); }
.tc-choice button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tc-howto { margin: 0; padding: 12px 14px 12px 34px; background: #fff3c4; border: 2px dashed var(--ink); border-radius: 10px; font: 700 15px/1.45 var(--body); }
.tc-howto li + li { margin-top: 4px; }

/* ---------- the dashboard: the HUD ---------- */
.tc-dash { position: relative; z-index: 2; display: grid; gap: 22px; }
.tc-hud { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 0; background: rgba(12, 6, 22, .82); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: var(--tc-shadow), inset 0 0 0 2px rgba(255, 79, 163, .4); overflow: hidden; }
.tc-hud > div { padding: 16px 18px; }
.tc-hud > div + div { border-left: 2px dashed rgba(255, 255, 255, .18); }
.tc-k { margin: 0 0 4px; font: 400 14px/1 var(--gta); letter-spacing: .14em; text-transform: uppercase; color: #b9a6c9; }
.tc-handle { margin: 0; font: 400 clamp(24px, 3vw, 32px)/1.05 var(--gta); overflow-wrap: anywhere; }
.tc-sm { margin: 4px 0 0; font: 700 14px/1.4 var(--body); color: #cdbfd8; }
.tc-tix { text-align: center; }
.tc-n { margin: 0; font: 400 clamp(64px, 9vw, 96px)/.9 var(--gta); color: #6fd36f; -webkit-text-stroke: 3px #0b2a0b; paint-order: stroke fill; text-shadow: 3px 4px 0 rgba(0, 0, 0, .65); }
.tc-status { display: grid; align-content: center; justify-items: end; text-align: right; }
.tc-state { margin: 0; padding: 6px 12px; border-radius: 999px; background: #3a2a46; color: #f1d7e6; font: 400 18px/1 var(--gta); letter-spacing: .05em; text-transform: uppercase; }
.tc-state.in { background: var(--tc-ok); color: #fff; box-shadow: 0 0 20px rgba(111, 211, 111, .5); }
.tc-status .tc-link { color: var(--yellow); font-size: 15px; }
.tc-stars { margin: 4px 0 0; font: 400 24px/1 var(--gta); letter-spacing: .12em; color: var(--yellow); -webkit-text-stroke: 1px #3a2a00; text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.tc-goal { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 16px; background: var(--vc-night); border: 2.5px solid var(--vc-pink); border-radius: 12px; box-shadow: 0 0 24px rgba(255, 79, 163, .3); }
.tc-goal > p:first-child { grid-column: 1 / -1; margin: 0; font: 700 15px/1.4 var(--body); color: #f1d7e6; }
.tc-goal b { color: var(--yellow); }
.tc-goal-bar { height: 14px; background: #2b1a3d; border: 2px solid #000; border-radius: 999px; overflow: hidden; }
.tc-goal-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, #ff4fa3 0 10px, #ff8a3d 10px 20px); }
.tc-goal.hit .tc-goal-bar i { background: repeating-linear-gradient(-45deg, #6fd36f 0 10px, #4fb84f 10px 20px); }
.tc-goal-n { margin: 0; font: 400 20px/1 var(--gta); color: #fff; }
.tc-d em { font-style: normal; font-size: 15px; line-height: 1.2; }
.tc-d.boss { box-shadow: 0 0 0 3px var(--vc-pink); }
.tc-warn { display: grid; gap: 8px; }
.tc-warn p { margin: 0; padding: 10px 14px; background: #ffe08a; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px; font: 800 15px/1.4 var(--body); }

/* ---------- mission 1 ---------- */
.tc-mission { padding: clamp(18px, 3vw, 28px); background: var(--kraft); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--tc-shadow); }
.tc-mission-h { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 14px; margin-bottom: 12px; }
.tc-mission-h .gv-mission, .tc-mission-h h2 { grid-column: 1 / -1; }
.tc-mission-h h2 { margin: 2px 0 6px; font: 400 clamp(36px, 5vw, 56px)/.95 var(--gta); text-transform: uppercase; }
.tc-mission.passed .tc-mission-h h2 { color: var(--tc-ok); }
.tc-bar { height: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.tc-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #6fd36f 0 10px, #4fb84f 10px 20px); transition: width .6s ease; }
.tc-m1-n { font: 400 26px/1 var(--gta); }
.tc-tasks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-task { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--tc-paper);
  border: 2.5px solid var(--ink); border-left-width: 9px; border-radius: 10px; }
.tc-task.is-done { border-left-color: var(--tc-ok); background: #eefae6; }
.tc-task.is-wait { border-left-color: var(--tc-wait); }
.tc-task.is-miss { border-left-color: var(--tc-miss); }
.tc-task.is-todo, .tc-task.is-later { border-left-color: var(--tc-todo); }
.tc-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; font: 400 22px/1 var(--gta); }
.tc-task.is-done .tc-ic { background: var(--tc-ok); color: #fff; }
.tc-task h3 { margin: 0; font: 400 21px/1.1 var(--gta); text-transform: uppercase; letter-spacing: .02em; }
.tc-task p { margin: 3px 0 0; font: 700 14.5px/1.4 var(--body); color: #3b3833; }
.tc-pill { display: inline-block; margin-top: 6px !important; padding: 3px 9px; border-radius: 999px; font: 800 12.5px/1.3 var(--body) !important; letter-spacing: .02em; color: #fff !important; background: var(--tc-todo); }
.is-done .tc-pill { background: var(--tc-ok); }
.is-wait .tc-pill { background: var(--tc-wait); color: var(--ink) !important; }
.is-miss .tc-pill { background: var(--tc-miss); }
.tc-code { padding: 0 5px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 4px; font: 400 15px/1.3 var(--type); letter-spacing: .08em; }
.tc-acts { display: grid; gap: 6px; justify-items: end; }
.tc-task.is-done .tc-acts { display: none; }
.tc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; cursor: pointer; background: var(--yellow); color: var(--ink) !important;
  border: 2.5px solid var(--ink); border-radius: 10px; font: 400 17px/1.1 var(--marker); text-decoration: none !important; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); }
.tc-btn.alt { background: #8fd3ff; }
.tc-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tc-fine { margin: 12px 0 0; font: 400 17px/1.35 var(--hand); color: #4a3a1c; }

/* ---------- ticketmaxxing ---------- */
.tc-h2 { margin: 6px 0 -6px; text-align: center; font: 400 clamp(44px, 6vw, 80px)/.95 var(--gta); text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #ffd23f 60%, #ff8a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #1a0b24; paint-order: stroke fill; filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .5)); }
.tc-h2 i { display: block; font: 400 22px/1.2 var(--hand); color: #f1d7e6; -webkit-text-stroke: 0; background: none; -webkit-background-clip: initial; background-clip: initial; letter-spacing: .06em; }
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.tc-tile { display: grid; gap: 10px; padding: 16px 18px 18px; background: var(--tc-paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px 14px 10px 12px; box-shadow: var(--tc-shadow); }
.tc-tile > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.tc-tile h3 { margin: 0; font: 400 24px/1 var(--gta); text-transform: uppercase; letter-spacing: .02em; }
.tc-tile .gv-t { font: 400 30px/1 var(--gta); color: var(--red); }
.tc-tile .tc-sm { color: #4a4a52; }
.tc-tile .tc-btn { justify-self: start; }
.tc-daily { grid-column: 1 / -1; }
.tc-today { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-day-task { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; padding: 10px 12px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; }
.tc-day-task > b { font: 400 28px/1 var(--gta); color: var(--tc-todo); }
.tc-day-task.ok { background: #eefae6; }
.tc-day-task.ok > b { color: var(--tc-ok); }
.tc-day-task h4 { margin: 0; font: 400 19px/1.1 var(--gta); text-transform: uppercase; }
.tc-day-task p { margin: 2px 0 0; font: 700 13.5px/1.35 var(--body); color: #4a4a52; }
.tc-day-task .tc-btn { grid-column: 2; justify-self: start; min-height: 36px; font-size: 15px; }
.tc-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); gap: 6px; margin: 0; padding: 2px 0 4px; list-style: none; overflow-x: auto; }
.tc-d { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.tc-d i { font: 400 12px/1 var(--type); font-style: normal; color: #6a655c; }
.tc-d b { font: 400 22px/1 var(--gta); }
.tc-d span { font-size: 15px; line-height: 1.2; filter: grayscale(1); opacity: .22; }
.tc-d span.on { filter: none; opacity: 1; }
.tc-d.today { background: var(--yellow); box-shadow: 0 0 0 3px var(--ink); }
.tc-d.past:not(:has(span.on)) { background: #eee7d6; }
.tc-big { margin: 0; font: 700 15px/1.2 var(--body); }
.tc-big b { font: 400 40px/1 var(--gta); }
.tc-rank { margin: 0; font: 400 26px/1 var(--gta); text-transform: uppercase; color: #6b3fa0; }
.tc-rank em { font-style: normal; color: var(--red); }
.tc-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.tc-ladder li { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 2px solid var(--ink); border-radius: 8px; background: #eee7d6; color: #8a8170; text-align: center; }
.tc-ladder li.on { background: var(--yellow); color: var(--ink); }
.tc-ladder b { font: 400 17px/1 var(--gta); }
.tc-ladder span { font: 700 11px/1.15 var(--body); }
.tc-ladder em { font: 400 16px/1 var(--gta); font-style: normal; color: var(--red); }
.tc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-two p { margin: 0; padding: 8px 10px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; font: 700 14px/1.2 var(--body); }
.tc-two b { display: block; font: 400 36px/1 var(--gta); color: var(--red); }
.tc-friends .gv-link { display: flex; gap: 8px; }
.tc-friends .gv-link input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 2.5px solid var(--ink); border-radius: 10px; font: 400 14px/1.2 var(--type); background: #fff; color: var(--ink); }
.tc-friends .gv-link button, .tc-pfp .gv-prompt button { flex: none; padding: 8px 12px; cursor: pointer; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 10px; font: 400 16px/1 var(--marker); color: var(--ink); }
.tc-ol { margin: 0; padding-left: 22px; font: 700 14.5px/1.45 var(--body); }
.tc-ol li + li { margin-top: 4px; }
.tc-pfp .gv-prompt { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.tc-pfp .gv-prompt code { flex: 1; padding: 8px 10px; background: #fff; border: 2px dashed var(--ink); border-radius: 8px; font: 400 13.5px/1.4 var(--type); }
.tc-tile .tc-pill { justify-self: start; margin: 0 !important; color: var(--ink) !important; background: #ffe08a; font-size: 13.5px !important; padding: 5px 10px; }
.tc-tile .tc-pill.tc-pfp-approved { background: #bff0ad; }
.tc-tile .tc-pill.tc-pfp-changed { background: #ffc2c9; }
.tc-tile .tc-pill.tc-pfp-declined { background: #ffc2c9; }
.tc-quicklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tc-quicklist li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; }
.tc-quicklist li.ok { background: #eefae6; }
.tc-quicklist li > span { font-size: 24px; }
.tc-quicklist h4 { margin: 0; font: 400 18px/1.1 var(--gta); text-transform: uppercase; }
.tc-quicklist p { margin: 2px 0 0; font: 700 13px/1.35 var(--body); color: #4a4a52; }
.tc-quicklist li > b { font: 400 26px/1 var(--gta); color: var(--tc-ok); }
.tc-quicklist .tc-btn { min-height: 36px; font-size: 15px; padding: 6px 10px; }
.tc-receipt { background: #fffdf6; font-family: var(--type); }
.tc-lines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tc-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 2px dotted #b9b1a0; font: 400 16px/1.2 var(--type); }
.tc-lines li b { font: 400 20px/1 var(--gta); }
.tc-lines li.tot { border-bottom: 0; border-top: 3px solid var(--ink); margin-top: 4px; padding-top: 10px; }
.tc-lines li.tot span { font-weight: 700; }
.tc-lines li.tot b { font-size: 34px; color: var(--red); }

/* ---------- details, sign out ---------- */
.tc-details { padding: 14px 18px; background: rgba(12, 6, 22, .7); border: 2.5px solid rgba(255, 255, 255, .25); border-radius: 12px; }
.tc-details summary { cursor: pointer; font: 400 20px/1 var(--gta); text-transform: uppercase; letter-spacing: .05em; }
.tc-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 14px 0; }
.tc-dl dt { font: 400 13px/1 var(--gta); letter-spacing: .1em; text-transform: uppercase; color: #b9a6c9; }
.tc-dl dd { margin: 4px 0 0; font: 700 16px/1.3 var(--body); overflow-wrap: anywhere; }
.tc-dl code { font: 400 13px/1.3 var(--type); }
.tc-out, .tc-safe { position: relative; z-index: 2; text-align: center; margin: 18px 0 0; }
.tc-out .tc-link { color: var(--yellow); }
.tc-safe { font: 700 14px/1.4 var(--body); color: #cdbfd8; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .tc-hud { grid-template-columns: 1fr 1fr; }
  .tc-hud .tc-who { grid-column: 1 / -1; border-bottom: 2px dashed rgba(255, 255, 255, .18); }
  .tc-hud > div + div { border-left: 0; }
  .tc-hud .tc-status { border-left: 2px dashed rgba(255, 255, 255, .18) !important; }
  .tc-grid { grid-template-columns: 1fr; }
  .tc-today { grid-template-columns: 1fr; }
  .tc-task { grid-template-columns: 38px 1fr; }
  .tc-ic { width: 36px; height: 36px; font-size: 19px; }
  .tc-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .tc-mission-h { grid-template-columns: 1fr auto; }
}
@media (max-width: 420px) {
  .tc-choice { grid-template-columns: 1fr; }
  .tc-ladder { grid-template-columns: repeat(2, 1fr); }
  .tc-hud { grid-template-columns: 1fr; }
  .tc-hud .tc-status { border-left: 0 !important; border-top: 2px dashed rgba(255, 255, 255, .18); justify-items: center; text-align: center; }
}

/* ---------- the sticky XP bar (GTA HUD: your next move) ---------- */
body.tc-has-xp { padding-bottom: 104px; }
.tc-xp { position: fixed; z-index: 40; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(820px, calc(100% - 20px)); }
.tc-xp[hidden] { display: none; }
.tc-xp-in { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 12px 10px 16px;
  background: rgba(12, 6, 22, .92); color: #f1d7e6; border: 3px solid #000; border-radius: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 2px var(--vc-pink), 0 10px 30px rgba(0, 0, 0, .55), 0 0 28px rgba(255, 79, 163, .35); }
.tc-xp-lvl { text-align: center; min-width: 92px; }
.tc-xp-rank { margin: 0; font: 400 19px/1 var(--gta); text-transform: uppercase; letter-spacing: .03em; color: var(--gold, #f2c14e); -webkit-text-stroke: 1px #2a1a00; paint-order: stroke fill; white-space: nowrap; }
.tc-xp-stars { margin: 4px 0 0; font: 400 15px/1 var(--gta); letter-spacing: .1em; color: var(--yellow); }
.tc-xp-mid { min-width: 0; }
.tc-xp-label { margin: 0 0 5px; font: 400 18px/1.1 var(--gta); text-transform: uppercase; letter-spacing: .02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-xp-bar { position: relative; height: 13px; background: #2b1a3d; border: 2px solid #000; border-radius: 999px; overflow: hidden; }
.tc-xp-bar i { display: block; height: 100%; width: 3%; border-radius: 999px; background: repeating-linear-gradient(-45deg, #6fd36f 0 9px, #4fb84f 9px 18px);
  background-size: 26px 26px; animation: tc-xp-run 1.2s linear infinite; transition: width .9s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px rgba(111, 211, 111, .6); }
@keyframes tc-xp-run { to { background-position: 26px 0; } }
.tc-xp-sub { display: flex; justify-content: space-between; gap: 10px; margin: 5px 0 0; font: 700 12.5px/1.2 var(--body); color: #cdbfd8; }
.tc-xp-sub > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-xp-dots { display: inline-flex; gap: 5px; flex: none; }
.tc-xp-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #5a4a6a; cursor: pointer; }
.tc-xp-dots button.on { background: var(--vc-pink); }
.tc-xp-cta { min-height: 44px; font-size: 16px; padding: 8px 14px; }
.tc-xp.swap .tc-xp-label, .tc-xp.swap .tc-xp-rank { animation: tc-xp-in .45s ease; }
@keyframes tc-xp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tc-rankup .gv-passed-h { color: var(--yellow); }
@media (max-width: 560px) {
  body.tc-has-xp { padding-bottom: 128px; }
  .tc-xp-in { grid-template-columns: 1fr auto; gap: 8px 10px; padding: 9px 10px 10px 12px; }
  .tc-xp-lvl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; min-width: 0; text-align: left; }
  .tc-xp-stars { margin: 0; }
  .tc-xp-label { font-size: 15px; white-space: normal; line-height: 1.15; }
  .tc-xp-sub > span:first-child { white-space: normal; }
  .tc-xp-cta { min-height: 40px; font-size: 14px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { .tc-xp-bar i { animation: none; } .tc-xp.swap .tc-xp-label, .tc-xp.swap .tc-xp-rank { animation: none; } }

/* ---------- "Check now" ---------- */
.tc-check { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
  background: #fff; color: var(--ink); border: 2.5px dashed var(--ink); border-radius: 10px; font: 400 15px/1.1 var(--marker); }
.tc-check:hover { background: #fff6c9; }
.tc-check[disabled] { opacity: .65; cursor: wait; }
.tc-day-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tc-day-task .tc-day-acts { grid-column: 2; }
.tc-note-live { grid-column: 1 / -1; margin: 6px 0 0 !important; padding: 5px 10px; border-radius: 8px; background: #ffe08a; color: var(--ink) !important; font: 800 13.5px/1.35 var(--body) !important; }
.tc-note-live.ok { background: #bff0ad; }
.tc-warn .tc-note-live { margin: 0 !important; }
.tc-goal-n { display: inline-flex; gap: 4px; }
.tc-goal-n span { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 4px; border-radius: 6px; background: #2b1a3d; border: 2px solid #000; font: 400 13px/1 var(--gta); color: #b9a6c9; }
.tc-goal-n span.on { background: #1f4d22; border-color: #6fd36f; color: #bff0ad; }

/* ---------- the ticket menu: what you do, how many tickets, what you have ---------- */
.tc-menu { padding: 16px 18px 14px; background: var(--tc-paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--tc-shadow); }
.tc-menu > header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.tc-menu h3 { margin: 0; font: 400 28px/1 var(--gta); text-transform: uppercase; }
.tc-menu > header p { margin: 0; font: 400 19px/1 var(--hand); color: #6a655c; }
.tc-menu-list { margin: 0; padding: 0; list-style: none; }
.tc-menu-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto minmax(150px, auto); gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 2px dotted #c9c0ad; }
.tc-menu-list li.have { background: linear-gradient(90deg, rgba(111, 211, 111, .18), transparent 60%); }
.tc-m-ic { font-size: 24px; text-align: center; }
.tc-m-what b { display: block; font: 400 19px/1.1 var(--gta); text-transform: uppercase; letter-spacing: .02em; }
.tc-m-what i { display: block; margin-top: 2px; font: 700 13px/1.3 var(--body); font-style: normal; color: #6a655c; }
.tc-m-get { justify-self: end; padding: 6px 10px; background: var(--red); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px; font: 400 18px/1 var(--gta); letter-spacing: .02em; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.tc-m-you { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tc-m-you em { font: 400 17px/1 var(--gta); font-style: normal; color: #1f7a33; white-space: nowrap; }
.tc-m-you .tc-btn, .tc-m-you .tc-check { min-height: 36px; padding: 5px 12px; font-size: 15px; }
.tc-menu-tot { margin: 12px 0 0; text-align: right; font: 400 20px/1.2 var(--gta); text-transform: uppercase; }
.tc-menu-tot b { font-size: 34px; color: var(--red); }
.tc-menu-tot span { display: block; font: 700 13px/1.3 var(--body); text-transform: none; color: #6a655c; }
.tc-n.locked { color: #a0d9a0; opacity: .75; }
@media (max-width: 640px) {
  .tc-menu-list li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 10px; }
  .tc-m-you { grid-column: 2 / -1; justify-content: flex-start; }
  .tc-m-get { font-size: 16px; }
}

/* ---------- the XP bar, v2: tickets on the left, one next move ---------- */
.tc-xp-tix { display: grid; justify-items: center; min-width: 96px; line-height: 1; }
.tc-xp-tix b { font: 400 40px/.9 var(--gta); color: #6fd36f; -webkit-text-stroke: 2px #0b2a0b; paint-order: stroke fill; text-shadow: 2px 3px 0 rgba(0, 0, 0, .6); }
.tc-xp-tix b.locked { color: #a0d9a0; opacity: .8; }
.tc-xp-tix b.locked::after { content: " 🔒"; font-size: 18px; -webkit-text-stroke: 0; }
.tc-xp-tix span { margin-top: 2px; font: 400 12px/1 var(--gta); letter-spacing: .14em; text-transform: uppercase; color: #b9a6c9; }
.tc-xp-tix i { margin-top: 3px; font: 400 14px/1 var(--gta); font-style: normal; letter-spacing: .1em; color: var(--yellow); }
.tc-xp-sub { display: block; }
@media (max-width: 560px) {
  .tc-xp-tix { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; min-width: 0; }
  .tc-xp-tix b { font-size: 30px; }
}

/* ---------- the share sheet ---------- */
.tc-share-btn { margin: 8px 0 4px; min-height: 38px; font-size: 15px; padding: 6px 12px; background: var(--vc-pink); color: #fff !important; }
.tc-share { --tc-paper: #fbf6e8; --tc-shadow: 6px 7px 0 rgba(0, 0, 0, .55); --vc-pink: #ff4fa3; --gta: "Anton", Impact, "Arial Narrow Bold", sans-serif; }
.tc-share { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8, 4, 14, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tc-share[hidden] { display: none; }
body.tc-sheet-open { overflow: hidden; }
.tc-share-in { position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 12px; padding: 22px 22px 18px;
  background: var(--tc-paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 0 0 3px var(--vc-pink), var(--tc-shadow); }
.tc-share-in h2 { margin: 0; font: 400 34px/1 var(--gta); text-transform: uppercase; }
.tc-share-x { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font: 400 34px/1 var(--gta); color: var(--ink); }
.tc-share-card { position: relative; aspect-ratio: 1200 / 630; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #160c27; }
.tc-share-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-share-card img { transition: opacity .35s ease; }
.tc-share-card img.loading { opacity: 0; }
.tc-share-card img:not([src]) { visibility: hidden; }
.tc-share-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tc-share-acts .btn-red { font-size: 22px; padding: 12px 20px 10px; text-decoration: none; }
.tc-share-link { display: flex; gap: 8px; }
.tc-share-link input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 2.5px solid var(--ink); border-radius: 10px; font: 400 14px/1.2 var(--type); background: #fff; color: var(--ink); }
.tc-share-link button { flex: none; padding: 8px 12px; cursor: pointer; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 10px; font: 400 16px/1 var(--marker); color: var(--ink); }
.tc-share-in .gv-mission { color: #c21f6a; }
.tc-share-in .tc-sm { color: #4a4a52; }

/* the header: "prizes and rules" on its own line on phones */
@media (max-width: 600px) {
  .tc-sub-sep { display: none; }
  .tc-sub a { display: table; margin: 3px auto 0; }
}

/* the share card while it's being drawn (5-7 s): a card-shaped skeleton + a GTA-style loading bar */
.tc-cardload { position: absolute; inset: 0; overflow: hidden; transition: opacity .35s ease;
  background: radial-gradient(120% 90% at 85% 110%, rgba(255, 79, 163, .35), transparent 60%), linear-gradient(180deg, #170c29 0%, #24103d 60%, #3a1340 100%); }
.tc-cardload.done { opacity: 0; pointer-events: none; }
.tc-cardload[hidden] { display: none; }
.tc-cardload-sk i { position: absolute; display: block; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tc-cardload-sk i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); animation: tc-shimmer 1.4s ease-in-out infinite; }
.tc-cardload-sk .sk-kick { left: 5%; top: 9%; width: 30%; height: 3.6%; background: rgba(255, 79, 163, .28); }
.tc-cardload-sk .sk-handle { left: 5%; top: 16%; width: 34%; height: 9%; }
.tc-cardload-sk .sk-num { left: 5%; top: 29%; width: 14%; height: 27%; background: rgba(103, 214, 107, .22); }
.tc-cardload-sk .sk-tix { left: 22%; top: 34%; width: 16%; height: 8%; }
.tc-cardload-sk .sk-line { left: 22%; top: 46%; width: 13%; height: 4.5%; background: rgba(255, 210, 63, .22); }
.tc-cardload-sk .sk-cta { left: 5%; top: 62%; width: 36%; height: 5%; }
.tc-cardload-sk .sk-ring { right: 7%; top: 9%; width: 25%; aspect-ratio: 1; border-radius: 50%; background: transparent;
  border: clamp(3px, .8vw, 6px) solid rgba(255, 79, 163, .45); box-shadow: inset 0 0 0 clamp(3px, .7vw, 5px) rgba(255, 210, 63, .35); }
.tc-cardload-sk .sk-ring::after { border-radius: 50%; }
.tc-cardload-bar { position: absolute; left: 5%; right: 5%; bottom: 8%; display: grid; gap: clamp(4px, 1vw, 8px); }
.tc-cardload-bar p { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font: 400 clamp(13px, 2.6vw, 20px)/1 var(--gta); text-transform: uppercase; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.tc-cardload-bar b { font: 400 clamp(18px, 4.2vw, 34px)/1 var(--gta); color: var(--yellow, #ffd23f); font-variant-numeric: tabular-nums; }
.tc-cardload-track { height: clamp(8px, 1.8vw, 14px); border: 2px solid #0d0e0f; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .55); }
.tc-cardload-track i { display: block; height: 100%; width: 0; border-radius: 99px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 16px), linear-gradient(90deg, #ff4fa3, #ffd23f);
  background-size: 22.6px 22.6px, 100% 100%; animation: tc-stripes .7s linear infinite; transition: width .2s linear; }
.tc-cardload-retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 86%; padding: 10px 16px; cursor: pointer; text-align: center;
  background: var(--yellow, #ffd23f); color: #0d0e0f; border: 2.5px solid #0d0e0f; border-radius: 10px; box-shadow: 3px 3px 0 var(--vc-pink);
  font: 800 clamp(13px, 3.6vw, 15px)/1.25 var(--body, system-ui); }
.tc-cardload.err .tc-cardload-bar { display: none; }
.tc-cardload.err .tc-cardload-sk i::after { animation: none; }
@keyframes tc-shimmer { to { transform: translateX(100%); } }
@keyframes tc-stripes { to { background-position: 22.6px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .tc-cardload-sk i::after, .tc-cardload-track i { animation: none; }
}

/* phones: link boxes at 16px so iOS Safari doesn't zoom the page when they're tapped */
@media (max-width: 760px) { .tc-friends .gv-link input, .tc-share-link input { font-size: 16px; } }
/* short phones (iPhone SE size): a slimmer ticket bar */
@media (max-width: 560px) and (max-height: 700px) {
  body.tc-has-xp { padding-bottom: 100px; }
  .tc-xp { bottom: max(6px, env(safe-area-inset-bottom)); }
  .tc-xp-in { padding: 7px 9px 8px 10px; gap: 5px 8px; }
  .tc-xp-label { font-size: 14px; margin-bottom: 4px; }
  .tc-xp-sub { display: none; }
}

/* the Supanova button in the wizard (edvin 19 Nov: "make the supanova link visible ... a small button") */
.tc-sn-go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 8px 14px;
  background: #0d0e0f; color: #ffd23f !important; border: 2px solid #0d0e0f; border-radius: 10px; box-shadow: 3px 3px 0 #ff4fa3;
  font: 800 16px/1.2 var(--body, system-ui); text-decoration: none !important; }   /* no wavy link underline inside the button */
.tc-sn-go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #ff4fa3; }
.tc-sn-go.small { min-height: 40px; margin-top: 0; font-size: 15px; }
.tc-sn-yes { margin: 0; }
.tc-sn-yes[hidden] { display: none; }

/* the robot check, inline under the email field (edvin 19 Nov: the corner box was small and slow on phones) */
.tc-captcha { margin: 2px 0 4px; }
.tc-captcha iframe { max-width: 100%; }
.tc-captcha-hint { margin: 4px 0 0; padding: 8px 10px; background: #fff3c4; border: 2px solid var(--ink, #0d0e0f); border-radius: 10px;
  font: 800 15px/1.3 var(--body, system-ui); color: var(--ink, #0d0e0f); }
.tc-captcha-hint[hidden] { display: none; }
