/* croco-casino.com theme, 2026-11-10, Elena.
 *
 * spinando.site's layout in PlayCroco's own colours and a rounder font,
 * Nunito: deep crocodile green, orange buttons, lime codes. Offers are cards
 * built from the facts lists; hot deals get a picture the site draws (type,
 * pokie, offer), coloured by type. Frozen at launch: an update changes
 * content, never this file (CLAUDE.md hard rule 4).
 */

:root {
  /* PlayCroco's own colours, read from its sign up form, 2026-11-10 */
  --white: #FFFFFF;
  --button: #F45F26;      /* the form's Next and Register: buttons */
  --button-glow: #FF9A6B;
  --gold: #85E947;        /* the form's lime "1 minute": codes, accents */
  --violet: #1F6B4F;      /* second button (Login), a lighter croc green */
  --indigo: #2E8A62;
  --lilac: #85E947;
  --text: #D5E6E1;        /* body text */
  --bg: #113932;          /* the form's page */
  --bg-dark: #0C2A25;     /* header and footer, a step darker */
  --surface: #144039;     /* the form's panel: cards and boxes */
  --edge: #24564C;
  --line: rgba(213, 230, 225, 0.22);
  --max: 1140px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--white); }
a:hover { color: var(--gold); }
strong { color: var(--white); font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; overflow-wrap: anywhere; color: var(--white); }
h1 { font-weight: 900; color: var(--white); font-size: clamp(2rem, 4vw, 2.6rem); text-align: center; }
h2 { font-weight: 900; color: var(--white); font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-top: 1.4em; }
h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); border-radius: 2px; height: 4px; margin-top: 10px; }
h3 { font-weight: 600; font-size: 1.15rem; }
.subtitle { color: var(--white); font-weight: 500; text-transform: uppercase; font-size: clamp(1.1rem, 2.2vw, 1.5rem); text-align: center; margin: 0 0 1em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.6em; }
li::marker { color: var(--gold); }

/* Header */
.site-header { background: var(--bg-dark); border-bottom: 1px solid var(--edge); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 80px; flex-wrap: wrap; }
.logo img { display: block; width: 150px; height: auto; }
.nav { display: flex; gap: 28px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nav a { text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: 14px; }
.nav a[aria-current="page"] { color: var(--gold); }
.menu-toggle, .menu-button { display: none; }
.cta-pair { display: flex; gap: 12px; }
/* glossy like the casino's own buttons: green with a light inner glow */
.btn { display: inline-block; background: var(--button); color: var(--white); border: 0; border-radius: 8px; padding: 10px 20px; text-decoration: none; font-weight: 800; font-size: 15px; }
.btn:hover { color: var(--white); filter: brightness(1.1); }
.btn-dark { background: var(--violet); }
.btn-wide { display: block; text-align: center; font-weight: 700; font-size: 1.3rem; text-transform: uppercase; padding: 12px 24px; margin: 1.4em 0; }

/* Page intro */
.intro { padding: 40px 0 10px; }

/* Tables from facts */
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 10px; overflow: hidden; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: middle; }
th { color: var(--white); font-weight: 600; background: #0F332C; }
.method { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 500; }
.method img { width: 64px; height: 24px; object-fit: contain; object-position: left center; flex: none; }

/* FAQ accordion, no script needed */
.faq details { border: 1px solid var(--line); border-top: none; background: var(--surface); }
.faq details:first-of-type { border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.faq details:last-of-type { border-radius: 0 0 10px 10px; }
.faq summary { color: var(--white); font-weight: 500; cursor: pointer; padding: 10px 14px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; color: var(--button); }
.faq details[open] summary::before { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 10px 14px 4px; }

/* Text not yet written: shown in a draft build, refused in a release build */
.draft { border: 1px dashed var(--gold); border-radius: 8px; padding: 10px 14px; margin: 0 0 1em; font-size: 14px; }
.draft::before { content: "Draft, text not written yet: "; color: var(--gold); }

/* Footer */
.site-footer { background: var(--bg-dark); border-top: 1px solid var(--edge); margin-top: 40px; padding: 40px 0 20px; text-align: center; font-size: 14px; }
.site-footer .logo img { margin: 0 auto 16px; }
.site-footer .nav { margin: 24px auto; }
.site-footer .copy { font-size: 13px; }
.site-footer .markets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 20px auto; }
.site-footer .markets a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; opacity: .8; }
.site-footer .markets a:hover, .site-footer .markets a[aria-current] { opacity: 1; text-decoration: underline; }
.site-footer .markets img { width: 20px; height: 15px; border-radius: 2px; }

