/* Hentaicube: a manga page and a game HUD. Cream paper with halftone dots, black ink outlines, hard offset shadows,
   pink, cyan and lemon; Dela Gothic One for headings, M PLUS Rounded 1c for text. Laid over the engine's tokens,
   then Hentaicube's own pages (hc-*). */
:root {
  --bg: #fffdf5;
  --bg-2: #f4efe0;
  --card: #ffffff;
  --card-2: #fbf6e8;
  --ink: #111111;
  --ink-2: #3b3a44;
  --ink-3: #6e6c7a;
  --line: #111111;
  --line-2: #d8d2c0;
  --brand: #ff2e88;
  --brand-2: #00b8f0;
  --grad: linear-gradient(135deg, #ff2e88 0%, #ff5fa2 100%);
  --grad-soft: rgba(255, 46, 136, .12);
  --violet: #7b5cff;
  --violet-soft: rgba(123, 92, 255, .14);
  --blue: #00b8f0;
  --green: #16c79a;
  --gold: #ffcf24;
  --danger: #e5233a;
  --ok-bg: rgba(22, 199, 154, .14);
  --ok-ink: #0d7a5e;
  --err-bg: rgba(229, 35, 58, .12);
  --err-ink: #b01226;
  --glass: rgba(255, 253, 245, .94);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --sh-1: 2px 2px 0 #111;
  --sh-2: 4px 4px 0 #111;
  --sh-3: 7px 7px 0 #111;
  --sh-brand: 4px 4px 0 #111;
  --font: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Dela Gothic One", Impact, "Arial Black", sans-serif;
  --ink-w: 3px;
  --hud-w: 232px;
  --dots: radial-gradient(rgba(17, 17, 17, .09) 1.2px, transparent 1.4px) 0 0 / 12px 12px;
  color-scheme: light;
}
body { background: var(--bg); background-image: var(--dots); color: var(--ink); }
h1, h2, h3, .logo-word { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.btn { border-radius: var(--r-sm); border: var(--ink-w) solid var(--ink); box-shadow: var(--sh-1); font-weight: 800; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-2); }
.btn-primary { background: var(--brand); color: #fff; }
.badge-ai { background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; font-weight: 800; }

/* ---- the frame: a HUD on the right, a strip and a row of keys on phones (partials/shell.php) ---- */
.hc-app .main { margin-left: 0; margin-right: var(--hud-w); padding: 26px 30px 60px; }
.hc-app .rail { display: none; }
.has-rail .hc-app .main { margin-right: var(--hud-w); }
.hc-cube { width: 34px; height: 34px; flex: none; }
.hc-logo { display: flex; align-items: center; gap: 9px; font-size: 19px; color: var(--ink); }
.hc-hud { position: fixed; inset: 0 0 0 auto; width: var(--hud-w); z-index: 30; display: flex; flex-direction: column; gap: 14px; padding: 20px 16px;
  background: var(--card); border-left: var(--ink-w) solid var(--ink); overflow-y: auto; }
.hc-logo-big { font-size: 21px; }
.hc-logo-big .hc-cube { width: 40px; height: 40px; }
.hc-hud-tag { margin: -6px 0 4px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.hc-cmds { display: flex; flex-direction: column; gap: 8px; }
.hc-cmds a { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 26px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm);
  background: var(--bg); font-weight: 800; font-size: 15px; box-shadow: var(--sh-1); transition: transform .1s, box-shadow .1s, background .1s; }
.hc-cmds a:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-2); }
.hc-cmds a.on { background: var(--gold); }
.hc-cur { position: absolute; left: 8px; font-size: 11px; color: var(--brand); opacity: 0; }
.hc-cmds a.on .hc-cur, .hc-cmds a:hover .hc-cur { opacity: 1; }
.hc-num { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12px; border: 2px solid var(--ink); }
.hc-player { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.hc-player-card { display: flex; align-items: center; gap: 10px; padding: 8px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--card-2); min-width: 0; }
.hc-player-card span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hc-player-card small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.hc-player-keys { display: flex; gap: 8px; }
.hc-key-sm { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--card); box-shadow: var(--sh-1); }
.hc-key-sm.on { background: var(--gold); }
.hc-ping { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--ink); }
.hc-start { display: flex; flex-direction: column; align-items: center; padding: 12px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--brand); color: #fff;
  font-family: var(--display); font-size: 18px; box-shadow: var(--sh-2); text-align: center; }
