:root {
  --paper: #E6EAD9;
  --red: #B11F2C;
  --red-bright: #E0303F;
  --black: #141414;
  --map: #B8C3C9;
  --aid: #4E6A80;
  --white: #FFFFFF;
  --display: 'Archivo Black', 'Roboto', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--black); }
body {
  font-family: var(--body);
  color: var(--black);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
:lang(el) { --display: 'Roboto Condensed', 'Roboto', sans-serif; --body: 'Roboto', system-ui, sans-serif; }
:lang(el) body, :lang(el) button { font-family: var(--body); }

#app {
  position: relative;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}
.screen.active { display: flex; }
.screen:not(.screen-play) { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen > * { flex-shrink: 0; }
.screen-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.grow { flex: 1 1 auto; min-height: 8px; }
.red { color: var(--red); }

button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Title */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lang {
  min-width: 48px; height: 44px; padding: 0 10px;
  border: 2px solid var(--black); background: transparent; color: var(--black);
  font-weight: 800; font-size: 14px;
}
.title { margin: 4px 0 0; display: flex; flex-direction: column; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(52px, 18vw, 80px); line-height: 0.92; }
.title-war {
  align-self: flex-start; margin-top: 8px; padding: 6px 12px 0;
  background: var(--red); color: var(--white); transform: rotate(-3deg);
}
.lead { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.lead.small { font-size: 15px; }
.redbar {
  margin: 0 -20px; padding: 10px 12px;
  background: var(--red); color: var(--white); text-align: center;
  font-family: var(--display); font-weight: 900; font-size: clamp(12px, 3.4vw, 16px); white-space: nowrap; text-transform: uppercase;
}
.best { margin: 0; text-align: center; font-size: 13px; font-weight: 600; min-height: 1em; }

/* Map */
.map svg { display: block; width: 100%; height: auto; }
.map-title { margin: 0 -8px; }
.map .land { fill: var(--map); }
.map .port { fill: var(--white); stroke: var(--black); transition: fill .3s; }
.map .port.on { fill: var(--red); stroke: none; }
.map .port.on.new { stroke: var(--black); stroke-width: 2.5px !important; }

/* Buttons */
.actions { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 16px; border: none;
  font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 0.05em; text-transform: uppercase;
}
.btn:active { transform: translateY(2px); }
.btn-black { background: var(--black); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-aid { background: var(--aid); color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border: 2px solid var(--black); font-family: var(--body); font-weight: 800; font-size: 16px; text-transform: none; letter-spacing: 0; min-height: 48px; }
.link { background: none; border: none; color: var(--red); font-weight: 800; font-size: 15px; min-height: 44px; text-decoration: underline; }

/* How to */
.tag {
  align-self: flex-start; margin: 12px 0 4px; padding: 6px 12px 2px;
  background: var(--red); color: var(--white); transform: rotate(-2deg);
  font-family: var(--display); font-weight: 900; font-size: 32px; text-transform: uppercase;
}
.rule { display: flex; gap: 14px; align-items: center; padding: 14px; border: 3px solid var(--black); background: var(--white); }
.rule h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 900; font-size: 17px; text-transform: uppercase; }
.rule p { margin: 0; font-size: 14px; line-height: 1.4; }
.box { flex: 0 0 80px; height: 54px; display: flex; align-items: center; justify-content: center; }
.box svg { width: 100%; height: 100%; }
.box-aid { background: var(--aid); color: var(--white); font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.box-war { background: var(--black); }
.box-map { background: var(--map); }
.note { margin: 0; font-size: 14px; font-weight: 600; }

/* Play */
.screen-play { padding: 0; gap: 0; }
.hud {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
  padding: max(14px, env(safe-area-inset-top)) 16px 10px;
  background: var(--black); color: var(--white);
}
.hud-cell { display: flex; flex-direction: column; gap: 2px; }
.hud-cell.center { align-items: center; }
.hud-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #C9CCC0; }
.hud-num { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; }
.lives { display: flex; gap: 6px; padding-bottom: 4px; }
.lives i { width: 16px; height: 22px; background: var(--red-bright); }
.lives i.lost { background: transparent; outline: 2px solid #6B6F66; outline-offset: -2px; }
.strike { padding: 8px 16px; border-bottom: 3px solid var(--black); }
.ticker { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; margin-top: 4px; }
.ticker > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker > span:last-child { white-space: nowrap; }

.yard { position: relative; flex: 1 1 auto; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.sea { position: absolute; left: 0; right: 0; top: 0; height: 24%; background: var(--map); }
.ship {
  position: absolute; left: 8%; right: 10%; top: 13%; height: 8%;
  background: var(--black); clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
}
.ship-load { position: absolute; left: 18%; bottom: 87%; display: grid; grid-template-columns: repeat(9, 22px); grid-auto-rows: 12px; gap: 2px; transform: scaleY(-1); }
.ship-load i { display: block; background: var(--aid); box-shadow: inset 0 0 0 1px #3d566a; }
/* crane: drawn in the newer block below */
.hint { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; padding: 4px 8px; background: var(--paper); white-space: nowrap; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; }
.hint-up { top: 27.5%; }
.hint-down { top: 63%; }
.container {
  position: absolute; left: 50%; top: 34%;
  width: 168px; height: 86px; margin-left: -84px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 3px solid var(--black); color: var(--white); text-align: center;
  transition: transform .28s cubic-bezier(.3,.7,.4,1), opacity .28s;
  will-change: transform;
}
.container.aid { background: var(--aid); }
.container.war { background: var(--black); }
.container.war::before, .container.war::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 70px; height: 7px; margin: -3.5px 0 0 -35px;
  background: var(--red-bright); transform: rotate(35deg); opacity: .9;
}
.container.war::after { transform: rotate(-35deg); }
.container.hidden { opacity: 0; }
.container.go-up { transform: translateY(-190%) scale(.35); opacity: 0; }
.container.go-down { transform: translateY(170%) scale(.6); opacity: 0; }
.container.shake { animation: shake .3s; }
.c-icon { position: relative; z-index: 1; width: 28px; height: 28px; }
.c-icon svg { width: 100%; height: 100%; }
.c-label { position: relative; z-index: 1; font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; padding: 0 6px; line-height: 1.1; }
.container.war .c-label { background: var(--black); }
.c-fuse { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: #F5C542; transform-origin: left; z-index: 2; }

.feedback {
  position: absolute; z-index: 4; left: 16px; right: 16px; top: 50%; text-align: center;
  font-family: var(--display); font-weight: 900; font-size: 20px; text-transform: uppercase;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.feedback.show { opacity: 1; }
.feedback.bad { color: var(--red); }
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: flex-end; padding: 0 16px;
  font-family: var(--display); font-weight: 900; font-size: 14px; text-transform: uppercase;
}
.dock-pile { position: absolute; left: 34px; bottom: 100%; display: grid; grid-template-columns: repeat(6, 30px); grid-auto-rows: 16px; gap: 2px; transform: scaleY(-1); }
.dock-pile i { display: block; width: 30px; height: 16px; background:
  linear-gradient(32deg, transparent calc(50% - 1.5px), var(--red-bright) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
  linear-gradient(-32deg, transparent calc(50% - 1.5px), var(--red-bright) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
  var(--black); box-shadow: inset 0 0 0 1px #3a3a3a; }

.yard.flash { animation: flash .35s; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px max(12px, env(safe-area-inset-bottom)); background: var(--black); }
.controls .btn { font-size: 18px; min-height: 52px; }

@keyframes shake { 0%,100% { translate: 0 0; } 25% { translate: -10px 0; } 75% { translate: 10px 0; } }
@keyframes flash { 0% { background: rgba(224,48,63,.35); } 100% { background: transparent; } }

/* Game over */
.card { margin-top: 12px; border: 3px solid var(--black); background: var(--white); display: flex; flex-direction: column; }
.card-head { margin: 0; padding: 12px 16px 8px; background: var(--red); color: var(--white); font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.score-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px 2px; }
.score-num { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; }
.score-txt { font-size: 16px; font-weight: 800; line-height: 1.25; max-width: 140px; }
.map-over { padding: 4px 8px; }
.card-foot { padding: 10px 16px; background: var(--black); color: var(--white); font-family: var(--display); font-weight: 900; font-size: 15px; line-height: 1.3; text-transform: uppercase; }

/* About */
.back { width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border: 2px solid var(--black); background: transparent; }
.about-h { margin: 0; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1.08; text-transform: uppercase; }
.banner { width: 100%; height: auto; border: 3px solid var(--black); display: block; }
.slogans { display: flex; flex-direction: column; gap: 8px; }
.slogans p { margin: 0; padding: 10px 14px; background: var(--black); color: var(--white); font-weight: 800; font-size: 15px; line-height: 1.35; }
.ports-h { margin: 8px 0 0; font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.asof { color: var(--red); }
.port-list { display: flex; flex-direction: column; gap: 10px; }
.port-country { border-top: 2px solid var(--black); padding-top: 6px; }
.port-country h4 { margin: 0 0 2px; display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; }
.port-country h4 span { color: var(--red); }
.port-country p { margin: 0; font-size: 14px; line-height: 1.45; }
.asof-note { margin: 0; font-size: 13px; font-weight: 700; color: var(--red); }
.actions.sticky { position: sticky; bottom: 0; padding: 12px 0 4px; background: var(--paper); flex-shrink: 0; }

.toast {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  padding: 10px 16px; background: var(--black); color: var(--white); font-weight: 700; font-size: 14px;
  opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .container, .feedback, .map .port { transition: none; }
  .container.shake, .yard.flash { animation: none; }
}
@media (max-height: 680px) {
  .screen { gap: 10px; }
  .tag { font-size: 26px; margin-top: 4px; }
  .container { height: 70px; }
  .title { font-size: 52px; }
  .lead { font-size: 15px; }
  .rule { padding: 10px; }
  .rule p { font-size: 13px; }
}

/* ---- design review fixes ---- */
html { touch-action: manipulation; }
.container.war { justify-content: flex-end; padding-bottom: 12px; }
.container.war .c-icon { display: none; }
.container.war .c-label { background: none; text-shadow: 0 0 3px #141414, 0 0 6px #141414; }
.container.war::before, .container.war::after { top: 36%; width: 56px; height: 7px; margin: -3.5px 0 0 -28px; transform: rotate(45deg); }
.container.war::after { transform: rotate(-45deg); }
#screen-howto .actions { position: sticky; bottom: calc(-1 * max(20px, env(safe-area-inset-bottom))); margin: 0 -20px calc(-1 * max(20px, env(safe-area-inset-bottom))); padding: 8px 20px max(20px, env(safe-area-inset-bottom)); background: var(--paper); }
.card-url { display: block; margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--red); font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--paper); }
.score-num { font-size: 104px; color: var(--red); }
.score-txt { font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; max-width: 170px; }
.feedback { top: calc(34% + 96px); left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 2px 8px; background: var(--paper); font-size: 18px; line-height: 1.15; }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.lives { justify-self: end; }
.hud-label { font-size: 11px; line-height: 1.15; }
.lang { height: 48px; }
.back { width: 48px; height: 48px; }
.link { min-height: 48px; }
#screen-about { padding-bottom: 0; }
.actions.sticky { bottom: 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.rule h3, .kicker, .card-head, .about-h, .lead { text-wrap: balance; }
:lang(el) .rule h3 { font-size: 16px; }
:lang(el) .redbar { font-size: clamp(13px, 3.8vw, 17px); letter-spacing: .02em; }
.c-fuse { background: var(--paper); }
.container.aid .c-fuse { background: var(--white); }
.slogan-red { margin: 0; font-family: var(--display); font-weight: 900; color: var(--red); font-size: 22px; line-height: 1.1; text-transform: uppercase; text-align: center; }
@media (max-height: 680px) {
  .container.war::before, .container.war::after { width: 44px; margin-left: -22px; }
  #screen-howto .rule p { font-size: 12.5px; line-height: 1.35; }
  .box { flex-basis: 64px; height: 44px; }
  .feedback { top: calc(34% + 78px); }
  .map-play { width: 72%; margin: 0 auto; }
  .strike { padding: 6px 12px; }
  .hint { font-size: 11px; padding: 3px 6px; }
  .hint-up { top: 25.5%; }
  .container { top: 35%; }
  .slogan-red { display: none; }
  .box-aid { font-size: 9px; letter-spacing: 0; }
}

/* ---- round 2: justified text, declaration, Europe map ---- */
.justify, .lead.small, .rule p, .port-country p, .slogans p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.slogan-red, .best, .note { text-align: center; }
.decl { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding: 16px; border: 3px solid var(--black); background: var(--white); }
.decl-h { margin: 0; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--red); }
.decl-sub { margin: 0; font-size: 13px; font-weight: 800; }
.decl p { margin: 0; font-size: 14px; line-height: 1.45; }
.decl-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.decl-list li::marker { font-weight: 800; color: var(--red); }
.decl-sign { font-weight: 700; }
.decl-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--red); }
.map-europe { border: 3px solid var(--black); background: var(--paper); }

/* ---- round 3: gantry crane, hints clear of the crane ---- */
.crane { position: absolute; inset: 0; pointer-events: none; }
.crane-leg {
  position: absolute; top: 24%; bottom: 14%; width: 18px;
  border-left: 4px solid var(--red); border-right: 4px solid var(--red);
  background: repeating-linear-gradient(-45deg, transparent 0 9px, var(--red) 9px 12px);
}
.crane-leg-l { left: 6px; }
.crane-leg-r { right: 6px; }
.crane-wheels { position: absolute; left: -9px; right: -9px; bottom: -6px; height: 8px; background: var(--black); border-radius: 2px; }
.crane-boom {
  position: absolute; left: 0; right: 0; top: 24%; height: 18px; margin-top: -18px;
  border-top: 4px solid var(--red); border-bottom: 4px solid var(--red);
  background: repeating-linear-gradient(45deg, transparent 0 9px, var(--red) 9px 12px);
}
.crane-brace { position: absolute; top: 24%; width: 36px; height: 36px; }
.crane-brace-l { left: 24px; background: linear-gradient(to bottom right, var(--red) 0 22%, transparent 22%); }
.crane-brace-r { right: 24px; background: linear-gradient(to bottom left, var(--red) 0 22%, transparent 22%); }
.crane-cabin { position: absolute; right: 26px; top: 24%; width: 44px; height: 26px; background: var(--black); display: flex; gap: 4px; padding: 6px; }
.crane-cabin i { flex: 1; background: #8FA3B0; }
.crane-trolley { position: absolute; left: 50%; top: 24%; width: 52px; height: 12px; margin: -24px 0 0 -26px; background: var(--black); border-radius: 2px; }
.crane-cables {
  position: absolute; left: 50%; top: 24%; width: 40px; margin-left: -20px; height: calc(10% - 8px);
  border-left: 2px solid var(--black); border-right: 2px solid var(--black);
}
.crane-spreader { position: absolute; left: 50%; top: calc(34% - 10px); width: 180px; height: 8px; margin-left: -90px; background: var(--black); }
.hint { white-space: normal; max-width: calc(100% - 76px); font-size: 12px; line-height: 1.25; }
.hint-up { top: calc(24% + 30px); }
.feedback { max-width: calc(100% - 76px); }
.dock { padding-left: 40px; }
@media (max-height: 680px) {
  .crane-spreader { top: calc(35% - 10px); width: 150px; margin-left: -75px; }
  .hint-up { top: calc(24% + 24px); }
}

/* ---- round 3b: one vertical rhythm for the yard ---- */
.yard { --boom: 22%; --ch: 86px; --ctop: calc(var(--boom) + 62px); }
.sea { height: var(--boom); }
.ship { top: 8%; height: 8%; }
.ship-load { bottom: 92%; }
.crane-leg, .crane-brace, .crane-cabin { top: var(--boom); }
.crane-boom { top: var(--boom); }
.crane-trolley { top: var(--boom); margin-top: 0; height: 10px; }
.crane-cables { top: calc(var(--boom) + 10px); height: 42px; }
.crane-spreader { top: calc(var(--ctop) - 10px); }
.hint-up { top: calc(var(--boom) + 14px); max-width: calc(50% - 50px); left: 26%; text-align: center; }
.container { top: var(--ctop); height: var(--ch); }
.hint-down, .feedback { top: calc(var(--ctop) + var(--ch) + 14px); }
#over-msg { text-align: left; }
@media (max-height: 680px) {
  .yard { --ch: 70px; --ctop: calc(var(--boom) + 58px); }
  .crane-spreader { top: calc(var(--ctop) - 10px); }
  .container { top: var(--ctop); }
  .hint-up { top: calc(var(--boom) + 12px); }
}
.hint-down:has(~ .feedback.show) { visibility: hidden; }
.hint-up { left: 50%; max-width: none; white-space: nowrap; top: calc(var(--boom) + 16px); padding: 2px 6px; transform: translateX(-118%); }
.hint-up { left: auto; right: calc(50% + 26px); transform: none; }
.hint-up { left: 50%; right: auto; transform: translateX(-50%); }

/* ---- round 4: realistic ship, newsflash, Greek fonts ---- */
.ship { position: absolute; left: 6%; right: 6%; top: 1%; height: calc(var(--boom) - 3%); width: 88%; background: none; clip-path: none; overflow: visible; }
.newsflash { display: flex; align-items: stretch; gap: 0; background: var(--black); color: var(--white); min-height: 48px; overflow: hidden; }
.nf-tag { flex: 0 0 auto; display: flex; align-items: center; padding: 6px 10px; background: var(--red); font-family: var(--display); font-weight: 900; font-size: 12px; line-height: 1.1; text-transform: uppercase; max-width: 92px; }
.nf-text { flex: 1 1 auto; display: flex; align-items: center; padding: 6px 12px; font-weight: 800; font-size: 14px; line-height: 1.3; }
.nf-text.in { animation: nf-in .5s ease-out; }
@keyframes nf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#screen-title .newsflash { margin: 0 -20px; }
.dock { padding: 0; justify-content: stretch; align-items: stretch; }
.dock .newsflash { flex: 1 1 auto; min-height: 0; }
.dock .nf-text { font-size: 13px; }
.map-about { border: 3px solid var(--black); background: var(--paper); padding: 6px; }
:lang(el) .title { font-size: clamp(54px, 19vw, 84px); letter-spacing: -0.01em; }
:lang(el) .hud-label, :lang(el) .kicker { font-family: 'Roboto', sans-serif; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .nf-text.in { animation: none; } }
@media (max-height: 680px) { .dock .nf-text { font-size: 12px; padding: 4px 8px; } .nf-tag { font-size: 10px; } }

/* ---- round 5: home button, sailing ship, feedback below the hint ---- */
.hud { grid-template-columns: auto 1fr auto 1fr; column-gap: 12px; }
.home { align-self: center; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid #6B6F66; background: transparent; color: var(--white); }
.ship { transition: transform 1.1s ease-in; }
.ship.sailing { transform: translateX(130%); }
.ship.arriving { transform: translateX(-130%); transition: none; }
.ship:not(.sailing):not(.arriving) { transition: transform .9s ease-out; }
.hint-down:has(~ .feedback.show) { visibility: visible; }
.feedback { top: calc(var(--ctop) + var(--ch) + 44px); }
@media (max-height: 680px) { .feedback { top: calc(var(--ctop) + var(--ch) + 36px); font-size: 15px; } }
.hint { white-space: nowrap; max-width: none; }
@media (max-width: 380px) { .hud-label { font-size: 9.5px; } .home { width: 40px; height: 40px; } }

/* ---- round 6: hint and feedback in one column, compact play header, scroll arrow ---- */
.below { position: absolute; left: 0; right: 0; top: calc(var(--ctop) + var(--ch) + 12px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 3; }
.below .hint, .below .feedback { position: static; transform: none; left: auto; right: auto; top: auto; }
.below .feedback { width: auto; max-width: calc(100% - 76px); }
.hud { padding: max(6px, env(safe-area-inset-top)) 12px 6px; column-gap: 10px; }
.hud-label { font-size: 9px; letter-spacing: .08em; }
.hud-num { font-size: 22px; }
.lives i { width: 12px; height: 17px; }
.lives { gap: 4px; padding-bottom: 2px; }
.home { width: 40px; height: 40px; }
.home svg { width: 17px; height: 17px; }
.strike { padding: 4px 12px 6px; }
.map-play { max-width: 250px; margin: 0 auto; }
.ticker { font-size: 12px; margin-top: 2px; }
@media (max-height: 680px) { .map-play { max-width: 190px; } }
.more {
  position: absolute; left: 50%; bottom: 12px; z-index: 20; width: 44px; height: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%;
  background: var(--red); color: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.25);
  animation: more-blink 1.2s ease-in-out infinite;
}
.more[hidden] { display: none; }
@keyframes more-blink { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: .35; transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .more { animation: none; } }

/* round 7: page never scrolls, only screens; why button; about top bar; scroll nav */
html, body { overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; }
.btn-why { min-height: 56px; font-size: 20px; }
.about-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 2px solid var(--black); background: var(--black); color: var(--white);
  font-family: var(--body); font-weight: 800; font-size: 16px; }
.home-link:active { transform: translateY(2px); }
.scrollnav { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 20; display: flex; justify-content: center; gap: 14px; pointer-events: none; }
.scrollnav > button { pointer-events: auto; }
.scrollnav .more { position: static; margin: 0; }
.to-top { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white);
  border-radius: 50%; background: var(--black); color: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.to-top[hidden] { display: none; }
/* both arrows pulse together in place, same band, same rhythm */
.scrollnav { align-items: center; }
.scrollnav .more, .to-top { animation: nav-pulse 1.2s ease-in-out infinite; }
@keyframes nav-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.88); } }
@media (prefers-reduced-motion: reduce) { .scrollnav .more, .to-top { animation: none; } }
/* buttons read as buttons: a little shade, pressed state sinks */
.btn, .back, .home, .home-link, .lang { box-shadow: 0 3px 0 rgba(20,20,20,.28), 0 5px 12px rgba(20,20,20,.18); }
.btn:active, .back:active, .home:active, .home-link:active, .lang:active { box-shadow: 0 1px 0 rgba(20,20,20,.28), 0 2px 4px rgba(20,20,20,.18); }
.btn-why { border-bottom: 4px solid #7E1520; box-shadow: 0 4px 0 rgba(20,20,20,.3), 0 8px 16px rgba(177,31,44,.3); }
.btn-why::after { content: ''; width: 12px; height: 12px; margin-left: 4px; border-right: 4px solid currentColor; border-top: 4px solid currentColor; transform: rotate(45deg); }
.btn-why:active { border-bottom-width: 2px; }
/* press animation: the button sinks into its shadow and springs back */
.pressed { animation: press .22s ease-out; }
@keyframes press {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(3px) scale(.97); box-shadow: 0 0 0 rgba(20,20,20,.28), 0 1px 2px rgba(20,20,20,.18); filter: brightness(.88); }
  100% { transform: translateY(0) scale(1); }
}
#screen-howto .actions { margin-top: auto; }
.over-top { justify-content: flex-end; }
#over-share[hidden], #over-msg[hidden] { display: none; }
/* in-game hints and feedback: no box, a soft paper halo keeps them legible */
.hint, .feedback, .below .hint, .below .feedback { background: transparent; text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper), 0 0 10px var(--paper); }
/* Istanbul declaration: Greek shows the full official text, English the summary */
:root:lang(el) [data-only="en"], :root:not(:lang(el)) [data-only="el"] { display: none; }
.decl-body { display: flex; flex-direction: column; gap: 10px; }
.decl .decl-lead { font-weight: 900; font-size: 15px; color: var(--red); }
.decl .decl-strong { font-weight: 800; }
.decl-msgs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; font-weight: 700; }
.decl-msgs li::marker { color: var(--red); }
.decl-sign { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--black); padding-top: 10px; }
.decl-sign p { font-weight: 800; }
.decl-unions { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; font-weight: 600; }
/* language switch on every screen */
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-right .lang { height: 48px; }
.hud-btns { display: flex; align-items: center; gap: 6px; }
.hud .lang { min-width: 40px; height: 40px; padding: 0 6px; border-color: #C9CCC0; color: var(--white); font-size: 13px; box-shadow: none; }
