/* ==========================================================================
   tongits-wars.homes - mobile-first base stylesheet
   Canvas: fixed 430px phone frame, centred on wide screens.
   Prefix contract: every class = mobilecebe3-*, every CSS var = --mobilecebe3-*
   Palette: #2C2C2C charcoal / #B22222 firebrick / #FFB347 amber /
            #7CFC00 signal green / #E9967A salmon
   Direction: geometric condensed headings, near-square "tool" corners,
   image-plus-name-bar game tiles, square high-contrast CTAs,
   light press feedback and short colour transitions only.
   ========================================================================== */

:root {
  --mobilecebe3-bg: #2c2c2c;
  --mobilecebe3-bg-deep: #161616;
  --mobilecebe3-panel: #242424;
  --mobilecebe3-panel-2: #212121;
  --mobilecebe3-panel-3: #1d1d1d;
  --mobilecebe3-line: #3a3a3a;
  --mobilecebe3-line-soft: #333333;
  --mobilecebe3-red: #b22222;
  --mobilecebe3-red-deep: #8e1a1a;
  --mobilecebe3-amber: #ffb347;
  --mobilecebe3-green: #7cfc00;
  --mobilecebe3-salmon: #e9967a;
  --mobilecebe3-ink: #f2ede4;
  --mobilecebe3-muted: #c9c2b6;
  --mobilecebe3-faint: #9a938a;
  --mobilecebe3-canvas: 430px;
  --mobilecebe3-topbar: 56px;
  --mobilecebe3-bottombar: 62px;
  --mobilecebe3-f-head: "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --mobilecebe3-f-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mobilecebe3-ease: 0.14s ease-out;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mobilecebe3-bg-deep);
  color: var(--mobilecebe3-ink);
  font-family: var(--mobilecebe3-f-body);
  font-size: 14px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--mobilecebe3-amber); }

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--mobilecebe3-amber);
  outline-offset: 2px;
}

/* Phone canvas: everything lives inside a 430px column ------------------- */

.mobilecebe3-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  background: var(--mobilecebe3-bg);
  min-height: 100vh;
  box-shadow: 0 0 0 1px #101010;
}

.mobilecebe3-skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 120;
  background: var(--mobilecebe3-amber);
  color: #1d1d1d;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 2px;
  transition: top var(--mobilecebe3-ease);
}

.mobilecebe3-skip:focus { top: 8px; }

/* Top action bar ----------------------------------------------------------- */

.mobilecebe3-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--mobilecebe3-topbar);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--mobilecebe3-panel-2);
  border-bottom: 2px solid var(--mobilecebe3-red);
  z-index: 80;
}

.mobilecebe3-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}

.mobilecebe3-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--mobilecebe3-line);
  background: #171717;
  flex: 0 0 34px;
}

.mobilecebe3-name {
  font-family: var(--mobilecebe3-f-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mobilecebe3-amber);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobilecebe3-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.mobilecebe3-btnreg,
.mobilecebe3-btnlog {
  font-family: var(--mobilecebe3-f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  min-height: 44px;
  padding: 0 12px;
  transition: transform var(--mobilecebe3-ease), background var(--mobilecebe3-ease), color var(--mobilecebe3-ease);
}

.mobilecebe3-btnreg {
  background: var(--mobilecebe3-red);
  color: #ffffff;
  border: 1px solid var(--mobilecebe3-red-deep);
}

.mobilecebe3-btnreg:active { background: var(--mobilecebe3-red-deep); transform: scale(0.95); }

.mobilecebe3-btnlog {
  background: transparent;
  color: var(--mobilecebe3-amber);
  border: 1px solid var(--mobilecebe3-amber);
}

.mobilecebe3-btnlog:active { background: #33290f; transform: scale(0.95); }

.mobilecebe3-menubtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--mobilecebe3-line);
  border-radius: 2px;
  color: var(--mobilecebe3-ink);
  transition: transform var(--mobilecebe3-ease), border-color var(--mobilecebe3-ease);
}

.mobilecebe3-menubtn:active { transform: scale(0.9); border-color: var(--mobilecebe3-amber); }

.mobilecebe3-menubtn svg { display: block; }

/* Layered dropdown menu ---------------------------------------------------- */

.mobilecebe3-drawer {
  position: fixed;
  top: var(--mobilecebe3-topbar);
  left: 50%;
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - var(--mobilecebe3-topbar));
  overflow-y: auto;
  background: #1f1f1f;
  border-top: 2px solid var(--mobilecebe3-red);
  border-bottom: 2px solid var(--mobilecebe3-red);
  z-index: 75;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity var(--mobilecebe3-ease), transform var(--mobilecebe3-ease), visibility var(--mobilecebe3-ease);
}

