/* 아이랑 작전실 — 테이네이 무드(2차 전면 교체). 크림·살구·카라멜 수채 톤 + 명조 제목 + 부드러운 번짐 그림자.
   변수 이름은 아케이드 시절 것을 유지(값만 교체) — 템플릿 인라인 var() 참조가 그대로 새 색을 받는다. */
:root {
  --bg: #fdf8ef;
  --ink: #715841;        /* 본문·선: 웜 브라운 (구 잉크 네이비) */
  --sub: #a08466;
  --red: #e8a087;        /* 살구 (구 레드) */
  --red-dark: #c96f52;   /* 테라코타 (링크·강조) */
  --yellow: #eec98f;     /* 버터 (구 옐로) */
  --orange: #f0b9a0;     /* 피치 (구 오렌지) */
  --blue: #9db4d0;       /* 더스티 블루 (구 블루) */
  --teal: #9dbfa8;       /* 세이지 (구 틸) */
  --card: #fffdf8;
  --soft: #f7ecd9;
  --danger: #b8623f;
  --caramel: #cf9053;
  --line: #ead9bb;       /* 연한 구분선 */
  --radius: 20px;
  --pop: 0 10px 24px rgba(160, 120, 70, 0.12);      /* 이름 유지, 실체는 번짐 그림자 */
  --pop-sm: 0 6px 16px rgba(160, 120, 70, 0.10);
  --serif: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", "Batang", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }

/* ── 헤더 ─────────────────────────── */
.site-header { background: rgba(253, 248, 239, 0.94); border-bottom: 1px solid #efe2c8; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; flex-wrap: wrap; gap: 8px; }
.logo { font-weight: 700; font-size: 1.05rem; color: #8a6a4a; text-decoration: none; letter-spacing: 0.04em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #a08466; text-decoration: none; font-size: 0.87rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
}
.nav a:hover { color: var(--red-dark); background: #f7ecd9; }

.main-content { padding: 28px 18px 56px; }

/* ── 버튼 ─────────────────────────── */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: inherit; font-weight: 700; border-radius: 999px; border: none;
  box-shadow: 0 8px 18px rgba(201, 138, 75, 0.26);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(201, 138, 75, 0.32); }
.btn:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(201, 138, 75, 0.24); }
.btn-primary { background: var(--caramel); color: #fff; padding: 14px 32px; font-size: 1.02rem; letter-spacing: 0.04em; }
.btn-primary:hover { background: #c07f42; }
.btn-primary:disabled { background: #e5d9c6; color: #b3a48c; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--card); color: #8a6a4a; padding: 9px 18px; font-size: 0.9rem; border: 1px solid #e8d3b8; box-shadow: 0 4px 10px rgba(160, 120, 70, 0.08); }
.btn-ghost:hover { background: #f7ecd9; }
.btn-small { padding: 8px 16px; font-size: 0.86rem; }

/* ── 칩 ──────────────────────────── */
.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid #e8d3b8; background: var(--card); color: #8a6a4a; border-radius: 999px;
  padding: 9px 17px; font-size: 0.92rem; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 3px 9px rgba(160, 120, 70, 0.07); text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { transform: translateY(-2px); border-color: #d9b98a; }
.chip:active { transform: translateY(1px); }
.chip.on { background: var(--caramel); color: #fff; border-color: var(--caramel); animation: chip-bounce .28s ease; }
@keyframes chip-bounce { 0% { transform: scale(.94); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
.field { margin-bottom: 20px; }
.field-label { font-weight: 700; font-size: 0.98rem; margin-bottom: 9px; display: block; color: #7a5c3f; }
.field-label .num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--caramel); color: #fff; font-size: 0.76rem; align-items: center; justify-content: center; margin-right: 6px; }
.field-label .hint { color: var(--sub); font-weight: 500; font-size: 0.84rem; }

/* ── 카드 ─────────────────────────── */
.card { background: var(--card); border: none; border-radius: 24px; padding: 24px 22px; box-shadow: var(--pop); }
.section { margin-top: 40px; }
.section-title { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 6px; color: #7a5c3f; letter-spacing: 0.05em; }
.section-sub { color: var(--sub); font-size: 0.9rem; margin-bottom: 14px; }

/* ── 히어로 ───────────────────────── */
.hero { text-align: center; padding: 40px 0 8px; position: relative; }
.hero-badge {
  display: inline-block; background: transparent; color: var(--caramel); font-weight: 700; font-size: 0.78rem;
  padding: 0; border-radius: 0; letter-spacing: 0.34em; margin-bottom: 16px;
}
.hero h1 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.5; font-weight: 600; letter-spacing: 0.03em; color: #7a5c3f; }
.hero .hl {
  display: inline-block; background: linear-gradient(transparent 62%, #f2d49b 62%); border: none;
  padding: 0 6px; box-shadow: none;
}
.hero .tagline { color: var(--sub); margin-top: 16px; font-size: 0.96rem; font-weight: 400; }
.hero .big-cta { margin-top: 24px; }
.hero .deco { position: absolute; border-radius: 50%; border: none; opacity: 0.55; animation: floaty 3.6s ease-in-out infinite; }
.hero .d1 { width: 22px; height: 22px; background: var(--yellow); left: 6%; top: 20%; }
.hero .d2 { width: 14px; height: 14px; background: var(--teal); right: 8%; top: 12%; animation-delay: -1.1s; }
.hero .d3 { width: 18px; height: 18px; background: var(--orange); right: 13%; bottom: 8%; animation-delay: -2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── 뽑기 기계 (수채 톤 재스킨 — 연출 시퀀스는 유지) ── */
.machine-wrap { text-align: center; padding: 24px 0 10px; }
.machine { max-width: 360px; margin: 0 auto; position: relative; }
.dome {
  background: #fdf3e3; border: 2.5px solid #b08d68; border-radius: 26px 26px 10px 10px;
  height: 120px; position: relative; overflow: hidden; box-shadow: var(--pop-sm);
}
.dome::after { content: ""; position: absolute; top: 10px; left: 14px; width: 42px; height: 14px; background: #fffdf8; border-radius: 999px; opacity: .8; }
.cap {
  position: absolute; bottom: -6px; width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid #b08d68; background: var(--c, var(--yellow));
}
.cap::after { content: ""; position: absolute; left: -2.5px; right: -2.5px; bottom: -2.5px; height: 50%; border: 2.5px solid #b08d68; border-top: none; border-radius: 0 0 40px 40px; background: #fffdf8; }
.machine.rolling .cap { animation: jiggle .3s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes jiggle { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-16px) rotate(-12deg); } 65% { transform: translateY(-4px) rotate(9deg); } }
.led-strip {
  background: #f7ecd9; border: 2.5px solid #b08d68; border-top: none; border-radius: 0 0 10px 10px;
  padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--pop-sm);
}
.roll-window { min-height: 30px; display: flex; align-items: center; justify-content: center; font-size: 1.04rem; font-weight: 700; color: #a3773f; }
.roll-window.rolling { color: var(--caramel); animation: led-flicker .5s ease-in-out infinite; }
.roll-window.done { color: #4f8f6f; }
@keyframes led-flicker { 50% { opacity: .45; } }
.chute {
  width: 74px; height: 20px; margin: 0 auto 12px; background: #b08d68; border-radius: 0 0 14px 14px; position: relative;
}
.chute-cap {
  position: absolute; left: 50%; top: -4px; margin-left: -15px; width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid #b08d68; background: var(--red); opacity: 0; pointer-events: none;
}
.machine.dropped .chute-cap { animation: drop-cap .45s cubic-bezier(.3, .6, .4, 1.2) forwards; }
@keyframes drop-cap { 0% { opacity: 0; transform: translateY(-26px) scale(.7); } 40% { opacity: 1; } 100% { opacity: 1; transform: translateY(16px) scale(1); } }

/* ── 알림·결과 ────────────────────── */
.notice { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 11px 15px; font-size: 0.9rem; font-weight: 500; margin: 12px 0; color: #8a6a4a; }
.notice.safety { background: #f9e4dd; border-color: #eccabe; color: var(--danger); }
.result-card { text-align: left; margin-top: 16px; position: relative; }
.result-card.pop { animation: pop-in .58s cubic-bezier(.28, 1.35, .42, 1) both; }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.86) translateY(16px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.result-card h2 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; font-weight: 600; color: #7a5c3f; }
.result-card .one { color: var(--sub); margin-bottom: 12px; font-weight: 400; }
.result-badge {
  position: absolute; top: -14px; right: 14px; background: #f2d49b; border: none;
  border-radius: 999px; font-size: 0.76rem; font-weight: 700; padding: 5px 13px; color: #8a6141; box-shadow: 0 5px 12px rgba(160, 120, 70, 0.16);
}
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.meta-chip { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.79rem; font-weight: 600; color: #a3773f; }
.alt-list { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ddcba8; }
.alt-list .alt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }
.alt a { color: #8a6a4a; font-weight: 600; text-decoration: none; }
.alt a:hover { color: var(--red-dark); text-decoration: underline; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── 컨페티(파스텔 꽃잎) ───────────── */
.confetti { position: absolute; top: -8px; width: 9px; height: 13px; border: none; border-radius: 50% 50% 50% 0; opacity: 0; pointer-events: none; }
.confetti.go { animation: confetti-fall 1.25s ease-in forwards; }
@keyframes confetti-fall {
  0% { opacity: .95; transform: translateY(-10px) rotate(0); }
  100% { opacity: 0; transform: translateY(130px) rotate(300deg); }
}

/* ── 놀이 목록 ────────────────────── */
.play-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 560px) { .play-grid { grid-template-columns: 1fr 1fr; } }
.play-card {
  background: var(--card); border: none; border-radius: var(--radius); padding: 18px;
  text-decoration: none; color: var(--ink); display: block; box-shadow: var(--pop-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.play-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(160, 120, 70, 0.16); }
.play-card:active { transform: translateY(0); }
.play-card h3 { font-family: var(--serif); font-size: 1.02rem; margin-bottom: 5px; font-weight: 600; color: #7a5c3f; }
.play-card .one { color: var(--sub); font-size: 0.87rem; line-height: 1.6; font-weight: 400; }
.play-card .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 0.73rem; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 600; color: #a3773f; }

/* ── 문서형 페이지 ────────────────── */
.doc h1 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.45; margin-bottom: 14px; font-weight: 600; color: #7a5c3f; }
.doc h2 { font-family: var(--serif); font-size: 1.18rem; margin: 32px 0 10px; font-weight: 600; color: #7a5c3f; }
.doc h3 { font-size: 1rem; margin: 20px 0 8px; color: #7a5c3f; }
.doc p { margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--red-dark); font-weight: 600; }
.doc .lead { font-size: 1rem; color: var(--sub); font-weight: 400; }

/* ── 놀이 상세 ────────────────────── */
.play-head h1 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; font-weight: 600; color: #7a5c3f; }
.play-head .one { color: var(--sub); margin-top: 6px; font-size: 0.98rem; font-weight: 400; }
.gauge-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.gauge-table td { padding: 8px 0; font-size: 0.92rem; border-bottom: 1px dashed #e8dcc6; }
.gauge-table td:first-child { width: 45%; color: var(--sub); font-weight: 600; }
.dots { letter-spacing: 3px; font-size: 0.95rem; color: #d98d6a; }
.steps-box li { margin-bottom: 10px; }
.steps-box li::marker { font-weight: 700; color: var(--red-dark); }
.safety-box { background: #f9e4dd; border: 1px solid #eccabe; border-radius: 16px; padding: 15px 17px; margin: 18px 0; font-size: 0.92rem; box-shadow: none; }
.safety-box strong { color: var(--danger); }
.tip-cols { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 14px 0; }
@media (min-width: 560px) { .tip-cols { grid-template-columns: 1fr 1fr; } }
.tip-box { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; font-size: 0.91rem; }
.tip-box .tip-title { font-weight: 700; font-size: 0.84rem; margin-bottom: 4px; color: #b8763f; }

/* ── 피드백 ───────────────────────── */
.feedback { margin-top: 22px; padding-top: 16px; border-top: 1px dashed #ddcba8; }
.feedback .fb-title { font-weight: 700; font-size: 0.94rem; margin-bottom: 8px; color: #7a5c3f; }
.fb-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-done { color: #4f8f6f; font-weight: 600; font-size: 0.9rem; }

/* ── 홈 전용 ──────────────────────── */
.home-daily { margin-top: 12px; }
.flip-in { animation: flip-in .62s cubic-bezier(.2, .8, .3, 1.1) both; transform-origin: top center; }
@keyframes flip-in { 0% { opacity: 0; transform: perspective(700px) rotateX(-58deg); } 100% { opacity: 1; transform: perspective(700px) rotateX(0); } }
.situation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 560px) { .situation-grid { grid-template-columns: repeat(4, 1fr); } }
.situation-card {
  background: var(--card); border: none; border-radius: var(--radius); padding: 16px 10px 14px;
  text-align: center; text-decoration: none; color: var(--ink); box-shadow: var(--pop-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.situation-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(160, 120, 70, 0.16); }
.situation-card .emoji { font-size: 1.6rem; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 8px; background: rgba(255, 253, 248, 0.85); border-radius: 50%; box-shadow: 0 4px 10px rgba(160, 120, 70, 0.10); }
.situation-card .name { font-weight: 700; font-size: 0.92rem; color: #7a5c3f; }
.situation-card .desc { color: var(--sub); font-size: 0.77rem; margin-top: 2px; font-weight: 400; }

/* ── 스크롤 등장 ──────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22, .9, .3, 1), transform .7s cubic-bezier(.22, .9, .3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── 푸터 ─────────────────────────── */
.site-footer { background: #f3e7d3; color: #a08466; padding: 30px 0 44px; margin-top: 46px; border-top: none; }
.site-footer .disclaimer { color: #a08466; font-size: 0.84rem; margin-bottom: 14px; }
.site-footer .disclaimer strong { color: #b8763f; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.footer-nav a { color: #8a6a4a; font-size: 0.84rem; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--red-dark); }
.copyright { color: #b3a48c; font-size: 0.8rem; }

/* ── 접근성·모션 배려 ─────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a:focus-visible, button:focus-visible { outline: 3px solid #c9a06a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hero .deco, .machine.rolling .cap, .roll-window.rolling { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .confetti { display: none; }
  * { scroll-behavior: auto !important; }
}

/* ── 마스코트·띠 배경·모션 ── */
.buddy { display: inline-block; animation: floaty 3.4s ease-in-out infinite; }
.buddy-eyes { transform-box: view-box; transform-origin: 60px 50px; animation: buddy-blink 4.2s infinite; }
@keyframes buddy-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(0.12); } }
.buddy-wave .buddy-arm-r { transform-box: view-box; transform-origin: 101px 74px; animation: arm-wave 1.7s ease-in-out infinite; }
@keyframes arm-wave { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-36deg); } 62% { transform: rotate(-12deg); } 78% { transform: rotate(-30deg); } }
.buddy-hero { margin: 16px 0 2px; }
.buddy-spot { position: relative; display: inline-block; }
.buddy-spot::before { content: ""; position: absolute; inset: 12px -16px -4px -16px; background: #f9e9d2; border-radius: 48% 52% 55% 45% / 55% 48% 52% 45%; }
.buddy-spot .buddy { position: relative; }

.machine { position: relative; padding-top: 44px; }
.buddy-peek { position: absolute; top: -14px; right: 12px; z-index: 1; animation-duration: 2.8s; }
.machine.rolling .buddy-peek { animation: peek-hop .5s ease-in-out infinite; }
@keyframes peek-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px) rotate(-4deg); } }
.machine.rolling .dome, .machine.rolling .led-strip { animation: rumble .18s linear infinite; }
@keyframes rumble { 0% { transform: translate(0.5px, 0) rotate(0.1deg); } 50% { transform: translate(-0.5px, 0.4px) rotate(-0.1deg); } 100% { transform: translate(0.3px, -0.4px) rotate(0.08deg); } }
.cap::before {
  content: ""; position: absolute; top: 7px; left: 0; width: 100%; height: 14px; z-index: 1;
  background:
    radial-gradient(circle 2.4px at 12px 7px, #715841 96%, transparent),
    radial-gradient(circle 2.4px at 24px 7px, #715841 96%, transparent);
}

.wave { display: block; width: 100%; height: 34px; margin: 38px -18px -1px; }
.wave.flip { transform: scaleY(-1); margin: -1px -18px 0; }
.band { margin: 0 -18px; padding: 4px 18px 32px; }
.band > .section { margin-top: 22px; }
.band-yellow { background: #faeedd; }
.band-teal { background: #e9f1ea; }
.band .card, .band .play-card { box-shadow: var(--pop-sm); }

.sc-yellow { background: #fbe9cf; }
.sc-blue { background: #e3edf7; }
.sc-teal { background: #e2efe7; }
.sc-orange { background: #f9e0d4; }

.crew { text-align: center; margin-top: 48px; }
.crew .buddy { margin: 0 6px; }
.crew .b2 { animation-delay: -1.2s; }
.crew .b3 { animation-delay: -2.3s; }
.crew p { color: var(--sub); font-size: 0.85rem; font-weight: 500; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .buddy, .buddy-eyes, .buddy-wave .buddy-arm-r, .machine.rolling .dome, .machine.rolling .led-strip, .buddy-peek { animation: none !important; }
}

/* ── 시즌 배너·인쇄 ── */
.summer-banner {
  display: block; margin-top: 32px; padding: 14px 20px; text-align: center;
  background: #f9e8c8; border: none; border-radius: 999px;
  color: #8a6141; text-decoration: none; font-weight: 600; box-shadow: var(--pop-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.summer-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(160, 120, 70, 0.16); }
.summer-banner .arrow { font-weight: 700; }
@media print {
  .site-header, .site-footer, .crew, .no-print, .summer-banner, .buddy { display: none !important; }
  body { background: #fff; }
  .doc a { color: #000; text-decoration: none; }
}

/* ── 뽑기 기계 디테일 강화 (아기자기 패스) ── */
body { background-image: radial-gradient(#f2e6d3 1.1px, transparent 1.2px); background-size: 26px 26px; }
.glass { position: absolute; top: -12px; left: 18%; width: 34px; height: 150%; background: rgba(255, 255, 255, 0.34); transform: skewX(-20deg); border-radius: 8px; pointer-events: none; }
.cap-sm { width: 30px; height: 30px; }
.cap-sm::before { background: radial-gradient(circle 2.2px at 9px 6px, #715841 96%, transparent), radial-gradient(circle 2.2px at 19px 6px, #715841 96%, transparent) !important; }
.price-tag {
  position: absolute; top: 30px; right: -10px; z-index: 2; background: #f2d49b; color: #8a6141;
  font-size: 0.72rem; font-weight: 700; padding: 4px 11px 4px 15px; border-radius: 999px;
  transform: rotate(8deg); box-shadow: 0 5px 12px rgba(160, 120, 70, 0.18);
}
.price-tag::before { content: ""; position: absolute; left: 6px; top: 50%; margin-top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #fffdf8; }
.panel-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.knob {
  width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid #b08d68; background: #fdf3e3;
  position: relative; flex: none; box-shadow: 0 4px 10px rgba(160, 120, 70, 0.12);
}
.knob::after { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 8px; margin-left: -4px; border-radius: 5px; background: #b08d68; }
.machine.rolling .knob { animation: knob-spin .9s linear infinite; }
@keyframes knob-spin { to { transform: rotate(360deg); } }
.coin-slot {
  width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid #b08d68; background: #fdf3e3; position: relative; flex: none;
}
.coin-slot::after { content: ""; position: absolute; left: 50%; top: 7px; bottom: 7px; width: 4px; margin-left: -2px; border-radius: 3px; background: #b08d68; }
.chute-tray { display: block; width: 110px; height: 10px; margin: -4px auto 0; background: #ead9bb; border-radius: 50%; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .machine.rolling .knob { animation: none !important; } }

/* ── 전체 놀이 탐색기 ── */
.ex-panel { margin: 18px 0 14px; }
.ex-panel .field { margin-bottom: 16px; }
.ex-panel .field:last-child { margin-bottom: 0; }
.ex-search {
  width: 100%; border: 1px solid #e8d3b8; background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 11px 18px; font-size: 0.95rem; font-family: inherit;
  box-shadow: 0 3px 9px rgba(160, 120, 70, 0.07); -webkit-appearance: none;
}
.ex-search:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(207, 144, 83, 0.16); }
.ex-search::placeholder { color: #bda98a; }
.ex-count { color: var(--sub); font-size: 0.88rem; font-weight: 600; margin: 4px 2px 0; }
.play-card.ex-hide { display: none; }
.ex-empty { background: var(--soft); border-radius: 16px; padding: 18px 20px; color: #8a6a4a; font-size: 0.92rem; margin-top: 16px; }

/* ── 최근 뽑은 작전 ── */
.recent-box { background: var(--soft); border-radius: 20px; padding: 20px 22px; margin-top: 34px; }
.recent-box .section-title { margin-bottom: 4px; }
.recent-actions { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
