/* ============================================================
   Arionply mobile lobby stylesheet (arionply.click)
   Class prefix: shell89e12-
   Canvas: 320-430px phone-first, dark #333333 base
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --shell89e12-ink: #FAFAD2;
  --shell89e12-ink-soft: rgba(250, 250, 210, 0.74);
  --shell89e12-ink-faint: rgba(250, 250, 210, 0.52);
  --shell89e12-bg: #333333;
  --shell89e12-bg-deep: #2A2A28;
  --shell89e12-panel: #3C3C38;
  --shell89e12-line: rgba(250, 250, 210, 0.16);
  --shell89e12-teal: #20B2AA;
  --shell89e12-teal-deep: #17857E;
  --shell89e12-orange: #FFA500;
  --shell89e12-peach: #FFB347;
  --shell89e12-canvas: 430px;
  --shell89e12-radius-xl: 18px;
  --shell89e12-radius-md: 12px;
  --shell89e12-radius-sm: 8px;
  --shell89e12-head-font: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --shell89e12-body-font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #232320;
  color: var(--shell89e12-ink);
  font-family: var(--shell89e12-body-font);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--shell89e12-peach); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--shell89e12-peach); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--shell89e12-teal); color: #1E2320; }

/* ---------- Phone canvas ---------- */
.shell89e12-page {
  position: relative;
  max-width: var(--shell89e12-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shell89e12-bg);
  overflow-x: clip;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
@media (min-width: 431px) {
  body { background: #1D1D1B; }
  .shell89e12-page {
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Skip link ---------- */
.shell89e12-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--shell89e12-teal);
  color: #10201E;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 var(--shell89e12-radius-sm) 0;
}
.shell89e12-skip:focus { left: 0; }

/* ---------- Top action strip ---------- */
.shell89e12-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #3C3C38 0%, #333333 100%);
  border-bottom: 1px solid var(--shell89e12-line);
}
.shell89e12-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.shell89e12-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--shell89e12-line);
  background: var(--shell89e12-bg-deep);
}
.shell89e12-brandname {
  font-family: var(--shell89e12-head-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--shell89e12-ink);
  white-space: nowrap;
}
.shell89e12-topacts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Light-rounded text button group */
.shell89e12-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--shell89e12-radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.shell89e12-btn:active { transform: scale(0.95); }
.shell89e12-btn-ghost {
  border: 1px solid var(--shell89e12-line);
  background: rgba(250, 250, 210, 0.06);
  color: var(--shell89e12-ink);
}
.shell89e12-btn-main {
  background: linear-gradient(135deg, var(--shell89e12-orange) 0%, var(--shell89e12-peach) 100%);
  color: #3A2A00;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.28);
}
.shell89e12-btn-teal {
  background: var(--shell89e12-teal);
  color: #0F2523;
}
.shell89e12-menubtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--shell89e12-radius-sm);
  border: 1px solid var(--shell89e12-line);
  background: rgba(32, 178, 170, 0.16);
  color: var(--shell89e12-teal);
}
.shell89e12-menubtn:active { transform: scale(0.92); }
.shell89e12-menubtn svg { width: 22px; height: 22px; }

/* ---------- Sectioned slide-in menu ---------- */
.shell89e12-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(12, 12, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.shell89e12-scrim-on { opacity: 1; visibility: visible; }
.shell89e12-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(86vw, 336px);
  background: var(--shell89e12-bg-deep);
  border-left: 1px solid var(--shell89e12-line);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  padding: 14px 14px calc(90px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.shell89e12-menu-open { transform: translateX(0); visibility: visible; }
.shell89e12-menuhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--shell89e12-line);
}
.shell89e12-menutitle {
  font-family: var(--shell89e12-head-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--shell89e12-ink);
}
.shell89e12-menuclose {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--shell89e12-radius-sm);
  border: 1px solid var(--shell89e12-line);
  color: var(--shell89e12-ink-soft);
  font-size: 18px;
  line-height: 1;
}
.shell89e12-menugroup { margin-top: 16px; }
.shell89e12-menulabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--shell89e12-teal);
  margin: 0 0 7px 3px;
}
.shell89e12-menulink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--shell89e12-radius-sm);
  background: rgba(250, 250, 210, 0.05);
  border: 1px solid transparent;
  color: var(--shell89e12-ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.shell89e12-menulink + .shell89e12-menulink { margin-top: 7px; }
.shell89e12-menulink:hover { text-decoration: none; background: rgba(32, 178, 170, 0.14); }
.shell89e12-menulink:active { transform: scale(0.98); }
.shell89e12-menuarrow { color: var(--shell89e12-peach); font-weight: 700; }
.shell89e12-menufoot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--shell89e12-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shell89e12-menufoot .shell89e12-btn { width: 100%; }

/* ---------- Main scroll body ---------- */
.shell89e12-main {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* ---------- Banner carousel ---------- */
.shell89e12-hero { padding: 14px 12px 0; }
.shell89e12-carousel {
  position: relative;
  border-radius: var(--shell89e12-radius-xl);
  overflow: hidden;
  border: 1px solid var(--shell89e12-line);
  background: var(--shell89e12-bg-deep);
}
.shell89e12-track { display: flex; transition: transform 0.38s ease; }
.shell89e12-slide { flex: 0 0 100%; width: 100%; display: block; }
.shell89e12-slide img {
  width: 100%;
  aspect-ratio: 640 / 226;
  object-fit: cover;
}
.shell89e12-slide:active img { transform: scale(0.99); }
.shell89e12-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 2px;
  z-index: 2;
}
.shell89e12-dot {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.shell89e12-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 250, 210, 0.42);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.shell89e12-dot:active::before { transform: scale(0.85); }
.shell89e12-dot-on::before {
  background: var(--shell89e12-peach);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.6);
}