@media (max-width: 767px) {
  .site-header .wrap { min-height: 0; padding-top: 14px; padding-bottom: 14px; justify-content: space-between; }
  .menu-button { display: block; order: 2; cursor: pointer; color: var(--white); font-size: 26px; line-height: 1; padding: 4px 8px; }
  .cta-pair { order: 3; width: 100%; justify-content: space-between; }
  .cta-pair .btn { flex: 1; text-align: center; }
  .site-header .nav { order: 4; width: 100%; display: none; flex-direction: column; gap: 10px; text-align: center; padding: 8px 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* The floating bar to the casino: shown only between the blocks a page
   names in site.yaml `sticky` */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg-dark); border-top: 1px solid var(--edge); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); text-align: center; transform: translateY(100%); transition: transform .25s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { display: block; max-width: 420px; margin: 0 auto; font-weight: 700; text-transform: uppercase; }
body.has-sticky .site-footer { padding-bottom: 72px; }

/* Welcome banner: the casino's diamond art on the right, our text from
   facts on the left over a fade into the page colour */
.promo-banner { position: relative; min-height: 280px; display: flex; align-items: center; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; margin: 10px 0 24px;
  background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-dark) 38%, rgba(11, 4, 25, .5) 55%, rgba(11, 4, 25, 0) 70%), var(--bg-dark) url("images/banners/welcome-art.webp") right 32px center / auto 92% no-repeat; }
.promo-banner-text { padding: 28px 36px; max-width: 560px; text-align: center; }
.promo-banner-title { color: var(--white); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .03em; margin: 0 0 8px; }
.promo-banner-offer { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 2.4rem; line-height: 1.15; margin: 0 0 22px; white-space: nowrap; }
.promo-banner .btn { display: inline-block; min-width: 240px; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; padding: 13px 28px; }
@media (max-width: 700px) {
  .promo-banner { min-height: 0; align-items: flex-end; padding-top: 120px;
    background: linear-gradient(180deg, rgba(11, 4, 25, 0) 0%, rgba(11, 4, 25, .25) 40%, var(--bg-dark) 70%), var(--bg-dark) url("images/banners/welcome-art.webp") 75% top / auto 200px no-repeat; }
  .promo-banner-text { padding: 16px; max-width: none; width: 100%; }
  .promo-banner-title { font-size: 1.1rem; }
  .promo-banner-offer { font-size: 1.55rem; white-space: normal; }
  .promo-banner .btn { display: block; min-width: 0; }
}

/* Offer cards: the casino's banner, boxes of facts and a button */
.offer { background: linear-gradient(160deg, #0F332C 0%, var(--surface) 55%); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; margin: 0 0 12px; display: grid; grid-template-columns: 44% 1fr; align-items: center; }
.offer:not(:has(.offer-banner)) { grid-template-columns: 1fr; }
/* the casino's offer pictures are oval cut outs: they float on a soft glow */
.offer-banner { display: block; background: radial-gradient(closest-side, rgba(187, 99, 255, .28), transparent); padding: 14px; }
.offer-banner img, .page-banner img { display: block; width: 100%; height: auto; }
.offer-body { padding: 18px 20px 4px; }
.boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; }
.boxes:empty { display: none; }
.box { background: var(--bg); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.box-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.box-value { display: block; color: var(--white); font-weight: 600; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.box.code { border: 2px dashed var(--gold); }
button.copy { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; cursor: pointer; width: 100%; }
button.copy::after { content: "Tap to copy"; display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--text); }
button.copy.copied::after { content: "Copied"; color: var(--gold); }
.offer .btn-wide { margin: 4px 0 16px; font-size: 1.1rem; }
.offer.wide { grid-template-columns: 1fr; }
.offer.wide .boxes { grid-template-columns: repeat(4, 1fr); }
th[scope="row"] { width: 40%; }
@media (max-width: 767px) {
  .offer { grid-template-columns: 1fr; }
  .offer.wide .boxes { grid-template-columns: repeat(2, 1fr); }
  .offer-body { padding: 14px 14px 2px; }
}

/* Tables on a phone: each row becomes a card with every value labelled */
.table-note { font-size: 13px; margin: -6px 0 1em; }
@media (max-width: 767px) {
  table.stack { background: none; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; overflow: hidden; background: var(--surface); }
  table.stack td { border: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; padding: 7px 12px; text-align: right; }
  table.stack td::before { content: attr(data-label); color: var(--white); font-weight: 500; text-align: left; flex: none; max-width: 50%; }
  table.stack td:first-child { border-top: 0; background: #0F332C; color: var(--white); font-weight: 600; text-align: left; }
  table.stack td:first-child::before { display: none; }
}

/* Market menu in the header's top right, a flag and its code, Elena
   2026-11-09, as on the live site. A <details>, so it needs no script. */
.market-pick { position: relative; order: 1; }
.market-pick summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--white); font-weight: 500; font-size: 14px; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 8px; background: var(--surface); }
.market-pick summary::-webkit-details-marker { display: none; }
.market-pick summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); margin: -4px 0 0 2px; }
.market-pick[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.market-pick img { width: 22px; height: 16px; border-radius: 2px; display: block; }
.market-pick ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 230px; background: var(--surface); border: 1px solid var(--edge); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.market-pick li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; color: var(--text); }
.market-pick li a:hover { background: var(--bg); color: var(--white); }
.market-pick li a[aria-current] { color: var(--white); font-weight: 600; }
.site-header .cta-pair { order: 2; }
@media (min-width: 768px) {
  .site-header .nav { order: 0; }
  .market-pick { order: 1; }
}
@media (max-width: 767px) {
  .market-pick { order: 1; margin-left: auto; }
  .menu-button { order: 2; }
  .site-header .cta-pair { order: 3; }
  .market-pick ul { right: -44px; }
}

