/* Raise A Catboy only — café receipt + egg collection shelf. */
html[data-skin="candy"] {
  color-scheme: light;
  --skin-bg: #f6eee5;
  --skin-surface: #fffaf2;
  --skin-surface-2: #f3e3dc;
  --skin-ink: #33252d;
  --skin-muted: #6f5f66;
  --skin-line: #dac6bf;
  --skin-brand: #b83f68;
  --skin-brand-ink: #fff9f1;
  --skin-accent: #2f7c77;
  --skin-good: #327568;
  --skin-font-display: "Avenir Next", "Trebuchet MS", sans-serif;
  --skin-font-body: "Avenir Next", "Trebuchet MS", sans-serif;
}
[data-skin="candy"] body { color: #33252d; background: radial-gradient(circle at 12px 12px, rgba(184,63,104,.055) 2px, transparent 2.5px), #f6eee5; background-size: 28px 28px; }
[data-skin="candy"] header { background: rgba(51,37,45,.98); border-bottom-color: #795563; }
[data-skin="candy"] header a { color: #fff5eb; }
[data-skin="candy"] header a.text-brand, [data-skin="candy"] header a span { color: #ffb4c8; }
[data-skin="candy"] header a.bg-brand { color: #33252d; }
[data-skin="candy"] header a.text-muted { color: #d5bdc5; }
[data-skin="candy"] footer { background: #eaded5; }
.catboy-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.catboy-eyebrow { margin: 0 0 .45rem; color: #a63860; font-family: ui-monospace, "Courier New", monospace; font-size: .66rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.catboy-home button, .catboy-code-ledger button, .catboy-egg-shelf button, .catboy-shop-book button, .catboy-update-board button { font: inherit; }
.catboy-home a:focus-visible, .catboy-home input:focus-visible, .catboy-code-ledger button:focus-visible, .catboy-egg-shelf button:focus-visible, .catboy-shop-book input:focus-visible, .catboy-shop-book select:focus-visible, .catboy-update-board button:focus-visible { outline: 3px solid #2f7c77; outline-offset: 3px; }

/* Café counter hero */
.catboy-counter { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(290px, .82fr); width: min(1120px, calc(100vw - 2rem)); margin-left: 50%; transform: translateX(-50%); overflow: hidden; border: 1px solid #cfaeb1; border-radius: 24px; background: #fffaf2; box-shadow: 9px 9px 0 rgba(113,55,73,.1); }
.catboy-counter-copy { padding: 2.3rem 2.4rem; }
.catboy-counter h1 { max-width: 620px; margin: 0; color: #392731; font-family: var(--skin-font-display); font-size: clamp(2.6rem, 5.2vw, 4.7rem); font-weight: 850; letter-spacing: -.055em; line-height: .93; }
.catboy-counter h1 span { display: block; margin-top: .35rem; color: #b83f68; font-size: .43em; letter-spacing: -.025em; }
.catboy-tagline { margin: 1rem 0 0; color: #2f7c77; font-size: 1.02rem; font-weight: 800; }
.catboy-intro { max-width: 650px; margin: .7rem 0 0; color: #6f5f66; font-size: .86rem; line-height: 1.65; }
.catboy-search { display: flex; align-items: center; margin-top: 1.25rem; border: 1px solid #caa9ac; border-radius: 999px; background: #fff; }
.catboy-search:focus-within { border-color: #2f7c77; box-shadow: 0 0 0 3px rgba(47,124,119,.15); }
.catboy-search input { width: 100%; min-width: 0; padding: .86rem 1rem; border: 0; outline: 0; color: #33252d; background: transparent; font-size: 16px; }
.catboy-search > span { padding: 0 1rem; color: #b83f68; font-size: 1.35rem; }
.catboy-proof-line { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .85rem; color: #7b6870; font-family: ui-monospace, "Courier New", monospace; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.catboy-proof-line span::before { content: "✓"; margin-right: .3rem; color: #2f7c77; }
.catboy-counter-art { position: relative; min-height: 360px; border-left: 1px solid #cfaeb1; background: #e9b7c4; }
.catboy-scene { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 55% center; }
.catboy-counter-art > p { position: absolute; right: .7rem; bottom: .6rem; margin: 0; padding: .3rem .5rem; border-radius: 6px; color: #fff9f1; background: rgba(51,37,45,.82); font-size: .58rem; }
.catboy-game-icon { position: absolute; left: 1rem; bottom: 1rem; width: 92px; height: 92px; border: 4px solid #fff5ec; border-radius: 22px; box-shadow: 0 8px 24px rgba(51,37,45,.25); }
.catboy-live-ticket { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.1rem; overflow: hidden; border: 1px solid #cfaeb1; border-radius: 16px; background: #fffaf2; }
.catboy-live-ticket > div, .catboy-live-ticket > a { display: block; padding: .95rem 1rem; border-right: 1px dashed #cfaeb1; color: #33252d; text-decoration: none; }
.catboy-live-ticket > :last-child { border-right: 0; }
.catboy-live-ticket a:hover { background: #f6e6e5; }
.catboy-live-ticket span, .catboy-live-ticket strong, .catboy-live-ticket small { display: block; }
.catboy-live-ticket span { color: #a63860; font-family: ui-monospace, "Courier New", monospace; font-size: .57rem; font-weight: 900; letter-spacing: .08em; }
.catboy-live-ticket strong { margin-top: .25rem; color: #2f7c77; font-size: 1.35rem; }
.catboy-live-ticket small { margin-top: .2rem; color: #7b6870; font-size: .62rem; line-height: 1.35; }

/* Update slip and gameplay loop */
.catboy-update-slip { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; margin-top: 1.1rem; padding: 1.15rem 1.3rem; border: 1px solid #d4a5b2; border-radius: 18px; background: #f9e1e8; }
.catboy-update-slip > img { width: 112px; height: 112px; border-radius: 18px; }
.catboy-update-slip h2 { margin: 0; color: #492a38; font-size: 1.25rem; line-height: 1.25; }
.catboy-update-slip p:not(.catboy-eyebrow) { margin: .4rem 0 0; color: #735762; font-size: .75rem; line-height: 1.5; }
.catboy-update-slip > a { padding: .75rem .9rem; border-radius: 10px; color: #fff9f1; background: #9e3559; font-size: .72rem; font-weight: 900; text-decoration: none; }
.catboy-loop, .catboy-tasks { margin-top: 2rem; }
.catboy-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.catboy-section-heading h2, .catboy-section-heading h3 { margin: 0; color: #3a2932; font-size: 1.35rem; line-height: 1.2; }
.catboy-section-heading > span { color: #7b6870; font-family: ui-monospace, "Courier New", monospace; font-size: .62rem; font-weight: 800; text-align: right; }
.catboy-loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid #cfaeb1; border-radius: 16px; background: #fffaf2; }
.catboy-loop-grid > div { position: relative; padding: 1rem; border-right: 1px dashed #cfaeb1; }
.catboy-loop-grid > div:last-child { border-right: 0; }
.catboy-loop-grid > div:not(:last-child)::after { content: "→"; position: absolute; right: -.55rem; top: 1rem; z-index: 1; width: 1.1rem; color: #b83f68; background: #fffaf2; text-align: center; }
.catboy-loop-grid span { color: #b83f68; font-family: ui-monospace, "Courier New", monospace; font-size: .6rem; font-weight: 900; }
.catboy-loop-grid strong { display: block; margin-top: .35rem; font-size: .95rem; }
.catboy-loop-grid p { margin: .25rem 0 0; color: #74636a; font-size: .7rem; line-height: 1.45; }
.catboy-task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.catboy-task-grid > a { position: relative; min-height: 195px; padding: 1rem; border: 1px solid #d5bdb6; border-radius: 16px; color: #33252d; background: #fffaf2; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.catboy-task-grid > a:hover { transform: translateY(-2px); border-color: #b83f68; }
.catboy-task-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: .7rem; border-radius: 11px; color: #fff9f1; background: #2f7c77; font-size: 1.1rem; }
.catboy-task-grid small { display: block; color: #a63860; font-family: ui-monospace, "Courier New", monospace; font-size: .55rem; font-weight: 900; letter-spacing: .07em; }
.catboy-task-grid strong { display: block; margin-top: .25rem; font-size: .94rem; }
.catboy-task-grid p { margin: .4rem 0 1.4rem; color: #74636a; font-size: .72rem; line-height: 1.5; }
.catboy-task-grid b { position: absolute; bottom: .9rem; color: #2f7c77; font-size: .66rem; }
.catboy-source-note { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-top: 1.5rem; padding: 1rem; border: 1px dashed #c9a7a9; border-radius: 14px; background: rgba(255,250,242,.7); }
.catboy-source-note img { border-radius: 14px; }
.catboy-source-note p { margin: 0; color: #6f5f66; font-size: .72rem; line-height: 1.55; }
.catboy-source-note a { color: #a63860; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.catboy-empty { padding: 1rem; border: 1px dashed #c9a7a9; border-radius: 12px; color: #6f5f66; background: #fffaf2; font-size: .8rem; }

/* Shared evidence boards */
.catboy-code-ledger, .catboy-egg-shelf, .catboy-shop-book, .catboy-update-board { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid #d3b8b2; border-radius: 18px; background: #fffaf2; box-shadow: 5px 5px 0 rgba(113,55,73,.07); }
.catboy-board-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.catboy-board-heading h2 { margin: 0; color: #3a2932; font-size: 1.35rem; line-height: 1.22; }
.catboy-board-heading p:not(.catboy-eyebrow) { max-width: 700px; margin: .45rem 0 0; color: #74636a; font-size: .76rem; line-height: 1.55; }
.catboy-board-heading > span { flex: none; padding: .5rem .65rem; border: 1px solid #d7b4bb; border-radius: 9px; color: #a63860; background: #f9e8eb; font-family: ui-monospace, "Courier New", monospace; font-size: .58rem; font-weight: 900; line-height: 1.5; text-align: center; text-transform: uppercase; }
.catboy-board-foot { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px dashed #d3b8b2; color: #74636a; font-size: .68rem; line-height: 1.55; }
.catboy-filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.catboy-filter-row button, .catboy-time-toggle { min-height: 42px; padding: .55rem .8rem; border: 1px solid #cbaeb0; border-radius: 999px; color: #6b3b4d; background: #fff; font-size: .68rem; font-weight: 800; cursor: pointer; }
.catboy-filter-row button.selected { color: #fff9f1; background: #2f7c77; border-color: #2f7c77; }

/* Codes */
.catboy-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.catboy-code-card { display: flex; flex-direction: column; padding: .9rem; border: 1px solid #dbc6c0; border-left: 4px solid #b83f68; border-radius: 12px; background: #fff; }
.catboy-code-card.status-crosschecked { border-left-color: #327568; }
.catboy-code-card.status-video { border-left-color: #2f7c77; background: #f1f8f4; }
.catboy-code-card.status-check, .catboy-code-card.status-conflict { border-left-color: #b26b2d; }
.catboy-code-top { display: flex; align-items: start; justify-content: space-between; gap: .6rem; }
.catboy-code-top code { overflow-wrap: anywhere; color: #3a2932; font-size: 1.02rem; font-weight: 900; user-select: all; }
.catboy-code-top > span { flex: none; max-width: 150px; color: #a63860; font-family: ui-monospace, "Courier New", monospace; font-size: .52rem; font-weight: 900; line-height: 1.4; text-align: right; }
.catboy-code-reward { margin: .6rem 0; color: #4e3c45; font-size: .74rem; line-height: 1.5; }
.catboy-code-card details { margin-bottom: .7rem; color: #74636a; font-size: .66rem; line-height: 1.45; }
.catboy-code-card summary { color: #2f7c77; font-weight: 800; cursor: pointer; }
.catboy-copy { min-height: 42px; margin-top: auto; padding: .55rem .75rem; border: 1px solid #b83f68; border-radius: 9px; color: #a63860; background: #fff8f5; font-size: .67rem; font-weight: 900; cursor: pointer; }
.catboy-copy:hover { color: #fff; background: #b83f68; }

/* Egg shelf */
.catboy-egg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.catboy-egg-card { display: flex; flex-direction: column; padding: 1rem; border: 1px solid #dbc6c0; border-radius: 14px; background: #fff; }
.catboy-egg-card.is-new { border-color: #c3617e; background: #fff4f6; }
.catboy-egg-art { display: flex; align-items: center; justify-content: space-between; min-height: 112px; }
.catboy-egg-art img { width: 112px; height: 112px; border-radius: 18px; }
.catboy-egg-art > span { font-size: 4rem; }
.catboy-egg-art b { align-self: start; padding: .3rem .45rem; border-radius: 6px; color: #a63860; background: #f8e1e7; font-family: ui-monospace, "Courier New", monospace; font-size: .55rem; letter-spacing: .06em; }
.catboy-egg-card h3 { margin: .65rem 0 .35rem; color: #3a2932; font-size: 1.05rem; }
.catboy-egg-card > p { margin: .3rem 0 .7rem; color: #74636a; font-size: .72rem; line-height: 1.5; }
.catboy-offer-list { margin: 0 0 .7rem; padding: 0; list-style: none; }
.catboy-offer-list li { display: flex; gap: .5rem; align-items: center; padding: .42rem 0; border-bottom: 1px dashed #e1cec8; color: #67535d; font-size: .68rem; }
.catboy-offer-list li span { flex: 1; }
.catboy-offer-list li strong { color: #2f7c77; }
.catboy-offer-list li b { color: #a63860; font-size: .52rem; }
.catboy-egg-card .catboy-unknown { padding: .6rem; border-radius: 8px; background: #f5eee8; }
.catboy-egg-card .catboy-copy { margin-top: .5rem; }

/* Shop ledger */
.catboy-shop-controls { display: grid; grid-template-columns: 1.5fr .8fr .7fr; gap: .7rem; }
.catboy-shop-controls label > span { display: block; margin-bottom: .3rem; color: #6f5f66; font-size: .62rem; font-weight: 800; }
.catboy-shop-controls input, .catboy-shop-controls select { width: 100%; min-width: 0; min-height: 44px; padding: .65rem .7rem; border: 1px solid #cbaeb0; border-radius: 9px; color: #33252d; background: #fff; font-size: 16px; }
.catboy-result-count { color: #74636a; font-size: .7rem; }
.catboy-result-count strong { color: #2f7c77; }
.catboy-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #dbc6c0; border-radius: 10px; }
.catboy-shop-table { width: 100%; min-width: 940px; border-collapse: collapse; background: #fff; font-size: .68rem; }
.catboy-shop-table th, .catboy-shop-table td { padding: .65rem; border-bottom: 1px solid #eadbd5; vertical-align: top; text-align: left; }
.catboy-shop-table thead th { position: sticky; top: 0; color: #6d3a4d; background: #f2e1df; font-family: ui-monospace, "Courier New", monospace; font-size: .57rem; letter-spacing: .05em; }
.catboy-shop-table tbody tr.is-new { background: #fff1f5; }
.catboy-product-name { display: flex; gap: .55rem; align-items: center; min-width: 170px; }
.catboy-product-name img { flex: none; width: 52px; height: 52px; border-radius: 9px; }
.catboy-product-name span, .catboy-product-name small, .catboy-product-name b { display: block; }
.catboy-product-name span { color: #3a2932; font-size: .72rem; }
.catboy-product-name small, .catboy-shop-table td small { margin-top: .2rem; color: #806e75; font-size: .55rem; }
.catboy-product-name b { color: #a63860; font-size: .52rem; }
.catboy-shop-table td:nth-child(2) { min-width: 250px; max-width: 370px; color: #6f5f66; line-height: 1.45; }
.catboy-shop-table td:nth-child(3) { color: #2f7c77; font-weight: 900; white-space: nowrap; }
.sale-badge, .unsold-badge { display: inline-block; padding: .25rem .4rem; border-radius: 6px; font-size: .55rem; font-weight: 900; white-space: nowrap; }
.sale-badge { color: #24665b; background: #e4f2e9; }
.unsold-badge { color: #77525d; background: #eee3e2; }

/* Big Update */
.catboy-time-toggle { flex: none; cursor: pointer; }
.catboy-event-ticket { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #d3b8b2; border-radius: 12px; }
.catboy-event-ticket > div { padding: .85rem; border-right: 1px dashed #d3b8b2; border-bottom: 1px dashed #d3b8b2; }
.catboy-event-ticket > div:nth-child(2n) { border-right: 0; }
.catboy-event-ticket > div:nth-last-child(-n+2) { border-bottom: 0; }
.catboy-event-ticket span { display: block; color: #a63860; font-family: ui-monospace, "Courier New", monospace; font-size: .55rem; font-weight: 900; }
.catboy-event-ticket strong, .catboy-event-ticket time { display: block; margin-top: .3rem; color: #2f7c77; font-size: .85rem; font-weight: 900; }
.catboy-event-ticket p { margin: .3rem 0 0; color: #66535b; font-size: .72rem; line-height: 1.45; }
.catboy-new-products { margin-top: 1rem; }
.catboy-new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.catboy-new-grid article { display: flex; gap: .65rem; align-items: center; padding: .75rem; border: 1px solid #d7b4bb; border-radius: 12px; background: #fff3f6; }
.catboy-new-grid img { flex: none; width: 80px; height: 80px; border-radius: 12px; }
.catboy-new-grid strong, .catboy-new-grid span, .catboy-new-grid small { display: block; }
.catboy-new-grid strong { color: #482d3a; font-size: .76rem; }
.catboy-new-grid span { margin-top: .25rem; color: #2f7c77; font-weight: 900; }
.catboy-new-grid small { margin-top: .25rem; color: #806e75; font-size: .55rem; line-height: 1.4; }
.catboy-unknown-panel { margin-top: 1rem; padding: .9rem; border: 1px dashed #c69fa9; border-radius: 12px; background: #f5eee8; }
.catboy-unknown-panel h3 { margin: 0; color: #65404f; font-size: .88rem; }
.catboy-unknown-panel li, .catboy-unknown-panel p { color: #74636a; font-size: .7rem; line-height: 1.5; }

@media (max-width: 900px) {
  .catboy-counter { grid-template-columns: 1fr; }
  .catboy-counter-art { min-height: 280px; border-left: 0; border-top: 1px solid #cfaeb1; }
  .catboy-scene { min-height: 280px; max-height: 340px; }
  .catboy-task-grid { grid-template-columns: 1fr 1fr; }
  .catboy-live-ticket { grid-template-columns: 1fr 1fr; }
  .catboy-live-ticket > :nth-child(2) { border-right: 0; }
  .catboy-live-ticket > :nth-child(-n+2) { border-bottom: 1px dashed #cfaeb1; }
  .catboy-shop-controls { grid-template-columns: 1fr 1fr; }
  .catboy-shop-controls label:first-child { grid-column: 1 / -1; }
  .catboy-new-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .catboy-counter-copy { padding: 1.35rem 1.2rem; }
  .catboy-counter h1 { font-size: 2.65rem; }
  .catboy-counter-art, .catboy-scene { min-height: 225px; }
  .catboy-update-slip { grid-template-columns: auto 1fr; padding: 1rem; }
  .catboy-update-slip > img { width: 76px; height: 76px; }
  .catboy-update-slip > a { grid-column: 1 / -1; text-align: center; }
  .catboy-loop-grid { grid-template-columns: 1fr 1fr; }
  .catboy-loop-grid > div:nth-child(2) { border-right: 0; }
  .catboy-loop-grid > div:nth-child(-n+2) { border-bottom: 1px dashed #cfaeb1; }
  .catboy-loop-grid > div:nth-child(2)::after { display: none; }
  .catboy-task-grid, .catboy-code-grid, .catboy-egg-grid { grid-template-columns: 1fr; }
  .catboy-task-grid > a { min-height: 180px; }
  .catboy-source-note { grid-template-columns: auto 1fr; }
  .catboy-source-note a { grid-column: 1 / -1; }
  .catboy-code-ledger, .catboy-egg-shelf, .catboy-shop-book, .catboy-update-board { padding: .85rem; }
  .catboy-board-heading, .catboy-section-heading { align-items: start; flex-direction: column; }
  .catboy-board-heading > span { text-align: left; }
  .catboy-code-top { flex-direction: column; }
  .catboy-code-top > span { max-width: none; text-align: left; }
  .catboy-shop-controls { grid-template-columns: 1fr; }
  .catboy-shop-controls label:first-child { grid-column: auto; }
  .catboy-event-ticket { grid-template-columns: 1fr; }
  .catboy-event-ticket > div { border-right: 0; border-bottom: 1px dashed #d3b8b2; }
  .catboy-event-ticket > div:nth-last-child(-n+2) { border-bottom: 1px dashed #d3b8b2; }
  .catboy-event-ticket > div:last-child { border-bottom: 0; }
}
