.cc-keeper-page { text-align: center; }

.cc-keeper-hero { max-width: 920px; margin: 0 auto 26px; padding: 24px 28px 28px; border: 1px solid #007f7f; border-radius: 14px; background: radial-gradient(circle at 50% 0,rgba(0,204,204,.13),transparent 58%),rgba(9,20,24,.92); box-shadow: 0 18px 46px rgba(0,0,0,.3),inset 0 0 35px rgba(0,204,204,.04); }
.cc-keeper-hero-art { display: block; width: 170px; height: 170px; margin: -8px auto 0; object-fit: contain; filter: drop-shadow(0 0 20px rgba(0,204,204,.28)); pointer-events: none; }
.cc-keeper-kicker { margin: 0 0 5px; color: #00cccc; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.cc-keeper-hero h2 { margin: 4px 0 12px; color: #d7ffff; font-size: clamp(1.55rem,3vw,2.15rem); line-height: 1.15; }
.cc-keeper-hero > p:not(.cc-keeper-kicker) { max-width: 720px; margin: 0 auto; color: #b6cccc; line-height: 1.65; }
.cc-keeper-nav { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-bottom: 20px; }
.cc-keeper-nav .back-link { margin: 0; }

.cc-keeper-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; max-width: 980px; margin: 22px auto; }
.cc-keeper-card { position: relative; box-sizing: border-box; width: 100%; margin: 22px auto; padding: 28px clamp(20px,4vw,38px); overflow: hidden; border: 1px solid rgba(0,204,204,.34); border-radius: 12px; background: rgba(6,11,12,.88); box-shadow: 0 8px 24px rgba(0,0,0,.2); text-align: center; }
.cc-keeper-grid .cc-keeper-card { height: 100%; margin: 0; }
.cc-keeper-card--current { max-width: 760px; }
.cc-keeper-card--legacy { max-width: 980px; }
.cc-keeper-card__mark { position: absolute; top: 12px; left: 50%; color: rgba(0,204,204,.45); transform: translateX(-50%); }
.cc-keeper-card__art { display: block; width: 104px; height: 104px; margin: -6px auto 2px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(0,204,204,.2)); pointer-events: none; }
.cc-keeper-card__art--pixel { width: 92px; height: 92px; }
.cc-keeper-card h2 { margin: 3px 0 16px; color: #aefefe; font-size: clamp(1.35rem,3vw,1.85rem); }
.cc-keeper-note { max-width: 720px; margin: 0 auto; color: #a8c9c9; line-height: 1.55; }
.cc-keeper-field { width: 100%; max-width: 620px; margin: 18px auto 0; text-align: center; }
.cc-keeper-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; max-width: 820px; margin: 0 auto; }
.cc-keeper-field--wide { grid-column: 1 / -1; max-width: none; }
.cc-keeper-card label { display: block; margin: 0 0 7px; color: #d8ffff; font-size: .9rem; letter-spacing: .06em; }
.cc-keeper-card input,.cc-keeper-card textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid rgba(0,139,139,.95); color: #fff; background: rgba(2,13,16,.96); box-shadow: inset 0 0 18px rgba(0,0,0,.3); font: inherit; text-align: left; transition: border-color .18s ease,box-shadow .18s ease; }
.cc-keeper-card input:focus,.cc-keeper-card textarea:focus { outline: none; border-color: #00e5e5; box-shadow: 0 0 0 2px rgba(0,204,204,.14),inset 0 0 18px rgba(0,0,0,.3); }
.cc-keeper-card textarea { min-height: 105px; resize: vertical; }
.cc-keeper-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.cc-keeper-card button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border: 1px solid rgba(0,204,204,.58); border-radius: 7px; color: #bff7f7; background: rgba(0,204,204,.09); font: inherit; font-weight: 700; cursor: url('/images/cursors/hover.cur') 11 0,url('/images/cursors/hover.png') 11 0,pointer; transition: background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease; }
.cc-keeper-card button:hover,.cc-keeper-card button:focus-visible { outline: none; border-color: #00ffff; color: #fff; background: rgba(0,204,204,.2); box-shadow: 0 0 14px rgba(0,255,255,.18); }
.cc-keeper-status { min-height: 1.5em; max-width: 720px; margin: 14px auto 0; color: #7fffd4; line-height: 1.5; }
.cc-keeper-error { color: #ff8585; }
.cc-keeper-code { display: block; margin: 12px auto; padding: 12px; overflow-wrap: anywhere; border: 1px dashed #00cccc; color: #fff3b0; background: #02090b; text-align: center; }

/* Shared claim/recovery modal used inside every minigame. */
.cc-keeper-modal { position: fixed; z-index: 20000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.84); }
.cc-keeper-modal[hidden] { display: none !important; }
.cc-keeper-modal__panel { width: min(520px,100%); padding: 22px; border: 1px solid #00cccc; background: #051316; box-shadow: 0 0 35px rgba(0,204,204,.25); text-align: center; }
.cc-keeper-name-status { display: block; margin-top: 4px; font-size: .8rem; color: #9cd1d1; }
.cc-keeper-name-status[data-error="1"] { color: #ff8585; }

@media (max-width: 760px) {
  .cc-keeper-hero { padding: 22px 18px 24px; }
  .cc-keeper-grid,.cc-keeper-form-grid { grid-template-columns: 1fr; }
  .cc-keeper-field--wide { grid-column: auto; }
  .cc-keeper-card { padding: 28px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-keeper-card button,.cc-keeper-card input,.cc-keeper-card textarea { transition: none; }
}
