/* Console tweaks guide (/console). Builds on styles.css: same colours, fonts, corners and motion. */

.ct-hero { padding: 64px 0 28px; border-bottom: 1px solid var(--line); }
.ct-hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 6vw, 84px); line-height: .95; color: var(--white); max-width: 14ch; text-wrap: balance; }
.ct-hero p { margin-top: 16px; max-width: 60ch; font-size: 17px; }
.ct-trace { width: 100%; height: 46px; margin-top: 26px; }
.ct-trace path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: ct-draw 1.8s .15s var(--ease-out) forwards; }
.ct-trace .base { stroke: var(--line); stroke-width: 1; stroke-dasharray: none; animation: none; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }

.ct-body { max-width: 820px; padding-top: 32px; padding-bottom: 80px; }
:where(.ct-body) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* PS5 / Xbox switch */
.ct-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; }
.ct-seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--red); border-radius: 3px; transition: transform .35s var(--ease-in-out); }
.ct-seg.xb i { transform: translateX(100%); }
.ct-seg button { position: relative; z-index: 1; padding: 12px; font-family: var(--display); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.ct-seg button.on { color: var(--white); }

/* Model and category chips */
.ct-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.ct-chips::-webkit-scrollbar { display: none; }
.ct-chip { flex: none; border: 1px solid var(--line); border-radius: var(--r); padding: 7px 13px; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: border-color .2s, color .2s, background-color .2s; }
.ct-chip:hover { border-color: var(--muted); color: var(--white); }
.ct-chip.on { background: #151a2b; border-color: var(--red); color: var(--white); }

/* Tabs */
.ct-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-top: 16px; }
.ct-tabs button { padding: 12px 4px; color: var(--muted); font-weight: 700; font-size: 15px; transition: color .2s; }
.ct-tabs button.on, .ct-tabs button:hover { color: var(--white); }
.ct-tabs i { position: absolute; bottom: -1px; left: 0; width: 33.333%; height: 3px; background: var(--red); transition: transform .35s var(--ease-in-out); }
.ct-tabs[data-t="1"] i { transform: translateX(100%); }
.ct-tabs[data-t="2"] i { transform: translateX(200%); }

/* Progress ring + search */
.ct-tools { display: flex; align-items: center; gap: 14px; margin: 18px 0 4px; }
.ct-ring { flex: none; }
.ct-ring circle { fill: none; stroke-width: 4; }
.ct-ring .bg { stroke: var(--line); }
.ct-ring .fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .6s var(--ease-out); }
.ct-ring text { font: 700 11px var(--mono); fill: var(--white); }
.ct-progress { flex: none; font: 700 12px var(--mono); color: var(--dim); letter-spacing: .04em; }
.ct-tools input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; font: inherit; color: var(--white); transition: border-color .2s; }
.ct-tools input:focus { border-color: var(--red); outline: none; }
.ct-tools input::placeholder { color: var(--dim); }

.ct-meta { font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 14px 0 4px; }

