/* corner.dad-look.com - 24/1: a corner shop at night, neon outside and fluorescent light inside */
body { margin: 0; background: #14112a; color: #1d1d1d; font-family: Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffcf3f; outline-offset: 3px; }
.cn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.cn-small { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #5d5a6b; }
.cn-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; color: #ec6e6a; }

/* Storefront at night */
.cn-front { color: #ffffff; background: linear-gradient(#14112a, #221c45 70%, #2e2758); padding: 0 20px 40px; text-align: center; }
.cn-sign { max-width: 760px; margin: 0 auto; padding: 26px 20px 20px; border-radius: 0 0 16px 16px; background: #ffffff; color: #14112a; box-shadow: 0 0 60px rgba(255, 255, 255, 0.25); }
.cn-logo { margin: 0; font-size: clamp(64px, 14vw, 120px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.cn-logo span:first-child { color: #ec6e6a; }
.cn-logo i { font-style: normal; color: #14112a; }
.cn-logo span:last-child { color: #3a5bd9; }
.cn-tagline { margin: 8px 0 0; font-size: 18px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.cn-window { max-width: 760px; margin: 28px auto 0; padding: 30px 20px; border: 6px solid #3d3570; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.cn-neon { margin: 0; }
.cn-neon span { display: inline-block; padding: 6px 26px; border: 4px solid #ff4f6d; border-radius: 14px; font-size: clamp(40px, 9vw, 64px); font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #ffe4ea; text-shadow: 0 0 8px #ff4f6d, 0 0 22px #ff4f6d, 0 0 40px #ff2d55; box-shadow: 0 0 14px #ff4f6d, inset 0 0 14px #ff4f6d; }
.cn-hours { margin: 18px 0 0; font-size: 15px; color: #cfc9ef; }
.cn-door { margin-top: 22px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: #ffcf3f; color: #14112a; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; }
.cn-door:hover { background: #ffe07a; }
.cn-front .cn-small { color: #a9a3cf; }

/* Inside: fluorescent white */
.cn-store { background: #f4f6f2; padding: 34px 20px 10px; display: flex; flex-direction: column; gap: 34px; }
.cn-store > * { width: 100%; max-width: 1100px; margin: 0 auto; box-sizing: border-box; }
.cn-store h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; }

.cn-aisles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cn-aisle { padding: 14px; border-radius: 8px; background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.cn-aisle-sign { margin: 0 0 10px; padding: 8px 12px; border-radius: 4px; background: #3a5bd9; color: #ffffff; font-size: 15px; }
.cn-aisle-sign b { margin-right: 6px; color: #ffcf3f; text-transform: uppercase; }
.cn-shelves { display: flex; flex-direction: column; gap: 8px; }
.cn-shelf { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 74px; padding: 0 10px 6px; border-bottom: 8px solid #c7ccd4; background: #fafbfc; }
.cn-empty-note { margin: auto; font-size: 13px; font-style: italic; color: #8a8f99; }
.cn-tag { margin-left: auto; padding: 3px 7px; background: #ffcf3f; font-size: 13px; font-weight: 900; font-family: "Courier New", Courier, monospace; }
.cn-product { display: block; flex: none; }
.cn-book { width: 46px; height: 62px; border-radius: 2px 4px 4px 2px; background: #1a1a1a url("/img/dad-look-i-wrote-a-book-front-cover.jpg") 57% 50% / 260% auto; box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.15), 2px 2px 4px rgba(0, 0, 0, 0.3); }

.cn-counter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cn-fridge, .cn-hot, .cn-slushy { padding: 18px; border-radius: 8px; background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.cn-fridge-box { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 6px solid #d8dde4; border-radius: 8px; background: linear-gradient(135deg, #e9f6ff, #cfe8f8); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
.cn-fridge-shelf { height: 58px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 3px solid rgba(255, 255, 255, 0.9); }
.cn-book-cold { width: 40px; height: 54px; filter: saturate(0.8) brightness(1.05); box-shadow: 0 0 10px rgba(160, 210, 255, 0.9); }
.cn-roller { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 8px; background: linear-gradient(#5a5a5a, #3a3a3a); }
.cn-rollup { display: block; height: 18px; border-radius: 9px; background: repeating-linear-gradient(90deg, #f6f1e4 0 6px, #e4dcc6 6px 8px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15); }
.cn-machine { display: grid; grid-template-columns: 90px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 14px; align-items: center; }
.cn-tank { grid-row: 1 / 3; position: relative; height: 130px; border-radius: 10px 10px 4px 4px; background: linear-gradient(#2a2a2a, #444444); overflow: hidden; }
.cn-swirl { position: absolute; inset: 8px; border-radius: 8px; background: repeating-conic-gradient(from 0deg, #1a1a1a 0 20deg, #d9b24c 20deg 40deg); opacity: 0.85; }
.cn-flavour { margin: 0; font-size: 15px; }
.cn-cup { position: relative; width: 54px; height: 70px; border: 3px solid #b8bec8; border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; background: #ffffff; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.cn-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: repeating-linear-gradient(-45deg, #1a1a1a 0 6px, #d9b24c 6px 12px); transition: height 1.4s ease-out; }
.cn-fill.is-full { height: 100%; }
.cn-button { margin-top: 12px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #3a5bd9; color: #ffffff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.cn-button:hover { background: #2c47b5; }

/* Register and receipt */
.cn-register { padding: 22px; border-radius: 8px; background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.cn-register-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cn-display { margin: 0; padding: 14px 18px; border-radius: 6px; background: #0f1a0f; color: #6dff7a; font-family: "Courier New", Courier, monospace; font-size: clamp(30px, 5vw, 46px); font-weight: 700; text-align: right; text-shadow: 0 0 8px rgba(109, 255, 122, 0.6); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cn-cashier { margin: 12px 0 0; min-height: 22px; font-size: 16px; font-weight: 700; color: #3a5bd9; }
.cn-scan { position: relative; overflow: hidden; display: inline-flex; align-items: center; margin-top: 14px; min-height: 58px; padding: 0 28px; border: 0; border-radius: 10px; background: #ec6e6a; color: #ffffff; font: inherit; font-size: 19px; font-weight: 900; cursor: pointer; }
.cn-scan:hover { background: #d95450; }
.cn-beam { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #ff2d2d; box-shadow: 0 0 8px #ff2d2d; opacity: 0; }
.cn-extras { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cn-extra { min-height: 38px; padding: 0 14px; border: 1px solid #c7ccd4; border-radius: 999px; background: #ffffff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cn-extra:hover { background: #f4f6f2; }
.cn-extra.is-refused { text-decoration: line-through; color: #8a8f99; }
.cn-receipt { position: relative; padding: 20px 18px 30px; background: #fffef8; font-family: "Courier New", Courier, monospace; font-size: 14px; line-height: 1.45; color: #222222; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px)); }
.cn-r-head, .cn-r-foot { margin: 0; text-align: center; }
.cn-r-head { font-weight: 700; }
.cn-r-line { margin: 6px 0; overflow: hidden; white-space: nowrap; color: #999999; }
.cn-r-items { margin: 0; padding: 0; list-style: none; min-height: 21px; }
.cn-r-items li { display: flex; justify-content: space-between; gap: 10px; }
.cn-r-items li.is-void { color: #999999; text-decoration: line-through; }
.cn-r-total { margin: 0; display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.cn-r-foot { font-size: 12px; }
.cn-barcode { display: block; height: 40px; margin: 14px auto 0; width: 80%; background: repeating-linear-gradient(90deg, #222222 0 2px, transparent 2px 4px, #222222 4px 7px, transparent 7px 8px, #222222 8px 9px, transparent 9px 12px); }

/* Loyalty card and notes */
.cn-loyalty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
.cn-card { padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #ec6e6a, #3a5bd9); color: #ffffff; box-shadow: 0 10px 24px rgba(58, 91, 217, 0.3); }
.cn-card-brand { margin: 0 0 6px; font-size: 13px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; }
.cn-card h2 { color: #ffffff; }
.cn-stamps { display: flex; gap: 10px; margin: 12px 0 0; }
.cn-stamp { width: 54px; height: 54px; border: 3px dashed rgba(255, 255, 255, 0.85); border-radius: 50%; }
.cn-card .cn-small { color: #ffffff; opacity: 0.9; }
.cn-notes { display: flex; flex-direction: column; gap: 10px; }
.cn-note { margin: 0; padding: 12px 16px; border-radius: 8px; background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); font-size: 15px; }
.cn-note b { font-variant-numeric: tabular-nums; }
.cn-note-sign { background: #ffcf3f; font-weight: 700; }

/* Bottom */
.cn-bottom { max-width: 1100px; margin: 0 auto; padding: 48px 20px 48px; display: flex; flex-direction: column; gap: 28px; color: #ffffff; }
.cn-cta { padding: 40px 24px; border-radius: 16px; background: #ffffff; color: #14112a; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cn-cta h2 { margin: 0; font-size: 38px; line-height: 1.1; }
.cn-cta p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.5; }
.cn-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; width: 100%; max-width: 560px; min-height: 72px; padding: 18px 24px; border-radius: 999px; background: #ec6e6a; color: #ffffff; font-size: 21px; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.cn-cta-button:hover { background: #d95450; }
.cn-cta-arrow { display: inline-block; }
.cn-share { min-height: 48px; padding: 0 22px; border: 2px solid #14112a; border-radius: 999px; background: none; color: #14112a; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; }
.cn-share:hover { background: #14112a; color: #ffffff; }
.cn-status { margin: 0; font-size: 14px; font-weight: 700; color: #2e7d32; }
.cn-status:empty { display: none; }
.cn-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.5; color: #a9a3cf; border-top: 1px solid #3d3570; padding-top: 14px; }
.cn-bottom .more-title { color: #ffffff; }

@media (max-width: 900px) {
	.cn-aisles, .cn-counter-row { grid-template-columns: minmax(0, 1fr); }
	.cn-register-grid { grid-template-columns: minmax(0, 1fr); }
	.cn-receipt { max-width: 340px; width: 100%; margin: 0 auto; box-sizing: border-box; }
	.cn-loyalty { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.cn-front { padding: 0 12px 30px; }
	.cn-tagline { font-size: 14px; letter-spacing: 0.12em; }
	.cn-window { padding: 22px 12px; }
	.cn-store { padding: 24px 12px 6px; gap: 22px; }
	.cn-register { padding: 16px; }
	.cn-scan { width: 100%; justify-content: center; }
	.cn-bottom { padding: 40px 12px; }
	.cn-cta h2 { font-size: 30px; }
	.cn-cta-button { font-size: 18px; min-height: 64px; }
}

/* Animations - only with JavaScript and when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
	.cn-neon span { animation: cn-flicker 6s 1s infinite; }
	.cn-rollup { background-size: 14px 100%; animation: cn-roll 1.2s linear infinite; }
	.cn-rollup:nth-child(even) { animation-direction: reverse; }
	.cn-swirl { animation: cn-spin 4s linear infinite; }
	.cn-scan.is-scanning .cn-beam { animation: cn-beam 0.5s ease-in-out; }
	.cn-display.is-beep { animation: cn-beep 0.3s ease; }
	.cn-r-items li { animation: cn-print 0.3s ease both; }
	.cn-store.is-entered { animation: cn-lights 0.9s steps(4) both; }
	.cn-tag { animation: cn-swing 3s ease-in-out infinite; transform-origin: top center; }
	.cn-cta-button { animation: cn-glow 2.2s ease-in-out infinite; transition: transform 0.15s ease; }
	.cn-cta-button:hover { transform: scale(1.02); }
	.cn-cta-arrow { animation: cn-nudge 1.1s ease-in-out infinite; }
}

@keyframes cn-flicker { 0%, 94%, 100% { opacity: 1; } 95% { opacity: 0.4; } 96% { opacity: 1; } 97% { opacity: 0.6; } }
@keyframes cn-roll { from { background-position: 0 0; } to { background-position: 14px 0; } }
@keyframes cn-spin { to { transform: rotate(360deg); } }
@keyframes cn-beam { 0% { opacity: 1; transform: translateY(-24px); } 100% { opacity: 1; transform: translateY(24px); } }
@keyframes cn-beep { 0% { background: #1c3a1c; } 100% { background: #0f1a0f; } }
@keyframes cn-print { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes cn-lights { 0% { filter: brightness(0.3); } 25% { filter: brightness(1); } 50% { filter: brightness(0.5); } 100% { filter: brightness(1); } }
@keyframes cn-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes cn-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 110, 106, 0.5); } 50% { box-shadow: 0 0 0 12px rgba(236, 110, 106, 0); } }
@keyframes cn-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