.mobilecebe3-drawer.mobilecebe3-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mobilecebe3-dgroup {
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--mobilecebe3-line-soft);
}

.mobilecebe3-dgroup:last-of-type { border-bottom: 0; }

.mobilecebe3-dlabel {
  font-family: var(--mobilecebe3-f-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mobilecebe3-salmon);
  margin: 8px 2px 4px;
}

.mobilecebe3-dlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 10px;
  color: var(--mobilecebe3-ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #2a2a2a;
  transition: background var(--mobilecebe3-ease), border-color var(--mobilecebe3-ease), color var(--mobilecebe3-ease);
}

.mobilecebe3-dlink:active,
.mobilecebe3-dlink:hover {
  background: #2a2a2a;
  border-left-color: var(--mobilecebe3-amber);
  color: var(--mobilecebe3-amber);
}

.mobilecebe3-dlink span { font-size: 14px; }

.mobilecebe3-dlink em {
  font-style: normal;
  font-size: 10px;
  color: var(--mobilecebe3-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobilecebe3-dpromo {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #241b1a;
}

.mobilecebe3-dpromo button {
  flex: 1;
  min-height: 46px;
  font-family: var(--mobilecebe3-f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: transform var(--mobilecebe3-ease);
}

.mobilecebe3-dpromo button:active { transform: scale(0.95); }

.mobilecebe3-dpromo-go {
  background: var(--mobilecebe3-red);
  color: #ffffff;
  border: 1px solid var(--mobilecebe3-red-deep);
}

.mobilecebe3-dpromo-join {
  background: var(--mobilecebe3-amber);
  color: #1d1d1d;
  border: 1px solid #d99a2e;
}

/* Main column -------------------------------------------------------------- */

.mobilecebe3-main {
  padding-top: calc(var(--mobilecebe3-topbar) + 6px);
  /* keep clear of the fixed five-role bottom bar */
  padding-bottom: calc(var(--mobilecebe3-bottombar) + 30px + env(safe-area-inset-bottom));
  padding-left: 12px;
  padding-right: 12px;
}

/* Hero carousel ------------------------------------------------------------ */

.mobilecebe3-hero {
  position: relative;
  margin: 0 -12px 4px;
  overflow: hidden;
  border-bottom: 2px solid var(--mobilecebe3-line);
  background: #1a1a1a;
  touch-action: pan-y;
}

.mobilecebe3-track {
  display: flex;
  transition: transform 0.38s ease-out;
}

.mobilecebe3-slide {
  position: relative;
  display: block;
  min-width: 100%;
  padding: 0;
  border: 0;
  background: #1a1a1a;
  text-align: left;
}

.mobilecebe3-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.mobilecebe3-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.94) 78%);
  font-family: var(--mobilecebe3-f-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--mobilecebe3-ink);
  line-height: 1.35;
}

.mobilecebe3-cap b { color: var(--mobilecebe3-amber); }

.mobilecebe3-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  z-index: 5;
}

.mobilecebe3-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.22);
  transition: background var(--mobilecebe3-ease), border-color var(--mobilecebe3-ease);
}

