@media (max-width: 768px) {
  .ply-dash-wrap {
    padding: 12px;
  }

  .ply-dash-wrap,
  .ply-grid,
  .ply-card,
  .ply-panel,
  #ply-wishlist-panel,
  #ply-backlog-panel,
  #ply-history-panel,
  .ply-backlog-hub,
  .ply-bl-block--games,
  .ply-wishlist-scroll,
  .ply-backlog-scroll,
  .ply-bl-scroll,
  .ply-gcard,
  .ply-gcard__row,
  .ply-gcard__main,
  .ply-game-row,
  .ply-game-main {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ply-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ply-grid > *,
  .ply-bl-scroll > *,
  .ply-wishlist-scroll > * {
    min-width: 0;
    max-width: 100%;
  }

  .ply-card,
  .ply-panel,
  #ply-wishlist-panel,
  #ply-backlog-panel,
  #ply-history-panel {
    border-radius: 18px;
  }

  .ply-panel,
  #ply-wishlist-panel,
  #ply-backlog-panel,
  #ply-history-panel {
    padding: 12px;
    overflow-x: clip;
  }

  .ply-profile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
  }

  .ply-profile-left {
    align-items: flex-start;
    gap: 12px;
  }

  .ply-profile-meta {
    min-width: 0;
    flex: 1 1 auto;
  }

  .ply-avatar {
    width: 76px;
    height: 76px;
  }

  .ply-username {
    font-size: 32px;
    line-height: 1.05;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .ply-userhash {
    margin-left: 0;
    font-size: 15px;
  }

  .ply-level-badge {
    margin-top: 8px;
    font-size: 14px;
    padding: 7px 12px;
  }

  .ply-bio {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
  }

  .ply-profile-right {
    width: 100%;
  }

  .ply-profile-right .ply-btn-outline {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .ply-panel-head,
  .ply-bl-head,
  .ply-ph__head {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .ply-panel-head h2,
  .ply-bl-head h3,
  .ply-ph__head h2 {
    font-size: 17px;
    line-height: 1.2;
  }

  .ply-head-flex,
  .ply-bl-head,
  .ply-wishlist-scroll .ply-wish-topbar,
  .ply-bl-topbar,
  .ply-ph__head {
    gap: 10px;
  }

  .ply-wish-controls,
  .ply-form-grid,
  .ply-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ply-wish-sort,
  .ply-wish-sort select,
  .ply-bl-control,
  .ply-bl-control select,
  .ply-bl-head-actions select,
  .ply-panel--history .ply-ph__head select,
  .ply-panel input[type="text"],
  .ply-panel input[type="url"],
  .ply-panel input[type="number"],
  .ply-panel select,
  .ply-panel .ply-btn,
  .ply-panel input[type="submit"],
  .ply-btn,
  .ply-btn-outline,
  .ply-backlog-hub .ply-bl-add-row .ply-btn,
  .ply-backlog-hub .ply-bl-add-row button.ply-btn,
  .ply-bl-add-open,
  .ply-panel--wishlist .ply-bl-add-open {
    width: 100%;
    min-height: 44px;
  }

  .ply-wish-filters {
    align-items: flex-start;
  }

  /* Wishlist mobile: nasconde filtri piattaforma e helper Tutti/Nessuna */
  .ply-panel--wishlist .ply-wish-filters,
  #ply-wishlist-panel .ply-wish-filters,
  .ply-panel--wishlist .ply-plat-label,
  #ply-wishlist-panel .ply-plat-label,
  .ply-panel--wishlist .ply-plat-group,
  #ply-wishlist-panel .ply-plat-group,
  .ply-panel--wishlist .ply-plat-helpers,
  #ply-wishlist-panel .ply-plat-helpers {
    display: none;
  }

  .ply-bl-get,
  .ply-bl-get,
  .ply-ph-get,
  .ply-ph-row1,
  .ply-ph-row2,
  .ply-bl-control {
    width: 100%;
    min-width: 0;
  }

  .ply-bl-head,
  .ply-wish-head,
  .ply-panel--history .ply-ph__head,
  .ply-bl-hub--games .ply-bl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    row-gap: 10px;
  }

  .ply-bl-head-left,
  .ply-bl-hub--games .ply-bl-head-left,
  .ply-panel--history .ply-ph__head h2 {
    width: 100%;
    min-width: 0;
  }

  .ply-bl-head-actions,
  .ply-bl-hub--games .ply-bl-head-actions {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .ply-bl-head-actions > *,
  .ply-bl-hub--games .ply-bl-head-actions > * {
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .ply-bl-control select,
  .ply-ph-get select {
    width: 100%;
    min-width: 0;
  }

  .ply-help-btn,
  .ply-bl-add-open,
  .ply-wish-add-open,
  .ply-ph-add-open {
    flex: 0 0 44px;
  }

  /* Piano di gioco: ordine controlli = select, +, ? */
  #ply-backlog-panel .ply-bl-head-actions,
  .ply-panel--backlog .ply-bl-head-actions,
  .ply-bl-hub--games .ply-bl-head-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
  }

  #ply-backlog-panel .ply-bl-head-actions .ply-bl-control,
  .ply-panel--backlog .ply-bl-head-actions .ply-bl-control,
  .ply-bl-hub--games .ply-bl-head-actions .ply-bl-control {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  #ply-backlog-panel .ply-bl-head-actions .ply-bl-add-open,
  .ply-panel--backlog .ply-bl-head-actions .ply-bl-add-open,
  .ply-bl-hub--games .ply-bl-head-actions .ply-bl-add-open {
    order: 2;
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
    justify-self: stretch;
  }

  #ply-backlog-panel .ply-bl-head-actions .ply-help-btn,
  .ply-panel--backlog .ply-bl-head-actions .ply-help-btn,
  .ply-bl-hub--games .ply-bl-head-actions .ply-help-btn {
    order: 3;
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
    justify-self: stretch;
  }

  /* Wishlist: ordine controlli = select, + */
  #ply-wishlist-panel .ply-wish-head,
  .ply-panel--wishlist .ply-wish-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
    gap: 10px;
  }

  #ply-wishlist-panel .ply-wish-head .ply-wish-sort,
  .ply-panel--wishlist .ply-wish-head .ply-wish-sort {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  #ply-wishlist-panel .ply-wish-head .ply-wish-add-open,
  .ply-panel--wishlist .ply-wish-head .ply-wish-add-open {
    order: 2;
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
    justify-self: stretch;
  }

  /* Scroller verticali moduli principali */
  #ply-wishlist-panel,
  #ply-backlog-panel,
  #ply-history-panel {
    display: flex;
    flex-direction: column;
    max-height: 62vh;
    min-height: 0;
    overflow: hidden;
  }

  #ply-wishlist-panel .ply-wishlist-scroll,
  #ply-backlog-panel .ply-backlog-scroll,
  #ply-backlog-panel .ply-bl-block--games .ply-bl-scroll:not(.ply-bl-suggest),
  #ply-history-panel .ply-ph__list,
  #ply-history-panel .ply-bl-scroll.ply-games-list[role="list"],
  #ply-history-panel .ply-history__list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }
  /* Handle / Collegamenti senza scroller */
  .ply-handles {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  /* Evita crescita orizzontale nei contenuti scrollabili */
  #ply-wishlist-panel .ply-wishlist-scroll > *,
  #ply-backlog-panel .ply-backlog-scroll > *,
  #ply-backlog-panel .ply-bl-block--games .ply-bl-scroll:not(.ply-bl-suggest) > *,
  #ply-history-panel .ply-ph__list > *,
  #ply-history-panel .ply-bl-scroll.ply-games-list[role="list"] > *,
  #ply-history-panel .ply-history__list > * {
    min-width: 0;
    max-width: 100%;
  }

  .ply-game-row,
  .ply-wishlist--compact .ply-game-row {
    grid-template-columns: 56px 1fr;
    align-items: start;
    gap: 10px;
  }

  /* Storia Giocatore mobile: card dedicate, senza ereditare il backlog */
  #ply-history-panel .ply-gcard,
  #ply-ph-hub .ply-gcard {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(191,202,211,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    box-shadow: 0 10px 18px rgba(0,0,0,.16);
  }

  #ply-history-panel .ply-gcard__row,
  #ply-ph-hub .ply-gcard__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    align-items: start;
    gap: 10px;
  }

  #ply-history-panel .ply-gcard__cover,
  #ply-ph-hub .ply-gcard__cover {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex: 0 0 auto;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(191,202,211,.12);
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 14px rgba(0,0,0,.28);
  }

  #ply-history-panel .ply-gcard__cover.is-empty,
  #ply-ph-hub .ply-gcard__cover.is-empty {
    background: rgba(255,255,255,.04);
  }

  #ply-history-panel .ply-gcard__main,
  #ply-ph-hub .ply-gcard__main {
    min-width: 0;
  }

  #ply-history-panel .ply-gcard__title,
  #ply-ph-hub .ply-gcard__title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.24;
    color: var(--ply-ciano);
    text-decoration: none;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #ply-history-panel .ply-gcard__chips,
  #ply-ph-hub .ply-gcard__chips {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  #ply-history-panel .ply-gcard__chips .ply-chip,
  #ply-ph-hub .ply-gcard__chips .ply-chip,
  #ply-history-panel .ply-gcard__chips .ply-chip--rating-edit,
  #ply-ph-hub .ply-gcard__chips .ply-chip--rating-edit,
  #ply-history-panel .ply-gcard__chips .ply-chip--year-edit,
  #ply-ph-hub .ply-gcard__chips .ply-chip--year-edit,
  #ply-history-panel .ply-gcard__chips .ply-chip--plat,
  #ply-ph-hub .ply-gcard__chips .ply-chip--plat,
  #ply-history-panel .ply-gcard__chips .ply-chip--plat-edit,
  #ply-ph-hub .ply-gcard__chips .ply-chip--plat-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border: 1px solid rgba(191,202,211,.22);
    box-shadow: none;
  }

  #ply-history-panel .ply-gcard__chips .ply-chip--plat,
  #ply-ph-hub .ply-gcard__chips .ply-chip--plat,
  #ply-history-panel .ply-gcard__chips .ply-chip--plat-edit,
  #ply-ph-hub .ply-gcard__chips .ply-chip--plat-edit {
    background: rgba(255,255,255,.05);
    border-color: rgba(191,202,211,.24);
    color: rgba(243,240,247,.92);
  }

  #ply-history-panel .ply-gcard__chips .ply-chip--rating-edit,
  #ply-ph-hub .ply-gcard__chips .ply-chip--rating-edit,
  #ply-history-panel .ply-gcard__chips .ply-chip--year-edit,
  #ply-ph-hub .ply-gcard__chips .ply-chip--year-edit {
    background: rgba(124,77,255,.14);
    border-color: rgba(124,77,255,.28);
    color: rgba(236,230,255,.94);
  }

  #ply-history-panel .ply-gcard__chips .ply-chip--plat-edit:hover,
  #ply-ph-hub .ply-gcard__chips .ply-chip--plat-edit:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(191,202,211,.34);
  }

  #ply-history-panel .ply-gcard__chips .ply-chip--rating-edit:hover,
  #ply-ph-hub .ply-gcard__chips .ply-chip--rating-edit:hover,
  #ply-history-panel .ply-gcard__chips .ply-chip--year-edit:hover,
  #ply-ph-hub .ply-gcard__chips .ply-chip--year-edit:hover {
    background: rgba(124,77,255,.20);
    border-color: rgba(124,77,255,.38);
  }

  #ply-history-panel .ply-gcard__more,
  #ply-ph-hub .ply-gcard__more {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(191,202,211,.20);
    background: rgba(17,24,37,.58);
    color: rgba(243,240,247,.92);
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
  }

  #ply-history-panel .ply-gcard__more:hover,
  #ply-ph-hub .ply-gcard__more:hover {
    background: rgba(25,35,51,.78);
    border-color: rgba(191,202,211,.28);
  }

  /* History inline editors: allow vote/year editors to use the full card width on mobile */
  #ply-ph-hub .ply-ph-rateedit,
  #ply-history-panel .ply-ph-rateedit,
  #ply-ph-hub .ply-ph-yearedit,
  #ply-history-panel .ply-ph-yearedit {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
    align-self: start;
  }

  /* History inline editors: when editing, collapse the card row to one column */
  #ply-ph-hub .ply-gcard.is-rating-editing .ply-gcard__row,
  #ply-history-panel .ply-gcard.is-rating-editing .ply-gcard__row,
  #ply-ph-hub .ply-gcard.is-platform-editing .ply-gcard__row,
  #ply-history-panel .ply-gcard.is-platform-editing .ply-gcard__row,
  #ply-ph-hub .ply-gcard.is-year-editing .ply-gcard__row,
  #ply-history-panel .ply-gcard.is-year-editing .ply-gcard__row {
    grid-template-columns: 1fr;
  }

  #ply-ph-hub .ply-gcard.is-rating-editing .ply-gcard__main,
  #ply-history-panel .ply-gcard.is-rating-editing .ply-gcard__main,
  #ply-ph-hub .ply-gcard.is-platform-editing .ply-gcard__main,
  #ply-history-panel .ply-gcard.is-platform-editing .ply-gcard__main,
  #ply-ph-hub .ply-gcard.is-year-editing .ply-gcard__main,
  #ply-history-panel .ply-gcard.is-year-editing .ply-gcard__main,
  #ply-ph-hub .ply-gcard.is-rating-editing .ply-ph-rateedit,
  #ply-history-panel .ply-gcard.is-rating-editing .ply-ph-rateedit,
  #ply-ph-hub .ply-gcard.is-platform-editing .ply-ph-yearedit,
  #ply-history-panel .ply-gcard.is-platform-editing .ply-ph-yearedit,
  #ply-ph-hub .ply-gcard.is-year-editing .ply-ph-yearedit,
  #ply-history-panel .ply-gcard.is-year-editing .ply-ph-yearedit,
  #ply-ph-hub .ply-gcard.is-rating-editing .ply-gcard__actions,
  #ply-history-panel .ply-gcard.is-rating-editing .ply-gcard__actions,
  #ply-ph-hub .ply-gcard.is-platform-editing .ply-gcard__actions,
  #ply-history-panel .ply-gcard.is-platform-editing .ply-gcard__actions,
  #ply-ph-hub .ply-gcard.is-year-editing .ply-gcard__actions,
  #ply-history-panel .ply-gcard.is-year-editing .ply-gcard__actions {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #ply-ph-hub .ply-gcard.is-rating-editing .ply-gcard__more,
  #ply-history-panel .ply-gcard.is-rating-editing .ply-gcard__more,
  #ply-ph-hub .ply-gcard.is-platform-editing .ply-gcard__more,
  #ply-history-panel .ply-gcard.is-platform-editing .ply-gcard__more,
  #ply-ph-hub .ply-gcard.is-year-editing .ply-gcard__more,
  #ply-history-panel .ply-gcard.is-year-editing .ply-gcard__more {
    justify-self: end;
  }

  .ply-game-actions,
  .ply-panel--wishlist .ply-game-actions,
  .ply-backlog-hub .ply-bl-block--playing .ply-game-actions,
  .ply-bl-hub--games .ply-gcard__actions,
  #ply-history-panel .ply-gcard__actions {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .ply-panel--wishlist .ply-wish-trash,
  .ply-backlog-hub .ply-bl-block--goals .ply-goals-cell--del button,
  .ply-backlog-hub .ply-bl-block--playing .ply-game-actions button,
  .ply-bl-hub--games .ply-gcard__more,
  #ply-history-panel .ply-gcard__more {
    min-width: 44px;
    min-height: 44px;
  }

  .ply-bl-hub--games .ply-gcard__more,
  #ply-history-panel .ply-gcard__more,
  #ply-ph-hub .ply-gcard__more,
  #ply-backlog-panel .ply-gcard__more,
  #ply-wishlist-panel .ply-gcard__more {
    align-self: start;
  }

  .ply-handles li {
    padding: 10px;

    flex-wrap: wrap;
    align-items: center;
  }

  .ply-handles li span {
    min-width: 110px;
  }

  .ply-form-actions .ply-btn,
  .ply-form-actions .ply-btn-outline {
    width: 100%;
  }

  /* History inline editors: mobile full-width layout */
  #ply-ph-hub .ply-ph-rateedit,
  #ply-history-panel .ply-ph-rateedit,
  #ply-ph-hub .ply-ph-yearedit,
  #ply-history-panel .ply-ph-yearedit {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
  }

  #ply-ph-hub .ply-ph-rateedit__head,
  #ply-ph-hub .ply-ph-rateedit__row,
  #ply-ph-hub .ply-ph-rateedit__actions,
  #ply-history-panel .ply-ph-rateedit__head,
  #ply-history-panel .ply-ph-rateedit__row,
  #ply-history-panel .ply-ph-rateedit__actions,
  #ply-ph-hub .ply-ph-yearedit__head,
  #ply-ph-hub .ply-ph-yearedit__row,
  #ply-ph-hub .ply-ph-yearedit__actions,
  #ply-history-panel .ply-ph-yearedit__head,
  #ply-history-panel .ply-ph-yearedit__row,
  #ply-history-panel .ply-ph-yearedit__actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #ply-ph-hub .ply-ph-rateedit__head,
  #ply-history-panel .ply-ph-rateedit__head,
  #ply-ph-hub .ply-ph-yearedit__head,
  #ply-history-panel .ply-ph-yearedit__head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    margin-bottom: 10px;
  }

  #ply-ph-hub .ply-ph-rateedit__label,
  #ply-history-panel .ply-ph-rateedit__label,
  #ply-ph-hub .ply-ph-yearedit__label,
  #ply-history-panel .ply-ph-yearedit__label {
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.25;
    text-transform: uppercase;
    color: rgba(243,240,247,.82);
  }

  #ply-ph-hub .ply-ph-rateedit__value,
  #ply-history-panel .ply-ph-rateedit__value {
    justify-self: start;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(191,202,211,.18);
    background: rgba(255,255,255,.05);
    color: rgba(243,240,247,.96);
    font-size: 14px;
    line-height: 40px;
  }

  #ply-ph-hub .ply-ph-rateedit__row,
  #ply-history-panel .ply-ph-rateedit__row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
  }

  #ply-ph-hub .ply-ph-rateedit__edge,
  #ply-history-panel .ply-ph-rateedit__edge {
    font-size: 11px;
    line-height: 1;
    text-align: center;
    color: rgba(243,240,247,.72);
  }

  #ply-ph-hub .ply-ph-rateedit input[type="range"],
  #ply-history-panel .ply-ph-rateedit input[type="range"] {
    width: 100%;
    min-width: 0;
    height: 26px;
  }

  #ply-ph-hub .ply-ph-rateedit input[type="range"]::-webkit-slider-runnable-track,
  #ply-history-panel .ply-ph-rateedit input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
  }

  #ply-ph-hub .ply-ph-rateedit input[type="range"]::-webkit-slider-thumb,
  #ply-history-panel .ply-ph-rateedit input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border-width: 3px;
  }

  #ply-ph-hub .ply-ph-rateedit input[type="range"]::-moz-range-track,
  #ply-history-panel .ply-ph-rateedit input[type="range"]::-moz-range-track {
    height: 8px;
  }

  #ply-ph-hub .ply-ph-rateedit input[type="range"]::-moz-range-thumb,
  #ply-history-panel .ply-ph-rateedit input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }

  #ply-ph-hub .ply-ph-yearedit__row,
  #ply-history-panel .ply-ph-yearedit__row {
    display: block;
  }

  #ply-ph-hub .ply-ph-yearedit input[type="number"],
  #ply-history-panel .ply-ph-yearedit input[type="number"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(191,202,211,.20);
    background: rgba(255,255,255,.94);
    color: #1b2432;
    font-size: 18px;
    text-align: center;
  }

  #ply-ph-hub .ply-ph-rateedit__actions,
  #ply-history-panel .ply-ph-rateedit__actions,
  #ply-ph-hub .ply-ph-yearedit__actions,
  #ply-history-panel .ply-ph-yearedit__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  #ply-ph-hub .ply-ph-rateedit__actions .ply-btn,
  #ply-ph-hub .ply-ph-rateedit__actions .ply-btn-outline,
  #ply-ph-hub .ply-ph-rateedit__actions button,
  #ply-history-panel .ply-ph-rateedit__actions .ply-btn,
  #ply-history-panel .ply-ph-rateedit__actions .ply-btn-outline,
  #ply-history-panel .ply-ph-rateedit__actions button,
  #ply-ph-hub .ply-ph-yearedit__actions .ply-btn,
  #ply-ph-hub .ply-ph-yearedit__actions .ply-btn-outline,
  #ply-ph-hub .ply-ph-yearedit__actions button,
  #ply-history-panel .ply-ph-yearedit__actions .ply-btn,
  #ply-history-panel .ply-ph-yearedit__actions .ply-btn-outline,
  #ply-history-panel .ply-ph-yearedit__actions button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    background-image: none;
    box-shadow: none;
    font-size: 15px;
  }

  #ply-ph-hub .ply-ph-rateedit__actions .ply-btn,
  #ply-ph-hub .ply-ph-rateedit__actions button[type="submit"],
  #ply-history-panel .ply-ph-rateedit__actions .ply-btn,
  #ply-history-panel .ply-ph-rateedit__actions button[type="submit"],
  #ply-ph-hub .ply-ph-yearedit__actions .ply-btn,
  #ply-ph-hub .ply-ph-yearedit__actions button[type="submit"],
  #ply-history-panel .ply-ph-yearedit__actions .ply-btn,
  #ply-history-panel .ply-ph-yearedit__actions button[type="submit"] {
    background: #2da7de;
    border: 1px solid #2da7de;
    color: #08131f;
  }

  #ply-ph-hub .ply-ph-rateedit__actions .ply-btn-outline,
  #ply-ph-hub .ply-ph-rateedit__actions button[type="button"],
  #ply-history-panel .ply-ph-rateedit__actions .ply-btn-outline,
  #ply-history-panel .ply-ph-rateedit__actions button[type="button"],
  #ply-ph-hub .ply-ph-yearedit__actions .ply-btn-outline,
  #ply-ph-hub .ply-ph-yearedit__actions button[type="button"],
  #ply-history-panel .ply-ph-yearedit__actions .ply-btn-outline,
  #ply-history-panel .ply-ph-yearedit__actions button[type="button"] {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(191,202,211,.24);
    color: rgba(243,240,247,.94);
  }

  /* Piano di gioco mobile — 3 tier verticali con header forte e scroller orizzontale reale */
  #ply-backlog-panel,
  .ply-panel--backlog {
    max-height: none;
    overflow: hidden;
  }

  #ply-backlog-panel .ply-backlog-scroll,
  .ply-panel--backlog .ply-backlog-scroll,
  #ply-backlog-panel > .ply-backlog-hub.ply-bl-hub--games,
  .ply-panel--backlog > .ply-backlog-hub.ply-bl-hub--games,
  #ply-backlog-panel > .ply-backlog-hub.ply-bl-hub--games > .ply-bl-block--games,
  .ply-panel--backlog > .ply-backlog-hub.ply-bl-hub--games > .ply-bl-block--games {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  #ply-backlog-panel .ply-bl-block--games .ply-bl-sections,
  .ply-panel--backlog .ply-bl-block--games .ply-bl-sections,
  .ply-bl-hub--games .ply-bl-block--games .ply-bl-sections {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section,
  .ply-bl-hub--games .ply-bl-prio-section {
    padding: 0 0 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: #31445b;
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
    overflow: visible;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section__head,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section__head,
  .ply-bl-hub--games .ply-bl-prio-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section--1 .ply-bl-prio-section__head,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section--1 .ply-bl-prio-section__head {
    background: linear-gradient(180deg, rgba(166,0,0,.88), rgba(166,0,0,.64));
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section--2 .ply-bl-prio-section__head,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section--2 .ply-bl-prio-section__head {
    background: linear-gradient(180deg, rgba(0,128,16,.88), rgba(0,128,16,.64));
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section--3 .ply-bl-prio-section__head,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section--3 .ply-bl-prio-section__head {
    background: linear-gradient(180deg, rgba(22,25,83,.82), rgba(22,25,83,.56));
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section__titlewrap,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section__titlewrap,
  .ply-bl-hub--games .ply-bl-prio-section__titlewrap {
    min-width: 0;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section__eyebrow,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section__eyebrow,
  .ply-bl-hub--games .ply-bl-prio-section__eyebrow,
  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section__head p,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section__head p,
  .ply-bl-hub--games .ply-bl-prio-section__head p {
    display: none;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section__titleline,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section__titleline,
  .ply-bl-hub--games .ply-bl-prio-section__titleline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section__titleline h4,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section__titleline h4,
  .ply-bl-hub--games .ply-bl-prio-section__titleline h4 {
    margin: 0;
    min-width: 0;
    font-size: 18px;
    line-height: 1.08;
    color: #fff;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section__count,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section__count,
  .ply-bl-hub--games .ply-bl-prio-section__count {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-show-all,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-show-all,
  .ply-bl-hub--games .ply-bl-show-all {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    justify-self: end;
    align-self: center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #fff;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-shell,
  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-shell:not(.is-static),
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-shell,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-shell:not(.is-static),
  .ply-bl-hub--games .ply-bl-prio-shell,
  .ply-bl-hub--games .ply-bl-prio-shell:not(.is-static) {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 8px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-shell::-webkit-scrollbar,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-shell::-webkit-scrollbar,
  .ply-bl-hub--games .ply-bl-prio-shell::-webkit-scrollbar {
    height: 8px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list,
  .ply-bl-hub--games .ply-bl-prio-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    grid-template-columns: none;
    gap: 10px;
    overflow: visible;
    padding: 0;
    width: max-content;
    min-width: 100%;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-shell,
  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-shell:not(.is-static),
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-shell,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-shell:not(.is-static),
  .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-shell,
  .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-shell:not(.is-static) {
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 12px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-list,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-list,
  .ply-bl-hub--games .ply-bl-prio-section.is-expanded .ply-bl-prio-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard {
    position: relative;
    width: auto;
    min-height: 0;
    margin-bottom: 0;
    padding: 8px;
    border-radius: 14px;
    background: rgba(16,23,37,.42);
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 6px 14px rgba(0,0,0,.16);
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__row,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__row,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__cover,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__cover,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,.26);
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__main,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__main,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__main {
    min-width: 0;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__title,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__title,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__title {
    font-size: 13px;
    line-height: 1.16;
    min-height: 30px;
    max-height: 30px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__chips,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__chips,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__chips {
    margin-top: 4px;
    gap: 4px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-chip,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-chip,
  .ply-bl-hub--games .ply-bl-prio-list .ply-chip {
    font-size: 10px;
    padding: 3px 6px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__inline-actions,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__inline-actions,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 6px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-inline-form__label,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-inline-form__label,
  .ply-bl-hub--games .ply-bl-prio-list .ply-inline-form__label {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__delete,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__delete,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__delete {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__deletebtn,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__deletebtn,
  .ply-bl-hub--games .ply-bl-prio-list .ply-gcard__deletebtn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 9px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-list .ply-prio-pop,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-list .ply-prio-pop,
  .ply-bl-hub--games .ply-bl-prio-list .ply-prio-pop {
    position: absolute;
    inset: auto 0 calc(100% + 8px) auto;
    width: min(220px, calc(100vw - 48px));
    margin-top: 0;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-empty,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-empty,
  .ply-bl-hub--games .ply-bl-prio-empty {
    margin: 12px;
    padding: 14px;
    border-radius: 14px;
    font-size: 13px;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-help-pop,
  .ply-panel--backlog .ply-bl-hub--games .ply-help-pop,
  .ply-bl-hub--games .ply-help-pop {
    left: 0;
    right: 0;
    top: 48px;
    width: 100%;
    max-width: none;
  }

  #ply-backlog-panel .ply-add-sheet,
  .ply-panel--backlog .ply-add-sheet,
  .ply-bl-hub--games .ply-add-sheet {
    padding: 12px;
    align-items: flex-end;
  }

  #ply-backlog-panel .ply-add-sheet__panel,
  .ply-panel--backlog .ply-add-sheet__panel,
  .ply-bl-hub--games .ply-add-sheet__panel {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px;
    padding: 14px 14px 16px;
  }

  #ply-backlog-panel .ply-bl-add--game .ply-add-grid,
  .ply-panel--backlog .ply-bl-add--game .ply-add-grid,
  .ply-bl-hub--games .ply-bl-add--game .ply-add-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #ply-backlog-panel .ply-bl-add--game select[name="ply_bl_platform"],
  .ply-panel--backlog .ply-bl-add--game select[name="ply_bl_platform"],
  .ply-bl-hub--games .ply-bl-add--game select[name="ply_bl_platform"] {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #ply-backlog-panel .ply-bl-add--game .ply-add-label,
  .ply-panel--backlog .ply-bl-add--game .ply-add-label,
  .ply-bl-hub--games .ply-bl-add--game .ply-add-label {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  #ply-backlog-panel .ply-bl-add--game .ply-seg--modal,
  .ply-panel--backlog .ply-bl-add--game .ply-seg--modal,
  .ply-bl-hub--games .ply-bl-add--game .ply-seg--modal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  #ply-backlog-panel .ply-bl-add--game .ply-seg--modal .ply-seg__btn,
  .ply-panel--backlog .ply-bl-add--game .ply-seg--modal .ply-seg__btn,
  .ply-bl-hub--games .ply-bl-add--game .ply-seg--modal .ply-seg__btn {
    width: 100%;
    min-height: 42px;
  }

}


@media (max-width: 768px) {
  /* LAUNCH HOTFIX: Piano di Gioco mobile shows all 3 tiers, no internal vertical scroll */
  #ply-backlog-panel,
  .ply-panel--backlog {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #ply-backlog-panel .ply-backlog-scroll,
  .ply-panel--backlog .ply-backlog-scroll,
  #ply-backlog-panel > .ply-backlog-hub.ply-bl-hub--games,
  .ply-panel--backlog > .ply-backlog-hub.ply-bl-hub--games,
  #ply-backlog-panel > .ply-backlog-hub.ply-bl-hub--games > .ply-bl-block--games,
  .ply-panel--backlog > .ply-backlog-hub.ply-bl-hub--games > .ply-bl-block--games {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #ply-backlog-panel .ply-bl-block--games .ply-bl-sections,
  .ply-panel--backlog .ply-bl-block--games .ply-bl-sections,
  .ply-bl-hub--games .ply-bl-block--games .ply-bl-sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-section,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-section,
  .ply-bl-hub--games .ply-bl-prio-section {
    overflow: visible !important;
  }

  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-shell,
  #ply-backlog-panel .ply-bl-hub--games .ply-bl-prio-shell:not(.is-static),
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-shell,
  .ply-panel--backlog .ply-bl-hub--games .ply-bl-prio-shell:not(.is-static),
  .ply-bl-hub--games .ply-bl-prio-shell,
  .ply-bl-hub--games .ply-bl-prio-shell:not(.is-static) {
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 12px 12px 8px !important;
  }
}


@media (max-width: 768px) {
  #ply-backlog-panel .ply-bl-add-open,
  .ply-panel--backlog .ply-bl-add-open {
    position: relative !important;
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
  }

  #ply-backlog-panel .ply-bl-add-open::before,
  .ply-panel--backlog .ply-bl-add-open::before {
    content: "+";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(243,240,247,.92);
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    text-indent: 0;
  }
}
