/*
 * The landing hero machine (partials/landing-machine.blade.php, js/landing-machine.js):
 * sources -> constellation filter -> phone with Telegram posts. Everything is scoped
 * under .machine; colours come from landing.css tokens plus the machine's own below.
 */
.machine {
  --tg-bg: #101418; --tg-head: #17212b; --tg-bubble: #2b2b2d; --tg-name: #6fc35a; --tg-star: rgba(255, 255, 255, .35);
  --fx-ink: #f5f5f7; --fx-accent: #CCFF00; --fx-b: #64d2ff; --fx-warn: #ffd60a; --fx-shell: #2b2b30;
  --m-surface-2: #121214;
}
:root[data-theme="light"] .machine {
  --tg-bg: #dfe6ea; --tg-head: #ffffff; --tg-bubble: #ffffff; --tg-name: #3a9a2c; --tg-star: rgba(0, 0, 0, .12);
  --fx-ink: #1d1d1f; --fx-accent: #5a8a00; --fx-b: #0a84ff; --fx-warn: #d99a00; --fx-shell: #e8e8ed;
  --m-surface-2: #fbfbfd;
}
.machine[hidden] { display: none; }
.machine.frozen * { animation: none !important; transition: none !important; }
.machine .mono { display: grid; place-items: center; flex: none; font: 700 8px/1 var(--mono); color: #fff; background: hsl(var(--h, 210) 40% 38%); border-radius: 4px; }
.machine {
  position: relative; margin: 46px auto 0; height: 540px; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 259px; column-gap: 56px; /* 259 x 540 = the real 71.9 x 150 mm body */
}
.machine #fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.machine .panel { position: relative; background: var(--m-surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 0; }
.machine .src { display: grid; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.machine .src-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; }

.machine .news { display: flex; flex-direction: column; cursor: crosshair; }
.machine .news-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 16px 10px; border-bottom: 1px solid var(--border); font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.machine .news-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 60%, transparent); animation: lm-pulse 1.6s ease-out infinite; }
.machine .news-head .cnt { margin-left: auto; color: var(--text-3); font-weight: 500; letter-spacing: .04em; text-transform: none; }
@keyframes lm-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.machine .feed { position: relative; flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 34px), transparent);
          mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 34px), transparent); }
.machine .feed-list { position: absolute; left: 0; right: 0; top: 0; padding: 0 14px; will-change: transform; }
.machine .hl { display: flex; gap: 11px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.machine .hl .th { flex: none; width: 46px; height: 46px; border-radius: 9px; position: relative; overflow: hidden; display: grid; place-items: center;
  font: 700 11px/1 var(--mono); letter-spacing: .02em; color: rgba(255, 255, 255, .92);
  background: linear-gradient(135deg, hsl(var(--h1) 62% 42%) 0 50%, hsl(var(--h2) 58% 34%) 50% 100%); }
.machine .hl .th::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .35)); }
.machine .hl .th span { position: relative; z-index: 1; }
.machine .hl .th.crest { background: var(--m-surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.machine .hl .th.crest::after { content: none; }
.machine .hl .th.crest img { width: 30px; height: 30px; object-fit: contain; }
.machine .hl .th.crest .mono { width: 46px; height: 46px; font-size: 11px; border-radius: 0; }
.machine .hl .bd { flex: 1; min-width: 0; }
.machine .hl small { display: flex; align-items: center; gap: 7px; font: 500 9.5px/1 var(--mono); color: var(--text-3); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; white-space: nowrap; overflow: hidden; }
.machine .hl small .tag { color: var(--text-2); font-weight: 600; }
.machine .hl small .brk { color: #fff; background: var(--bad); border-radius: 3px; padding: 2px 4px; font-weight: 700; }
.machine .hl small .ago { margin-left: auto; text-transform: none; letter-spacing: 0; }
.machine .hl small .ok { display: none; color: var(--accent-text); font-weight: 700; }
.machine .hl p { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.36; max-height: 2.72em; overflow: hidden; color: var(--text); transition: color .4s; }
.machine .hl.fresh { animation: lm-fresh 1.6s ease-out; }
@keyframes lm-fresh { from { background: color-mix(in srgb, var(--accent) 9%, transparent); } to { background: transparent; } }
.machine .w { display: inline-block; border-radius: 3px; transition: color .5s, background-color .5s; }
.machine .w.t { color: var(--text); background-color: color-mix(in srgb, var(--accent) 26%, transparent); transition: none; }
.machine .hl.scan p { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 20%, transparent), transparent) no-repeat; background-size: 55% 100%; animation: lm-sweep .65s linear; }
.machine .hl.scan .k, .machine .hl.read .k { color: var(--accent-text); }
.machine .hl.read p { color: var(--text-3); }
.machine .hl.read .th { filter: saturate(.25) brightness(.7); }
.machine .hl.read small .ok { display: inline; }
@keyframes lm-sweep { from { background-position: -120% 0; } to { background-position: 220% 0; } }

.machine .src-tips, .machine .pitch { display: flex; flex-direction: column; }
.machine .news-head.sm { padding: 10px 13px 9px; font-size: 9.5px; }
.machine .news-head .dot.on { background: var(--accent-text); box-shadow: none; animation: none; }
.machine .news-head .dot.cy { background: var(--good); }
.machine .tips { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.machine .tips::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(transparent, var(--m-surface-2)); }
.machine .tip { flex: none; display: flex; gap: 9px; align-items: flex-start; padding: 8px 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); animation: lm-tipIn .45s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
.machine .tip .av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; background: radial-gradient(circle at 30% 30%, hsl(var(--h) 80% 68%), hsl(var(--h) 70% 34%)); transition: box-shadow .3s; }
.machine .tip.sent .av { box-shadow: 0 0 0 2px var(--accent-text); }
.machine .tip div { flex: 1; min-width: 0; }
.machine .tip b { display: block; font-size: 11.5px; font-weight: 600; }
.machine .tip .bar { display: block; height: 6px; border-radius: 3px; background: var(--text-3); opacity: .6; filter: blur(2.5px); margin-top: 6px; }
@keyframes lm-tipIn { from { max-height: 0; opacity: 0; padding-block: 0; margin-bottom: -8px; } to { max-height: 64px; opacity: 1; } }