.mobilecebe3-dot.mobilecebe3-dot-on {
  background: var(--mobilecebe3-amber);
  border-color: var(--mobilecebe3-amber);
}

/* Page head ---------------------------------------------------------------- */

.mobilecebe3-pagehead {
  margin: 18px 0 6px;
  padding: 14px 12px;
  background: var(--mobilecebe3-panel);
  border: 1px solid var(--mobilecebe3-line);
  border-left: 4px solid var(--mobilecebe3-red);
}

.mobilecebe3-h1 {
  font-family: var(--mobilecebe3-f-head);
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--mobilecebe3-ink);
}

.mobilecebe3-lede {
  margin: 0;
  font-size: 13px;
  color: var(--mobilecebe3-muted);
}

.mobilecebe3-lede b { color: var(--mobilecebe3-amber); }

/* Prose notes -------------------------------------------------------------- */

.mobilecebe3-note {
  background: #262626;
  border: 1px solid var(--mobilecebe3-line-soft);
  border-left: 3px solid var(--mobilecebe3-salmon);
  padding: 12px 13px;
  margin: 10px 0;
}

.mobilecebe3-note p {
  margin: 0 0 10px;
  color: var(--mobilecebe3-muted);
  font-size: 13.5px;
}

.mobilecebe3-note p:last-child { margin-bottom: 0; }

.mobilecebe3-note strong { color: var(--mobilecebe3-ink); }

.mobilecebe3-h3 {
  font-family: var(--mobilecebe3-f-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mobilecebe3-amber);
  margin: 16px 0 6px;
}

.mobilecebe3-note .mobilecebe3-h3:first-child { margin-top: 2px; }

.mobilecebe3-link {
  color: var(--mobilecebe3-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobilecebe3-link:active,
.mobilecebe3-link:hover { color: #ffd08a; }

/* Game wings --------------------------------------------------------------- */

.mobilecebe3-wing { margin-top: 26px; }

.mobilecebe3-kick {
  display: block;
  font-family: var(--mobilecebe3-f-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mobilecebe3-salmon);
  margin-bottom: 3px;
}

.mobilecebe3-winghead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 2px solid var(--mobilecebe3-red);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.mobilecebe3-h2 {
  font-family: var(--mobilecebe3-f-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--mobilecebe3-amber);
  margin: 0;
  flex: 1 1 auto;
}

.mobilecebe3-wingcount {
  flex: 0 0 auto;
  font-family: var(--mobilecebe3-f-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d1d1d;
  background: var(--mobilecebe3-salmon);
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Game grid: 4 columns at 320px, 5 columns on wider phone canvases -------- */

.mobilecebe3-grid {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mobilecebe3-cell { min-width: 0; }

.mobilecebe3-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: var(--mobilecebe3-panel-3);
  border: 1px solid var(--mobilecebe3-line);
  border-radius: 3px;
  overflow: hidden;
  transition: transform var(--mobilecebe3-ease), border-color var(--mobilecebe3-ease);
}

.mobilecebe3-tile:active {
  transform: scale(0.94);
  border-color: var(--mobilecebe3-amber);
}

.mobilecebe3-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #171717;
  border-bottom: 1px solid #303030;
}

.mobilecebe3-tile span {
  display: block;
  min-height: 34px;
  padding: 5px 5px 6px;
  font-family: var(--mobilecebe3-f-head);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--mobilecebe3-muted);
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Decision CTA block ------------------------------------------------------- */

.mobilecebe3-cta {
  margin: 18px 0 8px;
  padding: 16px 14px;
  background: linear-gradient(150deg, #7e1717 0%, var(--mobilecebe3-red) 62%, #c22a2a 100%);
  border: 1px solid var(--mobilecebe3-amber);
  border-radius: 3px;
  text-align: center;
}

.mobilecebe3-ctatitle {
  font-family: var(--mobilecebe3-f-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffe6c2;
  margin: 0 0 4px;
}

.mobilecebe3-ctasub {
  font-size: 12px;
  color: #f3d9c4;
  margin: 0 0 12px;
}

.mobilecebe3-ctabtn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 10px;
  background: var(--mobilecebe3-amber);
  color: #1d1d1d;
  border: 0;
  border-radius: 0;
  font-family: var(--mobilecebe3-f-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--mobilecebe3-ease), background var(--mobilecebe3-ease);
}

.mobilecebe3-ctabtn:active { transform: scale(0.97); background: #ffc470; }

/* Checklist ---------------------------------------------------------------- */

.mobilecebe3-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.mobilecebe3-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--mobilecebe3-line);
  color: var(--mobilecebe3-muted);
  font-size: 13.5px;
}

.mobilecebe3-check:last-child { border-bottom: 0; }

.mobilecebe3-check b { color: var(--mobilecebe3-ink); }

.mobilecebe3-box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--mobilecebe3-green);
  border-radius: 2px;
  position: relative;
}

.mobilecebe3-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--mobilecebe3-green);
  border-bottom: 2px solid var(--mobilecebe3-green);
  transform: rotate(40deg);
}

