/* Punch card, order again, coming-up stops, today's special. Loaded after styles.css. */

/* Today's special: a bright strip under the top of the page */
.special { background: var(--red); color: #fff; border-bottom: 3px solid var(--ink); padding: 10px 0; }
.special .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.special strong { display: inline-block; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; margin-right: 10px; font-size: .95rem; transform: rotate(-2deg); }
.special span { font-weight: 800; font-size: 1.15rem; }

.hero-club { margin: 14px 0 0; }
.hero-club a { display: inline-block; font-weight: 800; color: var(--ink); background: rgba(255,255,255,.75); border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 14px; text-decoration: none; }

.linkish { background: none; border: 0; padding: 8px 4px; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 44px; }
.linkish.danger { color: #b3261e; }

/* ----- The paper punch card ----- */
.club { padding-top: 8px; overflow-x: clip; }
.club-stage { position: relative; margin: 26px 0 12px; padding: 0 4px; }
.pcard {
  position: relative; max-width: 440px; margin: 0 auto; padding: 16px 16px 12px;
  background: #fbf3dc; color: #2a2118;
  background-image: repeating-linear-gradient(0deg, rgba(120, 90, 40, .05) 0 1px, transparent 1px 4px), radial-gradient(circle at 20% 10%, rgba(255,255,255,.7), transparent 60%);
  border: 2px solid #2a2118; border-radius: 10px;
  box-shadow: 5px 6px 0 rgba(22,22,22,.85);
  transform: rotate(-1.2deg); transform-origin: 50% 60%;
}
.pcard::before { content: ""; position: absolute; left: 10px; right: 10px; top: 52px; border-top: 2px dashed rgba(42,33,24,.45); }
.pc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pc-brand { font-size: 1.7rem; line-height: 1.1; color: var(--red); -webkit-text-stroke: 1px #2a2118; }
.pc-kind { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.pc-name { margin: 20px 0 10px; font-weight: 800; font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pc-level { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; background: var(--yellow); border: 2px solid #2a2118; border-radius: 999px; padding: 2px 10px; transform: rotate(2deg); }
.pc-holes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; justify-items: center; margin: 6px 0 10px; }
.pc-hole {
  width: 100%; max-width: 62px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed rgba(42,33,24,.6); font-weight: 800; font-size: .95rem; color: rgba(42,33,24,.6); background: rgba(255,255,255,.45);
}
.pc-hole:last-child { border-style: solid; color: var(--red); font-size: clamp(.5rem, 2.6vw, .68rem); letter-spacing: .02em; }
.pc-hole.punched { border: 2px solid #2a2118; color: transparent; background: radial-gradient(circle at 50% 42%, #3c4a50 0 52%, #1d2428 53% 100%); box-shadow: inset 0 3px 5px rgba(0,0,0,.7); position: relative; }
.pc-hole.punched::after { content: "✚"; position: absolute; color: var(--yellow); font-size: 1.05rem; }
.pc-hole.new { animation: hole-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes hole-pop { from { transform: scale(1.6); } to { transform: scale(1); } }
.pc-rule { margin: 0; font-size: .85rem; text-align: center; opacity: .85; }

/* The mascot with his hole punch, waiting off to the side */
.puncher { position: absolute; right: 0; top: -58px; width: 84px; pointer-events: none; transform: translate(120%, 10%); visibility: hidden; z-index: 2; }
.puncher.in { visibility: visible; }
.puncher img { display: block; width: 84px; height: auto; filter: drop-shadow(2px 3px 0 rgba(22,22,22,.35)); }
.punch-tool { position: absolute; left: -14px; bottom: 6px; width: 34px; height: 16px; background: #c9ced2; border: 2px solid var(--ink); border-radius: 4px 10px 10px 4px; transform-origin: 100% 100%; box-shadow: inset 0 -5px 0 #8e969c; }
.punch-tool::after { content: ""; position: absolute; left: 4px; top: -9px; width: 26px; height: 8px; background: var(--red); border: 2px solid var(--ink); border-radius: 8px 8px 2px 2px; }
.kachunk { position: absolute; left: 50%; top: -8px; transform: translateX(-50%) rotate(-6deg) scale(0); background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; padding: 6px 14px 2px; font-size: 1.5rem; white-space: nowrap; pointer-events: none; z-index: 3; opacity: 0; }
.kachunk.go { animation: kachunk .9s ease-out; }
@keyframes kachunk { 0% { transform: translateX(-50%) rotate(-6deg) scale(.2); opacity: 0; } 18% { transform: translateX(-50%) rotate(-6deg) scale(1.15); opacity: 1; } 70% { transform: translateX(-50%) rotate(-4deg) scale(1); opacity: 1; } 100% { transform: translateX(-50%) translateY(-14px) rotate(-4deg) scale(1); opacity: 0; } }

.club-say { font-weight: 800; font-size: 1.1rem; text-align: center; min-height: 1.6em; margin: 14px 0 8px; }
.club-free { background: #effbf1; border: 3px solid #1f8a3b; border-radius: 14px; padding: 12px 14px; font-size: 1.1rem; }
.club-next { text-align: center; margin: 8px 0; }
.club-verse { margin: 12px 0 16px; padding: 12px 16px; background: #fffbe8; border-left: 6px solid var(--yellow); border-radius: 0 12px 12px 0; }
.club-verse p { margin: 0 0 4px; font-style: italic; font-size: 1.05rem; }
.club-verse cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: .95rem; }
.club-links { text-align: center; }
.club-del { background: #ffe9e5; border: 3px solid var(--red); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.club-note { font-weight: 600; }
#club-form { max-width: 480px; }

/* ----- Order again ----- */
.again { background: #fffbe8; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin: 0 0 18px; }
.again h3 { margin: 0 0 6px; font-size: 1.2rem; }
.again-row { padding: 10px 0; border-top: 2px dotted var(--line); }
.again-row:first-of-type { border-top: 0; }
.again-row p { margin: 0 0 8px; }
.again-row p strong { display: block; }
.again-btns { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.again-go { min-height: 50px; padding: 8px 20px; }
.again-star { min-height: 46px; padding: 6px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.again-star.on { background: var(--yellow); }
.again-msg { margin: 6px 0 0; font-weight: 700; }
.again-msg:empty { display: none; }
.again-msg.good { color: #17692d; }

/* ----- Coming up ----- */
.coming ul { list-style: none; margin: 0; padding: 0; }
.coming li { padding: 10px 0; border-top: 2px dotted var(--line); display: grid; gap: 2px; }
.coming li:first-child { border-top: 0; padding-top: 0; }
.coming .stop-note { color: var(--muted); }
@media (min-width: 640px) { .coming { grid-column: 1 / -1; } }

#social-links { margin: 14px 0; }

@media (prefers-reduced-motion: reduce) { .pc-hole.new, .kachunk.go { animation: none; } }

/* Level ladder: Welcome Guest up to Family */
.club-ladder { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; text-align: center; }
.club-ladder li { position: relative; padding: 26px 1px 0; font-size: clamp(.58rem, 2.9vw, .9rem); line-height: 1.2; color: var(--muted); }
.club-ladder li::before { content: ""; position: absolute; left: 50%; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); z-index: 1; }
.club-ladder li::after { content: ""; position: absolute; left: -50%; right: 50%; top: 10px; border-top: 3px solid var(--line); }
.club-ladder li:first-child::after { display: none; }
.club-ladder li.done::before { background: var(--ink); }
.club-ladder li.done::after, .club-ladder li.now::after { border-color: var(--ink); }
.club-ladder li.now::before { background: var(--yellow); width: 24px; height: 24px; margin-left: -12px; top: -1px; box-shadow: 0 0 0 4px rgba(255, 210, 63, .45); }
.club-ladder li.now { color: var(--ink); font-weight: 800; }
.club-ladder span { display: block; overflow-wrap: normal; }
.club-ladder small { display: block; font-size: .88em; font-weight: 400; }
.club-del-yes { color: #b3261e; }
/* Wider screens: keep the punch card area a comfortable reading width */
@media (min-width: 700px) { #club-body { max-width: 560px; } .club-say, .club-next, .club-links { text-align: left; } .pcard { margin-left: 0; } }

/* Just paid? code box, the card's own square code, and the "punch is waiting" note */
.club-code { margin: 14px 0; padding: 12px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.club-code label { display: block; font-weight: 800; margin-bottom: 8px; }
.club-code-row { display: flex; flex-wrap: wrap; gap: 10px; }
.club-code-row input { flex: 1 1 130px; min-width: 0; min-height: 56px; font-size: 1.5rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-align: center; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 10px; }
.club-code-row input::placeholder { letter-spacing: .12em; font-weight: 600; opacity: .45; }
.club-code-row .btn { flex: 1 1 150px; }
.club-code .error { margin: 8px 0 0; }
.club-myqr { margin: 12px 0; }
.club-myqr summary { font-weight: 800; cursor: pointer; padding: 10px 0; min-height: 44px; }
.club-qr { width: min(240px, 70%); margin: 8px auto; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 6px; }
.club-qr svg { display: block; width: 100%; height: auto; }
.club-pending { background: #effbf1; border: 3px solid #1f8a3b; border-radius: 14px; padding: 12px 14px; font-size: 1.1rem; }

/* Secret Menu on the member's card */
.club-secret { margin: 12px 0; padding: 12px 16px; border: 3px dashed var(--ink); border-radius: 14px; background: #f1f1ee; }
.club-secret h3 { margin: 0 0 4px; font-size: 1.15rem; }
.club-secret p { margin: 4px 0; }
.club-secret.open { border-style: solid; background: #161616; color: #fff; }
.club-secret.open h3 { color: var(--yellow); }
.club-secret.open .note { color: #d9d9d9; }
.club-secret ul { list-style: none; margin: 8px 0; padding: 0; }
.club-secret li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 2px dotted #555; font-weight: 800; font-size: 1.1rem; }
.club-secret li:first-child { border-top: 0; }
.club-secret li small { display: block; font-weight: 400; font-size: .92rem; color: #d9d9d9; }
.club-secret .sec-price { color: var(--yellow); white-space: nowrap; }

.badge.badge-secret { background: #161616; color: #ffd23f; border-color: #161616; }