.machine .pitch canvas { display: block; width: 100%; flex: 1; min-height: 0; }

.machine .gates { position: relative; min-height: 0; }
.machine .gates canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.machine .gates .cap { position: absolute; top: -2px; transform: translateX(-50%); font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.machine .star { position: absolute; left: 0; top: 0; will-change: transform; }
.machine .star .in { position: relative; display: grid; place-items: center; transition: box-shadow .6s, border-color .6s, background-color .6s, color .6s, opacity .6s; }
.machine .star .tl { width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 4px; border: 1.5px solid transparent; opacity: .4; }
.machine .star .tl img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); transition: filter .6s; }
.machine .star .sv { width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 13px; color: #fff; opacity: .4; border: 1.5px solid transparent;
  background: radial-gradient(circle at 30% 30%, hsl(var(--h) 80% 68%), hsl(var(--h) 70% 34%)); }
.machine .star .pl { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text-3); background: var(--bg); border: 1px solid var(--border); opacity: .7; }
.machine .star.on .in { opacity: 1; border-color: var(--accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.machine .star.on .tl img { filter: none; }
.machine .star.on .pl { color: var(--text); background: var(--accent-soft); }
.machine .star .nm { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 5px; font-size: 9.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; transition: color .6s; }
.machine .star.on .nm { color: var(--text-2); }
.machine .star .in.hit { animation: lm-starHit .5s ease; }
.machine .star .in.miss { animation: lm-starMiss .4s ease; }
@keyframes lm-starHit { 40% { transform: scale(1.25); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 30px var(--accent); } }
@keyframes lm-starMiss { 50% { transform: scale(.85); opacity: .2; } }

.machine .phone { position: relative; border-radius: 50px; padding: 3.5px; min-height: 0; display: flex;
  /* iPhone 18 Pro (as leaked), Dark Cherry: anodised aluminium rim */
  background: linear-gradient(135deg, #b8455d 0%, #6e1426 18%, #3f0a16 42%, #8a2238 62%, #2e0610 82%, #7a1a2f 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 190, 205, .32), var(--shadow), 0 30px 60px -20px rgba(160, 30, 60, .3); }
.machine .phone::before, .machine .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #3f0a16, #9a2a42 60%, #5a1020); }
.machine .phone::before { left: -3px; top: 96px; height: 28px; box-shadow: 0 44px 0 #6e1426, 0 98px 0 #6e1426; }
.machine .phone::after { right: -3px; top: 150px; height: 62px; }
.machine .phone .side-btns { position: absolute; right: -3px; top: 300px; width: 4px; height: 38px; border-radius: 2px; background: linear-gradient(90deg, #5a1020, #9a2a42); }
.machine .screen { position: relative; flex: 1; min-width: 0; border-radius: 46.5px; overflow: hidden; display: flex; flex-direction: column; background: var(--tg-bg); border: 7px solid #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.machine .screen::before { content: ""; position: absolute; top: 11px; left: 50%; width: 56px; height: 21px; margin-left: -28px; border-radius: 11px; background: #000; z-index: 3; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.machine .screen::after { content: ""; position: absolute; top: 17.5px; left: 50%; margin-left: 11px; width: 8px; height: 8px; border-radius: 50%; z-index: 4; background: radial-gradient(circle at 35% 35%, #2a3a5a, #0a0d14 60%); }
.machine .sbar { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 4px 26px 0 30px; background: var(--tg-head); font-size: 13px; font-weight: 600; color: var(--text); flex: none; }
.machine .sbar .ic { display: flex; gap: 5px; align-items: center; }
.machine .sbar .sig { display: flex; gap: 1.5px; align-items: flex-end; height: 10px; }
.machine .sbar .sig i { width: 3px; border-radius: 1px; background: currentColor; }
.machine .sbar .bat { width: 22px; height: 11px; border-radius: 3.5px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); padding: 1.5px; position: relative; }
.machine .sbar .bat::before { content: ""; display: block; height: 100%; width: 78%; border-radius: 1.5px; background: currentColor; }
.machine .sbar .bat::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: color-mix(in srgb, currentColor 45%, transparent); }
.machine .tg-head { display: flex; gap: 10px; align-items: center; padding: 4px 14px 11px; background: var(--tg-head); border-bottom: 1px solid var(--border); }
.machine .tg-logo { width: 34px; height: 34px; flex: none; object-fit: contain; transform: scale(1.18); }
.machine .tg-head i { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; }
.machine .tg-head b { display: block; font-size: 14px; }
.machine .tg-head span { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }
.machine .chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; z-index: 1; background: linear-gradient(var(--tg-bg), transparent); }
.machine .chat { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 8px 12px 4px;
  background-image: radial-gradient(circle at 20% 30%, var(--tg-star) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 80%, var(--tg-star) 0 .8px, transparent 1.3px), radial-gradient(circle at 45% 60%, var(--tg-star) 0 .6px, transparent 1.1px);
  background-size: 90px 110px, 130px 70px, 60px 85px; }
.machine .msg { flex: none; display: flex; align-items: flex-end; gap: 4px; }
.machine .msg > .av { flex: none; width: 28px; height: 28px; object-fit: contain; transform: scale(1.18); }
.machine .bub { position: relative; min-width: 0; max-width: calc(100% - 30px); background: var(--tg-bubble); border-radius: 13px 13px 13px 4px; padding: 6px 10px 5px; font-size: 12.5px; line-height: 1.45; color: var(--text); box-shadow: 0 1px 1px rgba(0, 0, 0, .14); }
.machine .bub .nm { display: block; font-size: 12px; font-weight: 600; color: var(--tg-name); }
.machine .bub .ln { display: flex; align-items: center; gap: 6px; min-width: 0; }
.machine .bub .ln img { width: 15px; height: 15px; object-fit: contain; flex: none; }
.machine .bub .ln img.lg { border-radius: 3px; background: #fff; padding: 1px; }
.machine .bub .dt { color: var(--text-2); font-variant-numeric: tabular-nums; }
.machine .bub .tms { font-family: var(--mono); font-size: 11.5px; flex-wrap: wrap; row-gap: 0; }
.machine .bub .q { display: flex; align-items: center; gap: 8px; margin: 7px 0 6px; padding: 3px 8px; border-left: 3px solid var(--tg-name); border-radius: 4px; background: color-mix(in srgb, var(--tg-name) 13%, transparent); width: fit-content; max-width: 100%; }
.machine .bub .q i { font-style: normal; color: var(--tg-name); font-weight: 700; font-size: 14px; line-height: 1; }
.machine .bub .rs { display: flex; align-items: center; gap: 3px; min-height: 19px; }
.machine .ck { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.machine .ck.w { background: #2fb94a; } .machine .ck.l { background: #e5484d; } .machine .ck.p { background: #4a8fd8; }
.machine .ck:nth-child(2) { transition-delay: .08s; } .ck:nth-child(3) { transition-delay: .16s; }
.machine .bub .sc { margin-left: 5px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s .2s; }
.machine .graded .ck, .machine .graded .sc { opacity: 1; transform: none; }
.machine .bub time { margin-left: auto; padding-left: 14px; font-size: 10px; color: var(--text-3); }

@media (max-width: 1120px) {
  .machine { column-gap: 38px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 259px; }
}
@media (max-width: 900px) {
  .machine { height: auto; display: flex; flex-direction: column; gap: 46px; margin-top: 36px; }
  .machine .src { display: flex; flex-direction: column; gap: 14px; }
  .machine .news { height: 330px; }
  .machine .src-row { height: 190px; }
  .machine .gates { height: 440px; }
  .machine .phone { width: min(100%, 280px); height: auto; aspect-ratio: 71.9 / 150; margin: 0 auto; }
}

/* real names can be long: keep them inside their row */
.machine .tip b, .machine .bub .ln:not(.tms), .machine .hl small span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* both teams and their crests always on one row (LandingShowcase keeps the names short) */
.machine .bub .tms { font-family: var(--mono); font-size: 11.5px; line-height: 1.45; white-space: nowrap; }
.machine .bub .tms .tm { white-space: nowrap; }
.machine .bub .tms img, .machine .bub .tms .mono { display: inline-grid; width: 15px; height: 15px; object-fit: contain; vertical-align: -3px; margin: 0 5px; }
.machine .bub .tms .tm:first-child > :first-child { margin-left: 0; }
.machine .bub .ln .mono { width: 15px; height: 15px; font-size: 6.5px; }
.machine .star .tl .mono { width: 100%; height: 100%; font-size: 8px; }