/* Cards */
.ct-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 10px 0; overflow: hidden; transition: border-color .25s; }
.ct-card:hover { border-color: #3a3f4b; }
.ct-card.in { animation: ct-rise .45s var(--ease-out) both; }
@keyframes ct-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ct-head { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 15px 16px; }
.ct-dot { flex: none; width: 4px; align-self: stretch; border-radius: 2px; }
.ct-hi .ct-dot { background: var(--red); }
.ct-md .ct-dot { background: #6d8bff; }
.ct-lo .ct-dot { background: var(--line); }
.ct-ttl { flex: 1; min-width: 0; }
.ct-ttl b { display: block; font-size: 16px; color: var(--white); transition: color .2s; }
.ct-ttl span { font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.ct-chk { flex: none; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 3px; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.ct-chk:hover { border-color: var(--muted); }
.ct-chk svg { width: 14px; height: 14px; stroke: var(--white); stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s .05s; }
.done .ct-chk { background: var(--red); border-color: var(--red); }
.done .ct-chk svg { stroke-dashoffset: 0; }
.done .ct-ttl b { color: var(--dim); text-decoration: line-through; }
.ct-arr { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
.open .ct-arr { transform: rotate(225deg); }
.ct-bd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-in-out); }
.open .ct-bd { grid-template-rows: 1fr; }
.ct-bd > div { overflow: hidden; }
.ct-in { padding: 0 18px 16px 34px; }
.ct-in ol, .ct-in ul { margin: 2px 0 10px 18px; }
.ct-in li { margin: 4px 0; }
.ct-in li::marker { color: var(--red); font-weight: 700; }
.ct-why { color: var(--muted); font-size: 15px; }
.ct-verdict { display: inline-block; font: 700 11px var(--mono); letter-spacing: .08em; border: 1px solid currentColor; border-radius: 3px; padding: 1px 7px; margin-right: 8px; }
.v-no { color: var(--err); }
.v-part { color: var(--warn); }
.ct-empty { text-align: center; color: var(--dim); padding: 32px 0; }

.ct-note { border: 1px dashed var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: var(--muted); margin-top: 24px; }
.ct-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.ct-cta p { flex: 1 1 280px; }
.ct-cta b { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .ct-trace path { animation: none; stroke-dashoffset: 0; }
  .ct-card.in { animation: none; }
  .ct-seg i, .ct-tabs i, .ct-bd, .ct-ring .fg, .ct-arr { transition: none; }
}

/* Paid guide: buy panel, owner line, locked cards */
.ct-unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 22px; padding: 22px 24px; background: var(--red); border-radius: var(--r); color: var(--white); }
.ct-unlock > div:first-child { flex: 1 1 320px; }
.ct-unlock .kicker { color: rgba(255, 255, 255, .8); }
.ct-unlock p:last-child { margin-top: 6px; font-size: 15px; }
.ct-price { font-family: var(--display); font-size: 52px; line-height: 1; margin-top: 4px; }
.ct-unlock .btn-primary { background: var(--white); color: var(--bg); }
.ct-unlock .btn-primary:hover { filter: none; background: var(--text); }
.ct-unlock[hidden], .ct-owned[hidden] { display: none; }
.ct-owned { margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--ok); font-weight: 700; }
.ct-lock { flex: none; font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 3px; padding: 3px 7px; }
.ct-card.lock .ct-ttl b { color: var(--text); }
.ct-locked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--bg-2); }
.ct-locked p { color: var(--muted); font-size: 15px; }
.ct-more { margin: 14px 0; padding: 26px 24px; text-align: center; border: 1px dashed var(--red); border-radius: var(--r); background: linear-gradient(180deg, #151a2b, var(--card)); }
.ct-more.in { animation: ct-rise .45s var(--ease-out) both; animation-delay: .2s; }
.ct-more-n { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--white); margin: 6px 0 8px; }
.ct-more p:not(.kicker):not(.ct-more-n) { color: var(--muted); max-width: 46ch; margin: 0 auto 16px; }
.ct-more .ct-buy { display: inline-block; }

/* Liquid glass v5 (Nov 17): same panes as styles.css */
.ct-hero { border-bottom: 0; }
.ct-seg, .ct-card, .ct-tools input, .ct-more, .ct-cta, .ct-owned, .ct-locked, .ct-note, .ct-chip {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.ct-seg { border-radius: var(--pill); padding: 5px; }
.ct-seg i { border-radius: var(--pill); background: linear-gradient(180deg, #4f86ff, #2f6bff 55%, #2a5fe6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 8px 24px rgba(47, 107, 255, .35); top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); }
.ct-chip { border-radius: var(--pill); padding: 7px 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.ct-chip:hover { border-color: rgba(255, 255, 255, .22); }
.ct-chip.on { background: linear-gradient(180deg, rgba(47, 107, 255, .3), rgba(47, 107, 255, .1)); border-color: rgba(110, 150, 255, .6); }
.ct-tabs { border-bottom-color: var(--glass-line); }
.ct-tabs i { border-radius: 3px 3px 0 0; box-shadow: 0 0 14px rgba(47, 107, 255, .6); }
.ct-tools input { border-radius: var(--pill); padding: 11px 18px; }
.ct-card { position: relative; border-radius: 18px; margin: 12px 0; }
.ct-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, 0) 60%, rgba(120, 160, 255, .2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ct-card:hover { border-color: rgba(255, 255, 255, .16); }
.ct-chk { border-radius: 7px; border-color: rgba(255, 255, 255, .2); }
.done .ct-chk { background: linear-gradient(180deg, #4f86ff, #2f6bff); box-shadow: 0 0 12px rgba(47, 107, 255, .5); }
.ct-lock { border-radius: var(--pill); border-color: var(--glass-line); padding: 3px 9px; }
.ct-locked { border-style: solid; border-radius: 14px; }
.ct-more { border-radius: 22px; border-color: rgba(110, 150, 255, .4); background: linear-gradient(180deg, rgba(47, 107, 255, .2), rgba(47, 107, 255, .04) 70%); }
.ct-unlock {
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(160deg, rgba(74, 128, 255, .92), rgba(31, 85, 224, .86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 24px 70px rgba(47, 107, 255, .32);
}
.ct-unlock .btn-primary { background: linear-gradient(180deg, #fff, #e6ecf3); color: var(--bg); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08), 0 6px 20px rgba(0, 0, 0, .18); }
.ct-owned, .ct-note, .ct-cta { border-radius: 18px; }
.ct-note { border-style: solid; }

/* v5.1: glass only on the buy panels and the switch; the rest is flat */
.ct-card, .ct-tools input, .ct-cta, .ct-owned, .ct-locked, .ct-note, .ct-chip, .ct-seg {
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ct-card::after { content: none; }
.ct-chip.on { background: rgba(47, 107, 255, .16); border-color: rgba(110, 150, 255, .55); }
.ct-note { border: 0; background: none; padding: 0; }
.ct-card { margin: 8px 0; }
.ct-body { padding-top: 24px; padding-bottom: 56px; }
.ct-hero { padding: 44px 0 16px; }
.ct-unlock { margin-bottom: 16px; }
.ct-unlock .btn-primary { background: linear-gradient(180deg, #fff, #e6ecf3); }
.ct-more .btn-primary { background: linear-gradient(180deg, #4f86ff, #2f6bff 55%, #2a5fe6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 8px 26px rgba(47, 107, 255, .32); }
.ct-cta { margin-top: 20px; }