/* Entity relationship rows ------------------------------------------------- */

.mobilecebe3-rel {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 10px 4px;
  border-bottom: 1px solid var(--mobilecebe3-line-soft);
}

.mobilecebe3-rel:last-of-type { border-bottom: 0; }

.mobilecebe3-relterm {
  margin: 0;
  font-family: var(--mobilecebe3-f-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mobilecebe3-green);
  padding-top: 2px;
}

.mobilecebe3-rel p { margin: 0; }

.mobilecebe3-relbody {
  margin: 0;
  color: var(--mobilecebe3-muted);
  font-size: 13.5px;
}

/* Extended footer (homepage only) ------------------------------------------ */

.mobilecebe3-xfoot {
  margin-top: 26px;
  border-top: 3px double var(--mobilecebe3-line);
  padding-top: 14px;
}

.mobilecebe3-xh {
  font-family: var(--mobilecebe3-f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mobilecebe3-salmon);
  margin: 0 0 8px;
}

.mobilecebe3-xsec { margin-bottom: 18px; }

.mobilecebe3-xsec p {
  margin: 0;
  font-size: 13px;
  color: var(--mobilecebe3-muted);
}

.mobilecebe3-xpromo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 6px 0;
  padding: 11px 12px;
  background: #241f1e;
  border: 1px solid #4a2b22;
  border-left: 3px solid var(--mobilecebe3-red);
  border-radius: 2px;
  color: var(--mobilecebe3-ink);
  font-size: 13px;
  text-align: left;
  transition: transform var(--mobilecebe3-ease), border-color var(--mobilecebe3-ease);
}

.mobilecebe3-xpromo:active {
  transform: scale(0.98);
  border-left-color: var(--mobilecebe3-amber);
}

.mobilecebe3-xpromo i {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--mobilecebe3-amber);
}

.mobilecebe3-xdir {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 14px;
}

.mobilecebe3-xdir a {
  display: block;
  padding: 9px 2px;
  border-bottom: 1px solid #2f2f2f;
  color: var(--mobilecebe3-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--mobilecebe3-ease);
}

.mobilecebe3-xdir a:active,
.mobilecebe3-xdir a:hover { color: var(--mobilecebe3-amber); }

.mobilecebe3-xdir em {
  font-style: normal;
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mobilecebe3-faint);
}

.mobilecebe3-xdisc {
  margin: 0;
  padding: 10px 12px;
  background: #1f1f1f;
  border: 1px dashed var(--mobilecebe3-line);
  font-size: 11.5px;
  color: var(--mobilecebe3-faint);
  line-height: 1.55;
}

/* Common copyright bar ------------------------------------------------------ */

.mobilecebe3-foot {
  margin-top: 10px;
  padding: 14px 8px 6px;
  border-top: 1px solid var(--mobilecebe3-line);
  text-align: center;
  font-size: 11.5px;
  color: var(--mobilecebe3-faint);
  letter-spacing: 0.04em;
}

