/* ============================================================
   4686-shell.css  —  color-game-perya.homes
   All custom classes / variables use the ui68- prefix.
   Mobile-first canvas (320–430px). Centered frame on wide
   screens. Layered bottom bar, edge-aligned header, stacked
   overlay menu, underline active cues, icon state morph.
   ============================================================ */

:root {
  --ui68-yellow: #FFCC02;
  --ui68-amber: #FFBF00;
  --ui68-orange: #FFAA00;
  --ui68-neon: #00FF00;
  --ui68-ink: #262626;
  --ui68-ink-2: #1c1c1c;
  --ui68-ink-3: #303030;
  --ui68-grey: #D3D3D3;
  --ui68-grey-2: #9aa0a6;
  --ui68-white: #ffffff;
  --ui68-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --ui68-radius: 14px;
  --ui68-radius-sm: 10px;
  --ui68-max: 480px;
  --ui68-header-h: 62px;
  --ui68-bottom-h: 70px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ui68-ink);
  color: var(--ui68-grey);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

a { color: var(--ui68-yellow); text-decoration: none; }
a:focus { outline: 2px solid var(--ui68-neon); outline-offset: 2px; }

/* ===== Page frame: keep the mobile canvas on wide screens ===== */
.ui68-frame {
  position: relative;
  max-width: var(--ui68-max);
  margin: 0 auto;
  background: linear-gradient(180deg, #2a2a2a 0%, #1d1d1d 40%, #262626 100%);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, .5);
  overflow: hidden;
}

body.ui68-no-scroll { overflow: hidden; }

/* ============================================================
   HEADER — edge-aligned functional head
   ============================================================ */
.ui68-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--ui68-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(90deg, #1c1c1c 0%, #262626 60%, #1c1c1c 100%);
  border-bottom: 2px solid var(--ui68-orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
}

.ui68-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ui68-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 2px solid var(--ui68-yellow);
  object-fit: cover;
  background: var(--ui68-ink-3);
  flex-shrink: 0;
}

.ui68-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.ui68-brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--ui68-yellow);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui68-brand-tag {
  font-size: 10px;
  color: var(--ui68-neon);
  font-weight: 600;
  letter-spacing: .6px;
}

.ui68-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ui68-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 13px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .3px;
}
.ui68-btn:focus { outline: 2px solid var(--ui68-neon); outline-offset: 2px; }

.ui68-btn--register {
  background: linear-gradient(135deg, var(--ui68-yellow), var(--ui68-orange));
  color: var(--ui68-ink);
  box-shadow: 0 3px 10px rgba(255, 170, 0, .45);
}
.ui68-btn--register:hover { transform: translateY(-1px); }

.ui68-btn--login {
  background: transparent;
  color: var(--ui68-yellow);
  border: 1.5px solid var(--ui68-yellow);
}

.ui68-burger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ui68-ink-3);
  border: 1px solid #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background .2s ease;
}
.ui68-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ui68-yellow);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.ui68-burger--active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ui68-burger--active span:nth-child(2) { opacity: 0; }
.ui68-burger--active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   STACKED OVERLAY MENU
   ============================================================ */
.ui68-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, .86);
  backdrop-filter: blur(6px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: flex;
  justify-content: flex-end;
}
.ui68-menu--open { opacity: 1; pointer-events: auto; }

.ui68-menu-panel {
  width: 86%;
  max-width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #202020, #161616);
  border-left: 2px solid var(--ui68-orange);
  padding: 18px 16px 30px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.ui68-menu--open .ui68-menu-panel { transform: translateX(0); }

.ui68-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ui68-menu-title {
  font-size: 16px;
  color: var(--ui68-yellow);
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.ui68-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ui68-ink-3);
  color: var(--ui68-yellow);
  border: 1px solid #444;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.ui68-menu-list { list-style: none; margin: 0; padding: 0; }
.ui68-menu-list li { margin-bottom: 4px; }
.ui68-menu-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ui68-grey);
  font-weight: 600;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ui68-menu-list a:hover,
.ui68-menu-list a.ui68-menu-link--active {
  background: var(--ui68-ink-3);
  border-left-color: var(--ui68-yellow);
  color: var(--ui68-yellow);
}

.ui68-menu-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   MAIN
   ============================================================ */
.ui68-main {
  padding: 14px 12px calc(var(--ui68-bottom-h) + 30px);
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.ui68-hero {
  position: relative;
  border-radius: var(--ui68-radius);
  overflow: hidden;
  box-shadow: var(--ui68-shadow);
  margin-bottom: 14px;
  border: 1px solid #3a3a3a;
}
.ui68-hero-viewport { overflow: hidden; }
.ui68-hero-track {
  display: flex;
  transition: transform .5s ease;
}
.ui68-hero-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.ui68-hero-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.ui68-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: #fff;
}
.ui68-hero-caption strong {
  display: block;
  color: var(--ui68-yellow);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: .3px;
}
.ui68-hero-caption span {
  font-size: 12px;
  color: var(--ui68-grey);
}
.ui68-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 5;
}
.ui68-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  padding: 0;
}
.ui68-hero-dot--active {
  background: var(--ui68-yellow);
  width: 18px;
  border-radius: 4px;
}

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.ui68-cat-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ui68-cat-strip::-webkit-scrollbar { display: none; }
.ui68-cat-chip {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ui68-ink-3);
  color: var(--ui68-grey);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #3a3a3a;
  white-space: nowrap;
  cursor: pointer;
}
.ui68-cat-chip--active {
  background: linear-gradient(135deg, var(--ui68-yellow), var(--ui68-orange));
  color: var(--ui68-ink);
  border-color: var(--ui68-yellow);
}