/* ---------- H1 + lead ---------- */
.shell89e12-intro { padding: 16px 14px 0; }
.shell89e12-h1 {
  font-family: var(--shell89e12-head-font);
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: 0.2px;
  color: var(--shell89e12-ink);
}
.shell89e12-h1 .shell89e12-hl { color: var(--shell89e12-peach); }
.shell89e12-lead {
  margin-top: 9px;
  color: var(--shell89e12-ink-soft);
  font-size: 13.5px;
}
.shell89e12-ctarow {
  display: flex;
  gap: 8px;
  margin: 13px 14px 0;
}
.shell89e12-ctarow .shell89e12-btn { flex: 1; }

/* ---------- Game shelf zones ---------- */
.shell89e12-zone { padding: 22px 12px 0; }
.shell89e12-zonehead {
  font-family: var(--shell89e12-head-font);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--shell89e12-ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.shell89e12-zonehead::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--shell89e12-teal) 0%, var(--shell89e12-orange) 100%);
}
.shell89e12-zonetext {
  margin: 7px 2px 11px;
  color: var(--shell89e12-ink-soft);
  font-size: 13px;
}
.shell89e12-zonetext strong { color: var(--shell89e12-ink); }
.shell89e12-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 400px) {
  .shell89e12-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

/* Game card: square art + bottom name bar */
.shell89e12-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--shell89e12-radius-md);
  overflow: hidden;
  background: var(--shell89e12-panel);
  border: 1px solid var(--shell89e12-line);
  text-align: center;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}
.shell89e12-card:hover { border-color: rgba(32, 178, 170, 0.55); text-decoration: none; }
.shell89e12-card:active {
  transform: translateY(-2px) scale(0.97);
  border-color: var(--shell89e12-teal);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.shell89e12-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: rgba(250, 250, 210, 0.045);
}
.shell89e12-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shell89e12-cardname {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 4px 6px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--shell89e12-ink);
  background: linear-gradient(180deg, rgba(250, 250, 210, 0.04), rgba(250, 250, 210, 0.07));
  border-top: 1px solid rgba(250, 250, 210, 0.08);
  overflow-wrap: anywhere;
}
.shell89e12-zonenote {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--shell89e12-ink-faint);
}
.shell89e12-zonenote a { color: var(--shell89e12-teal); font-weight: 600; }

/* ---------- Content modules ---------- */
.shell89e12-modhead {
  font-family: var(--shell89e12-head-font);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--shell89e12-ink);
}
.shell89e12-modlead {
  margin-top: 8px;
  font-size: 13.2px;
  color: var(--shell89e12-ink-soft);
}

/* Module A: numbered steps */
.shell89e12-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.shell89e12-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: var(--shell89e12-radius-md);
  background: rgba(250, 250, 210, 0.04);
  border: 1px solid var(--shell89e12-line);
}
.shell89e12-stepnum {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shell89e12-teal-deep);
  color: var(--shell89e12-ink);
  font-weight: 700;
  font-size: 13px;
}
.shell89e12-steptext { font-size: 13px; color: var(--shell89e12-ink-soft); }
.shell89e12-steptext strong { color: var(--shell89e12-ink); }
.shell89e12-modwrap { margin-top: 22px; padding: 0 2px; }

/* Module B: feature grid */
.shell89e12-feats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 375px) {
  .shell89e12-feats { grid-template-columns: 1fr 1fr; }
}
.shell89e12-feat {
  padding: 11px 11px 13px;
  border-radius: 0 0 var(--shell89e12-radius-md) var(--shell89e12-radius-md);
  border-top: 3px solid var(--shell89e12-teal);
  background: rgba(250, 250, 210, 0.04);
  border-left: 1px solid var(--shell89e12-line);
  border-right: 1px solid var(--shell89e12-line);
  border-bottom: 1px solid var(--shell89e12-line);
}
.shell89e12-feat h3 {
  font-family: var(--shell89e12-head-font);
  font-size: 13.5px;
  color: var(--shell89e12-peach);
  margin-bottom: 5px;
}
.shell89e12-feat p { font-size: 12.6px; color: var(--shell89e12-ink-soft); }