.hc-start small { font-family: var(--font); font-weight: 700; font-size: 12px; opacity: .9; }
.hc-continue { text-align: center; padding: 10px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); font-weight: 800; background: var(--card); }
.hc-strip, .hc-keys { display: none; }
.chat-page .hc-app .main { margin-right: var(--hud-w); }
@media (max-width: 900px) {
  .hc-hud { display: none; }
  .hc-strip { display: flex; position: fixed; inset: 0 0 auto 0; z-index: 40; height: 54px; align-items: center; gap: 10px; padding: 0 12px;
    background: var(--glass); border-bottom: var(--ink-w) solid var(--ink); }
  .hc-strip .hc-logo { margin-right: auto; font-size: 17px; }
  .hc-strip .hc-cube { width: 30px; height: 30px; }
  .hc-p1 { display: flex; align-items: center; gap: 6px; padding: 2px 3px 2px 9px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--gold); font-size: 12px; }
  .hc-start-sm { padding: 7px 12px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--sh-1); white-space: nowrap; }
  .hc-app .main, .has-rail .hc-app .main, .chat-page .hc-app .main { margin-right: 0; padding: 68px 14px calc(var(--tab-h) + 26px + env(safe-area-inset-bottom)); }
  .tabbar.hc-keys { display: grid; gap: 6px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); height: calc(var(--tab-h) + env(safe-area-inset-bottom));
    background: var(--card); border-top: var(--ink-w) solid var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hc-keys .tab { border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
  .hc-keys .tab.active { background: var(--gold); color: var(--ink); }
  .hc-keys .tab .dot { background: var(--brand); border-color: var(--ink); }
  .immersive .hc-strip { display: none; }
  .immersive .hc-app .main { padding: 0; }
}
@media (max-width: 380px) { .hc-strip.guest .logo-word { display: none; } }

/* ---- the adults-only gate: a title screen (partials/age_gate.php) ---- */
.hc-gate { background: rgba(17, 17, 17, .72); }
.hc-title { position: relative; width: min(420px, 100%); padding: 30px 22px 18px; background: var(--bg); background-image: var(--dots);
  border: 4px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--brand); text-align: center; }
.hc-rating { position: absolute; top: -18px; right: 16px; padding: 4px 10px; background: var(--ink); color: var(--gold); font-family: var(--display); font-size: 18px; border-radius: 4px; transform: rotate(4deg); }
.hc-title-logo { margin: 0; font-family: var(--display); font-size: clamp(30px, 9vw, 42px); color: #fff; -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); line-height: 1.1; }
.hc-title-note { margin: 14px 0 8px; font-size: 14.5px; color: var(--ink-2); }
.hc-blink { margin: 10px 0; font-family: var(--display); font-size: 16px; color: var(--brand); text-transform: uppercase; animation: hc-blink 1.1s steps(2, start) infinite; }
@keyframes hc-blink { to { visibility: hidden; } }
.hc-title-menu { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.hc-menu-opt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 14px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm);
  background: var(--gold); color: var(--ink); font: 800 16px var(--font); box-shadow: var(--sh-2); cursor: pointer; }
.hc-menu-opt span { color: var(--brand); font-size: 12px; }
.hc-menu-quit { background: var(--card); box-shadow: var(--sh-1); font-weight: 700; }
.hc-title-small { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.hc-title-small a { text-decoration: underline; }

/* ---- the title screen (pages/landing.php) ---- */
.hc-front { max-width: 1080px; margin: 0 auto; }
.hc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm);
  font-weight: 800; font-size: 16px; box-shadow: var(--sh-2); transition: transform .1s, box-shadow .1s; text-align: center; }