/* Fixed five-role bottom bar ------------------------------------------------ */

.mobilecebe3-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  background: #1b1b1b;
  border-top: 1px solid var(--mobilecebe3-line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 90;
}

.mobilecebe3-bitem {
  flex: 1 1 20%;
  min-width: 0;
  min-height: var(--mobilecebe3-bottombar);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px 6px;
  background: transparent;
  border: 0;
  border-top: 3px solid transparent;
  color: var(--mobilecebe3-faint);
  text-decoration: none;
  position: relative;
  transition: color var(--mobilecebe3-ease), transform var(--mobilecebe3-ease), border-color var(--mobilecebe3-ease);
}

.mobilecebe3-bitem svg { display: block; }

.mobilecebe3-bitem span {
  font-family: var(--mobilecebe3-f-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobilecebe3-bitem:active { transform: scale(0.9); color: var(--mobilecebe3-muted); }

.mobilecebe3-bitem.mobilecebe3-on {
  color: var(--mobilecebe3-amber);
  border-top-color: var(--mobilecebe3-green);
  transform: translateY(-2px);
}

.mobilecebe3-bitem.mobilecebe3-on::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--mobilecebe3-green);
}

/* Wide-screen framing: keep the phone canvas, deepen the stage ------------ */

@media (min-width: 480px) {
  body { background: #101010; }

  .mobilecebe3-shell {
    box-shadow: 0 0 0 1px #0c0c0c, 0 18px 60px rgba(0, 0, 0, 0.6);
  }
}

/* 5-column game grid from 400px up (canvas tops out at 430px) -------------- */

@media (min-width: 400px) {
  .mobilecebe3-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }

  .mobilecebe3-xdir { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 375px) {
  .mobilecebe3-h1 { font-size: 25px; }
}

/* Very narrow phones: protect the action bar from crowding ----------------- */

@media (max-width: 359px) {
  .mobilecebe3-btnreg { padding: 0 8px; }
  .mobilecebe3-btnlog { padding: 0 8px; }
  .mobilecebe3-name { font-size: 16px; }
  .mobilecebe3-grid { gap: 6px; }
}

/* Respect users who prefer stillness --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .mobilecebe3-track { transition: none; }
}

/* Help-page instruments ----------------------------------------------------- */

.mobilecebe3-helpintro {
  margin: 14px 0 18px;
  padding: 15px 13px;
  border: 1px solid var(--mobilecebe3-line);
  border-top: 4px solid var(--mobilecebe3-green);
  background: linear-gradient(145deg, #292929 0%, #202020 100%);
}

.mobilecebe3-helpintro p {
  margin: 0 0 10px;
  color: var(--mobilecebe3-muted);
  font-size: 13.5px;
}

.mobilecebe3-helpintro p:last-child { margin-bottom: 0; }

.mobilecebe3-helpintro strong { color: var(--mobilecebe3-ink); }

.mobilecebe3-helpgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 16px;
}

.mobilecebe3-helpcard {
  min-width: 0;
  padding: 12px;
  background: #202020;
  border: 1px solid var(--mobilecebe3-line);
  border-left: 3px solid var(--mobilecebe3-amber);
}

.mobilecebe3-helpcard h3 {
  margin: 0 0 5px;
  font-family: var(--mobilecebe3-f-head);
  font-size: 14px;
  line-height: 1.25;
  color: var(--mobilecebe3-ink);
}

.mobilecebe3-helpcard p {
  margin: 0;
  color: var(--mobilecebe3-muted);
  font-size: 13px;
}

.mobilecebe3-helpmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  background: var(--mobilecebe3-red);
  color: #ffffff;
  font-family: var(--mobilecebe3-f-head);
  font-size: 12px;
  vertical-align: middle;
}

