/* tunnel.css — the 3-screen onboarding tunnel. Same table stays on screen
 * between screens (continuity, not fade-to-black) per the brief §2. */

.kt-tunnel {
  position: fixed; inset: 0; z-index: 500;
  background: var(--wood);
  background-image: radial-gradient(80% 55% at 50% -5%, rgba(255,226,175,.30) 0%, rgba(255,226,175,0) 70%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.kt-tunnel__what {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 1px solid var(--on-wood-soft);
  color: var(--on-wood-soft); border-radius: 999px;
  font: 12px var(--body); padding: 6px 12px; cursor: pointer;
  opacity: .7;
}
.kt-tunnel__what:hover { opacity: 1; }

.kt-screen {
  max-width: 560px; width: 100%; text-align: center;
  color: var(--on-wood);
  animation: kt-fade-in .4s ease-out;
}
@media (prefers-reduced-motion: reduce) { .kt-screen { animation: none; } }
@keyframes kt-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.kt-screen__h1 {
  font: 700 30px/1.25 var(--display); color: var(--on-wood);
  margin: 14px 0 10px;
}
.kt-screen__p { font: 17px/1.5 var(--body); color: var(--on-wood-soft); margin: 0 0 18px; }
.kt-screen__hand { font: 24px var(--hand); color: #bcd6ec; margin: -6px 0 18px; }

.kt-screen .btn {
  display: inline-block; margin: 4px 0 10px;
}
.kt-skip {
  display: block; margin: 0 auto; background: none; border: none;
  color: var(--on-wood-soft); font: 13px var(--body); text-decoration: underline;
  cursor: pointer; opacity: .75;
}
.kt-skip:hover { opacity: 1; }

/* Screen 1 — the envelope */
.kt-table { height: 92px; position: relative; margin-bottom: 6px; }
.kt-envelope {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 84px; height: 54px; background: var(--paper);
  border-radius: 3px; box-shadow: 0 6px 14px rgba(0,0,0,.35);
}
.kt-envelope::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 49%, var(--paper-lo) 50%, transparent 51%),
              linear-gradient(45deg, transparent 49%, var(--paper-lo) 50%, transparent 51%);
}
.kt-envelope--main {
  top: 38px; animation: kt-drop .55s cubic-bezier(.3,.9,.4,1.2) both;
}
@keyframes kt-drop { from { top: -60px; opacity: 0; } to { top: 38px; opacity: 1; } }
.kt-envelope__bill {
  position: absolute; width: 46px; height: 24px; background: var(--ledger);
  border: 1px solid rgba(0,0,0,.25); border-radius: 2px; opacity: .9;
}
.kt-envelope--main .kt-envelope__bill:nth-child(1) { top: -10px; left: 6px; transform: rotate(-6deg); }
.kt-envelope--main .kt-envelope__bill:nth-child(2) { top: -14px; left: 30px; transform: rotate(4deg); }

.kt-envelope--small {
  top: 0; width: 54px; height: 34px; transition: opacity .5s, top .5s;
}
.kt-envelope--small .kt-envelope__bill { width: 30px; height: 16px; top: -6px; left: 12px; }
.kt-envelope__note {
  position: absolute; top: -14px; left: 60px; width: 150px; font-size: 14px;
  color: #f0e2c0; text-align: left; transform: rotate(-2deg);
}
.kt-envelope--gone { opacity: 0; top: 60px; }

/* Screen 2 — the salt shakers */
.kt-shakers { display: flex; gap: 26px; justify-content: center; align-items: flex-end; margin-bottom: 10px; }
.kt-shaker-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kt-shaker {
  width: 54px; border: none; cursor: pointer; padding: 0;
  background: linear-gradient(180deg, #eee 0%, #cfd2d6 100%);
  border-radius: 10px 10px 4px 4px;
}
.kt-shaker--real { height: 58px; }
.kt-shaker--bank { height: 78px; }
.kt-shaker__lbl {
  width: 96px; font: 10px var(--figures); color: var(--on-wood-soft); text-align: center;
}
.kt-shakers__caption { display: block; min-height: 16px; font: 12px var(--hand); color: #bcd6ec; margin: 0 0 4px; }

/* Screen 3 — rings + the tug of war */
.kt-rings { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.kt-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--on-wood-link); opacity: .5; }
.kt-ring:nth-child(-n+4) { opacity: .9; background: rgba(240,189,118,.25); }

.kt-tug { display: flex; gap: 30px; justify-content: center; font-size: 26px; margin-bottom: 2px; }
.kt-tug__key, .kt-tug__receipt { display: inline-block; animation: kt-tug 1.6s ease-in-out infinite; }
.kt-tug__receipt { animation-delay: .8s; }
@media (prefers-reduced-motion: reduce) { .kt-tug__key, .kt-tug__receipt { animation: none; } }
@keyframes kt-tug { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.kt-tug__caption { text-align: center; color: var(--on-wood-soft); margin: 0 0 8px; }

.kt-tiles { display: grid; gap: 12px; text-align: left; margin: 16px 0 20px; }
.kt-tile {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 12px 14px; font: 14.5px/1.5 var(--body); color: var(--on-wood-soft);
}
.kt-tile b { color: var(--on-wood); }

@media (max-width: 600px) {
  .kt-screen__h1 { font-size: 24px; }
  .kt-tunnel { padding: 16px; }
}