/* ============================================================
   SECTION + GAME GRID
   ============================================================ */
.ui68-section { margin: 18px 0; }
.ui68-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #3a3a3a;
}
.ui68-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ui68-white);
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ui68-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--ui68-yellow), var(--ui68-orange));
  border-radius: 3px;
  display: inline-block;
}
.ui68-section-more {
  font-size: 11px;
  color: var(--ui68-neon);
  font-weight: 700;
}

.ui68-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .ui68-grid { gap: 9px; }
}
@media (min-width: 400px) {
  .ui68-grid { grid-template-columns: repeat(5, 1fr); }
}

.ui68-game {
  background: var(--ui68-ink-3);
  border-radius: var(--ui68-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #3a3a3a;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: block;
}
.ui68-game:hover {
  transform: translateY(-2px);
  border-color: var(--ui68-yellow);
  box-shadow: 0 6px 14px rgba(255, 170, 0, .25);
}
.ui68-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}
.ui68-game-name {
  font-size: 10.5px;
  color: var(--ui68-grey);
  text-align: center;
  padding: 4px 3px 6px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ============================================================
   INFO BLOCKS (Security / Features / Concept / Checklist)
   ============================================================ */
.ui68-info {
  background: linear-gradient(160deg, #2c2c2c, #1f1f1f);
  border-radius: var(--ui68-radius);
  padding: 16px 14px;
  margin: 12px 0;
  border: 1px solid #3a3a3a;
  border-left: 4px solid var(--ui68-yellow);
}
.ui68-info h2 {
  margin: 0 0 8px;
  color: var(--ui68-yellow);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2px;
}
.ui68-info h3 {
  margin: 14px 0 6px;
  color: var(--ui68-orange);
  font-size: 14px;
  font-weight: 700;
}
.ui68-info p {
  margin: 0 0 10px;
  color: var(--ui68-grey);
  font-size: 13.5px;
}
.ui68-info a { color: var(--ui68-neon); font-weight: 700; }
.ui68-info ul { margin: 0 0 10px; padding-left: 20px; }
.ui68-info li { margin-bottom: 5px; font-size: 13px; color: var(--ui68-grey); }

.ui68-checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 7px;
}
.ui68-checklist li {
  padding-left: 26px;
  position: relative;
  font-size: 13px;
  color: var(--ui68-grey);
}
.ui68-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ui68-neon);
  color: var(--ui68-ink);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   EXTENDED FOOTER (homepage only)
   ============================================================ */
.ui68-ext-footer {
  margin-top: 22px;
  background: #1a1a1a;
  border-radius: var(--ui68-radius);
  border: 1px solid #333;
  overflow: hidden;
}
.ui68-ext-block { padding: 14px; border-bottom: 1px solid #2a2a2a; }
.ui68-ext-block:last-child { border-bottom: none; }
.ui68-ext-block h3 {
  margin: 0 0 8px;
  color: var(--ui68-yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.ui68-ext-block p {
  margin: 0 0 8px;
  color: var(--ui68-grey);
  font-size: 12.5px;
}
.ui68-ext-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ui68-ext-links a {
  font-size: 12px;
  color: var(--ui68-grey);
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 1px dashed #333;
}
.ui68-ext-links a:hover { color: var(--ui68-yellow); }

.ui68-promo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.ui68-promo-cell {
  background: linear-gradient(135deg, #2c2c2c, #1d1d1d);
  border: 1px solid var(--ui68-orange);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  color: var(--ui68-yellow);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui68-promo-cell:hover {
  background: linear-gradient(135deg, var(--ui68-yellow), var(--ui68-orange));
  color: var(--ui68-ink);
}

.ui68-disclaimer {
  font-size: 11px;
  color: var(--ui68-grey-2);
  line-height: 1.5;
  padding: 12px 14px;
  background: #161616;
  border-top: 1px solid #2a2a2a;
}

/* ============================================================
   COMMON FOOTER (all pages)
   ============================================================ */
.ui68-footer {
  background: #161616;
  border-top: 2px solid var(--ui68-orange);
  padding: 14px 12px calc(var(--ui68-bottom-h) + 16px);
  text-align: center;
}
.ui68-footer-copy {
  font-size: 11.5px;
  color: var(--ui68-grey-2);
}

/* ============================================================
   BOTTOM NAV — layered bottom bar with compact icon + label
   ============================================================ */
.ui68-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--ui68-max);
  z-index: 70;
  background: linear-gradient(180deg, #1f1f1f, #111);
  border-top: 2px solid var(--ui68-orange);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .55);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--ui68-bottom-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ui68-bottom-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ui68-grey-2);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px 4px;
  transition: color .2s ease;
}
.ui68-bottom-item:focus { outline: 2px solid var(--ui68-neon); outline-offset: -4px; }
.ui68-bottom-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.ui68-bottom-icon svg { width: 22px; height: 22px; }
.ui68-bottom-item:hover .ui68-bottom-icon { transform: translateY(-2px) scale(1.08); }
.ui68-bottom-item--promo .ui68-bottom-icon {
  background: radial-gradient(circle, rgba(255,204,2,.25), transparent 70%);
  border-radius: 50%;
}
.ui68-bottom-item--active {
  color: var(--ui68-yellow);
}
.ui68-bottom-item--active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: var(--ui68-yellow);
  border-radius: 0 0 3px 3px;
}

/* ============================================================
   MISC UTIL
   ============================================================ */
.ui68-skip {
  position: absolute;
  left: -9999px;
}
.ui68-skip:focus {
  left: 10px; top: 10px;
  background: var(--ui68-yellow);
  color: var(--ui68-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 200;
}
