/* Το Δρακοχώρι — website. Colours are Ρέκο's own (consistency kit). */
@font-face { font-family: "Rounded"; font-weight: 500; font-display: swap; src: url(../fonts/mplus-rounded-medium.woff2) format("woff2"); }
@font-face { font-family: "Rounded"; font-weight: 700; font-display: swap; src: url(../fonts/mplus-rounded-bold.woff2) format("woff2"); }
@font-face { font-family: "Rounded"; font-weight: 900; font-display: swap; src: url(../fonts/mplus-rounded-black.woff2) format("woff2"); }

:root {
  --ink: #2C2311; --paper: #FFF8E7; --belly: #F9E4B3; --yellow: #FAD063; --ochre: #DAA533;
  --spike: #A23D2D; --tomato: #E3423B; --shorts: #4982BA; --cuffs: #8CA9CB; --salad: #66AB6E;
  --wing: #F2C29B; --ear: #F7A99D; --sky: #BFE3F7; --grass: #8CCB72; --grass2: #6DB45A; --silver: #DAD7D9;
  --radius: 26px; --shadow: 5px 5px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Rounded", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; font-weight: 500;
  font-size: 20px; line-height: 1.6; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--shorts); text-underline-offset: .15em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 5px solid var(--shorts); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header + the belt (ζώνη με χρώμα ντομάτας) ---------- */
