/* coralreef — game179 — FILMSTRIP horizontal scroll layout */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Fredoka:wght@400;600&family=IBM+Plex+Sans:wght@400;600;700&family=Libre+Franklin:wght@400;600;700&family=Merriweather:wght@400;700&family=Nunito:wght@400;600;700&family=Oswald:wght@400;600;700&family=Poppins:wght@400;600;700&family=Press+Start+2P&family=Quicksand:wght@400;600;700&display=swap');
:root {
  --t-bg: #e0f7fa;
  --t-bg2: #b2ebf2;
  --t-card: #ffffff;
  --t-text: #004d40;
  --t-muted: #338a7d;
  --t-accent: #ff6f61;
  --t-accent2: #e6513e;
  --t-header: linear-gradient(180deg,#ffffff,#b2ebf2);
  --t-radius: 20px;
  --t-font: 'Quicksand', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--t-font); background: var(--t-bg); color: var(--t-text); line-height: 1.55; }
a { color: var(--t-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.cr-master { min-height: 100vh; }

.cr-rail { background: var(--t-header); padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-rail-brand img { max-height: 44px; max-width: 170px; flex-shrink: 0; }
.cr-rail-search { flex: 1; max-width: 460px; display: flex; gap: 6px; margin: 0 auto; }
.cr-rail-search input { flex: 1; padding: 9px 14px; border-radius: 22px; border: 2px solid rgba(128,128,128,.15); background: var(--t-card); color: var(--t-text); font-size: 14px; }
.cr-rail-search button { padding: 9px 18px; background: linear-gradient(135deg, var(--t-accent), var(--t-accent2)); color: #fff; border: none; border-radius: 22px; cursor: pointer; font-weight: 600; font-size: 14px; }
.cr-activator { background: var(--t-card); border: 1px solid rgba(128,128,128,.2); color: var(--t-text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.cr-activator:hover { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }

.cr-cat-nav { background: var(--t-bg2); padding: 8px 16px; overflow-x: auto; }
.cr-cat-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px; }
.cr-cat { display: inline-block; padding: 6px 14px; background: var(--t-card); color: var(--t-text); border-radius: 999px; font-size: 13px; white-space: nowrap; }
.cr-cat:hover, .cr-cat.is-active { background: var(--t-accent); color: #fff; }

.cr-drawer { position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background: var(--t-bg2); z-index: 300; transform: translateX(-100%); transition: transform .28s; padding: 20px; overflow-y: auto; }
.cr-drawer.is-open { transform: translateX(0); }
.cr-drawer a { display: block; padding: 12px; color: var(--t-text); border-bottom: 1px solid rgba(128,128,128,.12); }
.cr-screen { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 299; display: none; }
.cr-screen.is-open { display: block; }

.cr-stage { max-width: 1180px; margin: 0 auto; padding: 16px; }
.cr-billboard { margin-bottom: 20px; padding: 22px; background: var(--t-card); border-radius: var(--t-radius); }
.cr-billboard h1 { font-size: 1.55rem; margin-bottom: 8px; color: var(--t-accent); }
.cr-lede { color: var(--t-muted); font-size: 15px; }

.cr-strip-zone { margin-bottom: 28px; }
.cr-strip-mark { font-size: 1.2rem; font-weight: 700; color: var(--t-accent); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.cr-strip-mark a { font-size: 13px; color: var(--t-muted); font-weight: 500; }
.cr-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.cr-strip::-webkit-scrollbar { height: 6px; }
.cr-strip::-webkit-scrollbar-thumb { background: var(--t-accent); border-radius: 3px; }
.cr-fish { flex: 0 0 200px; scroll-snap-align: start; background: var(--t-card); border-radius: 16px; overflow: hidden; }
.cr-fish-frame { aspect-ratio: 4/3; overflow: hidden; }
.cr-fish-frame img { width: 100%; height: 100%; object-fit: cover; }
.cr-fish-label { display: block; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--t-text); }
.cr-fish:hover .cr-fish-frame img { transform: scale(1.05); transition: transform .3s; }

.cr-prose { background: var(--t-card); padding: 22px; border-radius: var(--t-radius); margin-bottom: 18px; }
.cr-prose h1 { font-size: 1.45rem; margin-bottom: 12px; }
.cr-prose p { margin-bottom: 10px; color: var(--t-muted); }
.ad-content { margin: 12px 0; text-align: center; }
.back-icon { position: fixed; top: 12px; left: 12px; z-index: 9999999999; }
.back-icon img { border-radius: 50%; background: var(--t-card); padding: 4px; }

.cr-game-showcase { text-align: center; margin-bottom: 16px; }
.cr-game-showcase img { max-height: 210px; margin: 0 auto; border-radius: var(--t-radius); }
.cr-launch-btn { display: block; width: 100%; max-width: 300px; margin: 18px auto; padding: 14px 28px; background: linear-gradient(135deg, var(--t-accent), var(--t-accent2)); color: #fff; border: none; border-radius: var(--t-radius); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.cr-game-lead { color: var(--t-muted); margin-bottom: 12px; }
.cr-guide { background: var(--t-card); border: 1px dashed var(--t-accent); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.cr-guide-head { font-weight: 700; color: var(--t-accent); margin-bottom: 8px; font-size: 1rem; }
.cr-guide-body { color: var(--t-muted); font-size: 14px; line-height: 1.65; }

.cr-site-foot { background: var(--t-bg2); padding: 24px 16px; margin-top: 36px; text-align: center; }
.cr-foot-nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.cr-foot-nav a { color: var(--t-muted); font-size: 14px; }
.cr-foot-nav a:hover { color: var(--t-accent); }
.cr-foot-legal, .cr-foot-contact { color: var(--t-muted); font-size: 13px; margin-bottom: 8px; }

.cr-testimonial { background: var(--t-card); padding: 28px; border-radius: var(--t-radius); margin: 20px 0 12px; }
.cr-testimonial blockquote { padding: 0; margin: 0; border: none; }
.cr-testimonial blockquote p { font-size: 1.1rem; font-style: italic; color: var(--t-text); margin-bottom: 8px; }
.cr-testimonial cite { font-size: 13px; color: var(--t-muted); }
.cr-testimonial-desc { color: var(--t-muted); font-size: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(128,128,128,.15); }

.cr-timeline { margin-bottom: 20px; }
.cr-timeline h1 { font-size: 1.5rem; margin-bottom: 20px; color: var(--t-accent); }
.cr-tl-entry { display: flex; gap: 16px; margin-bottom: 20px; }
.cr-tl-dot { width: 14px; height: 14px; background: var(--t-accent); border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.cr-tl-body { background: var(--t-card); padding: 14px 18px; border-radius: var(--t-radius); flex: 1; }
.cr-tl-body h3 { font-size: 14px; color: var(--t-accent); margin-bottom: 4px; }
.cr-tl-body p { font-size: 13px; color: var(--t-muted); }

.cr-about-reel { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; margin-bottom: 20px; }
.cr-about-reel::-webkit-scrollbar { height: 4px; }
.cr-about-reel::-webkit-scrollbar-thumb { background: var(--t-accent); border-radius: 2px; }
.cr-about-card { flex: 0 0 280px; scroll-snap-align: start; background: var(--t-card); padding: 20px; border-radius: var(--t-radius); min-height: 180px; }
.cr-about-card h3 { font-size: 15px; color: var(--t-accent); margin-bottom: 8px; }
.cr-about-card p { font-size: 13px; color: var(--t-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .cr-rail { flex-wrap: wrap; }
  .cr-rail-search { flex-basis: 100%; max-width: 100%; margin: 0; order: 3; }
  .cr-fish { flex: 0 0 160px; }
}
