/*
 * Next Touch English vertical slice.
 * Screen-first adjustments only: game rules, swipe thresholds and outcomes
 * remain owned by the copied V14 runtime.
 */

html[lang="en"] body,
html[lang="en"] .player-entry,
html[lang="en"] .app-shell {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[lang="en"] #entryTitle {
  gap: .18em;
  letter-spacing: .045em;
}

html[lang="en"] .player-entry__profile-form {
  gap: clamp(18px, 3.2svh, 28px);
}

html[lang="en"] .player-entry__profile-field {
  grid-template-columns: minmax(88px, .42fr) minmax(0, 1fr);
}

html[lang="en"] .player-entry__profile-field--locked {
  grid-template-columns: minmax(88px, .42fr) minmax(0, 1fr) auto;
}

html[lang="en"] .player-entry__profile-field > span {
  font-size: 10px;
  letter-spacing: .06em;
}

html[lang="en"] .player-entry__profile-field--locked strong {
  font-size: 15px;
}

html[lang="en"] .player-entry__field-hint {
  display: block;
  max-width: 220px;
  margin: -12px 0 0 88px;
  color: rgb(246 244 238 / 54%);
  font-size: 10px;
  line-height: 1.45;
}

html[lang="en"] .player-entry__introduction-copy {
  font-size: 13.5px;
  line-height: 1.58;
}

html[lang="en"] .player-entry__club-options .player-entry__youth-start strong {
  font-size: 15px;
  letter-spacing: .01em;
}

html[lang="en"] .screen-title {
  letter-spacing: .015em;
}

html[lang="en"] .meter__label {
  letter-spacing: .015em;
  white-space: nowrap;
}
@media (max-width: 355px) {
  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .meter__label {
    font-size: 9px;
    letter-spacing: 0;
  }
}

html[lang="en"] .new-player-tutorial[data-tutorial-step="second"] {
  width: min(calc(100% - 24px), 330px);
}