.mobilecebe3-helpsteps {
  display: grid;
  gap: 0;
  margin: 10px 0 18px;
  border: 1px solid var(--mobilecebe3-line);
  background: #1f1f1f;
}

.mobilecebe3-helpstep {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 11px;
  border-bottom: 1px dashed var(--mobilecebe3-line);
}

.mobilecebe3-helpstep:last-child { border-bottom: 0; }

.mobilecebe3-helpstepindex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--mobilecebe3-green);
  color: #171717;
  font-family: var(--mobilecebe3-f-head);
  font-weight: 800;
}

.mobilecebe3-helpstep h3 {
  margin: 0 0 4px;
  font-family: var(--mobilecebe3-f-head);
  font-size: 14px;
  color: var(--mobilecebe3-amber);
}

.mobilecebe3-helpstep p {
  margin: 0;
  color: var(--mobilecebe3-muted);
  font-size: 13.5px;
}

.mobilecebe3-helpsymptoms {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
}

.mobilecebe3-helpsymptom {
  padding: 12px;
  background: #242424;
  border-right: 3px solid var(--mobilecebe3-salmon);
}

.mobilecebe3-helpsymptom h3 {
  margin: 0 0 6px;
  font-family: var(--mobilecebe3-f-head);
  font-size: 14px;
  color: var(--mobilecebe3-salmon);
}

.mobilecebe3-helpsymptom p {
  margin: 0 0 7px;
  color: var(--mobilecebe3-muted);
  font-size: 13px;
}

.mobilecebe3-helpsymptom p:last-child { margin-bottom: 0; }

.mobilecebe3-helpsignal {
  display: inline-block;
  margin-right: 4px;
  color: var(--mobilecebe3-green);
  font-family: var(--mobilecebe3-f-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobilecebe3-helpactions {
  display: grid;
  gap: 7px;
  margin: 12px 0 18px;
}

.mobilecebe3-helpaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  background: #241f1e;
  border: 1px solid #4a2b22;
  border-left: 4px solid var(--mobilecebe3-red);
  color: var(--mobilecebe3-ink);
  text-align: left;
  font-size: 13px;
  transition: transform var(--mobilecebe3-ease), border-color var(--mobilecebe3-ease);
}

.mobilecebe3-helpaction:active {
  transform: scale(0.98);
  border-left-color: var(--mobilecebe3-amber);
}

.mobilecebe3-helpaction i {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--mobilecebe3-amber);
}

.mobilecebe3-helpquote {
  margin: 12px 0 18px;
  padding: 13px 14px;
  background: #29201d;
  border-left: 4px solid var(--mobilecebe3-salmon);
  color: var(--mobilecebe3-muted);
  font-size: 13.5px;
}

.mobilecebe3-helpquote strong { color: var(--mobilecebe3-ink); }

.mobilecebe3-helpfacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 0 18px;
}

.mobilecebe3-helpfact {
  min-width: 0;
  padding: 10px;
  background: #1e1e1e;
  border-bottom: 2px solid var(--mobilecebe3-red);
}

.mobilecebe3-helpfact b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mobilecebe3-f-head);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mobilecebe3-green);
  text-transform: uppercase;
}

.mobilecebe3-helpfact span {
  display: block;
  color: var(--mobilecebe3-muted);
  font-size: 12px;
  line-height: 1.4;
}

.mobilecebe3-helpquestion {
  margin: 8px 0;
  padding: 11px 12px;
  background: #232323;
  border: 1px solid var(--mobilecebe3-line-soft);
}

.mobilecebe3-helpquestion h3 {
  margin: 0 0 5px;
  font-family: var(--mobilecebe3-f-head);
  font-size: 14px;
  color: var(--mobilecebe3-amber);
}

.mobilecebe3-helpquestion p {
  margin: 0;
  color: var(--mobilecebe3-muted);
  font-size: 13.5px;
}

@media (min-width: 400px) {
  .mobilecebe3-helpgrid { grid-template-columns: 1fr 1fr; }
}