/* Two of the casino's payment logos come only in dark ink (no white version
   on its image host, 2026-11-09): shown white on the purple page */
.method img[src$="crypto_processing.svg"], .method img[src$="devcode-inpay_aveazure.svg"] { filter: brightness(0) invert(1); }

/* (no sign up card on this site) */

/* Pictures in the text, such as the lobby: never wider than the column */
figure.shot { margin: 1.2em 0 1.6em; }
figure.shot img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--edge); }
figure.shot figcaption { font-size: .9rem; color: var(--text); opacity: .8; margin-top: 8px; text-align: center; }

/* ---- card lists: the casino's cards, built from the facts ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 18px 0 28px; }
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card .pic img { display: block; width: 100%; height: auto; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { color: var(--white); margin: 0; font-size: 1.2rem; font-weight: 900; text-transform: none; }
.card p { margin: 0; }
.card .rules { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.card .rules li { margin: 2px 0; }
.card .rules li::marker { color: var(--gold); }
.card .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.card .btn { text-align: center; }
.card .code { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; background: var(--bg-dark); color: var(--gold); border: 2px dashed var(--gold); border-radius: 10px; padding: 6px 14px; font: 900 1.05rem "Nunito", Arial, sans-serif; cursor: pointer; }
.card .code span { color: var(--text); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.card .code.copied::after { content: "copied"; color: var(--text); font-weight: 600; font-size: .75rem; }
/* the picture the site draws for a hot deal: the pokie and the offer, the
   type on an orange label at the foot, a colour per type, Elena 2026-11-10 */
.art { aspect-ratio: 2 / 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 18px 46px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #2E7A4A 0%, #164A3E 45%, var(--bg-dark) 100%); border-bottom: 3px solid var(--button); }
.art::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 20% 30%, #85E947 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, #85E947 0 2px, transparent 3px); background-size: 38px 38px, 52px 52px; }
.art.pokie { background: radial-gradient(120% 90% at 50% 0%, #7A4A12 0%, #3A3A1E 45%, var(--bg-dark) 100%); }
.art.tournament { background: radial-gradient(120% 90% at 50% 0%, #1F5E86 0%, #163F4A 45%, var(--bg-dark) 100%); }
.art.plain { padding-bottom: 18px; }
.art .pokie { position: relative; color: var(--white); font-weight: 900; font-size: 1.7rem; line-height: 1.1; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.art .offer { position: relative; color: var(--gold); font-weight: 900; font-size: 1.15rem; }
.art .tag { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--button); color: var(--white); font-weight: 900; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.note { background: var(--surface); border-left: 4px solid var(--button); border-radius: 8px; padding: 12px 16px; }
figure.shot { margin: 1em 0; display: inline-block; vertical-align: top; max-width: 320px; margin-right: 14px; }

/* PlayCroco's badges in the footer */
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 26px; margin: 18px 0 8px; }
.badges img { height: auto; max-height: 64px; width: auto; }
/* a wide picture, such as the lobby, spans the column */
figure.shot.wide { display: block; max-width: none; margin-right: 0; }

/* Promotion categories as tabs, like PlayCroco's own page */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); color: var(--white); text-decoration: none; font-weight: 800; }
.tabs a img { width: 24px; height: 24px; }
.tabs a:hover { border-color: var(--gold); color: var(--white); }
.tabs a[aria-current] { background: var(--button); border-color: var(--button); }
.tab-panel[hidden] { display: none; }
@media (max-width: 767px) { .tabs { gap: 8px; } .tabs a { padding: 8px 12px; font-size: .9rem; flex: 1 1 calc(50% - 8px); justify-content: center; } }

/* The bonus guidelines as two columns, the rule on the left and what it
   means on the right, a row each, Elena 2026-11-10; one column on a phone */
#guidelines { display: grid; grid-template-columns: 230px 1fr; column-gap: 28px; }
#guidelines > h2, #guidelines > p:first-of-type { grid-column: 1 / -1; }
#guidelines > h3 { grid-column: 1; margin: 0; padding: 14px 0; border-top: 1px solid var(--edge); font-size: 1.02rem; color: var(--gold); }
#guidelines > h3 + p { grid-column: 2; margin: 0; padding: 14px 0; border-top: 1px solid var(--edge); }
@media (max-width: 767px) {
  #guidelines { grid-template-columns: 1fr; }
  #guidelines > h3 { padding-bottom: 4px; }
  #guidelines > h3 + p { grid-column: 1; border-top: 0; padding-top: 0; }
}