html[lang="en"] .new-player-tutorial[data-tutorial-step="second"] strong {
  max-width: 29ch;
  font-size: 12px;
  line-height: 1.35;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .speaker-tab {
  max-width: 310px;
  font-size: 30px;
  letter-spacing: .025em;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .speaker-tab__role {
  max-width: 260px;
  font-size: 27px;
  line-height: 1.16;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .headline-shard {
  top: 195px;
  max-width: 350px;
}
/* Names, multi-line roles and titles share flow rather than fixed competing
   top offsets. Long identities must push the title down, never paint over it. */
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .card-heading-group {
  position: absolute;
  z-index: 5;
  top: 58px;
  left: 42px;
  width: 350px;
  display: grid;
  gap: 22px;
  justify-items: start;
}
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .card-heading-group .speaker-tab,
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .card-heading-group .headline-shard {
  position: relative;
  top: auto;
  left: auto;
}
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .card-heading-group .speaker-tab__name {
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .headline-shard .card-title {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -.04em;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .story-field .card-copy {
  font-size: 40px;
  line-height: 1.35;
}
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body .card-copy {
  font-size: 40px;
  line-height: 1.35;
}
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id].event-card--text-only .faceted-text-card__body .card-title {
  font-size: 44px;
  line-height: 1.12;
}

/* Use the spare lower-card area for readable English, not empty padding. */
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card[data-card-id] .event-card__story.story-field {
  height: 560px;
  padding: 100px 52px 32px;
}

/* Wrapping keeps every archive category discoverable at narrow widths. */
html[lang="en"] .achievement-gallery__categories {
  flex-wrap: wrap;
  overflow: visible;
  gap: 4px 14px;
}
html[lang="en"] .achievement-gallery__category {
  font-size: 12px;
  color: #c2cbc9;
}
html[lang="en"] .achievement-gallery__item.is-locked .achievement-gallery__copy strong,
html[lang="en"] .achievement-gallery__item.is-locked .achievement-gallery__index,
html[lang="en"] .achievement-gallery__item.is-locked .achievement-gallery__copy span,
html[lang="en"] .achievement-gallery__status,
html[lang="en"] .npc-gallery__group header small {
  color: #a9b7b6;
}
html[lang="en"] .npc-gallery__image-unavailable::after {
  content: "";
  position: absolute;
  inset: 20% 22% 8%;
  background: #627575;
  clip-path: polygon(35% 0, 65% 0, 80% 15%, 80% 32%, 65% 44%, 92% 58%, 100% 100%, 0 100%, 8% 58%, 35% 44%, 20% 32%, 20% 15%);
}
html[lang="en"] .npc-gallery__slot-name {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  overflow: visible;
  min-height: 2.7em;
  font-size: 10px;
  line-height: 1.35;
}
html[lang="en"] .npc-gallery__locked-label {
  display: block;
  margin-top: 6px;
  color: #a9b7b6;
  font-size: 10px;
}

/* Reserve the bottom notification lane; never cover the card headline. */
html[lang="en"] .achievement-unlock {
  top: auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  right: 12px;
  width: min(calc(100% - 24px), 292px);
}
html[lang="en"] .transfer-offer__select,
html[lang="en"] .onboarding-intro__next,
html[lang="en"] .career-ending__advance {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #92b5ad;
  border-radius: 6px;
  background: #c1d8cf;
  color: #102b2a;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

html[lang="en"] .player-entry__collections small {
  color: #a9b7b6;
  font-size: 11px;
}
html[lang="en"] .career-menu { position: relative; }
html[lang="en"] .transfer-history__entry {
  padding: 20px 0;
  border-bottom: 1px solid #526768;
}
html[lang="en"] .transfer-history__entry small { color: #b6c9c4; font-size: 12px; }
html[lang="en"] .transfer-history__entry h3 { margin: 8px 0; font-size: 18px; line-height: 1.3; }
html[lang="en"] .transfer-history__entry p { color: #bbc9c6; font-size: 13px; line-height: 1.55; }
html[lang="en"] .career-menu summary { cursor: pointer; list-style: none; }
html[lang="en"] .career-menu summary::-webkit-details-marker { display: none; }
html[lang="en"] .career-menu__panel {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 60px));
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #708b87;
  border-radius: 8px;
  color: #e0e9e5;
  background: #102327;
  box-shadow: 0 10px 30px #0008;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}
html[lang="en"] .career-menu__panel button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid #708b87;
  border-radius: 4px;
  color: #e0e9e5;
  background: #193439;
  font: inherit;
  cursor: pointer;
}
html[lang="en"] .transfer-offer__meta {
  font-size: 13px;
  line-height: 1.5;
}
html[lang="en"] .transfer-dialog .youth-invitation-offer {
  display: flex;
  padding: 16px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
html[lang="en"] .transfer-dialog .youth-invitation-offer .transfer-offer__meta {
  color: #b9c9c5;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.5;
}
html[lang="en"] .transfer-dialog .youth-invitation-offer .transfer-offer__cue {
  position: static;
  transform: none;
  align-self: flex-end;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-title {
  font-size: 25px;
  line-height: 1.14;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card:not([data-card-id]) .card-copy,
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__message {
  font-size: 12.5px;
  line-height: 1.55;
}

/* This is a quiet transition after the season, not a thirteenth event card. */
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body,
html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card--portrait-right .season-echo-card__body {
  padding: 54px 36px 38px;
  justify-content: center;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body::before {
  width: 36px;
  margin-bottom: 16px;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__speaker {
  display: flex;
  max-width: 232px;
  margin-bottom: 9px;
  gap: 8px;
  align-items: center;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__context {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgb(203 215 210 / 58%);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: .055em;
  text-transform: uppercase;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__context::before {
  width: 12px;
  height: 1px;
  content: "";
  background: rgb(153 189 183 / 46%);
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card .card-title {
  max-width: 226px;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -.045em;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__message {
  max-width: 230px;
  margin-top: 16px;
  padding-left: 14px;
  color: #d8e0dc;
  border-left: 2px solid rgb(183 151 90 / 72%);
  font-size: 13.25px;
  font-weight: 500;
  line-height: 1.52;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__gesture {
  margin-top: 18px;
  font-size: 9px;
}

html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body::after {
  content: none;
}

html[lang="en"] .transfer-dialog__surface {
  max-height: min(88dvh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* The local-review transfer shortcut is unavailable until the season is over.
 * Do not let its disabled placeholder sit on top of short-screen story cards. */
html[lang="en"] .dev-transfer-trigger[data-call-state="development"]:disabled {
  display: none;
}

@media (max-width: 355px) {
  html[lang="en"] .screen-title {
    max-width: 126px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[lang="en"] .season-counter {
    font-size: 8px;
  }

  html[lang="en"] .meter {
    padding-inline: 5px;
  }

  html[lang="en"] .meter__label {
    font-size: 7px;
  }

  html[lang="en"] .player-entry__profile-field--locked small {
    display: none;
  }

  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body,
  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .event-card--portrait-right .season-echo-card__body {
    padding: 30px 26px 22px;
  }

  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__body::before {
    margin-bottom: 12px;
  }

  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__speaker {
    margin-bottom: 7px;
  }

  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card .card-title {
    max-width: 204px;
    font-size: 25px;
    line-height: 1.06;
  }

  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__message {
    max-width: 204px;
    margin-top: 13px;
    padding-left: 12px;
    font-size: 12.5px;
    line-height: 1.48;
  }

  html[lang="en"] .app-shell[data-visual-mode="faceted-echo"] .season-echo-card__gesture {
    margin-top: 14px;
    font-size: 8.5px;
  }
}