.hc-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-3); }
.hc-btn-go { background: var(--brand); color: #fff; }
.hc-btn-alt { background: var(--card); }
.hc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 14px 0 10px; }
.hc-badge { display: inline-block; margin: 0 0 14px; padding: 5px 12px; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 13px; border-radius: 4px; transform: rotate(-1.5deg); }
.hc-hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; }
.hc-sub { margin: 16px 0 0; max-width: 50ch; font-size: 17px; color: var(--ink-2); }
.hc-hero-acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
/* four heroines as a manga page: panels of different sizes, each with a speech bubble */
.hc-page { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 10px; padding: 10px; background: var(--ink); border-radius: 4px; transform: rotate(1deg); box-shadow: 8px 8px 0 var(--brand); }
.hc-panel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 10px; background: var(--card); overflow: hidden; }
.hc-panel-1, .hc-panel-2 { background: var(--card-2); }
.hc-panel img { position: absolute; right: 8px; bottom: 30px; width: 46%; max-width: 120px; aspect-ratio: 1; object-fit: cover; border: var(--ink-w) solid var(--ink); }
.hc-panel-0 img, .hc-panel-3 img { left: 8px; right: auto; }
.hc-bubble { position: relative; z-index: 1; align-self: flex-start; max-width: 64%; margin-bottom: auto; padding: 8px 10px; background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  font-size: 12.5px; line-height: 1.35; font-weight: 500; }
.hc-panel-0 .hc-bubble, .hc-panel-3 .hc-bubble { align-self: flex-end; }
.hc-bubble::after { content: ""; position: absolute; bottom: -9px; right: 22px; width: 14px; height: 14px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.hc-caption { position: relative; z-index: 1; align-self: flex-start; padding: 2px 8px; background: var(--gold); border: 2px solid var(--ink); font-weight: 800; font-size: 13px; }
.hc-panel-0 .hc-caption, .hc-panel-3 .hc-caption { align-self: flex-end; }
/* character select */
.hc-select { margin-top: 44px; padding: 16px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-3); }
.hc-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hc-sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.hc-sec-head a { font-weight: 800; color: var(--brand); white-space: nowrap; }
.hc-select ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hc-select li a { display: flex; align-items: center; gap: 10px; padding: 8px; min-height: 64px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); }
.hc-select li a:hover { background: var(--gold); }
.hc-select img { width: 52px; height: 52px; flex: none; object-fit: cover; border: 2px solid var(--ink); }
.hc-select span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hc-select small { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* stats */
.hc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; }
.hc-stats div { padding: 14px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.hc-stats dt { font-family: var(--display); font-size: 30px; color: var(--brand); }
.hc-stats dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
/* sections */
.hc-sec { margin-top: 50px; }
.hc-sec > h2 { display: inline-block; font-size: clamp(22px, 2.8vw, 32px); padding: 4px 12px; background: var(--card); border: var(--ink-w) solid var(--ink); box-shadow: var(--sh-2); transform: rotate(-.6deg); }
.hc-sec > p, .hc-intro { max-width: 70ch; margin: 18px 0 0; font-size: 16.5px; color: var(--ink-2); }
.hc-bubbles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin: 24px 0; }
.hc-say { position: relative; padding: 16px 18px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: 22px; }
.hc-say::after { content: ""; position: absolute; bottom: -12px; left: 34px; width: 18px; height: 18px; background: var(--card); border-right: var(--ink-w) solid var(--ink); border-bottom: var(--ink-w) solid var(--ink); transform: rotate(45deg); }
.hc-say:nth-child(even)::after { left: auto; right: 34px; }
.hc-say h3 { font-size: 18px; color: var(--ink); }
.hc-say p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.hc-table-box { margin-top: 20px; overflow-x: auto; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--card); box-shadow: var(--sh-2); }
.hc-compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.hc-compare th, .hc-compare td { padding: 11px 13px; text-align: left; border-bottom: 2px solid var(--line-2); vertical-align: top; }
.hc-compare thead th { background: var(--ink); color: #fff; border-bottom: 0; }
.hc-compare thead th:last-child { background: var(--brand); }
.hc-compare tbody tr:last-child th, .hc-compare tbody tr:last-child td { border-bottom: 0; }
.hc-compare td:last-child { font-weight: 700; }
.hc-stages { list-style: none; counter-reset: st; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hc-stages li { counter-increment: st; padding: 14px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); }
.hc-stages li::before { content: "Stage " counter(st); display: block; margin-bottom: 6px; font-family: var(--display); color: var(--brand); font-size: 15px; }
.hc-stages b { color: var(--ink); }
.hc-faq details { margin-top: 10px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); }
.hc-faq details:first-of-type { margin-top: 20px; }
.hc-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 800; font-size: 16px; }
.hc-faq details[open] summary { background: var(--gold); border-bottom: 2px solid var(--ink); }
.hc-faq details p { margin: 0; padding: 12px 16px 14px; color: var(--ink-2); }
.hc-continue-box { position: relative; margin-top: 54px; padding: 30px 22px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: 8px 8px 0 var(--brand); overflow: hidden; }
.hc-continue-box h2 { font-size: clamp(28px, 4vw, 42px); color: var(--gold); }
.hc-continue-box p { max-width: 52ch; margin: 10px auto 18px; color: #e8e6ef; }
.hc-count { position: absolute; top: -20px; right: 16px; margin: 0; font-family: var(--display); font-size: 120px; color: rgba(255, 255, 255, .08); }
.hc-links { margin-top: 44px; }
.hc-links h2 { font-size: 20px; }
.hc-links ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hc-links a { display: block; padding: 11px 12px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--card); font-weight: 700; font-size: 14.5px; }
.hc-links a:hover { background: var(--gold); }
.hc-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 36px; padding-top: 16px; border-top: var(--ink-w) solid var(--ink); font-size: 13.5px; color: var(--ink-3); }
.hc-foot a { font-weight: 700; color: var(--ink-2); text-decoration: underline; }
@media (max-width: 1000px) {
  .hc-hero { grid-template-columns: 1fr; }
  .hc-page { transform: none; }
  .hc-select ul, .hc-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-bubbles, .hc-stages, .hc-select ul { grid-template-columns: 1fr; }
  .hc-page { grid-template-columns: 1fr 1fr; box-shadow: 5px 5px 0 var(--brand); }
  .hc-panel { min-height: 190px; }
  .hc-panel img { width: 56px; bottom: 32px; }
  .hc-bubble { max-width: 100%; font-size: 12px; }
  .hc-btn { width: 100%; }
  .hc-compare { font-size: 13.5px; }
  .hc-compare th, .hc-compare td { padding: 8px 9px; }
}
@media (max-width: 420px) { .hc-links ul { grid-template-columns: 1fr; } }

