/* Terminals (#/terminals): a sci-fi "arms dealer" screen with up to 5 offers */
.term-page {
  --term: #3de0c6;
  --term-hi: #8ff5e4;
  --term-dim: rgba(61, 224, 198, .35);
  --term-faint: rgba(61, 224, 198, .08);
  --term-bg: #07100f;
  --term-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}

.term-screen { margin-bottom: 18px; }

/* ------------------------------------------------------------------ UP-Link laptop (a copy of CS2's terminal screen) */
.term-page {
  --ul-font: 'Barlow Semi Condensed', 'Rubik', sans-serif;
  --ul-mono: 'Share Tech Mono', ui-monospace, Consolas, monospace;
  --ul-screen: #101014;
  --ul-panel: #17171c;
  --ul-strip: #202027;
  --ul-strip-text: #9b9ba8;
  --ul-bub: #0e0e11;
  --ul-red: #ff3b3b;
  --ul-text: #f4f5f8;
  --ul-dim: #62626e;
  --ul-line: #34343f;
}
.ul-laptop {
  position: relative; padding: 24px 24px 34px; border-radius: 28px;
  background: linear-gradient(180deg, #1d1e23, #121316 55%, #0c0d0f);
  box-shadow: 0 0 0 1px #2c2d33, inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 6px #0a0a0c, 0 34px 70px -24px rgba(0, 0, 0, .95);
}
.ul-laptop::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 75, 75, .45), transparent);
}
.ul-emblem { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); display: flex; opacity: .35; filter: grayscale(1) brightness(1.4); }
.ul-emblem img { width: 20px; height: 20px; }
.ul-screen {
  position: relative; overflow: hidden; border-radius: 10px; font-family: var(--ul-font); color: var(--ul-text);
  background: linear-gradient(180deg, #141418, var(--ul-screen) 30%, #0c0c0f);
  box-shadow: inset 0 0 0 2px #0a0b0d, inset 0 0 80px rgba(0, 0, 0, .35);
}

/* top bar */
.ul-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 0 0 16px; background: #0f0f12; }
.ul-logo { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(255, 75, 75, .35)); }
.ul-brand { font-family: var(--display); font-size: 15px; letter-spacing: .32em; color: #8a8a96; }
.ul-brand b { font-weight: 400; color: var(--ul-red); opacity: .85; }
.ul-brand i { margin-left: .5em; font-family: var(--ul-mono); font-style: italic; font-size: 13px; letter-spacing: .4em; color: #4a4a55; }
.ul-serial { font-family: var(--ul-mono); font-size: 10px; letter-spacing: .1em; color: #4a4a55; }
.ul-sys { margin-left: auto; display: flex; align-items: center; gap: 14px; color: #d8d8e0; }
.ul-sys svg { width: 18px; height: 18px; }
.ul-batt { position: relative; width: 24px; height: 11px; border-radius: 2px; background: #34d399; box-shadow: 0 0 0 1px #0b0b0d; }
.ul-batt::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 5px; background: #34d399; }
.ul-sig { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.ul-sig b { width: 3px; background: #d8d8e0; }
.ul-sig b:nth-child(1) { height: 5px; }
.ul-sig b:nth-child(2) { height: 9px; }
.ul-sig b:nth-child(3) { height: 13px; opacity: .3; }
.ul-sig.is-off b { opacity: .25; }
.ul-x {
  width: 46px; height: 46px; border: 0; background: #15151a; color: #e4e4ea; font-size: 20px; cursor: pointer;
}
.ul-x:hover:not(:disabled) { background: var(--ul-red); color: #fff; }
.ul-x:disabled { cursor: default; color: #4a4a55; }

/* layout */
.ul-grid {
  display: grid; gap: 14px; padding: 8px 8px 8px;
  grid-template-columns: minmax(0, 35fr) 136px 92px minmax(0, 45fr);
  grid-template-rows: minmax(560px, auto) auto;
}
.ul-chat { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; min-height: 0; box-shadow: inset 0 0 0 1px #22222a; background: linear-gradient(180deg, #1b1b21, #17171c 70%, #141418); }
.ul-offer { grid-column: 2 / span 3; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }
.ul-exp { grid-column: 2; grid-row: 2; }
.ul-status { grid-column: 3; grid-row: 2; }
.ul-coll { grid-column: 4; grid-row: 2; min-width: 0; }
.ul-strip {
  margin: 0; padding: 5px 12px; background: var(--ul-strip); color: var(--ul-strip-text); box-shadow: inset 2px 0 0 var(--ul-red);
  font-family: var(--ul-mono); font-weight: 400; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ul-exp, .ul-status, .ul-coll { display: flex; flex-direction: column; background: var(--ul-panel); box-shadow: inset 0 0 0 1px #22222a; }
/* the "+" grid on the bottom panels */
.ul-cell {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 8px 12px;
  background: #111115 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Cpath d='M18 7v8M14 11h8' stroke='%2322222a' stroke-width='1'/%3E%3C/svg%3E") center / 36px 22px repeat;
}
.ul-exp [data-expire] { font-family: var(--ul-mono); font-size: 15px; letter-spacing: .08em; color: #e4e4ea; background: #111115; padding: 0 4px; }

/* status: holographic disc */
.ul-holo {
  width: 46px; height: 46px; border-radius: 50%; position: relative;
  background: conic-gradient(from 30deg, #9fe7ff, #c79cff, #ffb3d9, #fff2a8, #9dffc8, #9fe7ff);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 0 14px rgba(255, 59, 59, .3);
}
.ul-holo img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: contain; mix-blend-mode: multiply; opacity: .8; }
.ul-holo.is-live { animation: ul-holo 4s linear infinite; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 0 18px rgba(255, 59, 59, .35); }
.ul-holo.is-idle, .ul-holo.is-off { filter: grayscale(1) brightness(.55); }
@keyframes ul-holo { to { filter: hue-rotate(360deg); } }

/* collection catalog XP */
.ul-coll .ul-cell { justify-content: flex-start; }
.ul-coll-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #0f1218; border: 2px solid #d8d8de; padding: 5px; object-fit: contain; }
.ul-coll-name { font-family: var(--ul-mono); font-size: 14.5px; letter-spacing: .08em; color: #f4f5f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ul-coll-dots {
  margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 260px; padding: 4px 8px;
  border-radius: 99px; border: 1px solid #2c2c35; background: #0b0b0d; box-shadow: inset 0 0 8px rgba(0, 0, 0, .5);
}
.ul-coll-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--c); }
.ul-coll-dots i.is-on { background: var(--c); }

/* chat */
.ul-msgs {
  list-style: none; margin: 0; padding: 12px 10px 12px 8px; flex: 1; min-height: 0; max-height: 600px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: #34343f transparent; overscroll-behavior: contain;
}
.ul-m { display: flex; align-items: flex-end; gap: 12px; max-width: 92%; }
.ul-ava { flex: none; width: 28px; height: 28px; background: #3a2a2c; box-shadow: 0 0 0 1px #0b0b0d; }
.ul-ava svg { width: 100%; height: 100%; display: block; }
.ul-bub { min-width: 0; padding: 8px 10px; background: var(--ul-bub); font-size: 13px; line-height: 1.32; color: #d9e0e8; min-height: 1.3em; }
.ul-sysline { align-self: center; font-size: 11px; color: #6e6e7a; text-align: center; padding: 0 12px; margin: -4px 0 2px; }
.ul-sysline.ul-boot { align-self: flex-start; font-family: var(--ul-mono); font-size: 13px; color: #c8c8d2; opacity: 0; }
.ul-sysline.ul-boot.is-on { opacity: 1; }
.ul-m.is-new, .ul-sysline.is-new { animation: ul-in .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ul-in { from { opacity: 0; transform: translateY(8px); } }

.ul-card { display: flex; min-width: 0; background: var(--ul-bub); border-left: 3px solid var(--c); }
.ul-card-img {
  flex: none; width: 98px; display: grid; place-items: center;
  background: radial-gradient(70% 80% at 50% 40%, #34343e, #202027 70%, #1a1a20);
}
.ul-card-img img { width: 90px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); }
.ul-card-txt { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 5px 14px 6px 14px; min-width: 0; font-size: 12px; line-height: 1.3; color: #b4b4c0; }
.ul-card-txt small { font-size: 11.5px; color: #ffbf2f; }
.ul-card-txt b { font-weight: 500; font-size: 13px; color: #f4f5f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ul-card-price { white-space: nowrap; }
.ul-card-price em { font-style: normal; }
.ul-card-price .price { font-size: 12px; font-weight: 500; }
.ul-card-price i { font-style: normal; font-size: 11px; margin-left: 4px; }
.ul-card-price i.is-good { color: #3fae4f; }
.ul-card-price i.is-bad { color: #ff5c5c; }
.ul-card.is-now { background: #f1f3f5; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 26px -4px rgba(255, 255, 255, .3); }
.ul-card.is-now .ul-card-txt { color: #2b2f36; }
.ul-card.is-now .ul-card-txt small { color: #1d2129; }
.ul-card.is-now .ul-card-txt b { color: #111418; }
.ul-card.is-now .ul-card-price em { color: #16a34a; }
.ul-card.is-bought .ul-card-txt small { color: #6fd17a; }

.ul-m.is-typing .ul-bub { padding: 10px 12px; }
.ul-dots { display: inline-flex; gap: 4px; }
.ul-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ul-red); opacity: .35; animation: ul-dot 1s ease-in-out infinite; }
.ul-dots i:nth-child(2) { animation-delay: .15s; }
.ul-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ul-dot { 30% { opacity: 1; transform: translateY(-3px); } }

/* chat footer: offer label + buttons */
.ul-act { padding: 12px 14px 16px; background: #0f0f12; border-top: 1px solid #22222a; display: flex; flex-direction: column; gap: 12px; }
.ul-act-head { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.ul-act-head b { font-weight: 500; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: #f4f5f8; }
.ul-i {
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #4a4a55; color: #0f0f12;
  font-style: normal; font-weight: 700; font-size: 11px; cursor: help;
}
.ul-limit { margin-left: auto; font-size: 12px; color: #62626e; }
.ul-net.is-up { color: #3fae4f; }
.ul-net.is-down { color: #ff5c5c; }
.ul-btns { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ul-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 16px; border-radius: 18px;
  border: 1.5px solid #3a3a45; background: transparent; color: #9b9ba8; font-family: var(--ul-font); font-weight: 500; font-size: 14px; letter-spacing: .05em;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.ul-btn .price { font-size: 14px; font-family: var(--ul-font); }
.ul-btn.is-hot { border-color: #55555f; color: #e4e4ea; }
.ul-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .06); border-color: #ffffff; color: #fff; }
.ul-btn[data-accept]:hover:not(:disabled), .ul-btn[data-unseal]:hover:not(:disabled) { border-color: var(--ul-red); background: rgba(255, 75, 75, .14); }
.ul-btn:disabled { opacity: .45; cursor: default; }
/* hold to accept / decline: the fill runs for --hold-ms, letting go early drains it */
.ul-btn[data-accept], .ul-btn[data-decline] {
  position: relative; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.ul-btn[data-accept]::before, .ul-btn[data-decline]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, rgba(255, 59, 59, .55), rgba(255, 100, 100, .35)); transition: transform .25s ease-out;
}
.ul-btn[data-decline]::before { background: rgba(255, 255, 255, .16); }
.ul-btn.is-holding { border-color: #fff; color: #fff; }
.ul-btn[data-accept].is-holding { border-color: var(--ul-red); box-shadow: 0 0 18px -4px rgba(255, 59, 59, .6); }
.ul-btn.is-holding::before { transform: scaleX(1); transition: transform var(--hold-ms, 1s) linear; }

/* current offer stage */
.ul-side { flex: 1; display: flex; min-height: 0; }
.ul-stage {
  position: relative; flex: 1; min-height: 520px; box-shadow: inset 0 0 0 1px #22222a; overflow: hidden; touch-action: none; user-select: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    radial-gradient(40% 46% at 55% 46%, color-mix(in srgb, var(--c, #ff3b3b) 30%, transparent), transparent 72%),
    radial-gradient(120% 70% at 50% 125%, rgba(255, 59, 59, .14), transparent 60%),
    linear-gradient(180deg, #18181e, #111115 55%, #0c0c0f);
}
.ul-tags { position: absolute; left: 0; top: 16px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ul-tag {
  display: inline-block; padding: 4px 10px 4px 12px; background: #050506; color: #f4f6f8; box-shadow: inset 3px 0 0 var(--ul-red);
  font-family: var(--ul-mono); font-size: 12.5px; letter-spacing: .55em; text-transform: uppercase; white-space: nowrap;
}
.ul-tag i { font-style: normal; margin: 0 .3em; }
.ul-tag-r { background: var(--c); color: #fff; box-shadow: none; }
.ul-inspect {
  position: absolute; top: 16px; right: 16px; z-index: 3; padding: 2px 9px; border-radius: 99px; border: 0;
  background: rgba(255, 255, 255, .1); color: #c8c8d2; font-family: var(--ul-font); font-size: 11px; cursor: pointer;
}
.ul-inspect:hover { background: var(--ul-red); color: #fff; }
.ul-item {
  position: absolute; left: 14%; top: 14%; width: 76%; height: 60%; object-fit: contain; transform-origin: center;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); transition: transform .18s ease-out; cursor: zoom-in;
}
.ul-stage.is-zoomed .ul-item { cursor: grab; }
.ul-stage.is-dragging .ul-item { cursor: grabbing; transition: none; }
.ul-wearbox { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.ul-wearbox .ul-tag { font-size: 12px; letter-spacing: .45em; text-transform: none; }
.ul-floatrow { display: flex; align-items: center; gap: 8px; width: min(520px, 100%); padding: 8px 0 0 8px; }
.ul-fbar { position: relative; flex: 1; display: flex; height: 8px; margin-top: 4px; }
.ul-fbar i:nth-child(1) { background: #f0f0f3; }
.ul-fbar i:nth-child(2) { background: #b0b0b8; }
.ul-fbar i:nth-child(3) { background: #82828c; }
.ul-fbar i:nth-child(4) { background: #6a6a74; }
.ul-fbar i:nth-child(5) { background: #45454e; }
.ul-fbar em { position: absolute; top: -11px; margin-left: -5px; width: 0; height: 0; border: 5px solid transparent; border-top: 7px solid #fff; border-bottom: 0; }
.ul-fval { letter-spacing: .38em; padding: 4px 6px 4px 12px; }
.ul-info { display: flex; flex-wrap: wrap; gap: 4px 30px; padding: 10px 14px 0; font-size: 11.5px; color: #b4b4c0; }
.ul-tools { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 10px; align-items: center; color: #c8c8d2; }
.ul-tools svg { width: 20px; height: 20px; display: block; }
.ul-tools button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.ul-tools button:hover { color: #fff; transform: scale(1.1); }

.ul-stage.is-pending, .ul-stage.is-idle, .ul-stage.is-closed { display: grid; place-items: center; }
.ul-decrypt { white-space: pre; text-align: center; font-family: var(--ul-mono); font-size: 14px; line-height: 1.5; letter-spacing: .18em; color: rgba(255, 100, 100, .3); }
.ul-recv { position: absolute; left: 14px; bottom: 12px; font-family: var(--ul-mono); font-size: 12px; letter-spacing: .2em; color: #ff6464; animation: term-blink 1s steps(1) infinite; }
.ul-nosignal { font-family: var(--ul-mono); font-size: 15px; letter-spacing: .4em; text-transform: uppercase; color: rgba(255, 255, 255, .3); }
.ul-idle-art { display: flex; gap: 20px; justify-content: center; }
.ul-idle-art img { width: 240px; max-width: 32vw; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); animation: term-float 5s ease-in-out infinite; }
.ul-idle-art img:nth-child(2) { animation-delay: -2.5s; }
@keyframes term-float { 50% { transform: translateY(-6px); } }
@keyframes term-blink { 50% { opacity: .35; } }

.ul-stage.is-enter .ul-item { animation: ul-materialize .7s cubic-bezier(.2, .8, .2, 1) backwards; }
.ul-stage.is-enter .ul-tags, .ul-stage.is-enter .ul-wearbox { animation: ul-in .4s .2s ease-out backwards; }
@keyframes ul-materialize {
  0% { opacity: 0; transform: scale(.9); filter: brightness(2.4) saturate(0) blur(4px); clip-path: inset(0 0 100% 0); }
  45% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.ul-stage.is-declined .ul-item { animation: ul-reject .5s ease-in forwards; }
@keyframes ul-reject {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  100% { transform: translateX(-24px) scale(.94); opacity: 0; filter: grayscale(1) brightness(.6); }
}
.ul-stage.is-bought { animation: ul-bought 1s ease-out both; }
@keyframes ul-bought { 40% { box-shadow: inset 0 0 120px 0 rgba(255, 220, 120, .45); } }
.term-stamp {
  position: absolute; top: 46%; left: 50%; z-index: 4; pointer-events: none; transform: translate(-50%, -50%) rotate(-12deg) scale(1.6);
  padding: 4px 14px; border: 3px solid currentColor; opacity: 0;
  font-family: var(--ul-mono); font-size: 26px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
}
.ul-stage.is-declined .term-stamp, .ul-stage.is-bought .term-stamp { animation: term-stamp .28s ease-out forwards; }
.ul-stage.is-declined .term-stamp { color: #ff7b7b; }
.ul-stage.is-bought .term-stamp { color: #ffd45e; background: rgba(9, 11, 15, .7); }
@keyframes term-stamp { to { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }

/* boot: the seal cracks */
.ul-seal { position: relative; width: min(320px, 70%); aspect-ratio: 4 / 3; }
.ul-seal img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .7)); animation: ul-crack .7s ease-in both; }
.ul-seal i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 120, 120, .9), transparent); opacity: 0; animation: ul-flash .5s .55s ease-out both; }
@keyframes ul-crack {
  0%, 100% { transform: none; }
  15% { transform: translate(-3px, 1px) rotate(-2deg); }
  30% { transform: translate(3px, -1px) rotate(2deg); }
  45% { transform: translate(-4px, 0) rotate(-3deg); filter: brightness(1.3); }
  60% { transform: translate(4px, 1px) rotate(3deg) scale(1.03); filter: brightness(1.6); }
  80% { transform: scale(1.06); filter: brightness(2.2); }
}
@keyframes ul-flash { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }

/* ------------------------------------------------------------------ how it works */
.term-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.term-how .panel { display: flex; gap: 12px; padding: 14px 16px; }
.term-how b {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--term-faint); border: 1px solid var(--term-dim); color: var(--term); font-family: var(--display); font-weight: 400;
}
.term-how h3 { margin: 2px 0 4px; font-size: 15px; }
.term-how p { margin: 0; font-size: 13px; }

/* ------------------------------------------------------------------ sealed terminals list */
.term-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; }
.term-unit { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.term-unit.is-selected { border-color: var(--term-dim); box-shadow: 0 0 26px -16px var(--term); }
.term-unit-img { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(closest-side, rgba(61, 224, 198, .14), transparent); }
.term-unit-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .6)); }
.term-unit h3 { margin: 0 0 6px; font-size: 17px; }
.term-unit-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.term-unit-rtp { margin: 6px 0 12px; font-size: 12.5px; color: var(--term); font-family: var(--term-mono); }
.term-unit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.term-unit-actions .price { font-size: 15px; }
.term-contents-note { margin: -4px 0 12px; font-size: 13px; }

/* accept confirmation */
.term-confirm .item { max-width: 220px; margin: 4px auto 12px; }
.term-confirm p { margin: 6px 0; }
.term-confirm .price { vertical-align: -2px; }

/* ------------------------------------------------------------------ phones */
@media (max-width: 980px) {
  .ul-grid { grid-template-columns: 120px 76px minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .ul-offer { grid-column: 1 / -1; grid-row: 1; }
  .ul-exp { grid-column: 1; grid-row: 2; }
  .ul-status { grid-column: 2; grid-row: 2; }
  .ul-coll { grid-column: 3; grid-row: 2; }
  .ul-chat { grid-column: 1 / -1; grid-row: 3; }
  .ul-msgs { max-height: 380px; }
}
@media (max-width: 720px) {
  .ul-laptop { padding: 10px; border-radius: 16px; }
  .ul-grid { grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; padding: 6px; }
  .ul-exp { grid-column: 1; }
  .ul-status { grid-column: 2; }
  .ul-coll { grid-column: 1 / -1; grid-row: 3; }
  .ul-chat { grid-row: 4; }
  .ul-stage { min-height: 360px; }
  .ul-item { top: 22%; height: 46%; left: 6%; width: 88%; }
  .ul-tag { font-size: 11px; letter-spacing: .3em; padding: 3px 8px; }
  .ul-wearbox .ul-tag { letter-spacing: .25em; }
  .ul-fval { letter-spacing: .2em; }
  .ul-info { gap: 2px 14px; font-size: 11px; }
  .ul-brand { letter-spacing: .35em; font-size: 13px; }
  .ul-serial { display: none; }
  .ul-coll-dots { max-width: 140px; }
  .ul-btns { flex-direction: column; }
  .ul-btn { width: 100%; min-height: 42px; }
  .ul-card-img { width: 76px; }
  .ul-card-img img { width: 70px; height: 52px; }
  .term-how { grid-template-columns: minmax(0, 1fr); }
  .term-unit { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .term-unit { grid-template-columns: minmax(0, 1fr); }
  .term-unit-img { max-width: 200px; margin: 0 auto; }
}

/* ------------------------------------------------------------------ one terminal (#/terminal/<id>): a case-page head */
.term-head { align-items: center; }
.term-head-img {
  width: 200px; flex: none; aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 14px;
  background: radial-gradient(closest-side, rgba(61, 224, 198, .18), transparent);
}
.term-head-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .6)); }
.term-head-main { min-width: 0; }
.term-head-main h1 { margin-top: 8px; }
.term-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 860px) {
  .term-head-img { width: 170px; }
  .term-head-actions { justify-content: center; }
}

/* Buttons with a price in them ("Unseal for 3.24") get long in some languages: they wrap instead of leaving the box */
.term-unit-actions .btn, .term-head-actions .btn, .term-actions .btn, .term-idle .btn {
  max-width: 100%; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center;
}
.term-unit-actions .btn-sm { min-height: 32px; padding-top: 5px; padding-bottom: 5px; }
.term-unit-body { min-width: 0; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ul-holo.is-live, .ul-dots i, .ul-recv, .ul-idle-art img, .ul-m.is-new, .ul-sysline.is-new, .ul-stage.is-enter .ul-item,
  .ul-stage.is-enter .ul-tags, .ul-stage.is-enter .ul-wearbox, .ul-stage.is-declined .ul-item, .ul-stage.is-bought, .ul-seal img, .ul-seal i { animation: none; }
  .ul-item { transition: none; }
  .ul-stage.is-declined .term-stamp, .ul-stage.is-bought .term-stamp { animation: none; opacity: 1; transform: translate(-50%, -50%) rotate(-12deg); }
}
