/* korokraft — game177 — TABBED DECK 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: #e8f8f5;
  --t-bg2: #d1f2eb;
  --t-card: #ffffff;
  --t-text: #1b4d3e;
  --t-muted: #5c8a7a;
  --t-accent: #117a65;
  --t-accent2: #0e6251;
  --t-header: linear-gradient(180deg,#ffffff,#d1f2eb);
  --t-radius: 12px;
  --t-font: 'DM Sans', 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; }
.kf-master { min-height: 100vh; }

.kf-roof { background: var(--t-header); padding: 12px 16px; border-bottom: 2px solid var(--t-accent); }
.kf-roof-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.kf-roof-brand img { max-height: 42px; max-width: 170px; }
.kf-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; }
.kf-activator:hover { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }

.kf-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; }
.kf-drawer.is-open { transform: translateX(0); }
.kf-drawer a { display: block; padding: 12px; color: var(--t-text); border-bottom: 1px solid rgba(128,128,128,.12); }
.kf-screen { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 299; display: none; }
.kf-screen.is-open { display: block; }

.kf-tab-nav { max-width: 1180px; margin: 0 auto; padding: 12px 16px 0; display: flex; gap: 4px; overflow-x: auto; }
.kf-tab-btn { padding: 10px 20px; background: var(--t-bg2); color: var(--t-text); border: none; border-radius: 10px 10px 0 0; cursor: pointer; font-size: 14px; font-weight: 600; font-family: var(--t-font); white-space: nowrap; border: 1px solid rgba(128,128,128,.1); border-bottom: none; }
.kf-tab-btn.is-active { background: var(--t-card); color: var(--t-accent); position: relative; }
.kf-tab-btn.is-active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--t-accent); }

.kf-stage { max-width: 1180px; margin: 0 auto; padding: 16px; }
.kf-pane { display: none; }
.kf-pane.is-active { display: block; }

.kf-billboard { margin-bottom: 20px; padding: 22px; background: var(--t-card); border-radius: var(--t-radius); }
.kf-billboard h1 { font-size: 1.55rem; margin-bottom: 8px; color: var(--t-accent); }
.kf-lede { color: var(--t-muted); font-size: 15px; }

.kf-zone { margin-bottom: 28px; }
.kf-zone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--t-accent); font-size: 1.2rem; font-weight: 700; }
.kf-zone-head a { font-size: 13px; color: var(--t-muted); font-weight: 500; }

.kf-prose { background: var(--t-card); padding: 22px; border-radius: var(--t-radius); margin-bottom: 18px; }
.kf-prose h1 { font-size: 1.45rem; margin-bottom: 12px; }
.kf-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; }

.kf-game-showcase { text-align: center; margin-bottom: 16px; }
.kf-game-showcase img { max-height: 210px; margin: 0 auto; border-radius: var(--t-radius); }
.kf-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; }
.kf-game-lead { color: var(--t-muted); margin-bottom: 12px; }
.kf-guide { background: var(--t-card); border: 1px dashed var(--t-accent); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.kf-guide-head { font-weight: 700; color: var(--t-accent); margin-bottom: 8px; font-size: 1rem; }
.kf-guide-body { color: var(--t-muted); font-size: 14px; line-height: 1.65; }

.kf-collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.kf-block { display: block; position: relative; border-radius: 10px; overflow: hidden; }
.kf-block-view { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.kf-block-view img { width: 100%; height: 100%; object-fit: cover; }
.kf-block-tag { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.75); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.kf-block:hover .kf-block-view img { transform: scale(1.05); transition: transform .3s; }

.kf-site-foot { background: var(--t-bg2); padding: 28px 16px 20px; margin-top: 36px; }
.kf-foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 16px; }
.kf-foot-col h4 { color: var(--t-accent); margin-bottom: 8px; font-size: 14px; }
.kf-foot-col a { display: block; color: var(--t-muted); font-size: 13px; padding: 3px 0; }
.kf-foot-col p { color: var(--t-muted); font-size: 13px; }
.kf-foot-legal { text-align: center; color: var(--t-muted); font-size: 13px; }

.kf-desc-block { background: var(--t-card); padding: 24px; border-radius: var(--t-radius); margin: 20px 0 12px; }
.kf-desc-block h2 { color: var(--t-accent); margin-bottom: 10px; }
.kf-desc-block p { color: var(--t-muted); font-size: 14px; line-height: 1.7; }

.kf-hero-band { background: linear-gradient(135deg, var(--t-accent), var(--t-accent2)); color: #fff; padding: 36px 24px; border-radius: var(--t-radius); margin-bottom: 20px; }
.kf-hero-band h1 { font-size: 1.8rem; margin-bottom: 8px; }
.kf-hero-band p { font-size: 15px; opacity: .9; }

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

@media (max-width: 600px) { .kf-foot-grid { grid-template-columns: 1fr 1fr; } .kf-tab-btn { padding: 8px 14px; font-size: 13px; } }
@media (max-width: 768px) {
  .kf-collection { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