/* ---- static pages (pages/static.php) ---- */
.hc-doc { max-width: 760px; margin: 0 auto; padding: 22px 24px 30px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-3); }
.hc-doc h1 { font-size: clamp(28px, 4vw, 40px); }
.hc-doc h2 { margin-top: 26px; font-size: 20px; }
.hc-doc p, .hc-doc li { color: var(--ink-2); font-size: 16px; }
.hc-doc a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.hc-doc-lead { font-size: 17.5px !important; color: var(--ink) !important; }
.hc-doc-date { display: inline-block; padding: 3px 10px; background: var(--gold); border: 2px solid var(--ink); font-weight: 800; font-size: 13px !important; color: var(--ink) !important; }
.hc-rules li { margin-bottom: 10px; }
.hc-note { margin-top: 20px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); }
.hc-note time { font-weight: 800; color: var(--brand); font-size: 13px; }
.hc-note h2 { margin-top: 4px; }
@media (max-width: 600px) { .hc-doc { padding: 16px 14px 20px; box-shadow: var(--sh-2); } }

/* ---- inside: lists, her page, the chat (partials/pcard.php and the engine's pages, in Hentaicube's ink) ---- */
/* a heroine in a list: a character-select tile */
.hc-pc { display: flex; flex-direction: column; height: 100%; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-2); overflow: hidden; transition: transform .1s, box-shadow .1s; }
.hc-pc:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-3); }
.hc-pc-art { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border-bottom: var(--ink-w) solid var(--ink); }
.hc-pc-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hc-pc-art .badge-ai { position: absolute; top: 8px; left: 8px; }
.hc-pc-new { position: absolute; top: 8px; right: 8px; padding: 2px 8px; background: var(--brand); color: #fff; border: 2px solid var(--ink); border-radius: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; transform: rotate(3deg); }
.hc-pc-plate { position: absolute; left: 0; bottom: 10px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 10px); padding: 4px 10px 4px 10px;
  background: var(--ink); color: #fff; font-family: var(--display); font-size: 17px; }
.hc-pc-plate b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-pc-plate em { font-style: normal; color: var(--gold); }
.hc-pc-on { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.hc-pc-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 11px 14px; flex: 1; }
.hc-pc-job { font-weight: 800; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-pc-say { position: relative; padding: 7px 10px; background: var(--bg); border: 2px solid var(--ink); border-radius: 14px; font-size: 13px; line-height: 1.35; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-scroll .hc-pc { height: 100%; }
.row-scroll { padding: 4px 8px 14px 2px; }
.hc-app .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 600px) {
  .hc-app .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hc-pc-say { display: none; }
  .hc-pc-plate { font-size: 14px; }
  .hc-pc { box-shadow: var(--sh-1); }
}
/* the list's head and filters: inked tabs */
.hc-app .page-head h1 { font-size: clamp(28px, 4vw, 42px); }
.hc-app .page-head .sub { color: var(--ink-2); }
.hc-app .chip { border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--card); color: var(--ink); font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
.hc-app .chip.on { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.hc-app .frows { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: none; }
.hc-app .frow-label { color: var(--ink); font-weight: 800; }
.hc-app .search { background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-1); }
/* her page: the cover panel and a stat sheet */
.hc-app .gallery-main { border: 4px solid var(--ink); border-radius: var(--r-sm); box-shadow: 8px 8px 0 var(--brand); }
.hc-app .pinfo .card { background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.hc-app .pinfo h1 { font-size: 32px; }
.hc-app .kv dt { color: var(--brand); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.hc-app .kv dd { color: var(--ink); }
/* the chat: speech bubbles in a panel */
.hc-app .chat-shell { background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.hc-app .chat-list { background: var(--bg); border-right: var(--ink-w) solid var(--ink); }
.hc-app .conv { margin: 4px 8px; border: 2px solid transparent; border-radius: var(--r-sm); color: var(--ink); }
.hc-app .conv:hover { border-color: var(--ink); background: var(--card); }
.hc-app .conv.active { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.hc-app .conv.active .last, .hc-app .conv.active .time, .hc-app .conv.active .you, .hc-app .conv.active .name { color: var(--ink); }
.hc-app .msg.her .bubble { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px; }
.hc-app .msg.me .bubble { background: var(--brand); color: #fff; border: 2px solid var(--ink); border-radius: 18px 18px 4px 18px; }
.hc-app .composer { margin: 0 12px 12px; padding: 6px 6px 6px 12px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.hc-app .composer textarea { background: transparent; color: var(--ink); }
@media (max-width: 900px) {
  .hc-app .chat-shell { border: 0; border-radius: 0; box-shadow: none; }
  .hc-app .chat-list { border-right: 0; }
  .hc-app .gallery-main { box-shadow: 5px 5px 0 var(--brand); }
}
/* the engine's thread is drawn dark; here it is a page of manga paper */
.thread { background-color: var(--bg); background-image: var(--dots); background-size: 12px 12px; }
.thread-head { background: rgba(255, 255, 255, .96); border-bottom: var(--ink-w) solid var(--ink); }
.hc-app .msg.her .bubble a, .hc-app .msg.me .bubble a { color: inherit; text-decoration: underline; }
.pcard .top .badge-ai, .hw-name .badge-ai { background: var(--gold); color: var(--ink); }
.row-scroll .hc-pc-say { -webkit-line-clamp: 2; }

/* ---- the plan: the HUD's meter, the strip's coin counter (partials/shell.php), the title screen's three settings ---- */
.hc-plan { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 9px 10px;
  border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--brand); transition: transform .1s, box-shadow .1s; }
.hc-plan:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--brand); }
.hc-plan-tag { grid-row: 1 / 3; padding: 3px 8px; background: var(--gold); color: var(--ink); border: 2px solid #fff; border-radius: 4px; font-family: var(--display); font-size: 14px; transform: rotate(-3deg); }
.hc-plan-meter { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1.1; }
.hc-plan-meter b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--gold); }
.hc-plan-meter small { font-size: 11.5px; font-weight: 700; color: #e8e6ef; }
.hc-plan-go { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-2); }
.hc-coin { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px 0 8px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm);
  background: var(--gold); color: var(--ink); font-weight: 800; font-size: 13px; box-shadow: var(--sh-1); white-space: nowrap; }
.hc-coin svg { color: var(--brand); }
@media (max-width: 380px) { .hc-coin span { display: none; } .hc-coin { padding: 0 8px; } }
.hc-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.hc-mode { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.hc-mode b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.hc-mode small { font-weight: 800; font-size: 12.5px; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.hc-mode p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.hc-mode-plus { background: var(--gold); }
.hc-mode-plus small { color: var(--ink); }
@media (max-width: 760px) { .hc-modes { grid-template-columns: 1fr; } }

/* ---- the engine's plan page and USDT checkout (/credits, /checkout) in ink ---- */
.hc-app .wallet-hero { position: relative; padding: 22px 22px 20px; background: var(--ink); color: #fff; border: var(--ink-w) solid var(--ink); border-radius: var(--r);
  box-shadow: 7px 7px 0 var(--brand); background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.4px); background-size: 12px 12px; }
.hc-app .wallet-hero b { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: 0; color: var(--gold); }
.hc-app .wallet-hero svg { color: var(--gold); }
.hc-app .section-head h2 { font-size: 22px; }
.hc-app .usdt-badge { height: 30px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: #d9f5ec; color: #0d6b50; box-shadow: 2px 2px 0 var(--ink); }
.hc-app .usdt-badge b { background: #1f8f6b; }
.hc-app .packs { gap: 16px; }
.hc-app .pack { padding: 20px 16px 14px; border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); background: var(--card); box-shadow: var(--sh-2); }
.hc-app .pack > b { font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--ink); }
.hc-app .pack-link:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-3); }
.hc-app .pack-link:hover .btn { transform: none; }
.hc-app .pack .best { top: -13px; padding: 3px 10px; background: var(--brand); color: #fff; border: 2px solid var(--ink); border-radius: 4px; font-size: 11.5px; text-transform: uppercase; transform: translateX(-50%) rotate(-3deg); }
.hc-app .table-wrap.card, .hc-app .section > .card { border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-2); overflow: hidden; }
.hc-app .table th { color: var(--ink); border-bottom: 2px solid var(--ink); }
.hc-app .table td { border-bottom: 2px solid var(--line-2); }
.hc-app .table tr:last-child td { border-bottom: 0; }
.hc-app .table.plans tr:first-child th { background: var(--ink); color: #fff; border-bottom: 0; }
.hc-app .table.plans tr:first-child th:last-child { background: var(--brand); }
.hc-app .table.plans td:last-child { background: rgba(255, 207, 36, .18); }
.hc-app .alert-ok { border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.hc-app .usdt-card { padding: 22px; border: var(--ink-w) solid var(--ink); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-3); }
.hc-app .usdt-card h1 { font-size: clamp(24px, 6vw, 30px) !important; }
.hc-app .usdt-timer { border: 2px solid var(--ink); border-radius: 4px; background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 400; }
.hc-app .usdt-timer.late { background: var(--err-bg); color: var(--err-ink); }
.hc-app .usdt-qr { border: var(--ink-w) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.hc-app .usdt-f label { color: var(--ink); font-weight: 800; }
.hc-app .usdt-val { border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--bg); box-shadow: none; }
.hc-app .usdt-val .btn { flex: none; }
.hc-app .usdt-warn { border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff4c2; color: #5a4300; }
.hc-app .usdt-status { border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--grad-soft); }
.hc-app .usdt-status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.hc-app .usdt-status.expired { background: var(--bg-2); }
@media (max-width: 600px) {
  .hc-app .wallet-hero { box-shadow: 5px 5px 0 var(--brand); }
  .hc-app .wallet-hero b { font-size: 32px; }
  .hc-app .usdt-card { padding: 16px 14px; box-shadow: var(--sh-2); }
  .hc-app .usdt-val.big code { font-size: 17px; }
}