/* Module C: offer rows */
.shell89e12-offers { margin-top: 12px; display: flex; flex-direction: column; gap: 11px; }
.shell89e12-offer {
  padding: 12px 13px 13px;
  border-radius: var(--shell89e12-radius-md);
  background: rgba(32, 178, 170, 0.09);
  border: 1px dashed rgba(255, 179, 71, 0.5);
}
.shell89e12-offer h3 {
  font-family: var(--shell89e12-head-font);
  font-size: 14.5px;
  color: var(--shell89e12-ink);
}
.shell89e12-offer p {
  margin-top: 4px;
  font-size: 12.8px;
  color: var(--shell89e12-ink-soft);
}
.shell89e12-offerbtns {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shell89e12-offerbtns .shell89e12-btn {
  min-height: 42px;
  padding: 0 13px;
  font-size: 12.6px;
}

/* Module D: checklist + verdict */
.shell89e12-checks { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.shell89e12-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: var(--shell89e12-radius-sm);
  background: rgba(250, 250, 210, 0.04);
  border: 1px solid var(--shell89e12-line);
}
.shell89e12-checksvg { flex: 0 0 20px; margin-top: 1px; color: var(--shell89e12-teal); }
.shell89e12-checktext { font-size: 12.8px; color: var(--shell89e12-ink-soft); }
.shell89e12-checktext strong { color: var(--shell89e12-ink); }
.shell89e12-verdict {
  margin-top: 13px;
  padding: 12px 13px;
  border-radius: var(--shell89e12-radius-md);
  border: 1px solid rgba(255, 165, 0, 0.55);
  background: rgba(255, 165, 0, 0.1);
  font-size: 13px;
  color: var(--shell89e12-ink);
}

/* ---------- Extended footer (homepage only) ---------- */
.shell89e12-xfoot {
  margin: 26px 12px 0;
  padding: 16px 14px 15px;
  border-radius: var(--shell89e12-radius-xl) var(--shell89e12-radius-xl) var(--shell89e12-radius-sm) var(--shell89e12-radius-sm);
  background: var(--shell89e12-bg-deep);
  border: 1px solid var(--shell89e12-line);
}
.shell89e12-xbrand { font-size: 12.8px; color: var(--shell89e12-ink-soft); }
.shell89e12-dirlabel {
  margin-top: 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--shell89e12-teal);
}
.shell89e12-directory {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}
.shell89e12-directory a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--shell89e12-ink);
  border-bottom: 1px dotted rgba(250, 250, 210, 0.18);
}
.shell89e12-directory a:hover { color: var(--shell89e12-peach); text-decoration: none; }
.shell89e12-directory a::before {
  content: "›";
  margin-right: 7px;
  color: var(--shell89e12-teal);
  font-weight: 700;
}
.shell89e12-xpromos {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shell89e12-xpromos .shell89e12-btn {
  width: 100%;
  min-height: 44px;
  font-size: 12.6px;
  padding: 0 8px;
}
.shell89e12-xnote {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--shell89e12-line);
  font-size: 11.6px;
  line-height: 1.55;
  color: var(--shell89e12-ink-faint);
}

/* ---------- Common footer ---------- */
.shell89e12-footer {
  margin-top: 20px;
  padding: 14px 16px 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--shell89e12-ink-faint);
  border-top: 1px solid var(--shell89e12-line);
}

/* ---------- Layered bottom navigation ---------- */
.shell89e12-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 45;
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #3C3C38 0%, #2C2C29 100%);
  border-top: 2px solid var(--shell89e12-teal);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.4);
}
.shell89e12-navitem {
  flex: 1;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--shell89e12-ink-faint);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.shell89e12-navitem svg { width: 22px; height: 22px; }
.shell89e12-navitem:hover { text-decoration: none; color: var(--shell89e12-ink-soft); }
.shell89e12-navitem:active { transform: scale(0.92); }
.shell89e12-navitem-on { color: var(--shell89e12-peach); transform: translateY(-3px); }
.shell89e12-navitem-on::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--shell89e12-peach);
}

/* ---------- Motion budget ---------- */
@media (prefers-reduced-motion: reduce) {
  .shell89e12-menu,
  .shell89e12-scrim,
  .shell89e12-track,
  .shell89e12-card,
  .shell89e12-navitem,
  .shell89e12-btn,
  .shell89e12-dot::before {
    transition: none !important;
  }
}