.site-head { background: var(--yellow); position: relative; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 28px; }
.brand img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky); }
.site-head nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.site-head nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 18px;
  border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); font-size: 19px;
  transition: transform .15s;
}
.site-head nav a:hover { transform: translateY(-2px); }
.site-head nav a svg { width: 22px; height: 22px; flex: none; }
.site-head nav a.c-blue { background: var(--shorts); color: #fff; }
.site-head nav a.c-green { background: var(--salad); color: #fff; }
.site-head nav a.c-red { background: var(--tomato); color: #fff; }
.site-head nav a[aria-current="page"] { box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), 3px 3px 0 var(--ink); text-decoration: underline; text-decoration-thickness: 3px; }
.belt {
  height: 26px; position: relative; border-block: 3px solid var(--ink);
  background: radial-gradient(circle, var(--ink) 0 3px, transparent 4px) 0 50% / 46px 100% repeat-x, var(--tomato);
}
.belt::after { /* the square SILVER buckle */
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 40px; transform: translate(-50%, -50%);
  border: 7px solid var(--silver); outline: 3px solid var(--ink); outline-offset: -1px; border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 3px var(--ink); background: transparent;
}
.belt::before { content: ""; position: absolute; left: calc(50% - 14px); top: 50%; width: 30px; height: 7px; transform: translateY(-50%); background: var(--silver); border: 2px solid var(--ink); border-radius: 4px; z-index: 1; }

/* ---------- spikes divider (like the ones on his back) ---------- */
.spikes { height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26'%3E%3Cpath d='M4 26 L22 3 L40 26Z' fill='%23A23D2D' stroke='%232C2311' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 0 100% / 44px 26px repeat-x; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 26px;
  border-radius: 999px; border: 3px solid var(--ink); box-shadow: var(--shadow); font: inherit; font-weight: 900; font-size: 22px;
  text-decoration: none; cursor: pointer; background: var(--paper); color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn.blue { background: var(--shorts); color: #fff; }
.btn.green { background: var(--salad); color: #fff; }
.btn.red { background: var(--tomato); color: #fff; }
.btn.yellow { background: var(--yellow); }
.btn.small { min-height: 50px; font-size: 19px; padding: 6px 20px; box-shadow: 3px 3px 0 var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }

/* ---------- storybook title: letters in the dragon's colours ---------- */
.title { font-size: clamp(46px, 7.4vw, 96px); line-height: 1.05; margin: 0 0 14px; letter-spacing: .01em; }
.title .w { white-space: nowrap; display: inline-block; }
.title .w > span {
  display: inline-block; -webkit-text-stroke: .085em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--ink); animation: drop .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
.title .w > span:nth-child(4n+1) { color: var(--tomato); }
.title .w > span:nth-child(4n+2) { color: var(--yellow); }
.title .w > span:nth-child(4n+3) { color: var(--salad); }
.title .w > span:nth-child(4n+4) { color: var(--shorts); }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } }
.page-title { font-size: clamp(44px, 7vw, 80px); color: var(--yellow); -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--ink); margin: 0 0 10px; }

/* ---------- hero: sky, clouds, hills, notes ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(#A9D8F2, #DDF1FB 70%); padding: 40px 0 150px; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 20px; }
.hero .lead { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; max-width: 26ch; }
.cloud { position: absolute; z-index: 1; width: 180px; height: 60px; background: #fff; border-radius: 60px; opacity: .95; animation: drift 70s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; left: 28px; top: -40px; }
.cloud::after { width: 60px; height: 60px; left: 90px; top: -26px; }
.cloud.c1 { top: 50px; left: 6%; } .cloud.c2 { top: 120px; left: 55%; transform: scale(.7); animation-duration: 90s; } .cloud.c3 { top: 30px; left: 80%; transform: scale(.85); animation-duration: 110s; }
@keyframes drift { 50% { translate: 60px 0; } }
.note { position: absolute; z-index: 1; font-size: 34px; color: var(--ink); opacity: .8; animation: float 6s ease-in-out infinite; }
.note.n1 { left: 55%; top: 68%; } .note.n2 { left: 57%; top: 8%; animation-delay: -2s; } .note.n3 { right: 3%; top: 50%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-8deg); } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 1; pointer-events: none; }
.hills svg { width: 100%; height: 100%; display: block; }

/* Ρέκο stands on the hill: his feet sink into the hero's bottom padding, onto the hills (which sit behind him) */
.reko-hero { position: relative; justify-self: center; align-self: end; margin-bottom: -62px; background: none; border: 0; padding: 0; cursor: pointer; width: min(380px, 100%); }
.reko-hero::after { /* soft shadow on the grass under his shoes */
  content: ""; position: absolute; left: 18%; right: 12%; bottom: -10px; height: 26px; z-index: -1;
  background: radial-gradient(closest-side, rgba(44, 35, 17, .32), rgba(44, 35, 17, 0)); }
.reko-hero img { width: 100%; animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
.reko-hero.hop img { animation: hop .6s ease; }
@keyframes sway { 50% { transform: rotate(-1.4deg); } }
@keyframes hop { 30% { transform: translateY(-36px) rotate(-4deg); } 60% { transform: translateY(0) scaleY(.94); } }
.bubble {
  position: absolute; left: -14%; top: -6%; max-width: 250px; background: #fff; border: 3px solid var(--ink); border-radius: 26px;
  padding: 12px 18px; font-weight: 900; font-size: 21px; line-height: 1.3; box-shadow: 4px 4px 0 var(--ink); text-align: left; color: var(--ink);
}
.bubble::after { content: ""; position: absolute; right: 34px; bottom: -18px; width: 26px; height: 26px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: skewX(-25deg) rotate(45deg); }
.bubble.pop { animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.seek { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: rgba(255, 255, 255, .8); border: 3px dashed var(--ink); border-radius: 20px; padding: 10px 16px; font-weight: 700; font-size: 19px; }
.slots { display: inline-flex; gap: 8px; }
.slots i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.slots i.on { background: var(--yellow) url(../img/reko_face.webp) center / cover; animation: pop .4s ease; }

/* ---------- sections ---------- */
.section { padding: 64px 0; position: relative; }
.section.alt { background: var(--belly); }
.section.spots { background: radial-gradient(circle at 20% 30%, rgba(218, 165, 51, .35) 0 18px, transparent 19px) 0 0 / 140px 120px, radial-gradient(circle at 70% 75%, rgba(218, 165, 51, .3) 0 12px, transparent 13px) 0 0 / 140px 120px, var(--yellow); }
.lead-text { font-size: 23px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Ρέκο's clothes (chips + rings) ---------- */
.wear { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.chip {
  text-align: left; min-height: 56px; padding: 6px 18px 6px 8px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: inherit; font-weight: 700; font-size: 19px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink);
}
.chip b { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.chip[aria-pressed="true"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--paper); outline: 4px solid var(--ochre); }
.figure { position: relative; width: min(360px, 100%); margin-inline: auto; }
.ring { position: absolute; border: 6px solid; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.ring.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ring.shorts { border-color: var(--shorts); left: 56%; top: 72%; width: 54%; height: 22%; }
.ring.belt { border-color: var(--tomato); left: 66%; top: 63.5%; width: 50%; height: 10%; }
.ring.shoe1 { border-color: var(--salad); left: 31%; top: 93%; width: 32%; height: 13%; }
.ring.shoe2 { border-color: var(--salad); left: 66%; top: 92%; width: 32%; height: 13%; }

/* ---------- friends ---------- */
.kids { display: flex; justify-content: center; align-items: flex-end; gap: 4%; margin: 10px 0 30px; position: relative; }
.kids img { width: 20%; max-width: 150px; transition: transform .2s; }
.kids img:hover { transform: translateY(-8px); }
.animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.animals button { width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; font-weight: 700; }
.animals img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); object-fit: cover; margin-bottom: 8px; background: #fff; }
.animals button.wiggle img { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card { background: #fff; border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card .pic { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 4px solid var(--ink); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .body p { flex: 1; }
.card h3 { margin-bottom: .3em; }
.card.blue { background: #E3EEF8; } .card.green { background: #E6F3E5; } .card.red { background: #FBE4E1; } .card.yellow { background: #FFF3CC; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.tag { display: inline-block; padding: 2px 14px; border-radius: 999px; font-size: 16px; font-weight: 700; border: 2px solid var(--ink); background: #fff; margin: 0 6px 6px 0; }
.tag.l1 { background: var(--salad); color: #fff; } .tag.l2 { background: var(--shorts); color: #fff; } .tag.l3 { background: var(--tomato); color: #fff; }
.num { position: absolute; top: 14px; left: 14px; z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 26px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- hide and seek: Ρέκο peeks out from behind things ---------- */
.peek-zone { position: relative; overflow: hidden; }
.peek {
  position: absolute; z-index: 3; width: 150px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(68%) rotate(var(--r, 0deg)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.peek:hover { transform: translateY(58%) rotate(var(--r, 0deg)); }
.peek.found { transform: translateY(8%) rotate(0deg); cursor: default; }
.peek img { width: 100%; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); background: #fff; border: 4px solid var(--ink);
  border-radius: 22px; box-shadow: var(--shadow); padding: 12px 22px; font-weight: 900; font-size: 22px; display: flex; align-items: center; gap: 12px;
  animation: pop .35s ease;
}
.toast img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); }
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 39; overflow: hidden; }
.stars span { position: absolute; top: -40px; font-size: 34px; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(260deg); } }

/* ---------- songs ---------- */
.song { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: start; background: #fff; border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 36px; position: relative; }
.song video, .song .poster { width: 100%; height: auto; min-height: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; border: 3px solid var(--ink); background: #000; display: block; object-fit: cover; }
.song .info { padding-top: 6px; }
.song .kicker { font-weight: 900; color: var(--spike); font-size: 18px; text-transform: none; margin-bottom: 4px; }
.together { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.together li { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 8px 12px; font-weight: 700; font-size: 18px; line-height: 1.35; }
.together img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.soon { background: var(--belly); }
.soon .poster { background: var(--sky); object-fit: contain; }

/* ---------- printables ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 14px 20px; margin: 10px 0 34px; font-size: 18px; }
.group { margin: 46px 0 18px; display: flex; align-items: center; gap: 14px; }
.group img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: #fff; }
.group h2 { margin: 0; }
.sheets { display: flex; gap: 10px; padding: 18px 18px 0; background: #EFE7D4; border-bottom: 4px solid var(--ink); min-height: 230px; align-items: flex-end; justify-content: center; }
.sheets img { width: auto; max-height: 210px; max-width: 46%; border: 2px solid #b9ae96; border-bottom: 0; box-shadow: 0 -2px 8px rgba(0,0,0,.08); background: #fff; }
.sheets img + img { margin-left: -6%; transform: rotate(3deg); transform-origin: bottom left; }
.sheets img:nth-child(3) { transform: rotate(6deg); }
.meta { font-size: 16px; opacity: .8; margin: 0 0 14px; }
.tip { display: flex; gap: 16px; align-items: center; background: #fff; border: 3px solid var(--ink); border-left: 14px solid var(--salad); border-radius: 18px; padding: 16px 20px; margin: 30px 0; }
.tip img { width: 80px; flex: none; }
.tip p { margin: 0; }

/* ---------- grown-ups page ---------- */
.prose h2 { margin-top: 1.2em; display: flex; align-items: center; gap: 14px; }
.prose h2 .dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; max-width: 62ch; }
.prose li { margin-bottom: .45em; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; }
.mode { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 18px 20px; box-shadow: 4px 4px 0 var(--ink); }
.mode b.big { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); font-size: 24px; margin-right: 6px; }
.mode p { font-size: 18px; margin: .5em 0 0; }
kbd { font: inherit; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 8px; padding: 0 8px; }

/* ---------- footer: the gang on the grass ---------- */
.site-foot { position: relative; margin-top: 40px; background: var(--grass2); color: #fff; }
.foot-hill { position: relative; height: 230px; background: linear-gradient(#DDF1FB, #DDF1FB); overflow: hidden; }
.foot-hill svg { pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.gang { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; z-index: 2; }
.gang img { height: 150px; width: auto; }
.gang img.reko { height: 175px; }
.site-foot .wrap { padding: 22px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-foot a { color: #fff; font-weight: 700; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot p { margin: 0; font-size: 17px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .hero .wrap, .two, .song { grid-template-columns: 1fr; }
  .hero { padding-bottom: 130px; }
  .reko-hero { width: min(300px, 80%); margin-top: 40px; margin-bottom: -52px; }
  .bubble { left: -4%; top: -16%; font-size: 18px; }
  .site-head nav a { font-size: 17px; padding: 6px 14px; min-height: 48px; }
  .brand { font-size: 24px; } .brand img { width: 50px; height: 50px; }
  .gang img { height: 100px; } .gang img.reko { height: 120px; }
  .foot-hill { height: 170px; }
  .peek { width: 110px; }
  .note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print { .site-head, .belt, .site-foot, .hero .btns { display: none; } }
