/* =========================================================================
   G-LAND v3.0.0 — screens.css
   ---------------------------------------------------------------------------
   各 view（home / golf / score / history / mypage）と Classic テーマの
   画面固有スタイルを集約。上下 padding は base.css の --gl-view-pad-* に委譲。
   ========================================================================= */

/* =======================================================================
   #view-home（js/ui/home.js から移管）
   ======================================================================= */

      #view-home {
        min-height: 100vh;
        padding-left: 16px; padding-right: 16px;
        /* 上下 padding は base.css の --gl-view-pad-* が担当 */
        padding-top: calc(var(--gl-view-pad-top) + 16px);
        padding-bottom: calc(var(--gl-view-pad-bottom) + 20px);
        box-sizing: border-box;
        background: linear-gradient(180deg, #f8f9fa 0%, #eef2f0 100%);
        display: none; flex-direction: column;
      }
      #view-home.show { display: flex; }
      .gl-home__header {
        text-align: center; margin-bottom: 16px;
        padding-top: 8px;
      }
      .gl-home__logo {
        font-size: 32px; font-weight: 800; color: #1a5f3f;
        letter-spacing: 2px; line-height: 1.2;
      }
      .gl-home__tagline {
        font-size: 12px; color: #666; margin-top: 4px;
      }
      .gl-home__menu {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        margin-bottom: 16px;
        position: relative;
        z-index: 10;
      }
      .gl-home__btn {
        padding: 20px 12px; border: none; border-radius: 14px;
        background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08);
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        cursor: pointer; font-family: inherit;
        transition: transform .15s, box-shadow .15s;
        -webkit-tap-highlight-color: rgba(0,0,0,.1);
        touch-action: manipulation;
        position: relative;
        z-index: 11;
      }
      .gl-home__btn:active { transform: scale(.97); }
      .gl-home__btn-icon { font-size: 32px; line-height: 1; pointer-events: none; }
      .gl-home__btn-label { font-size: 14px; font-weight: 700; color: #222; pointer-events: none; }
      .gl-home__btn-sub { font-size: 11px; color: #888; pointer-events: none; }
      .gl-home__btn--primary { background: linear-gradient(135deg, #1a5f3f, #2d7a56); }
      .gl-home__btn--primary .gl-home__btn-label { color: #fff; }
      .gl-home__btn--primary .gl-home__btn-sub { color: rgba(255,255,255,.85); }

      /* ★ v3.0.4.1.1: 3行2列レイアウト
         ラウンド開始は横2マス占有して大きく、他はコンパクト。
         以前の4ボタン時代と同等の縦幅に収め、下の広告枠を圧迫しない。 */
      .gl-home__menu--v2 { gap: 8px; }
      .gl-home__menu--v2 .gl-home__btn--compact {
        padding: 10px 10px;
        gap: 3px;
        min-height: 68px;
      }
      .gl-home__menu--v2 .gl-home__btn--compact .gl-home__btn-icon {
        font-size: 22px;
      }
      .gl-home__menu--v2 .gl-home__btn--compact .gl-home__btn-label {
        font-size: 13px;
      }
      .gl-home__menu--v2 .gl-home__btn--compact .gl-home__btn-sub {
        font-size: 10px;
      }
      .gl-home__menu--v2 .gl-home__btn--hero {
        grid-column: 1 / -1;
        padding: 18px 12px;
        min-height: 96px;
        gap: 6px;
      }
      .gl-home__menu--v2 .gl-home__btn--hero .gl-home__btn-icon {
        font-size: 36px;
      }
      .gl-home__menu--v2 .gl-home__btn--hero .gl-home__btn-label {
        font-size: 17px;
      }
      .gl-home__menu--v2 .gl-home__btn--hero .gl-home__btn-sub {
        font-size: 12px;
      }
      .gl-home__ads-title {
        font-size: 12px; color: #888; text-align: center; margin: 4px 0 8px;
        letter-spacing: 1px;
      }
      .gl-home__ads {
        flex: 1; display: flex; align-items: stretch;
        min-height: 240px;
        position: relative;
        z-index: 1;
      }
      #ad-slot-home { width: 100%; }

      /* 配布QRモーダル */
      .gl-distqr-overlay {
        position: fixed; inset: 0; z-index: 9500;
        background: rgba(0,0,0,.5);
        display: flex; align-items: center; justify-content: center;
        padding: 20px;
      }
      .gl-distqr-modal {
        background: #fff; border-radius: 16px; padding: 24px;
        max-width: 340px; width: 100%;
        box-shadow: 0 8px 32px rgba(0,0,0,.3);
        text-align: center;
      }
      .gl-distqr-title {
        font-size: 18px; font-weight: 800; color: #1a5f3f;
        margin-bottom: 8px;
      }
      .gl-distqr-desc {
        font-size: 13px; color: #666; margin-bottom: 16px;
      }
      .gl-distqr-canvas {
        background: #fff; padding: 12px; border-radius: 10px;
        display: inline-block; margin-bottom: 12px;
        border: 1px solid #e0e0e0;
      }
      .gl-distqr-url {
        font-size: 11px; color: #888; word-break: break-all;
        background: #f5f5f5; padding: 8px; border-radius: 6px;
        margin-bottom: 12px;
      }
      .gl-distqr-actions {
        display: flex; gap: 8px; justify-content: center;
      }
      .gl-distqr-btn {
        flex: 1; padding: 12px; border: none; border-radius: 8px;
        font-size: 14px; font-weight: 700; cursor: pointer;
        font-family: inherit;
      }
      .gl-distqr-btn--primary { background: #1a5f3f; color: #fff; }
      .gl-distqr-btn--secondary { background: #eee; color: #333; }
      /* ★ v3.0.15.37: 「つながり」QRモーダル（gl-conn__qr-close）と体裁を統一。
         閉じるボタンを横幅いっぱい・角丸10px・文字14pxに揃える。
         （v3.0.15.33で友達QRモーダルに編集枠を移植した際にボタン体裁がズレた
          実機指摘への対応） */
      .gl-distqr-actions--close .gl-distqr-btn--primary {
        width: 100%; flex: none; border-radius: 10px; font-size: 14px;
      }
    


/* =======================================================================
   #view-golf（js/ui/round.js から移管）
   ======================================================================= */

      #view-golf {
        min-height: 100vh;
        padding-left: 16px; padding-right: 16px;
        padding-top: calc(var(--gl-view-pad-top) + 12px);
        padding-bottom: calc(var(--gl-view-pad-bottom) + 12px);
        box-sizing: border-box;
        background: #f8f9fa; display: none;
      }
      #view-golf.show { display: block; }
      .gl-round__back {
        background: none; border: none; color: #1a5f3f; font-size: 16px;
        cursor: pointer; padding: 8px 4px; margin-bottom: 12px;
        -webkit-tap-highlight-color: rgba(0,0,0,.1);
        touch-action: manipulation;
      }
      .gl-round__title { font-size: 22px; font-weight: 700; color: #1a5f3f; margin: 0 0 16px; }
      .gl-round__actions { display: flex; flex-direction: column; gap: 12px; }
      .gl-round__card {
        background: #fff; padding: 20px 18px; border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,.08); cursor: pointer;
        -webkit-tap-highlight-color: rgba(26,95,63,.1);
        touch-action: manipulation;
        transition: transform .1s;
      }
      .gl-round__card:active { transform: scale(.98); }
      .gl-round__card h3 { margin: 0 0 6px; color: #1a5f3f; font-size: 17px; pointer-events: none; }
      .gl-round__card p { margin: 0; color: #666; font-size: 13px; pointer-events: none; }
      /* v3.0.0.4 fix: .gl-invite-box系は modal.css に一本化し重複定義を削除
         (後勝ち上書きで QR コードが左寄りになるバグ回避) */
      .gl-input-code {
        width: 100%; padding: 14px; font-size: 22px; text-align: center;
        letter-spacing: 6px; border: 2px solid #ddd; border-radius: 10px;
        box-sizing: border-box; text-transform: uppercase;
        font-family: 'Courier New', monospace;
      }
      .gl-spinner {
        display: inline-block; width: 32px; height: 32px;
        border: 3px solid rgba(255,255,255,.3); border-top-color: #fff;
        border-radius: 50%; animation: gl-spin 0.8s linear infinite;
      }
      @keyframes gl-spin { to { transform: rotate(360deg); } }
    


/* =======================================================================
   #view-mypage（js/ui/mypage.js から移管）
   ======================================================================= */

      #view-mypage {
        min-height: 100vh;
        padding-left: 16px; padding-right: 16px;
        padding-top: calc(var(--gl-view-pad-top) + 12px);
        padding-bottom: calc(var(--gl-view-pad-bottom) + 12px);
        box-sizing: border-box;
        background: #f8f9fa; display: none; flex-direction: column;
      }
      #view-mypage.show { display: flex; }
      .gl-mypage__title { font-size: 22px; font-weight: 700; color: #1a5f3f; margin: 0 0 8px; }
      .gl-mypage__userid-card {
        background: #fff; padding: 10px 14px; border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,.05); margin-bottom: 14px;
        font-size: 12px; color: #888;
      }
      .gl-mypage__userid-card span { font-family: monospace; color: #333; }
      .gl-mypage__card {
        background: #fff; padding: 18px; border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,.08); margin-bottom: 12px;
      }
      .gl-mypage__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
      .gl-mypage__row:last-child { border-bottom: none; }
      .gl-mypage__label { color: #666; font-size: 14px; }
      .gl-mypage__value { color: #333; font-weight: 600; font-size: 14px; }
      .gl-mypage__value--empty { color: #ccc; font-weight: 400; }
      .gl-mypage__version {
        margin-top: auto; padding: 20px 0 8px;
        text-align: center; color: #999; font-size: 11px;
      }
      #ad-slot-mypage { margin-top: 18px; }

      /* v2.8.13: ボタン CSS 復元 */
      #view-mypage .gl-btn-primary {
        width: 100%; padding: 14px; font-size: 16px; font-weight: 700;
        background: #1a5f3f; color: #fff; border: none; border-radius: 10px;
        cursor: pointer; box-shadow: 0 4px 12px rgba(26,95,63,.25);
      }
      #view-mypage .gl-btn-primary:active { background: #14472f; }
      /* v3.0.0: .gl-modal / .gl-modal__* / .gl-modal .gl-btn-primary は modal.css に集約 */
      /* v3.0.0: .gl-form__* は components.css に集約 */
    


/* =======================================================================
   #view-history（js/ui/history.js から移管、${COLOR_*} は実値へ展開済み）
   ======================================================================= */

      #view-history {
        min-height: 100vh;
        padding-left: 14px; padding-right: 14px;
        padding-top: calc(var(--gl-view-pad-top) + 8px);
        padding-bottom: calc(var(--gl-view-pad-bottom) + 60px);
        box-sizing: border-box;
        background: #faf6ec;
        display: none; overflow-y: auto;
        font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
      }
      #view-history.show { display: block; }

      .glh-back {
        background: transparent; border: none;
        color: #1a5f3f; font-size: 15px; font-weight: 700;
        padding: 8px 4px; cursor: pointer; margin-bottom: 4px;
      }
      .glh-title {
        font-size: 22px; font-weight: 800;
        color: #1a5f3f; margin: 4px 0 12px;
      }

      .glh-kpi {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 8px; margin-bottom: 12px;
      }
      .glh-kpi__card {
        background: #fff; border-radius: 10px; padding: 10px 8px;
        text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        border: 1px solid #e8e0cc;
      }
      .glh-kpi__label {
        font-size: 10px; color: #888; letter-spacing: .5px;
        margin-bottom: 4px;
      }
      .glh-kpi__value {
        font-size: 22px; font-weight: 800; color: #1a5f3f;
        line-height: 1;
      }
      .glh-kpi__unit { font-size: 11px; color: #888; margin-left: 2px; font-weight: 500; }
      .glh-kpi__sub { font-size: 11px; color: #999; margin-top: 3px; }

      .glh-filter {
        display: flex; gap: 6px; margin-bottom: 10px; align-items: center;
        overflow-x: auto; white-space: nowrap; padding-bottom: 4px;
      }
      .glh-filter__label { font-size: 11px; color: #666; flex-shrink: 0; }
      .glh-filter__chip {
        background: #fff; border: 1px solid #d5c98c;
        padding: 4px 11px; border-radius: 14px;
        font-size: 12px; color: #1a5f3f;
        cursor: pointer; flex-shrink: 0;
      }
      .glh-filter__chip.active {
        background: #1a5f3f; color: #fff; border-color: #1a5f3f;
      }

      .glh-item {
        background: #fff; border-radius: 10px;
        padding: 12px 14px; margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
        border-left: 4px solid transparent;
        cursor: pointer;
        transition: transform .1s;
      }
      .glh-item:active { transform: scale(.98); }
      .glh-item.is-best { border-left-color: #c9a959; background: linear-gradient(90deg, #fff9e6 0%, #fff 40%); }

      .glh-item__row1 {
        display: flex; justify-content: space-between; align-items: baseline;
        margin-bottom: 4px;
      }
      .glh-item__date { font-size: 12px; color: #888; }
      .glh-item__best {
        font-size: 11px; font-weight: 700; color: #c9a959;
        background: #fff3d6; padding: 2px 8px; border-radius: 10px;
      }
      .glh-item__course {
        font-size: 15px; font-weight: 700; color: #222;
        margin-bottom: 6px; letter-spacing: .3px;
      }
      .glh-item__row3 {
        display: flex; justify-content: space-between; align-items: flex-end;
      }
      .glh-item__score {
        font-size: 28px; font-weight: 800; color: #1a5f3f; line-height: 1;
      }
      .glh-item__diff {
        font-size: 14px; font-weight: 700; margin-left: 6px;
      }
      .glh-item__meta {
        font-size: 11px; color: #999; text-align: right;
      }

      .glh-empty {
        text-align: center; padding: 60px 20px;
        color: #999; font-size: 14px;
      }
      .glh-empty__icon { font-size: 48px; margin-bottom: 12px; }

      /* ==== 詳細 ==== */
      .glh-detail { padding: 4px 2px; }
      .glh-detail__header {
        background: #1a5f3f; color: #fff;
        padding: 14px 16px; border-radius: 12px;
        margin-bottom: 14px; position: relative; overflow: hidden;
      }
      .glh-detail__header.is-best::before {
        content: '🏆'; position: absolute; right: 8px; top: 4px;
        font-size: 44px; opacity: .25;
      }
      .glh-detail__date { font-size: 11px; opacity: .8; }
      .glh-detail__course {
        font-size: 18px; font-weight: 700; margin: 4px 0 8px;
      }
      .glh-detail__stats {
        display: flex; gap: 14px; align-items: baseline;
      }
      .glh-detail__total {
        font-size: 34px; font-weight: 800; line-height: 1;
      }
      .glh-detail__diff { font-size: 18px; font-weight: 700; }

      /* v2.7.19: 詳細画面のスコア表示切替トグル */
      .glh-detail__toggle {
        display: flex; background: #fff;
        border: 1px solid #d5c98c; border-radius: 20px;
        overflow: hidden; margin: 0 auto 10px;
        width: max-content;
      }
      .glh-detail__toggle-btn {
        background: transparent; border: none;
        padding: 6px 16px; cursor: pointer;
        color: #1a5f3f; font-weight: 700; font-size: 12px;
        min-width: 60px;
      }
      .glh-detail__toggle-btn.active {
        background: #1a5f3f; color: #fff;
      }

      .glh-card {
        background: #fff; border-radius: 10px; padding: 8px;
        margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.06);
        overflow-x: auto;
      }
      .glh-card__title {
        font-size: 12px; color: #666; font-weight: 700;
        padding: 4px 6px 6px; letter-spacing: .5px;
      }
      table.glh-scorecard {
        width: 100%; border-collapse: collapse; font-size: 12px;
      }
      .glh-scorecard th, .glh-scorecard td {
        border: 1px solid #e6e0d0;
        padding: 5px 3px; text-align: center;
        min-width: 28px;
      }
      .glh-scorecard th {
        background: #f5efd8; color: #1a5f3f; font-weight: 700;
      }
      .glh-scorecard .glh-sc-out, .glh-scorecard .glh-sc-in, .glh-scorecard .glh-sc-tot {
        background: #ecf7ef; font-weight: 700; color: #1a5f3f;
      }
      .glh-scorecard .glh-sc-label {
        text-align: left; padding-left: 8px; font-weight: 700; background: #fbf7e6;
      }
      .glh-scorecard .glh-sc-par-row td { background: #f8f4e0; color: #666; font-size: 11px; }

      /* v2.7.19: スコア色分け */
      .glh-scorecard .glh-eagle  { color: #c0392b; font-weight: 800; }
      .glh-scorecard .glh-birdie { color: #c0392b; font-weight: 700; }
      .glh-scorecard .glh-bogey  { color: #444; }
      .glh-scorecard .glh-dbogey { color: #666; }

      /* 同伴者 */
      .glh-comp {
        display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px;
      }
      .glh-comp__item {
        min-width: 130px; flex-shrink: 0;
        background: #fff; border-radius: 8px; padding: 8px 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,.06);
        border: 1px solid #e8e0cc;
      }
      .glh-comp__item.no-score {
        background: #f7f5eb; opacity: .82;
      }
      .glh-comp__name { font-size: 13px; font-weight: 700; color: #333; }
      .glh-comp__score { font-size: 20px; font-weight: 800; color: #1a5f3f; margin-top: 2px; }
      .glh-comp__diff { font-size: 13px; font-weight: 700; margin-left: 4px; }
      .glh-comp__nostore { font-size: 12px; color: #999; margin-top: 4px; font-weight: 600; }
      .glh-comp__type { font-size: 10px; color: #999; margin-top: 2px; }

      /* BEST モーダル */
      .glh-best-modal {
        position: fixed; inset: 0; z-index: 9999;
        background: rgba(0,0,0,.65);
        display: flex; align-items: center; justify-content: center;
        opacity: 0; transition: opacity .3s;
      }
      .glh-best-modal.show { opacity: 1; }
      .glh-best-modal__box {
        background: linear-gradient(160deg, #faf6ec 0%, #fff9e6 100%);
        padding: 30px 28px 22px; border-radius: 16px;
        text-align: center; max-width: 320px; width: 84%;
        box-shadow: 0 8px 40px rgba(0,0,0,.4);
      }
      .glh-best-modal__icon { font-size: 68px; line-height: 1; }
      .glh-best-modal__title {
        font-size: 22px; font-weight: 800; color: #c9a959;
        margin: 8px 0 4px;
      }
      .glh-best-modal__msg { font-size: 14px; color: #555; margin-bottom: 16px; }
      .glh-best-modal__btn {
        background: #1a5f3f; color: #fff; border: none;
        padding: 10px 32px; border-radius: 22px;
        font-size: 15px; font-weight: 700; cursor: pointer;
      }
    


/* =======================================================================
   #view-score（Simple テーマ、js/ui/score/simple.js から移管）
   ======================================================================= */

      #view-score {
        min-height: 100vh;
        padding-left: 12px; padding-right: 12px;
        padding-top: calc(var(--gl-view-pad-top) + 8px);
        padding-bottom: calc(var(--gl-view-pad-bottom) + 16px);
        box-sizing: border-box;
        background: #f8f9fa; display: none; flex-direction: column;
      }
      #view-score.show { display: flex; }
      .gl-score__topbar {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 10px;
      }
      .gl-score__back { background: none; border: none; color: #1a5f3f; font-size: 15px; cursor: pointer; padding: 6px 0; }
      .gl-score__code { font-size: 13px; color: #666; }
      .gl-score__code b { color: #1a5f3f; font-family: monospace; font-size: 16px; }
      .gl-score__table-wrap {
        background: #fff; border-radius: 10px; overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
        flex-shrink: 0;
      }
      .gl-score__table { width: 100%; border-collapse: collapse; font-size: 13px; }
      .gl-score__table th, .gl-score__table td {
        padding: 8px 4px; text-align: center; border-bottom: 1px solid #eee;
      }
      .gl-score__table th { background: #1a5f3f; color: #fff; font-weight: 600; font-size: 12px; }
      .gl-score__table td.gl-name {
        text-align: left; padding-left: 10px; font-weight: 600; color: #333;
        max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      }
      .gl-score__cell {
        width: 32px; height: 32px; padding: 0; text-align: center;
        border: 1px solid #ddd; border-radius: 6px; font-size: 15px;
        background: #fff;
      }
      .gl-score__cell:focus { border-color: #1a5f3f; outline: none; background: #fffdf0; }
      .gl-score__cell--mine { background: #f0f8f4; font-weight: 700; }
      .gl-score__cell--peer { background: #fafafa; color: #666; }
      .gl-score__hole-nav {
        display: flex; justify-content: space-between; align-items: center;
        background: #fff; padding: 12px; border-radius: 10px; margin-top: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
      }
      .gl-score__hole-nav button {
        padding: 10px 18px; background: #1a5f3f; color: #fff;
        border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
      }
      .gl-score__hole-nav button:disabled { background: #ccc; }
      .gl-score__hole-current { font-size: 20px; font-weight: 700; color: #1a5f3f; }
      .gl-score__bottom-actions {
        margin-top: 12px; display: flex; gap: 8px;
      }
      .gl-score__bottom-actions button {
        flex: 1; padding: 12px; border-radius: 8px; border: none;
        font-size: 14px; font-weight: 600; cursor: pointer;
      }
      .gl-score__btn-invite { background: #fff; color: #1a5f3f; border: 2px solid #1a5f3f; }
      .gl-score__btn-finish { background: #1a5f3f; color: #fff; }

      /* 横向き時: 下部マージン活用 */
      #ad-slot-score-landscape { display: none; margin-top: 12px; }
      @media (orientation: landscape) and (min-height: 500px) {
        #ad-slot-score-landscape { display: block; }
      }
    


/* =======================================================================
   #view-score.gl-classic（Classic テーマ、js/ui/score/classic.js から移管）
   Classic 内モーダル (.gl-cls-modal) は modal.css の .gl-modal--cls で継承。
   下位互換のため .gl-cls-modal クラスも残置。
   ======================================================================= */

      /* ===== 全体レイアウト ===== */
      #view-score.gl-classic {
        min-height: 100vh; box-sizing: border-box;
        padding-left: 8px; padding-right: 8px;
        padding-top: calc(var(--gl-view-pad-top) + 4px);
        padding-bottom: calc(var(--gl-view-pad-bottom) + 4px);
        background: #f5f2ea;
        display: none; flex-direction: column;
      }
      #view-score.gl-classic.show { display: flex; }

      /* ===== ヘッダー =====
         v3.0.0.8 fix: コード表示を廃し、のヘッダーにコース名を併記。
           「G-LAND / コース名 / startType」。
           長すぎるコース名は flex + min-width:0 + text-overflow:ellipsis で末尾…省略。 */
      .gl-cls-header {
        display: flex; justify-content: flex-start; align-items: center;
        padding: 4px 8px; margin-bottom: 6px;
        gap: 12px; min-width: 0;
      }
      .gl-cls-back {
        background: none; border: none; color: #1a5f3f;
        font-size: 15px; cursor: pointer; padding: 4px 0;
        flex: 0 0 auto;
      }
      .gl-cls-logo {
        font-size: 15px; font-weight: 700; color: #1a5f3f; letter-spacing: 1px;
        flex: 1 1 auto; min-width: 0;
        display: flex; align-items: baseline; gap: 6px;
        white-space: nowrap; overflow: hidden;
      }
      .gl-cls-logo__brand  { flex: 0 0 auto; }
      .gl-cls-logo__sep    { flex: 0 0 auto; opacity: .5; font-weight: 400; }
      .gl-cls-logo__course {
        flex: 0 1 auto; min-width: 0;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        font-weight: 600;
      }

      /* ★ v3.0.4.0.1: 同期状態インジケータ
         モード切替バー (.gl-cls-settings-toggle) 内部の右端に埋め込み。
         ヘッダー右端に置くとトーストと干渉するため、
         トーストの影響を受けないモード切替バー内に移動。
         🟢 同期済 / 🟡N 送信待ち / 🔴 オフライン
         タップで詳細トースト表示。 */
      .gl-cls-settings-toggle-right {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }
      .gl-cls-sync {
        flex: 0 0 auto;
        display: inline-flex; align-items: center; gap: 2px;
        padding: 2px 6px;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 10px;
        font-size: 12px; line-height: 1;
        color: #333;
        cursor: pointer;
        min-width: 20px;
        transition: background 0.2s ease, border-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
      }
      .gl-cls-sync:hover,
      .gl-cls-sync:focus-visible {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(0, 0, 0, 0.16);
        outline: none;
      }
      .gl-cls-sync__icon {
        font-size: 12px;
        line-height: 1;
      }
      .gl-cls-sync__count {
        font-size: 11px;
        font-weight: 600;
        color: #b58900;
        min-width: 0;
      }
      .gl-cls-sync--ok      .gl-cls-sync__count { display: none; }
      .gl-cls-sync--offline .gl-cls-sync__count { display: none; }
      .gl-cls-sync--pending {
        animation: gl-cls-sync-pulse 1.6s ease-in-out infinite;
      }
      @keyframes gl-cls-sync-pulse {
        0%, 100% { opacity: 1; }
        50%      { opacity: 0.55; }
      }

      /* ===== 情報バー ===== */
      .gl-cls-info-bar {
        display: flex; justify-content: space-between; align-items: center;
        padding: 8px 12px; margin-bottom: 8px;
        background: #f0e8d0; border-radius: 8px;
        border: 1px solid #d4c8a8;
      }
      .gl-cls-info-item {
        display: flex; align-items: center; gap: 6px;
        cursor: pointer; padding: 4px 8px;
        border-radius: 6px; transition: background .15s;
        font-size: 13px; color: #5a4a30;
      }
      .gl-cls-info-item:active { background: rgba(0,0,0,.06); }
      .gl-cls-info-item__icon { font-size: 16px; }
      .gl-cls-info-item__value { font-weight: 700; color: #1a5f3f; }
      .gl-cls-info-item__value--empty { color: #999; font-weight: 500; }
      .gl-cls-info-item__count { font-size: 11px; color: #666; margin-left: 4px; }
      .gl-cls-info-item__count--over { color: #d32f2f; font-weight: 700; }

      /* ===== v2.7.30 NEW: モード切替アコーディオン ===== */
      .gl-cls-settings {
        margin-bottom: 6px;
        border-radius: 8px;
        background: #f0e8d0;
        border: 1px solid #d4c8a8;
        overflow: hidden;
      }
      .gl-cls-settings-toggle {
        width: 100%;
        padding: 8px 12px;
        background: transparent;
        border: none;
        display: flex;
        flex-wrap: nowrap;      /* ★ v3.0.40.241: 2行化を防止（Androidで縦幅を食わない） */
        overflow: hidden;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        font-weight: 700;
        color: #5a4a30;
        cursor: pointer;
        font-family: inherit;
      }
      /* ★ v3.0.40.241: 左側ラベルは省略表示で1行を死守 */
      .gl-cls-settings-toggle > span:first-child {
        flex: 1 1 auto; min-width: 0;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      }
      .gl-cls-settings-toggle .gl-cls-mode-btn { flex: 0 0 auto; margin-left: 6px; }
      .gl-cls-settings-toggle-right { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
      /* ★ v3.0.40.241: 告知バッジ（📢）をセル内に収める */
      .gl-gcard-ann-badge {
        font-size: 11px !important;
        padding: 1px 3px !important;
        margin-left: 2px !important;
        max-width: 22px;
        overflow: hidden;
        flex: 0 0 auto;
        vertical-align: middle;
      }
      .gl-cls-settings-toggle:active {
        background: rgba(0,0,0,.04);
      }
      .gl-cls-settings-current {
        font-size: 11px;
        color: #1a5f3f;
        font-weight: 600;
        margin-left: 8px;
      }
      .gl-cls-settings-arrow {
        font-size: 11px;
        transition: transform 0.2s;
        color: #5a4a30;
      }
      .gl-cls-settings-arrow--open {
        transform: rotate(90deg);
      }
      .gl-cls-settings-body {
        padding: 4px 6px 6px;
        border-top: 1px solid #d4c8a8;
        display: none;
      }
      .gl-cls-settings-body--open {
        display: block;
      }
      .gl-cls-settings-section {
        margin-bottom: 6px;
      }
      .gl-cls-settings-section:last-child {
        margin-bottom: 0;
      }
      .gl-cls-settings-label {
        font-size: 11px;
        font-weight: 600;
        color: #5a4a30;
        margin: 4px 0 3px;
        padding-left: 2px;
      }

      /* ===== v2.7.27 NEW: 入力方式タブ ===== */
      .gl-cls-inputmodes {
        display: grid; grid-template-columns: 1fr 1fr 1fr;
        gap: 4px; margin-bottom: 0;
        background: #e8e0d0; padding: 4px; border-radius: 8px;
      }
      .gl-cls-inputmode-btn {
        padding: 10px 4px; border: none; border-radius: 6px;
        background: transparent; cursor: pointer;
        font-family: inherit; font-size: 13px; font-weight: 700;
        color: #5a4a30; transition: all .15s;
        display: flex; align-items: center; justify-content: center; gap: 4px;
      }
      .gl-cls-inputmode-btn.active {
        background: #1a5f3f; color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,.15);
      }
      .gl-cls-inputmode-btn__icon { font-size: 14px; }

      /* ===== モード切替タブ ===== */
      .gl-cls-modes {
        display: grid; grid-template-columns: 1fr 1fr 1fr;
        gap: 4px; margin-bottom: 0;
        background: #e8e0d0; padding: 4px; border-radius: 8px;
      }
      .gl-cls-mode-btn {
        padding: 8px 4px; border: none; border-radius: 6px;
        background: transparent; cursor: pointer;
        font-family: inherit; font-size: 13px; font-weight: 600;
        color: #5a4a30; transition: background .15s;
      }
      .gl-cls-mode-btn.active {
        background: #1a5f3f; color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,.15);
      }
      .gl-cls-mode-btn__symbols {
        display: inline-flex; gap: 6px; font-size: 14px;
      }

      /* ===== スコアカード表 ===== */
      .gl-cls-table-wrap {
        flex: 1; overflow: hidden; border-radius: 8px;
        background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08);
        border: 1px solid #d4c8a8;
        min-height: 0; /* v3.0.15.20+: flex子が縮めるよう明示（横画面はみ出し対策の前提） */
      }
      .gl-cls-table {
        display: grid; width: 100%; height: 100%;
        grid-template-columns: 104px 1fr 88px; /* ★ v3.0.40.173: Player列レールをmin-width(104px)と一致。v172のmin-width追加だけでは列が92pxレールから12px溢れ、スクロール列が📢バッジ右端を覆っていた（CEO実機指摘） */
      }
      .gl-cls-col-fixed-left,
      .gl-cls-col-fixed-right,
      .gl-cls-col-scroll {
        display: flex; flex-direction: column;
      }

      /* ★ v3.0.40.172: Player列（固定左列）の最小幅を確保
         【背景】列幅は flexbox の内容依存で、アバター22px＋名前＋📢バッジ(告知)が
           収まらず、📢が約1/3欠けていた（CEO実機指摘）。
         【構造的対応】TOTAL列スリム化(v171)と併せて、固定左列に min-width を明示。
           中身が狭くてもこの幅は確保されるため、バッジが完全に見える。 */
      .gl-cls-col-fixed-left { min-width: 104px; }
      .gl-cls-col-scroll {
        overflow-x: auto; overflow-y: hidden;
        /* ★ v3.0.21.0: scroll-behavior:smooth を削除（横スクロール初動不良の根治）
           CSSのsmoothは「指のスワイプ」だけでなく「プログラムの scrollLeft 代入」
           までアニメーション化し、初期位置合わせが完了するまで指の操作を奪う
           （初動が効かない・しばらくすると動く、の原因）。
           指のスワイプ自体はブラウザ標準で滑らかに動くため、CSS側は不要。 */
        -webkit-overflow-scrolling: touch;
      }
      .gl-cls-scroll-inner {
        display: grid;
        grid-template-columns: repeat(9, 52px) 54px repeat(9, 52px) 54px; /* ★ v3.0.40.170b: TOTAL列を細くしPlayer列へ幅を譲る（📢バッジの欠け解消・CEO指摘） */
        min-width: min-content;
      }

      /* ===== セル共通 ===== */
      .gl-cls-cell {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        border-right: 1px solid #e8dfc7;
        border-bottom: 1px solid #e8dfc7;
        text-align: center; box-sizing: border-box;
        padding: 2px; position: relative;
      }
      .gl-cls-cell--head {
        background: #1a5f3f; color: #fff;
        font-weight: 700; font-size: 13px;
        height: 32px;
      }
      .gl-cls-cell--par {
        background: #f0e8d0; color: #5a4a30;
        font-weight: 700; font-size: 15px;
        height: 32px;
      }
      .gl-cls-cell--player {
        background: #faf6ec; color: #333;
        font-weight: 700; font-size: 15px;
        padding: 4px 6px;
        justify-content: center; align-items: flex-start;
        text-align: left; cursor: pointer;
      }
      .gl-cls-cell--player small {
        display: block; font-size: 10px; font-weight: 500;
        margin-top: 2px;
      }
      .gl-cls-player-badge {
        display: inline-block; padding: 1px 5px;
        border-radius: 3px; font-size: 9px; font-weight: 600;
      }
      .gl-cls-player-badge--self { background: #1a5f3f; color: #fff; }
      .gl-cls-player-badge--shared { background: #999; color: #fff; }
      /* ★ v3.0.40.708: 電池切れの人の「代わりに入力」中 */
      .gl-cls-player-badge--standin { background: #e65100; color: #fff; }
      .gl-standin-note { font-size: 14px; line-height: 1.7; color: #1a2b22; text-align: center; margin: 10px 0 4px; }
      .gl-standin-sub { font-size: 12px; color: #6b7a70; }
      .gl-cls-player-badge--proxy { background: #ff9800; color: #fff; }

      /* ===== スコア入力セル ===== */
      .gl-cls-cell--score {
        height: 54px; background: #fff; cursor: pointer;
        font-size: 22px; font-weight: 700;
        transition: background .15s;
      }
      .gl-cls-cell--score:active { background: #e8f5e9; }
      .gl-cls-cell--putt {
        height: 30px; background: #fafafa; cursor: pointer;
        font-size: 13px; color: #666;
      }
      .gl-cls-cell--score--readonly,
      .gl-cls-cell--putt--readonly {
        cursor: default; background: #f5f5f5;
      }
      .gl-cls-cell--score--empty { color: #ccc; font-size: 16px; }
      .gl-cls-cell--putt-label {
        font-size: 9px; color: #999; margin-right: 3px;
      }

      /* ===== 集計セル ===== */
      .gl-cls-cell--sum {
        height: 54px; background: #ede4c7; color: #333;
        font-weight: 800; font-size: 20px;
        border-left: 2px solid #b8a878;
      }
      .gl-cls-cell--sum-putt {
        height: 30px; background: #e8dfbf;
        font-size: 12px; color: #5a4a30;
        border-left: 2px solid #b8a878;
      }
      .gl-cls-cell--sum-diff {
        font-size: 11px; font-weight: 600; margin-top: -2px;
      }

      /* ===== 現在ホールハイライト ===== */
      .gl-cls-cell--head.gl-cls-cell--current {
        background: #fff59d !important;
        color: #1a5f3f !important;
        font-weight: 800;
      }
      .gl-cls-cell--par.gl-cls-cell--current {
        background: #fff59d !important;
        color: #1a5f3f !important;
        font-weight: 800;
        box-shadow: inset 0 -2px 0 #f9a825;
      }
      .gl-cls-cell--score.gl-cls-cell--current {
        background: #fffde7 !important;
        box-shadow: inset 0 0 0 2px #f9a825;
      }
      .gl-cls-cell--putt.gl-cls-cell--current {
        background: #fff8e1 !important;
      }

      /* ===== 下部アクション ===== */
      .gl-cls-actions {
        display: grid; grid-template-columns: 1fr 1fr 1fr;
        gap: 6px; margin-top: 8px;
      }
      .gl-cls-actions button {
        padding: 10px 6px; border-radius: 6px; border: none;
        font-size: 13px; font-weight: 600; cursor: pointer;
      }
      .gl-cls-btn-refresh {
       background: #fff;
       color: #1a5f3f;
       border: 2px solid #1a5f3f;
       transition: background 0.15s;
     }
     .gl-cls-btn-refresh:disabled {
      background: #f5f5f5;
      color: #999;
      border-color: #ccc;
      cursor: not-allowed;
     }
     .gl-cls-btn-line { background: #06c755; color: #fff; }
     .gl-cls-btn-finish { background: #1a5f3f; color: #fff; }
     /* ★ v3.0.40.773: かんたん画面の「仲間にライブで見てもらう」 */
     .gl-cls-actions button.gl-cls-btn-watch773 { background: #fff; color: #1a5f3f; border: 2px solid #1a5f3f; border-radius: 12px; font-weight: 900; }

      /* 現在ホールへフォーカスボタン */
      .gl-cls-focus-btn {
        position: fixed; right: 16px; bottom: 130px;   /* v2.8.10: 終了・保存ボタンから離す */
        width: 48px; height: 48px; border-radius: 50%;
        background: #1a5f3f; color: #fff; border: none;
        font-size: 22px; cursor: pointer;
        box-shadow: 0 4px 12px rgba(26,95,63,.4);
        z-index: 100;
        display: flex; align-items: center; justify-content: center;
        transition: transform .15s;
      }
      .gl-cls-focus-btn:active { transform: scale(.92); }

      /* ===== 入力パネル: 共通ヘッダー ===== */
      .gl-cls-panel-header {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 12px; padding-bottom: 8px;
        border-bottom: 2px solid #f0e8d0;
      }
      .gl-cls-panel-hole {
        font-size: 20px; font-weight: 800; color: #1a5f3f;
      }
      .gl-cls-panel-progress {
        font-size: 12px; color: #888;
        background: #f0e8d0; padding: 3px 8px;
        border-radius: 12px;
      }
      .gl-cls-panel-player {
        font-size: 16px; font-weight: 700; color: #333;
        margin-bottom: 10px;
        display: flex; align-items: center; gap: 6px;
      }
      /* ★ v3.0.12.0: パネル右上の「× 閉じる」（自動クローズ廃止に伴う明示的出口）
         タップ領域は 44px 以上を確保（指での誤タップ防止）。 */
      .gl-cls-panel-close {
        width: 44px; height: 44px; flex: 0 0 auto;
        display: inline-flex; align-items: center; justify-content: center;
        background: #f0e8d0; border: none; border-radius: 50%;
        font-size: 26px; line-height: 1; color: #5a4a30;
        cursor: pointer; padding: 0;
      }
      .gl-cls-panel-close:active { background: #e2d5b8; }

      /* ★ v3.0.12.0: パネル内ミニスコア表
         パネルが自動で閉じなくなり背面カードが隠れるため、
         パネル内で現在ホール＋OUT/IN＋TOTALを一覧できるようにする。 */
      .gl-cls-mini-score {
        margin: 8px 0 2px; overflow-x: auto;
        border: 1px solid #e8ddc0; border-radius: 8px; background: #fffdf6;
      }
      .gl-cls-mini-score__table {
        width: 100%; border-collapse: collapse; font-size: 15px;
      }
      .gl-cls-mini-score__table th {
        background: #1a5f3f; color: #fff; font-weight: 700;
        padding: 7px 10px; font-size: 12px; white-space: nowrap;
      }
      .gl-cls-mini-score__table td {
        padding: 7px 10px; text-align: center; border-top: 1px solid #f0e8d0;
        white-space: nowrap; color: #333;
      }
      .gl-cls-mini-score__name {
        text-align: left !important; font-weight: 600; max-width: 90px;
        overflow: hidden; text-overflow: ellipsis;
      }
      .gl-cls-mini-score__row--current td {
        background: #fff8e1; font-weight: 700;
      }
      .gl-cls-mini-score__hole { font-weight: 700; color: #1a5f3f; }
      .gl-cls-mini-score__total { font-weight: 700; }
      .gl-cls-mini-score__diff { font-size: 12px; color: #888; }

      /* ================================================================
         ★ v3.0.15.19+ 改修（CEO最終仕様・ラージモーダル方式）
         ミニスコア表を「タップで対象者切替」する大型リストへ昇格。
         老眼配慮: 名前18px+ / 数字22px+ / 行高56px+ / タップ領域十分確保
         ================================================================ */
      /* 行全体を大きく・指先で狙いやすく */
      .gl-cls-mini-score__table td {
        padding: 14px 12px !important;   /* タップ領域を確保 */
        font-size: 19px !important;      /* 老眼配慮: 数字を大きく */
        line-height: 1.35;
      }
      .gl-cls-mini-score__table th {
        padding: 9px 12px !important;
        font-size: 14px !important;      /* ヘッダーも読みやすく */
      }
      .gl-cls-mini-score__name {
        font-size: 18px !important;      /* プレイヤー名を大きく */
        font-weight: 700 !important;
        max-width: 46vw !important;      /* 長い名前も収める */
      }
      .gl-cls-mini-score__hole,
      .gl-cls-mini-score__total {
        font-size: 22px !important;      /* スコア数字は最も大きく */
      }
      /* 未入力の「−」は薄く（入力促す） */
      .gl-cls-mini-score__empty { color: #c9b98a; font-weight: 400; }
      /* 「自分/代理」バッジ（名前の左） */
      .gl-cls-mini-score__badge {
        display: inline-block; margin-right: 6px; padding: 2px 7px;
        border-radius: 5px; font-size: 12px; font-weight: 700;
        background: #eee; color: #666; vertical-align: 2px;
      }
      .gl-cls-mini-score__badge--self { background: #1a5f3f; color: #fff; }
      .gl-cls-mini-score__badge--proxy { background: #ff9800; color: #fff; }
      .gl-cls-mini-score__badge--shared { background: #1976d2; color: #fff; }
      .gl-cls-mini-score__badge--standin { background: #e65100; color: #fff; } /* ★ v3.0.40.708 */
      /* ★ v3.0.15.20+: パネル内ミニスコアのアバター（名前の左・老眼でも誰の行か一目で分かる大きさ） */
      .gl-cls-mini-score__avatar {
        display: inline-block; width: 32px; height: 32px;
        border-radius: 50%; object-fit: cover; vertical-align: middle;
        margin-right: 8px; border: 2px solid #e0d6bc; background: #f5f0e0;
      }
      .gl-cls-mini-score__avatar--emoji {
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 20px; line-height: 1;
      }

      /* タップ可能な行（4人リスト切替）：カーソル・押下フィードバック */
      .gl-cls-mini-score__row--tappable { cursor: pointer; }
      .gl-cls-mini-score__row--tappable td { transition: background 0.12s ease; }
      .gl-cls-mini-score__row--tappable:active td { background: #e8f5e9; }
      /* 現在入力中の行は強調（緑の左ボーダー＋淡い背景） */
      .gl-cls-mini-score__row--current td {
        background: #eaf6ef !important;
        font-weight: 800;
      }
      .gl-cls-mini-score__row--current td:first-child {
        box-shadow: inset 4px 0 0 #1a5f3f;  /* 左端に太い緑バーで「選択中」を明示 */
      }

      /* ★ v3.0.12.1: 全員入力済みの「確認状態」
         自動遷移をやめ、結果を確認してから本人のタイミングで次ホールへ進む。 */
      .gl-cls-panel-complete { padding: 4px 0 2px; }
      .gl-cls-panel-complete__msg {
        font-size: 15px; font-weight: 700; color: #1a5f3f;
        text-align: center; margin: 6px 0 10px;
      }
      .gl-cls-panel-section-label {
        font-size: 13px; font-weight: 600; color: #5a4a30;
        margin: 10px 0 6px;
      }
      /* ================================================================
         ★ v3.0.15.25: Android縦画面（低い画面）専用の圧縮調整
         条件: 縦画面 かつ 画面高さが700px未満 の端末だけに適用。
         → iPhone（高さが大きい）と横画面には一切影響しない。
         目的: パネル内で「保存→次の人」ボタンが画面外に欠ける問題を解消。
         ================================================================ */
      @media (orientation: portrait) and (max-height: 700px) {
        /* ★ v3.0.15.27: zoom縮小は廃止（1回目OK・2回目で元に戻る不安定さのため）。
           根本解決は「パネル2分割構造（中身スクロール＋ボタン固定）」に移行済み。
           文字は老眼配慮で大きいまま維持し、低い画面では余白だけを軽く詰める。 */
        /* 打数・パットのスワイプボタンを少し低く（56→50px） */
        .gl-cls-swipe-btn { height: 50px; min-width: 44px; font-size: 18px; }
        .gl-cls-swipe-row { padding: 6px 4px 8px; gap: 6px; }
        /* ミニスコア表の余白を詰める */
        .gl-cls-mini-score__table td { padding: 10px 10px !important; font-size: 17px !important; }
        .gl-cls-mini-score__name { font-size: 16px !important; }
        .gl-cls-mini-score__hole, .gl-cls-mini-score__total { font-size: 19px !important; }
        .gl-cls-mini-score__avatar { width: 26px; height: 26px; margin-right: 6px; }
        /* パネルヘッダーとプレイヤー行の余白を詰める */
        .gl-cls-panel-header { margin-bottom: 8px; padding-bottom: 6px; }
        .gl-cls-panel-player { margin: 4px 0; }
        /* セクションラベル行の余白を詰める */
        .gl-cls-panel-section-label { margin: 6px 0 4px; font-size: 12px; }
      }

      /* ★ v3.0.15.27: ボタン行は「スクロール領域の外（直下）」に配置して固定。
         （パネルは modal.css 側で「中身スクロール(.gl-panel-scroll)＋ボタン固定」の
         2分割構造。ここでは見た目だけを定義。sticky は使わない）
         どんな機種でも「キャンセル/保存」が必ず画面内に固定される。 */
      .gl-cls-panel-actions {
        display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
        margin-top: 12px;
      }
      .gl-cls-panel-btn-cancel {
        padding: 14px 12px; background: #f5f5f5; border: none;
        border-radius: 10px; font-size: 15px; font-weight: 600; color: #555;
        cursor: pointer;
      }
      .gl-cls-panel-btn-save {
        padding: 14px 12px; background: #1a5f3f; color: #fff;
        border: none; border-radius: 10px;
        font-size: 16px; font-weight: 800; cursor: pointer;
      }
      .gl-cls-panel-btn-save:disabled {
        background: #ccc; cursor: default;
      }

      /* ===== 入力パネル: Classic (10ボタン) ===== */
      .gl-cls-panel-keys {
        display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
        margin-bottom: 4px;
      }
      .gl-cls-panel-key {
        padding: 14px 0; background: #f0f0f0; border: 2px solid transparent;
        border-radius: 8px; font-size: 18px; font-weight: 700;
        cursor: pointer; transition: all .1s;
      }
      .gl-cls-panel-key:active { transform: scale(.95); }
      .gl-cls-panel-key.selected {
        background: #1a5f3f; color: #fff;
        border-color: #0f4028;
      }
      .gl-cls-panel-key--putt.selected {
        background: #f9a825; color: #fff;
        border-color: #c17900;
      }

      /* ===== v2.7.27 NEW: Simple モード (5パステルボタン) ===== */
      .gl-cls-simple {
        display: grid;
        grid-template-columns: 52px 1fr 1fr 1fr 52px;
        gap: 6px;
        align-items: stretch;
        margin-bottom: 4px;
      }
      .gl-cls-simple__btn {
        min-height: 62px;
        border-radius: 10px;
        border: 2px solid transparent;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 2px;
        transition: transform 0.08s, box-shadow 0.12s;
        cursor: pointer;
      }
      .gl-cls-simple__btn:active { transform: scale(0.94); }
      .gl-cls-simple__btn .num {
        font-size: 22px; font-weight: 800;
        color: #212121; line-height: 1;
      }
      .gl-cls-simple__btn .lbl {
        font-size: 10px; font-weight: 600;
        color: #616161;
      }
      /* 中央3個: パステル */
      .gl-cls-simple__btn--birdie { background: #F8BBD0; }
      .gl-cls-simple__btn--par    { background: #FFF9C4; }
      .gl-cls-simple__btn--bogey  { background: #C5CAE9; }
      /* 両端: 赤丸・緑丸 */
      .gl-cls-simple__btn--minus {
        background: #EF5350;
        border-radius: 50%;
        min-height: 52px; max-height: 62px;
        aspect-ratio: 1 / 1;
        align-self: center; justify-self: center;
      }
      .gl-cls-simple__btn--minus .num {
        color: #fff; font-size: 28px; font-weight: 800;
      }
      .gl-cls-simple__btn--plus {
        background: #3BB774;
        border-radius: 50%;
        min-height: 52px; max-height: 62px;
        aspect-ratio: 1 / 1;
        align-self: center; justify-self: center;
      }
      .gl-cls-simple__btn--plus .num {
        color: #fff; font-size: 28px; font-weight: 800;
      }
      .gl-cls-simple__btn--active {
        outline: 3px solid #F9A825;
        outline-offset: -3px;
        box-shadow: 0 2px 8px rgba(0,0,0,.10);
      }

      /* ===== v2.7.27 NEW: Counter モード (+/− カウント) ===== */
      .gl-cls-counter {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 8px 0;
        margin-bottom: 4px;
      }
      .gl-cls-counter__btn {
        width: 62px; height: 62px;
        border-radius: 50%;
        font-size: 30px; font-weight: 800;
        color: #fff; border: none; cursor: pointer;
        transition: transform 0.08s;
      }
      .gl-cls-counter__btn:active { transform: scale(0.92); }
      .gl-cls-counter__btn--minus { background: #EF5350; }
      .gl-cls-counter__btn--plus  { background: #3BB774; }
      .gl-cls-counter__display {
        flex: 1; max-width: 160px;
        min-height: 62px;
        border-radius: 10px;
        background: #FFECB3;
        border: 2px solid #F9A825;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        color: #C62828;
      }
      .gl-cls-counter__display .num {
        font-size: 32px; font-weight: 800; line-height: 1;
      }
      .gl-cls-counter__display .lbl {
        font-size: 11px; color: #616161;
        font-weight: 700; margin-top: 2px;
      }

      /* ===== v2.7.27 NEW: 共通パットボタン (Simple/Counter用) ===== */
      .gl-cls-putt-row {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr;
        gap: 5px;
        margin-top: 10px;
      }
      .gl-cls-putt-label {
        display: flex; align-items: center; justify-content: center;
        font-size: 15px; font-weight: 800;
        color: #2E9B5B;
        min-height: 44px; letter-spacing: 1px;
      }
      .gl-cls-putt-btn {
        min-height: 44px;
        border-radius: 10px;
        font-size: 16px; font-weight: 700;
        color: #212121;
        background: #F5F5F5;
        border: 2px solid transparent;
        cursor: pointer;
        transition: transform 0.08s;
      }
      .gl-cls-putt-btn:active { transform: scale(0.94); }
      .gl-cls-putt-btn--active {
        background: #3BB774; color: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,.06);
      }
      .gl-cls-putt-btn--plus {
        background: #3BB774; color: #fff;
        font-size: 20px; font-weight: 800;
      }
      .gl-cls-putt-btn--plus.gl-cls-putt-btn--active {
        background: #2E9B5B;
        outline: 3px solid #F9A825;
        outline-offset: -3px;
      }

      /* ===== 横画面: 最小修正版 =====
         v3.0.4.35: ユーザー指摘に基づく「2行だけ消す」方式
           - 消すのは情報バー(時間/ロッカー)とモード切替行の 2 行のみ
           - ヘッダ行(←戻る/コース名)と下部ボタン行(最新取得/LINE/終了保存)は残す
           - グリッド列数・セル高さ・パット行には一切触らない
             （v3.0.4.29〜32 で列数を変えて崩壊した教訓を反映）
           - min-height 条件は撤廃し、横向きなら全端末で適用
             （iPhone標準サイズ 390px でも確実に効く） */
      @media (orientation: landscape) {
        #view-score.gl-classic {
          padding: 2px;
        }
        .gl-cls-info-bar,
        .gl-cls-settings {
          display: none;
        }
        /* ★ v3.0.13.2: 横画面で「その半分（前半1-9 or 後半10-18）」が
           一画面に収まるよう、18H用の列幅も minmax で伸縮させる。
           9H用（.gl-cls-scroll-inner--9h）は既存の minmax 指定があるため触らない。
           10列（9ホール＋半分合計列）が画面幅いっぱいに広がる。 */
        .gl-cls-scroll-inner:not(.gl-cls-scroll-inner--9h) {
          grid-template-columns: repeat(9, minmax(44px, 1fr)) minmax(48px, 1.1fr) repeat(9, minmax(44px, 1fr)) minmax(48px, 1.1fr) !important; /* ★ v3.0.40.170b: TOTAL列スリム化（モバイル） */
        }

        /* ★ v3.0.15.20+: 横画面で4人目の行と下部ボタンが画面外に欠ける問題を修正。
           行の高さを横画面時だけ圧縮し、全員＋下部アクションが一画面に収まるようにする。
           スコア行 54→40px / パット行 30→20px / 集計行も同率圧縮。
           縦画面（portrait）には一切影響しない。 */
        .gl-cls-cell--head { height: 26px; font-size: 11px; }
        .gl-cls-cell--par { height: 24px; font-size: 13px; }
        .gl-cls-cell--score { height: 40px; font-size: 18px; }
        .gl-cls-cell--putt { height: 20px; font-size: 11px; }
        .gl-cls-cell--sum { height: 40px; font-size: 16px; }
        .gl-cls-cell--sum-putt { height: 20px; font-size: 10px; }
        .gl-cls-cell--player { font-size: 13px; padding: 2px 4px; }
        .gl-cls-cell--player small { font-size: 9px; margin-top: 1px; }
        .gl-cls-player-badge { font-size: 8px; padding: 0 4px; }
        /* ★ v3.0.15.24: 横画面の「左右の行高ズレ」修正。
           名前セルはJSが高さをインライン指定（自分=84px/他人=54px）しているため、
           上記のスコア行圧縮（40/20px）だけでは左列と中央列で高さがずれていた。
           !important でインライン指定を上書きし、中央列の圧縮後の高さに揃える:
           自分(スコア40+パット20)=60px / 他人(スコア40のみ)=40px */
        .gl-cls-cell--player[data-player-type="self"] { height: 60px !important; }
        .gl-cls-cell--player:not([data-player-type="self"]) { height: 40px !important; }
        /* アバターは横画面では小さく（60px行に収める） */
        .gl-cls-player-avatar { width: 22px !important; height: 22px !important; font-size: 14px !important; }
        /* 下部アクションも横画面ではコンパクトに */
        .gl-cls-actions { margin-top: 4px; }
        .gl-cls-actions button { padding: 7px 4px; font-size: 12px; }
        /* フォーカスボタン（◎）の位置を下部ボタンと干渉しない高さに */
        .gl-cls-focus-btn { bottom: 96px; width: 42px; height: 42px; }
      }

      /* ===== モーダル共通 ===== */
      .gl-cls-modal {
        position: fixed; inset: 0; z-index: 9800;
        display: flex; align-items: center; justify-content: center;
        background: rgba(0,0,0,.5); padding: 20px;
      }
      .gl-cls-modal__body {
        background: #fff; padding: 24px; border-radius: 12px;
        max-width: 400px; width: 100%;
        box-shadow: 0 12px 40px rgba(0,0,0,.3);
      }
      .gl-cls-modal__title {
        font-size: 18px; font-weight: 700; color: #1a5f3f;
        margin: 0 0 12px;
      }
      .gl-cls-modal__kana {
        font-size: 32px; font-weight: 700; text-align: center;
        color: #1a5f3f; padding: 20px 0; letter-spacing: 4px;
      }
      .gl-cls-modal__name-big {
        font-size: 22px; font-weight: 700; text-align: center;
        margin-bottom: 4px;
      }
      .gl-cls-modal input {
        width: 100%; padding: 12px; font-size: 16px;
        border: 2px solid #ddd; border-radius: 6px;
        box-sizing: border-box; margin-bottom: 10px;
      }
      .gl-cls-modal input:focus { border-color: #1a5f3f; outline: none; }
      .gl-cls-modal__actions {
        display: flex; gap: 8px; margin-top: 12px;
      }
      .gl-cls-modal__actions button {
        flex: 1; padding: 12px; border-radius: 6px; border: none;
        font-size: 14px; font-weight: 600; cursor: pointer;
      }
      .gl-cls-modal__btn-ok { background: #1a5f3f; color: #fff; }
      .gl-cls-modal__btn-cancel { background: #f0f0f0; color: #333; }

      /* ===== 時刻ホイールピッカー ===== */
      .gl-cls-timepicker {
        display: flex; justify-content: center; gap: 8px;
        margin: 16px 0;
      }
      .gl-cls-timepicker-col {
        flex: 1; max-width: 90px;
        border: 2px solid #ddd; border-radius: 8px;
        overflow: hidden; background: #fafafa;
      }
      .gl-cls-timepicker-label {
        text-align: center; padding: 4px;
        background: #1a5f3f; color: #fff;
        font-size: 12px; font-weight: 600;
      }
      .gl-cls-timepicker-input {
        width: 100% !important;
        text-align: center;
        font-size: 32px !important;
        font-weight: 700 !important;
        padding: 12px 4px !important;
        border: none !important;
        margin: 0 !important;
        background: transparent !important;
        color: #1a5f3f !important;
        -moz-appearance: textfield;
      }
      .gl-cls-timepicker-input::-webkit-outer-spin-button,
      .gl-cls-timepicker-input::-webkit-inner-spin-button {
        -webkit-appearance: none; margin: 0;
      }

      /* ===== LINE 共有モーダル ===== */
      .gl-cls-line-option {
        display: flex; align-items: flex-start; gap: 10px;
        padding: 12px; border: 2px solid #e0e0e0; border-radius: 8px;
        margin-bottom: 8px; cursor: pointer;
      }
      .gl-cls-line-option.active {
        border-color: #06c755; background: #f0fdf4;
      }
      /* ★ v3.0.40.186: ラジオ丸ボタンの詳細度敗北を解消（実機Webインスペクタで確定）
         【確定した真犯人】modal.css:622 の
           #modal-root .gl-modal__body input { width:100%; border:1px solid #d0d0d0; ... }
           の詳細度が (1,1,1) で、v185のルール (0,2,1) を上書きしていた。
           実機の計算値が width=30px border=1px solid rgb(208,208,208) であることで証明済み。
         【対策】先頭に #modal-root を付けて詳細度を (1,2,1) に引き上げ、確実に勝つ。
           width:100% 上書きを防ぐため display:block 系の影響も打ち消す。
           appearance:none の自前描画は v185 から継続（iOSでも確実に効く）。 */
      #modal-root .gl-cls-line-option input[type="radio"] {
        appearance: none; -webkit-appearance: none;
        width: 24px !important; height: 24px !important;
        padding: 0 !important; margin: 2px 0 0 !important;
        border: 2px solid #b9c4bd !important; border-radius: 50%; background: #fff;
        flex: 0 0 auto; cursor: pointer;
        display: inline-grid; place-content: center;
      }
      #modal-root .gl-cls-line-option input[type="radio"]::before {
        content: ""; width: 12px; height: 12px; border-radius: 50%;
        background: transparent;
      }
      #modal-root .gl-cls-line-option input[type="radio"]:checked { border-color: #06c755 !important; }
      #modal-root .gl-cls-line-option input[type="radio"]:checked::before { background: #06c755; }
      .gl-cls-line-option-body { flex: 1; }
      .gl-cls-line-option-title { font-weight: 700; margin-bottom: 4px; }
      .gl-cls-line-option-desc { font-size: 12px; color: #666; }
    

        .gl-wheel-wrap {
          display: flex; justify-content: center; gap: 16px;
          margin: 20px 0; padding: 0 10px;
        }
        .gl-wheel-col { flex: 1; max-width: 120px; text-align: center; }
        .gl-wheel-label { font-size: 13px; color: #666; margin-bottom: 8px; font-weight: 600; }
        .gl-wheel {
          position: relative; height: 220px; overflow: hidden;
          background: linear-gradient(180deg, #f5f0e1 0%, #fff 50%, #f5f0e1 100%);
          border-radius: 12px; border: 1px solid #e0d5b8;
          -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
        }
        .gl-wheel::before {
          content: ''; position: absolute; left: 8px; right: 8px;
          top: 88px; height: 44px;
          border-top: 2px solid #1a5f3f; border-bottom: 2px solid #1a5f3f;
          pointer-events: none; z-index: 2;
        }
        .gl-wheel-scroller {
          height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory;
          -webkit-overflow-scrolling: touch; scrollbar-width: none;
        }
        .gl-wheel-scroller::-webkit-scrollbar { display: none; }
        .gl-wheel-item {
          height: 44px; display: flex; align-items: center; justify-content: center;
          scroll-snap-align: center;
          font-size: 26px; font-weight: 700; color: #333;
          font-variant-numeric: tabular-nums;
        }
        .gl-wheel-item--active { color: #1a5f3f; font-size: 32px; }
      


/* =======================================================================
   スコア画面上部のインジケータ：数字だけ老眼対策で大きく
   （元 index.html <style> より移管）
   ======================================================================= */
#view-score .gl-cls-info-item__value {
  font-size: 20px;
  font-weight: 700;
}
#view-score .gl-cls-info-item__value--empty {
  font-size: 20px;
}

/* =======================================================================
   v2.8.22: 🔄最新取得ボタンのスピナー（元 index.html <style> より移管）
   ======================================================================= */
.spinner {
  display: inline-block;
  animation: gl-spin 1s linear infinite;
}
@keyframes gl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =======================================================================
   v3.0.1.4: ホスト権限クローズド化
   - 現場テスト時、テスターにラウンド作成UIを見せない
   - ホスト端末では 👑HOST バッジで視覚フィードバック
   ======================================================================= */

/* 汎用の隠しクラス（ホスト非権限時にラウンド作成UI等を隠す） */
.gl-hidden {
  display: none !important;
}

/* ホスト状態バッジ（タイトル横のインライン表示） */
.gl-host-badge {
  display: inline-block;
  padding: 3px 10px;
  margin-left: 8px;
  background: linear-gradient(135deg, #d4af37, #f7c948);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
  letter-spacing: 0.05em;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
}

/* =======================================================================
   ★ v3.0.4.1: アプリ内QRスキャナ (glQrScan)
   フルスクリーンオーバーレイでカメラ映像を表示し、
   中央のフレームにQRをかざすとその場でデコード。Safari 起動を回避。
   ======================================================================= */
.gl-qrscan {
  position: fixed;
  inset: 0;
  /* ★ v3.0.40.700【10/01 社長の実機】カメラの ✕ が上の電光掲示板（#gl-ticker z-index 99990・止まって見せる時はタップを受ける）
     の下に入って押せなかった。カメラはいちばん上（順位表 100020・つなぐ画面 100040 よりも上）に出す。 */
  z-index: 100060;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.gl-qrscan__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.gl-qrscan__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.gl-qrscan__canvas {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

/* 中央QR枠 + 四隅コーナー装飾 */
.gl-qrscan__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
}
.gl-qrscan__corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #4ade80;
  border-style: solid;
  border-width: 0;
}
.gl-qrscan__corner--tl { top: -2px; left: -2px;  border-top-width: 4px; border-left-width: 4px;  border-top-left-radius: 12px; }
.gl-qrscan__corner--tr { top: -2px; right: -2px; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 12px; }
.gl-qrscan__corner--bl { bottom: -2px; left: -2px;  border-bottom-width: 4px; border-left-width: 4px;  border-bottom-left-radius: 12px; }
.gl-qrscan__corner--br { bottom: -2px; right: -2px; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 12px; }

.gl-qrscan__topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: max(env(safe-area-inset-top, 0px), 12px) 16px 12px; /* ★ v700: ノッチの無い機種でも上に余白 */
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
  z-index: 2;
}
.gl-qrscan__close {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gl-qrscan__close:active { background: rgba(255,255,255,0.3); }
.gl-qrscan__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.gl-qrscan__bottombar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px calc(env(safe-area-inset-bottom, 12px) + 14px);
  background: linear-gradient(0deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.gl-qrscan__status {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 8px 14px;
  background: rgba(0,0,0,0.55);
  border-radius: 20px;
  max-width: 92%;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.gl-qrscan__status--error {
  background: rgba(211,47,47,0.85);
}
.gl-qrscan__manual {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gl-qrscan__manual:active { background: rgba(255,255,255,0.3); }
/* ★ v3.0.40.700: 下にも大きな「✕ 閉じる」（親指で届く・上に何がかぶっても押せる） */
.gl-qrscan__close2 {
  min-width: 200px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #1a2b22;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  -webkit-tap-highlight-color: transparent;
}
.gl-qrscan__close2:active { transform: scale(.97); }

/* =======================================================================
   ★ v3.0.4.2: ホーム画面 3行2列均等レイアウト（6マス）
   全ボタン同サイズ。ラウンド開始は緑グラデで色による優先度表現。
   縦幅を短縮し、下部の広告枠に十分な余裕を確保。
   ======================================================================= */
.gl-home__menu--v3 {
  gap: 8px;
}
.gl-home__menu--v3 .gl-home__btn--compact {
  padding: 12px 10px;
  gap: 4px;
  min-height: 78px;
}
.gl-home__menu--v3 .gl-home__btn--compact .gl-home__btn-icon {
  font-size: 24px;
}
.gl-home__menu--v3 .gl-home__btn--compact .gl-home__btn-label {
  font-size: 13px;
}
.gl-home__menu--v3 .gl-home__btn--compact .gl-home__btn-sub {
  font-size: 10px;
}

/* =======================================================================
   ★ v3.0.4.2: つながりページ (glConnectionsUI)
   3階層（マスタープロ／フォロー中コーチ／ゴルフ仲間）を可視化。
   Phase 3-B での機能実装までのプレースホルダーとしても機能。
   ======================================================================= */
#view-connections {
  display: none;
}
#view-connections.show {
  display: block;
}
.gl-conn {
  max-width: 640px;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 12px) 16px calc(env(safe-area-inset-bottom, 12px) + 24px);
  font-family: inherit;
  color: #222;
}
.gl-conn__header {
  margin-bottom: 18px;
}
.gl-conn__back {
  background: none;
  border: none;
  color: #1a5f3f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}
.gl-conn__title {
  font-size: 22px;
  font-weight: 800;
  color: #1a5f3f;
  margin: 6px 0 4px;
  letter-spacing: 0.02em;
}
.gl-conn__lead {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
}
.gl-conn__section {
  margin-bottom: 20px;
}
.gl-conn__section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.gl-conn__section-icon {
  font-size: 20px;
  line-height: 1;
}
.gl-conn__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a5f3f;
}
.gl-conn__section-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: linear-gradient(135deg, #d4af37, #f7c948);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.gl-conn__section-count {
  margin-left: auto;
  font-size: 12px;
  color: #888;
  font-weight: 600;
}
.gl-conn__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.gl-conn__card--empty {
  text-align: center;
  padding: 20px 14px;
  background: linear-gradient(180deg, #faf6ec, #fff);
  border-style: dashed;
  border-color: rgba(26, 95, 63, 0.18);
}
.gl-conn__card--master.gl-conn__section {
  /* not used, kept for future */
}
.gl-conn__section--master .gl-conn__card--empty {
  background: linear-gradient(180deg, #fff8e6, #fff);
  border-color: rgba(212, 175, 55, 0.35);
}
.gl-conn__card-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}
.gl-conn__card-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}
.gl-conn__card-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}
.gl-conn__card-hint {
  display: inline-block;
  font-size: 11px;
  color: #1a5f3f;
  background: rgba(26, 95, 63, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.gl-conn__roadmap {
  margin-top: 24px;
  padding: 14px 16px;
  background: #f7f7f4;
  border-radius: 12px;
  border-left: 3px solid #1a5f3f;
}
.gl-conn__roadmap-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a5f3f;
  margin-bottom: 8px;
}
.gl-conn__roadmap-list {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 12px;
  color: #444;
  line-height: 1.8;
}
.gl-conn__roadmap-list li b {
  color: #1a5f3f;
}
.gl-conn__roadmap-note {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

/* =======================================================================
   ★ v3.0.4.4: マイページ プロフィール アコーディオン
   「プロフィールを編集」ボタン＋登録情報カードを1つのアコーディオンに統合。
   デフォルトは折りたたみ、状態を localStorage で永続化。
   マイページをスッキリさせ、Phase 3-B のプロ占有エリアを際立たせる下地。
   ======================================================================= */
.gl-mypage__accordion {
  margin: 12px 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.gl-mypage__accordion-toggle {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  color: #222;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.04);
}
.gl-mypage__accordion-toggle:active {
  background: rgba(0, 0, 0, 0.03);
}
.gl-mypage__accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1a5f3f;
  min-width: 0;
  flex: 1 1 auto;
}
.gl-mypage__accordion-icon {
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}
.gl-mypage__accordion-summary {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.gl-mypage__accordion-arrow {
  font-size: 12px;
  color: #6b7280;
  flex: 0 0 auto;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.gl-mypage__accordion-body {
  display: none;
  padding: 4px 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.gl-mypage__accordion--open .gl-mypage__accordion-body {
  display: block;
}

/* ============================================
   v3.0.4.5: Tutorial (はじめてガイド) 6枚スライド
   ============================================ */
.gl-tut__wrap {
  position: relative;
  padding: 8px 4px 4px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.gl-tut__skip {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 13px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 2;
}
.gl-tut__skip:active {
  color: #0a5c36;
}
.gl-tut__counter {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 12px;
  color: #9ca3af;
  padding: 6px 4px;
}
.gl-tut__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px 20px;
}
.gl-tut__emoji {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 20px;
  animation: gl-tut-pop 0.4s ease-out;
}
@keyframes gl-tut-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.gl-tut__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: bold;
  color: #0a5c36;
}
.gl-tut__desc {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.gl-tut__hint {
  margin: 8px 12px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 10px;
  font-size: 12px;
  color: #166534;
  line-height: 1.5;
  border-left: 3px solid #0a5c36;
  text-align: left;
}
.gl-tut__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px 0 12px;
}
.gl-tut__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.2s ease;
}
.gl-tut__dot--active {
  background: #0a5c36;
  transform: scale(1.3);
}
.gl-tut__actions {
  display: flex;
  gap: 10px;
  padding: 8px 4px 4px;
}
.gl-tut__btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gl-tut__btn--back {
  background: #f3f4f6;
  color: #6b7280;
}
.gl-tut__btn--back:active {
  background: #e5e7eb;
}
.gl-tut__btn--next {
  background: linear-gradient(135deg, #0a5c36 0%, #10804a 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(10, 92, 54, 0.3);
}
.gl-tut__btn--next:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(10, 92, 54, 0.3);
}
.gl-tut__btn--hidden {
  visibility: hidden;
}

/* マイページ「使い方ガイド」再表示ボタン */
.gl-mypage__tutorial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin: 12px 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fbbf24;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gl-mypage__tutorial-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(146, 64, 14, 0.2);
}

/* ============================================
   v3.0.4.6: Connections ライト感覚リフレッシュ
   「今日のヒント」セクション
   ============================================ */
.gl-conn__hint {
  margin: 20px 12px 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 14px;
  border: 1px solid #fbbf24;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}
.gl-conn__hint-title {
  font-size: 15px;
  font-weight: bold;
  color: #92400e;
  margin-bottom: 10px;
}
.gl-conn__hint-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.gl-conn__hint-list li {
  padding: 6px 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
}
.gl-conn__hint-cta {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  color: #92400e;
  font-weight: bold;
  line-height: 1.6;
}

/* ============================================
   v3.0.4.7: Connections Coming Soon デザイン
   ポジティブな「もうすぐこんな機能が！」演出
   ============================================ */
.gl-conn__section--coming {
  position: relative;
  background: linear-gradient(135deg, rgba(250, 246, 236, 0.6) 0%, rgba(240, 234, 214, 0.5) 100%);
  overflow: hidden;
}
.gl-conn__section--coming::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(26, 95, 63, 0.03) 10px,
      rgba(26, 95, 63, 0.03) 20px
    );
  pointer-events: none;
  z-index: 0;
}
.gl-conn__section--coming > * {
  position: relative;
  z-index: 1;
}
.gl-conn__coming-badge {
  display: inline-block;
  margin-left: auto;
  padding: 3px 10px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
  animation: gl-conn-pulse 2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes gl-conn-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.9; }
}
.gl-conn__inline-coming {
  margin-top: 10px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  font-size: 11px;
  color: #92400e;
  text-align: center;
  border: 1px dashed #fbbf24;
}

/* ============================================
   v3.0.4.7: Tutorial CTA ボタン
   Android ネイティブインストールプロンプト連動
   ============================================ */
.gl-tut__cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0a5c36 0%, #10804a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(10, 92, 54, 0.35);
  transition: all 0.15s ease;
  animation: gl-tut-cta-glow 2.5s ease-in-out infinite;
}
.gl-tut__cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(10, 92, 54, 0.3);
}
@keyframes gl-tut-cta-glow {
  0%, 100% { box-shadow: 0 3px 10px rgba(10, 92, 54, 0.35); }
  50%      { box-shadow: 0 3px 18px rgba(10, 92, 54, 0.55); }
}

/* ============================================================
 * v3.0.4.12: スコアカードに「➕ プレイヤー追加」行 + 代理タグ
 * ============================================================ */
.gl-score__add-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.gl-score__add-row:hover,
.gl-score__add-row:active {
  background: #e8f5e9;
}
.gl-score__add-cell {
  text-align: center;
  padding: 14px 10px;
  color: #2e7d32;
  font-weight: 600;
  border: 2px dashed #a5d6a7;
  background: #f1f8e9;
  border-radius: 8px;
  font-size: 15px;
  user-select: none;
}
.gl-score__add-cell:active {
  background: #dcedc8;
}
.gl-proxy-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  background: #fff3e0;
  color: #e65100;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.gl-score__cell--proxy {
  background: #fffde7 !important;
  border-color: #ffe082 !important;
}

/* ============================================================
 * v3.0.4.16: ホームボタンの Coming Soon バッジ
 * ============================================================ */
.gl-home__btn--coming {
  position: relative;
  opacity: 0.85;
}
.gl-home__coming-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  background: #f59e0b;
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.4);
}

/* ============================================================
 * v3.0.4.17: 配布用QRモーダルの LINE ボタン
 * ============================================================ */
.gl-distqr-btn--line {
  background: #06C755;
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(6, 199, 85, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gl-distqr-btn--line:hover,
.gl-distqr-btn--line:active {
  background: #05B34C;
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(6, 199, 85, 0.4);
}
.gl-distqr-actions--close {
  margin-top: 8px;
}

/* ============================================================
 * v3.0.4.18: 匿名モード関連スタイル
 * ============================================================ */

/* 匿名オンボーディング画面 */
.gl-anon-onboard {
  padding: 20px 16px;
  text-align: center;
}
.gl-anon-onboard__icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.gl-anon-onboard__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a5f3f;
  margin-bottom: 8px;
}
.gl-anon-onboard__lead {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}
.gl-anon-onboard__form {
  margin-bottom: 20px;
  text-align: left;
}
.gl-anon-onboard__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.gl-anon-onboard__input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #a5d6a7;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fafffb;
}
.gl-anon-onboard__input:focus {
  outline: none;
  border-color: #2e7d32;
  background: #fff;
}
.gl-anon-onboard__hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}
.gl-anon-onboard__actions {
  display: flex;
  justify-content: center;
}
.gl-anon-onboard__btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-width: 200px;
}
.gl-anon-onboard__btn--primary {
  background: linear-gradient(135deg, #2e7d32, #1a5f3f);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 95, 63, 0.3);
}
.gl-anon-onboard__btn--primary:active {
  transform: translateY(1px);
}

/* 匿名モード常設バナー */
.gl-anon-banner {
  background: linear-gradient(135deg, #d4f1c5, #e8f5e0);
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(165, 214, 167, 0.3);
}
.gl-anon-banner:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(165, 214, 167, 0.4);
}
.gl-anon-banner__icon {
  font-size: 20px;
  margin-right: 8px;
}
.gl-anon-banner__text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
}
.gl-anon-banner__arrow {
  font-size: 11px;
  color: #558b2f;
  opacity: 0.8;
  flex: 0 0 auto;
}
.gl-anon-banner__note {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #558b2f;
  margin-top: 2px;
}

/* ★ v3.0.4.30: 「ホーム画面にアイコンを設置」常駐ボタン（v3.0.14.1以降: 本登録後のみ表示）
   バナー直下に目立つ形で配置。「インストール」という語は使わない。
   ★ v3.0.15.0: 上マージンを -4px（ベータバナー吸着の旧設計）から 12px へ修正。
      2枚のバナーが密着して見える問題を解消。 */
.gl-anon-homeadd {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 12px 16px 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a5f3f, #2e7d32);
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(26, 95, 63, 0.35);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gl-anon-homeadd:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(26, 95, 63, 0.4);
}
.gl-anon-homeadd__icon {
  font-size: 24px;
  flex: 0 0 auto;
}
.gl-anon-homeadd__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gl-anon-homeadd__text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.gl-anon-homeadd__sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

/* お試しモード使い方モーダル */
.gl-anon-guide {
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}
.gl-anon-guide__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a5f3f;
  margin-bottom: 12px;
  text-align: center;
}
.gl-anon-guide__welcome {
  background: #f1f8e9;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #33691e;
  margin-bottom: 16px;
  text-align: center;
}
.gl-anon-guide__section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}
.gl-anon-guide__section:last-child {
  border-bottom: none;
}
.gl-anon-guide__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a5f3f;
  margin-bottom: 8px;
}
.gl-anon-guide__list {
  padding-left: 20px;
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}
.gl-anon-guide__cta {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.gl-anon-guide__cta--home {
  background: #f59e0b;
  color: #fff;
}
.gl-anon-guide__cta--login {
  background: #4285f4;
  color: #fff;
}
.gl-anon-guide__cta--close {
  background: #e5e7eb;
  color: #374151;
}
.gl-anon-guide__warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.6;
}

/* 保存ロック時の3択誘導モーダル */
.gl-anon-save {
  padding: 20px 16px;
  text-align: center;
}
.gl-anon-save__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a5f3f;
  margin-bottom: 8px;
}
.gl-anon-save__lead {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
  line-height: 1.6;
}
.gl-anon-save__step {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: left;
}
.gl-anon-save__step-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a5f3f;
  margin-bottom: 4px;
}
.gl-anon-save__step-desc {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
  line-height: 1.5;
}
.gl-anon-save__btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gl-anon-save__btn--home {
  background: #f59e0b;
  color: #fff;
}
.gl-anon-save__btn--login {
  background: #4285f4;
  color: #fff;
}
.gl-anon-save__btn--later {
  background: transparent;
  border: 2px dashed #a5d6a7;
  color: #2e7d32;
  margin-top: 8px;
}

/* ★ v3.0.4.37: 横スワイプ入力行（打数 1〜18 / パット 0〜10）
   シンプル・クラシックの打数と全モードのパットで共通使用。
   - overflow-x: auto で指先スワイプ
   - ボタンは縮まない（flex: 0 0 auto）
   - 選択中は濃緑反転、パーのボタンは金色枠で目印 */
.gl-cls-swipe-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 12px;
  /* ★ v3.0.21.0: scroll-behavior:smooth を削除（打数/パット行の初動不良を根治）
     _centerSwipe の scrollLeft 直接代入がアニメーション化して指と衝突していた。 */
}
.gl-cls-swipe-row::-webkit-scrollbar { height: 4px; }
.gl-cls-swipe-row::-webkit-scrollbar-thumb { background: #c8e0d0; border-radius: 2px; }
.gl-cls-swipe-btn {
  flex: 0 0 auto;
  min-width: 48px;
  height: 56px;
  border: 2px solid #c8e0d0;
  border-radius: 10px;
  background: #fff;
  color: #1a5f3f;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}
.gl-cls-swipe-btn:active { background: #e8f5e9; }
.gl-cls-swipe-btn--par {
  border-color: #c9a959;
  background: #fffdf0;
}
.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--par.gl-cls-swipe-btn--selected {
  background: #1a5f3f;
  border-color: #1a5f3f;
  color: #fff;
}

/* ★ v3.0.4.38: スワイプボタンのカラフル化＋ゴルフ用語ラベル
   数字を上に大きく、ラベルを下に小さく（ボタン内に収まる2段構成）
   色はゴルフの慣例に準拠: アルバ=金 / イーグル=赤 / バーディ=ピンク
   パー=黄(金枠) / ボギー=青 / ダボ=濃青 / トリプル=さらに濃く */
.gl-cls-swipe-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  gap: 1px;
}
.gl-cls-swipe-btn__num {
  font-size: 20px;
  font-weight: 800;
}
.gl-cls-swipe-btn__lbl {
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.85;
}
.gl-cls-swipe-btn--alba   { background: #fff3d6; border-color: #d4af37; color: #8a6d1a; }
.gl-cls-swipe-btn--eagle  { background: #ffe1e1; border-color: #e57373; color: #b71c1c; }
.gl-cls-swipe-btn--birdie { background: #ffeaf3; border-color: #f48fb1; color: #ad1457; }
.gl-cls-swipe-btn--par-label { background: #fffdf0; border-color: #c9a959; color: #7a6520; }
.gl-cls-swipe-btn--bogey  { background: #e8f1fb; border-color: #90caf9; color: #1565c0; }
.gl-cls-swipe-btn--double { background: #e3eaf6; border-color: #5c8fd6; color: #0d47a1; }
.gl-cls-swipe-btn--triple { background: #dde4f0; border-color: #3f63a8; color: #102a5c; }

/* 選択中は色に関係なく濃緑反転（既存仕様を維持） */
.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--alba.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--eagle.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--birdie.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--par-label.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--bogey.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--double.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--triple.gl-cls-swipe-btn--selected {
  background: #1a5f3f;
  border-color: #1a5f3f;
  color: #fff;
}
.gl-cls-swipe-btn--selected .gl-cls-swipe-btn__lbl { opacity: 1; }

/* ★ v3.0.4.42: ホール別平均行（Par行の下・小さい数字）
   - Par行(28px想定)より一段小さい控えめな表示
   - 色は薄いグレーで「参考情報」感を出す
   - 合計列（OUT/IN/TOTAL）は少しだけ強調 */
.gl-cls-cell--avg {
  background: #faf8f2;
  color: #9a8a5a;
  font-size: 11px;
  font-weight: 600;
  height: 20px;
  padding: 1px 2px;
}
.gl-cls-cell--avg.gl-cls-cell--current {
  background: #fff8e1;
  color: #7a6520;
}
.gl-cls-cell--avg-sum {
  font-weight: 800;
  color: #7a6520;
}

/* ★ v3.0.15.19+ 改修: 代理入力ジャンプボタンのCSSは廃止（CEO最終仕様）。
   対象者切替はミニスコア表の行タップに一本化されたため、関連スタイルは削除。 */


/* ★ v3.0.5.7: 9Hラウンド用グリッド（1-9＋OUT の10列。18Hレイアウトは不変）
   ★ v3.0.5.9: 横画面（ランドスケープ）で列が左に詰まり OUT-TOTAL 間に
     大きな空白ができる問題を修正。minmax で各列が画面幅に応じて伸縮するようにした。 */
.gl-cls-scroll-inner--9h {
  grid-template-columns: repeat(9, minmax(52px, 1fr)) minmax(54px, 1.2fr) !important; /* ★ v3.0.40.170b: TOTAL列スリム化（9H） */
  width: 100%;
}

/* ★ v3.0.7.0: つながりページ - 友達登録UI */
.gl-conn__actions {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  flex-wrap: wrap;
}
.gl-conn__action {
  flex: 1;
  min-width: 140px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d4c8a8;
  background: #fff;
  color: #1a5f3f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gl-conn__action--show {
  background: #eef6ee;
  border-color: #b9dcc0;
}
.gl-conn__action--scan {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}
.gl-conn__action:active {
  transform: scale(0.98);
}

.gl-conn__friend-list {
  padding: 0 12px 12px;
}
.gl-conn__friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8dfc7;
  border-radius: 10px;
  margin-bottom: 6px;
}
.gl-conn__friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef6ee;
  color: #1a5f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.gl-conn__friend-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}
.gl-conn__friend-remove {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ★ v3.0.40.488: ゴルフ友達フォルダ分け（色分け・エイリアス方式） */
.gl-conn__friend-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gl-conn__friend-main .gl-conn__friend-name {
  flex: none;
}
.gl-conn__friend-folder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gl-conn__folder-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.6;
  white-space: nowrap;
}
.gl-conn__folder-group {
  margin-bottom: 10px;
}
.gl-conn__folder-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f4f8f4;
  border: 1px solid #dfe8df;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.gl-conn__folder-summary::-webkit-details-marker { display: none; }
.gl-conn__folder-summary::after {
  content: '\25BE';
  margin-left: auto;
  color: #8a978a;
}
.gl-conn__folder-group:not([open]) .gl-conn__folder-summary::after {
  content: '\25B8';
}
.gl-conn__folder-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.gl-conn__folder-name {
  font-size: 13px;
  font-weight: 700;
  color: #33463a;
}
.gl-conn__folder-count {
  margin-left: auto;
  font-size: 11px;
  color: #8a978a;
  font-weight: 600;
}
.gl-conn__folder-members {
  padding: 8px 0 0;
}
.gl-conn__folder-empty {
  padding: 12px;
  font-size: 12px;
  color: #9aa5a0;
  text-align: center;
}
.gl-conn__folder-group--all .gl-conn__folder-summary {
  background: #fafafa;
}

/* QRコード表示モーダル */
.gl-conn__qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gl-conn__qr-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  /* ★ v3.0.15.33: 文面編集枠の追加でコンテンツが増えたため、
     画面高を超える場合はモーダル内スクロールで全要素に届くようにする */
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gl-conn__qr-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a5f3f;
  margin-bottom: 6px;
}
.gl-conn__qr-sub {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}
.gl-conn__qr-canvas {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.gl-conn__qr-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 8px 0 16px;
}
.gl-conn__qr-close {
  width: 100%;
  padding: 12px;
  background: #1a5f3f;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ★ v3.0.7.2: 公開設定UI（つながりページ内） */
.gl-conn__setting-body {
  padding: 8px 12px 14px;
}
.gl-conn__setting-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a5f3f;
  margin-bottom: 6px;
}
.gl-conn__setting-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gl-conn__setting-btn {
  flex: 1;
  min-width: 90px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gl-conn__setting-btn.is-active {
  background: #1a5f3f;
  color: #fff;
  border-color: #1a5f3f;
}
.gl-conn__setting-hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.5;
}

/* ライブ中の友達リスト */
.gl-conn__section--live {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  margin: 8px 12px;
}
.gl-conn__live-list {
  padding: 0 12px 12px;
}
.gl-conn__live-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
}
.gl-conn__live-item:active {
  background: #f0fdf4;
}
.gl-conn__live-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.gl-conn__live-body {
  flex: 1;
  min-width: 0;
}
.gl-conn__live-name {
  font-size: 14px;
  font-weight: 700;
  color: #065f46;
}
.gl-conn__live-course {
  font-size: 12px;
  color: #047857;
  margin-top: 2px;
}
.gl-conn__live-chevron {
  color: #9ca3af;
  font-size: 20px;
}

/* ライブスコアスナップショットモーダル */
.gl-conn__live-modal {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.gl-conn__live-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 12px;
  text-align: center;
}
.gl-conn__live-course-label {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  padding: 10px;
  background: #f0fdf4;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 12px;
}
.gl-conn__live-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  background: #1a5f3f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px 8px 0 0;
}
.gl-conn__live-rows {
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
}
.gl-conn__live-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}
.gl-conn__live-row:last-child {
  border-bottom: none;
}
.gl-conn__live-row-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.gl-conn__live-row-progress {
  font-size: 12px;
  color: #6b7280;
}
.gl-conn__live-row-total {
  font-size: 16px;
  font-weight: 800;
  color: #1a5f3f;
  text-align: right;
}
.gl-conn__live-note {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
}

/* ★ v3.0.7.4: β版バナー（ホーム常時表示） */
.gl-beta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #e8a4b8;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}
.gl-beta-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 12px 4px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff8e6 0%, #fdf3d8 100%);
  border: 1px solid #e8d9a8;
  border-radius: 10px;
  cursor: pointer;
}
.gl-beta-banner__icon {
  font-size: 16px;
  line-height: 1.4;
}
.gl-beta-banner__text {
  font-size: 12px;
  font-weight: 600;
  color: #6b5a1e;
  line-height: 1.5;
}
/* ★ v3.0.15.0: β版バナーの閉じるボタン */
.gl-beta-banner__close {
  flex: 0 0 auto;
  align-self: flex-start;
  margin: -2px -4px 0 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  font-size: 14px;
  line-height: 1;
  color: #a08b4d;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.gl-beta-banner__close:active {
  background: rgba(0, 0, 0, 0.08);
}
.gl-beta-banner__note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: #8a7a3a;
}

/* ★ v3.0.7.4: 応援スタンプ UI（ライブ観戦モーダル内） */
.gl-conn__stamp-row {
  display: flex;
  gap: 6px;
  padding: 4px 12px 8px;
  justify-content: flex-end;
}
.gl-conn__stamp-btn {
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  background: #f8f7f2;
  border: 1px solid #e5e2d8;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.gl-conn__stamp-btn:active {
  transform: scale(1.15);
  background: #eef7ee;
}
.gl-conn__stamp-btn--sent {
  background: #dff3e3;
  border-color: #2e8b57;
}

.gl-conn__stamp-summary {
  margin: 12px 10px 0;
  padding: 10px 12px;
  background: #fdfaf3;
  border: 1px solid #ece5d0;
  border-radius: 10px;
}
.gl-conn__stamp-summary-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b5a1e;
  margin-bottom: 8px;
}
.gl-conn__stamp-summary-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gl-conn__stamp-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 17px;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #e5e2d8;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.55;
}
.gl-conn__stamp-count--active {
  opacity: 1;
  border-color: #c9a959;
  background: #fffdf5;
}
.gl-conn__stamp-count-num {
  font-size: 13px;
  font-weight: 700;
  color: #444;
}
.gl-conn__stamp-summary-note {
  margin-top: 6px;
  font-size: 11px;
  color: #9a8c5a;
}
.gl-conn__stamp-senders {
  margin: 10px 0 14px;
}
.gl-conn__stamp-sender {
  font-size: 15px;
  color: #333;
  padding: 8px 4px;
  border-bottom: 1px solid #f0ede2;
}
.gl-conn__stamp-sender:last-child {
  border-bottom: none;
}
.gl-conn__stamp-sender-hole {
  font-size: 12px;
  color: #9ca3af;
}

/* ★ v3.0.7.4: 友達リストのLINE連携ボタン */
.gl-conn__friend-line {
  font-size: 17px;
  line-height: 1;
  padding: 6px 10px;
  background: #e8f7ea;
  border: 1px solid #06c755;
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 6px;
  transition: transform 0.1s, background 0.15s;
}
/* ★ v3.0.15.16: 新規友達（7日以内）のLINEボタンを目立たせる。
   「はじめまして」の挨拶をワンタップで送れる即効性を重視。
   7日経過後は⋯メニューに収納され、このボタンは表示されない。 */
.gl-conn__friend-line--new {
  background: #06c755;
  border-color: #06c755;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(6,199,85,.35);
  padding: 7px 14px;
  font-size: 13px;
}
.gl-conn__friend-line--new::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
  /* LINE風の吹き出しを簡易描画 */
  background: #fff;
  border-radius: 3px 3px 3px 0;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 60% 75%, 45% 100%, 45% 75%, 0 75%);
}
.gl-conn__friend-line--new:active {
  background: #05b34c;
  transform: scale(.97);
}
.gl-conn__friend-line--old-hidden {
  display: none;
}
.gl-conn__friend-line:active {
  transform: scale(1.12);
  background: #d3f0d9;
}

/* ★ v3.0.7.4: 友達アイコンのラウンド中バッジ（🟢 脈動） */
.gl-conn__friend-avatar {
  position: relative;
}
.gl-conn__friend-live-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  font-size: 0;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  animation: gl-live-pulse 1.6s ease-in-out infinite;
}
@keyframes gl-live-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12); }
}

/* ★ v3.0.7.4: ホーム画面「つながり」ボタンのライブ中数字バッジ */
.gl-home__btn-icon--badge-anchor {
  position: relative;
  display: inline-block;
}
.gl-home__live-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border: 2px solid #fff;
  border-radius: 999px;
  box-sizing: border-box;
}

/* ★ v3.0.7.4: スタンプ送信者一覧のスクロール表示 */
.gl-conn__stamp-senders--scroll {
  max-height: 40vh;
  max-height: 40dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gl-conn__stamp-sender-count {
  font-size: 13px;
  font-weight: 700;
  color: #c9a959;
  margin-left: 4px;
}

/* ★ v3.0.7.4: スコア画面上部1行集約トップバー
   時計+ロッカー+モード切替を1行に集約し、
   浮いた1行分でスタンプ集計バーを追加しても高さを維持する */
.gl-cls-topbar {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 6px;
}
.gl-cls-topbar .gl-cls-info-bar {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding: 6px 8px;
}
.gl-cls-topbar .gl-cls-info-item {
  padding: 6px 6px; /* タップ領域40px確保 */
  font-size: 12px;
  gap: 4px;
  min-width: 0;
}
.gl-cls-topbar .gl-cls-info-item__icon { font-size: 14px; }
.gl-cls-topbar .gl-cls-info-item__value { font-size: 13px; }
.gl-cls-topbar__toggle {
  flex: 0 0 auto;
  min-width: 44px; /* タップ領域確保 */
  min-height: 40px;
  padding: 6px 10px;
  background: #f0e8d0;
  border: 1px solid #d4c8a8;
  border-radius: 8px;
}
.gl-cls-topbar__toggle .gl-cls-settings-current { margin-left: 4px; }
/* 集約版ではアコーディオン本体は枠なし（トグルはトップバー内） */
.gl-cls-settings--topbar {
  margin-bottom: 6px;
  background: transparent;
  border: none;
  overflow: visible;
}
.gl-cls-settings--topbar .gl-cls-settings-body {
  border-top: none;
  background: #f0e8d0;
  border: 1px solid #d4c8a8;
  border-radius: 8px;
  padding: 8px;
}

/* ★ v3.0.7.4: スコアカード直下のスタンプ集計バー（1行のみ） */
/* ★ v3.0.40.20: 3行構成（観戦者/スタンプ/イベント告知）のため縦積みに変更。
   従来の display:flex(横並び) だと分けた行が横に並んでしまい、
   実機で「2行になってない」不具合となったため flex-direction:column に矯正。 */
.gl-cls-stampbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 4px 10px;
  margin: 4px 0 6px;
  background: #fdfaf3;
  border: 1px solid #ece5d0;
  border-radius: 8px;
  overflow-x: auto;
}
.gl-cls-stampbar__lead {
  font-size: 14px;
  flex: 0 0 auto;
}
.gl-cls-stampbar__item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #e5e2d8;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.55;
  flex: 0 0 auto;
}
.gl-cls-stampbar__item--active {
  opacity: 1;
  border-color: #c9a959;
  background: #fffdf5;
}
.gl-cls-stampbar__num {
  font-size: 12px;
  font-weight: 700;
  color: #444;
}

/* ============================================================
   ★ v3.0.8.2: ライブスコア ホール別スコアカード（横スクロール）
   実機テスト指摘対応: 合計のみ表示 → ホール別表示へ改修。
   名前列は左固定（position: sticky）、ホール列は横スクロール。
   ============================================================ */
.gl-conn__lc {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  background: #fff;
}
.gl-conn__lc-row {
  display: flex;
  min-width: max-content;
}
.gl-conn__lc-row--head {
  background: #1a5f3f;
}
.gl-conn__lc-row--me .gl-conn__lc-cell--name {
  font-weight: 800;
}
.gl-conn__lc-row + .gl-conn__lc-row {
  border-top: 1px solid #f3f4f6;
}
.gl-conn__lc-cell {
  flex: 0 0 28px;
  width: 28px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #1f2937;
  border-right: 1px solid #f3f4f6;
  box-sizing: border-box;
}
.gl-conn__lc-cell--head {
  background: #1a5f3f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-right-color: rgba(255,255,255,0.15);
}
.gl-conn__lc-cell--empty {
  color: #d1d5db;
  font-weight: 400;
}
.gl-conn__lc-cell--name {
  flex: 0 0 76px;
  width: 76px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  box-shadow: 1px 0 0 #e5e7eb;
  box-sizing: border-box;
}
.gl-conn__lc-row--head .gl-conn__lc-cell--name {
  background: #1a5f3f;
  color: #fff;
  box-shadow: 1px 0 0 rgba(255,255,255,0.15);
}
.gl-conn__lc-row--me .gl-conn__lc-cell--name {
  background: #f0fdf4;
}
.gl-conn__lc-cell--total {
  flex: 0 0 40px;
  width: 40px;
  font-weight: 800;
  background: #fefce8;
  color: #065f46;
}
.gl-conn__lc-cell--total.gl-conn__lc-cell--head {
  background: #1a5f3f;
  color: #fff;
}

/* スタンプ送信セクション（送信先ごとに1行） */
.gl-conn__stamp-sec {
  margin-bottom: 12px;
}
.gl-conn__stamp-sec-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.gl-conn__stamp-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.gl-conn__stamp-line + .gl-conn__stamp-line {
  border-top: 1px dashed #f3f4f6;
}
.gl-conn__stamp-line-name {
  flex: 0 0 72px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   ★ v3.0.8.3: ライブスコア表示切替 + Par行 + スタンプ整理
   ============================================================ */
/* 表示切替トグル */
.gl-conn__lc-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.gl-conn__lc-toggle-btn {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}
.gl-conn__lc-toggle-btn:active { background: #dcfce7; }
.gl-conn__lc-toggle-note {
  font-size: 10px;
  color: #9ca3af;
}
/* Par行（規定値） */
.gl-conn__lc-cell--par {
  background: #f8fafc;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}
.gl-conn__lc-row--par .gl-conn__lc-cell--name {
  background: #f8fafc;
  color: #6b7280;
  font-size: 11px;
}
/* スタンプ送信行: 左寄せ・密着（右端欠け解消） */
.gl-conn__stamp-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.gl-conn__stamp-line .gl-conn__stamp-row {
  display: flex;
  gap: 4px;
  padding: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow: visible;
}
.gl-conn__stamp-line .gl-conn__stamp-btn {
  font-size: 16px;
  padding: 5px 6px;
  flex: 0 0 auto;
}
.gl-conn__stamp-line-name {
  flex: 0 0 56px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 集計バー: ラベル付き・空状態 */
.gl-conn__stamp-count-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 1px;
}
.gl-conn__stamp-count {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}
.gl-conn__stamp-summary-empty {
  font-size: 12px;
  color: #9ca3af;
  padding: 6px 0;
}

/* classic.js 集計バー: 空状態・返事ボタン (v3.0.8.3) */
.gl-cls-stampbar__empty {
  font-size: 11px;
  color: #9ca3af;
  padding: 2px 4px;
}
.gl-cls-stampbar__reply {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #065f46;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.gl-cls-stampbar__reply:active { background: #dcfce7; }

/* ============================================================
   ★ v3.0.8.4: 観戦側「あなたが送った」+ 返事（双方向）表示
   ============================================================ */
.gl-conn__stamp-replies {
  margin-top: 8px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 8px;
}
.gl-conn__stamp-replies-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}
.gl-conn__stamp-reply-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
}
.gl-conn__stamp-reply-name {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.gl-conn__stamp-reply-msg {
  font-size: 13px;
  color: #1f2937;
}

/* ============================================================
   ★ v3.0.8.5: 集計バーをスコアテーブル直下に密着＋返事ボタン押下性確保
   ============================================================ */
.gl-cls-stampbar {
  margin: 0;                  /* wrap内でテーブル直下に密着 */
  border-radius: 0 0 8px 8px; /* テーブルwrapの下辺に馴染ませる */
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 5px 10px;
  position: relative;
  z-index: 5;                 /* 🎯フォーカスボタンより手前に（重なり解消） */
  background: #fdfaf3;
  /* ★ v3.0.40.20: 後勝ちの本ブロックでも縦積みを維持（2箇所定義のため両方に明記） */
  flex-direction: column;
  align-items: stretch;
}
.gl-cls-stampbar__reply {
  position: relative;
  z-index: 6;                 /* 返事ボタンを最前面に */
}

/* ★ v3.0.40.22: ライブスコア表のハーフ合計（OUT/IN）セル */
.gl-conn__lc-cell--half {
  background: #eef6ee;
  font-weight: 700;
  color: #2f5d2f;
  border-left: 2px solid #cfe0cf;
}

/* ★ v3.0.40.26: つながりページ アコーディオン + 見つける一覧 */
.gl-conn__accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  font-weight: 700;
  color: #2f5d2f;
}
.gl-conn__accordion summary::-webkit-details-marker { display: none; }
.gl-conn__accordion summary::after { content: '\25BE'; margin-left: auto; color: #8a978a; }
.gl-conn__accordion:not([open]) summary::after { content: '\25B8'; }
.gl-conn__discover-cat { font-size: .85em; font-weight: 700; color: #374151; margin: 10px 0 4px; }
.gl-conn__discover-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-bottom: 1px solid #eef2ee;
  text-decoration: none; color: inherit;
}
.gl-conn__discover-name { font-weight: 700; font-size: .92em; flex: 1; text-align: left; }
.gl-conn__discover-rank { font-size: .85em; flex: 0 0 auto; } /* ★ v3.0.40.30 */
.gl-conn__discover-sup { font-size: .8em; color: #06C755; font-weight: 700; }
.gl-conn__discover-go { color: #9aa5a0; font-size: 1.1em; }

/* ★ v3.0.9.1: 友達リストの画像アバター（丸切り抜き） */
.gl-conn__friend-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}

/* ★ v3.0.9.2: マイページ「設定・その他」アコーディオン内の広告ラベル */
.gl-mypage__ad-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin: 4px 0 6px;
}
.gl-mypage__accordion .gl-mypage__version {
  margin-top: 12px;
  text-align: center;
}

/* ★ v3.0.9.4: アイコン画像を各所に表示（マイページ＋スコアカード名前横） */
.gl-mypage__avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  display: inline-block; vertical-align: middle; margin-right: 6px;
}
.gl-mypage__avatar--emoji { font-size: 20px; width: auto; height: auto; }
.gl-cls-player-nameline {
  display: flex; align-items: center; gap: 4px; justify-content: center;
}
/* ★ v3.0.15.12: スコアカードのアイコンを拡大（22px→ 32px / 絵文字 16px→ 22px）。
   女子プロ・インフルエンサー導入を見据え、SNSシェア時の「映え」と同伴者の識別性を上げる。
   他プレイヤー行の高さ（54px）に対して十分な余白を保つサイズ。 */
.gl-cls-player-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  flex: 0 0 auto; border: 1px solid #e5e2d8;
}
.gl-cls-player-avatar--emoji {
  font-size: 22px; border: none; width: auto; height: auto; line-height: 1;
}
/* ★ v3.0.40.255: アバター横のチーム色丸（刻印33準拠）。
   刻印8/17で定義したチームカラー（🔴レッド vs 🔵ブルー）を直径10pxのドットで表示。
   対決画面（_classic-leaderboard.js）の色定義と完全一致（#8a2b2b / #1d4e8a）で視覚統一。 */
.gl-cls-team-dot {
  display: inline-block; flex: 0 0 auto;
  width: 10px; height: 10px; border-radius: 50%;
  vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}
.gl-cls-team-dot--A { background: #8a2b2b; }  /* チームA（レッド） */
.gl-cls-team-dot--B { background: #1d4e8a; }  /* チームB（ブルー） */

/* ★ v3.0.9.7: ライブ中カードのアイコン画像（丸・右上に緑ドット） */
.gl-conn__live-avatar { position: relative; }
.gl-conn__live-avatar-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid #dcfce7;
}
.gl-conn__live-avatar-dot {
  position: absolute; top: -2px; right: -2px; width: 12px; height: 12px;
  background: #22c55e; border: 2px solid #fff; border-radius: 50%;
}

/* ★ v3.0.9.8: ライブモーダル名前列・スタンプ送信行のアイコン */
.gl-conn__lc-cell--name {
  display: flex; align-items: center; gap: 3px;
}
.gl-conn__lc-avatar {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
}
.gl-conn__lc-avatar--emoji { font-size: 14px; width: auto; height: auto; line-height: 1; }
.gl-conn__lc-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-conn__stamp-line-name {
  display: flex; align-items: center; gap: 4px;
}
.gl-conn__stamp-line-avatar {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
}
.gl-conn__stamp-line-avatar--emoji { font-size: 16px; width: auto; height: auto; line-height: 1; }

/* ★ v3.0.9.9: ホーム左上の自分アイコン（タップでマイページへ） */
.gl-home__header-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  /* ★ v3.0.15.35: 右端「本登録」ボタンの絶対配置の基準にする */
  position: relative;
}
/* ★ v3.0.15.35: ヘッダー右の「本登録」ボタン（お試しモード時のみ描画）
   絶対配置でロゴの中央位置を崩さない。小さな画面ではアバターと干渉しないよう
   控えめサイズだが、タップ領域44px以上は高さで確保。 */
.gl-home__register-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #1a5f3f;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(26, 95, 63, 0.35);
  white-space: nowrap;
}
.gl-home__register-btn:active { transform: translateY(-50%) scale(0.95); }
.gl-home__avatar-btn {
  background: none; border: none; padding: 0; cursor: pointer; flex: 0 0 auto;
}
.gl-home__avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid #dcfce7; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.gl-home__avatar--emoji {
  font-size: 24px; width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center; background: #f0fdf4;
}
.gl-home__avatar-btn:active .gl-home__avatar { transform: scale(0.94); }

/* ★ v3.0.40.228: アバター未設定時のヒント（フロー内ピル型・下の文字にかぶらない） */
.gl-home__avatar-hintrow {
  margin: 2px 0 4px;
  text-align: left;
}
.gl-home__avatar-hint {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a6b3c;
  background: #e6f4ea;
  border: 1px solid #bfe3c8;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gl-home__avatar-hint:active {
  transform: scale(0.96);
  background: #d7edd9;
}

/* ★ v3.0.10.1: ホーム左上アイコンを52pxに大型化（プロ判断値）
   48pxは控えめ、56pxはロゴを食いすぎるため、主張とバランスの最適点52px。
   タップ領域44px以上も確保され指操作に適合。 */
.gl-home__avatar {
  width: 52px; height: 52px;
}
.gl-home__avatar--emoji {
  font-size: 30px; width: 52px; height: 52px;
}


/* ★ v3.0.40.67: アクションボタン行を1行横スライド化（社長指摘「2行で縦スペースを削りたくない」）
   【v3.0.40.67 修正】元ルールが display:grid + 3列指定のため flex-wrap だけでは効かず2行のままだった。
   display:flex !important でグリッドを無効化し、横スライドを実際に有効化する。 */
.gl-cls-actions { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; }
.gl-cls-actions::-webkit-scrollbar { display: none; }
.gl-cls-actions button { flex: 0 0 auto; white-space: nowrap; }

/* ============================================================
   ★ v3.0.40.127: 老眼対応（フォント拡大）— 縦画面のみ
   【社長指示】①スコアカードのホール番号を最優先で大きく
              ②名前・スコア数字も連動拡大
              ③入力パネルのストローク数・パット数を約1.5〜2倍
   【絶対条件】横画面(landscape)は一画面収納が命のため現行維持。
              portrait のみに適用し、landscape メディアクエリより
              後に書いて横画面では上書きされないよう分離する。
   ============================================================ */
@media (orientation: portrait) {
  /* --- ① スコアカード：ホール番号ヘッダ（最優先） --- */
  .gl-cls-cell--head {
    font-size: 28px !important;   /* v3.0.40.129: 社長指示「スコアと同じ大きさに」13→28px */
    height: 48px !important;
    font-weight: 800 !important;
  }
  /* --- スコアカード：Par行 --- */
  .gl-cls-cell--par { font-size: 18px !important; height: 36px !important; }
  /* --- スコアカード：プレイヤー名 --- */
  .gl-cls-cell--player { font-size: 19px !important; }
  .gl-cls-cell--player small { font-size: 13px !important; }
  .gl-cls-player-badge { font-size: 12px !important; padding: 2px 7px !important; }
  /* --- スコアカード：スコア数字 --- */
  .gl-cls-cell--score { font-size: 28px !important; height: 62px !important; }
  .gl-cls-cell--putt { font-size: 16px !important; height: 36px !important; }
  .gl-cls-cell--putt-label { font-size: 12px !important; }
  /* --- スコアカード：合計（TOTAL）列 --- */
  .gl-cls-cell--sum { font-size: 26px !important; height: 62px !important; }
  .gl-cls-cell--sum-putt { font-size: 15px !important; height: 36px !important; }
  .gl-cls-cell--sum-diff { font-size: 14px !important; }

  /* --- ② 入力パネル：ストローク数・パット数ボタン（社長指示：約倍） --- */
  .gl-cls-swipe-btn {
    min-width: 64px !important;   /* 48→64px 指で押しやすく */
    height: 74px !important;      /* 56→74px */
    border-width: 3px !important;
    border-radius: 14px !important;
  }
  .gl-cls-swipe-btn__num { font-size: 34px !important; font-weight: 800 !important; } /* 20→34px 約1.7倍 */
  .gl-cls-swipe-btn__lbl { font-size: 13px !important; font-weight: 700 !important; }  /* 9→13px */
  /* 入力パネル：ホール表示・保存ボタン */
  .gl-cls-panel-hole { font-size: 32px !important; font-weight: 800 !important; letter-spacing: .02em !important; } /* v3.0.40.128: HOLE番号さらに拡大 */
  .gl-cls-panel-section-label { font-size: 15px !important; }
}

/* ★ v3.0.40.129: 老眼対応② 入力パネル内ミニスコア表のH列スコア数字を拡大（縦画面のみ） */
@media (orientation: portrait) {
  .gl-cls-mini-score__hole,
  .gl-cls-mini-score__total { font-size: 32px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__name { font-size: 20px !important; }
  .gl-cls-mini-score__table th { font-size: 16px !important; }
}

/* ★ v3.0.40.130: ①ヘッダの文字セル(Player/OUT/IN/TOTAL)はホール番号(28px)より小さく分離
   ②入力パネル内ミニスコアのH列スコア数字を倍級(40px)に拡大（縦画面のみ・横画面無傷） */
@media (orientation: portrait) {
  .gl-cls-cell--head--text { font-size: 15px !important; font-weight: 800 !important; letter-spacing: 0 !important; }
  .gl-cls-mini-score__hole { font-size: 40px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__total { font-size: 34px !important; font-weight: 800 !important; }
}

/* ★ v3.0.40.131: 老眼対応③ パネル内H列スコア数字が反映されない不具合の根本修正
   原因: 既存ルール「.gl-cls-mini-score__table td{font-size:19px!important}」(詳細度0,1,1)が
        「.gl-cls-mini-score__hole」(0,1,0)より強く、v129/v130の拡大が負けていた。
   対策: 「table td.クラス」の3段指定(0,2,1)に引き上げて確実に勝つ（縦画面のみ・横画面無傷） */
@media (orientation: portrait) {
  .gl-cls-mini-score__table td.gl-cls-mini-score__hole  { font-size: 40px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__table td.gl-cls-mini-score__total { font-size: 34px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__table td.gl-cls-mini-score__name  { font-size: 20px !important; }
}

/* ★ v3.0.40.132: 老眼対応④ バランス調整
   【状況】v131でH列40px化は成功したが、行が大きくなりすぎてパット数ボタンが隠れた
   【社長指示】このiPhoneサイズでは縦スクロールなしで収める（パット数まで表示）
              ※これより小さいスマホでは縦スクロール許容（CEO承認済み）
   【方法】数字は大きいまま維持しつつ、40→30pxに一段調整＋行の余白(padding)を詰める */
@media (orientation: portrait) {
  .gl-cls-mini-score__table td.gl-cls-mini-score__hole  { font-size: 30px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__table td.gl-cls-mini-score__total { font-size: 26px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__table td.gl-cls-mini-score__name  { font-size: 18px !important; }
  /* 行の余白を詰めて4人分を収める（既存14px 12pxを上書き） */
  .gl-cls-mini-score__table td { padding: 8px 10px !important; }
  .gl-cls-mini-score__table th { padding: 6px 10px !important; }
}

/* ★ v3.0.40.134: 短い画面（Android等）向け圧縮 — パット数・スタンプ欄まで全表示
   【原因】AndroidはOSのナビゲーションボタン等で「使える縦の高さ」がiPhoneより短く、
           iPhone基準(v132)で詰めたレイアウトがパット数・スタンプバーを押し出して欠けていた。
   【対策】縦画面かつ高さ760px以下の端末だけ、数字の大きさを保ちつつ
           行余白・ボタン高を圧縮して全体を一画面に収める（横画面は無傷） */
@media (orientation: portrait) and (max-height: 760px) {
  .gl-cls-mini-score__table td.gl-cls-mini-score__hole  { font-size: 26px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__table td.gl-cls-mini-score__total { font-size: 22px !important; font-weight: 800 !important; }
  .gl-cls-mini-score__table td.gl-cls-mini-score__name  { font-size: 17px !important; }
  .gl-cls-mini-score__table td { padding: 5px 8px !important; }
  .gl-cls-mini-score__table th { padding: 4px 8px !important; }
  .gl-cls-swipe-btn { height: 60px !important; min-width: 56px !important; }
  .gl-cls-swipe-btn__num { font-size: 28px !important; }
  .gl-cls-swipe-btn__lbl { font-size: 11px !important; }
  .gl-cls-panel-hole { font-size: 26px !important; }
  /* スタンプバー（ポジティブスタンプ・観戦者アバター表示域）の余白を圧縮 */
  .gl-cls-stampbar { padding: 2px 8px !important; margin: 2px 0 4px !important; gap: 2px !important; }
}

/* ★ v3.0.40.136: 老眼対応⑤ ミニスコアの「名前」も拡大
   【社長指示】入力パネルのレイアウトは崩さず、佐藤・石川・山田・後藤の名前を老眼でも読める大きさに
   【方針】H列(30px)・TOTAL(26px)の数字は維持し、名前だけ18→24px＋太字化。
           名前列のmax-width(46vw)を52vwに広げて折り返しを防止。短い画面(v134帯)は21pxに調整 */
@media (orientation: portrait) {
  .gl-cls-mini-score__table td.gl-cls-mini-score__name { font-size: 24px !important; font-weight: 700 !important; max-width: 52vw !important; }
}
@media (orientation: portrait) and (max-height: 760px) {
  .gl-cls-mini-score__table td.gl-cls-mini-score__name { font-size: 21px !important; font-weight: 700 !important; max-width: 52vw !important; }
}

/* ★ v3.0.40.137: パーボタンの基準強調（外枠太く＋数字太字）
   【社長指示】色分けは維持しつつ「パー＝基準」を一目で伝える
   【方法】ボタンサイズは変えず、外枠だけ太く＋数字を太字。選択時は白抜きを維持 */
.gl-cls-swipe-btn--par { border-width: 3px !important; }
.gl-cls-swipe-btn--par .gl-cls-swipe-btn__num { font-weight: 900 !important; }
.gl-cls-swipe-btn--par .gl-cls-swipe-btn__lbl { font-weight: 800 !important; }
.gl-cls-swipe-btn--par.gl-cls-swipe-btn--selected { border-width: 3px !important; }

/* ★ v3.0.40.138: パーボタン太枠の確実化
   【原因】v137は .gl-cls-swipe-btn--par のみに適用していたが、
   入力パネルのボタンは色クラス(_colorClassForDiff)経由で --par-label が付く経路があり、
   そちらには太枠が効いていなかった（実機で未反映の原因）。
   【対策】--par と --par-label の両方に太枠・太字を適用して全経路をカバー */
.gl-cls-swipe-btn--par,
.gl-cls-swipe-btn--par-label { border-width: 3px !important; }
.gl-cls-swipe-btn--par .gl-cls-swipe-btn__num,
.gl-cls-swipe-btn--par-label .gl-cls-swipe-btn__num { font-weight: 900 !important; }
.gl-cls-swipe-btn--par .gl-cls-swipe-btn__lbl,
.gl-cls-swipe-btn--par-label .gl-cls-swipe-btn__lbl { font-weight: 800 !important; }
.gl-cls-swipe-btn--par.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--par-label.gl-cls-swipe-btn--selected { border-width: 3px !important; }

/* ★ v3.0.40.139: パーボタンの基準強調を「明確に見えるレベル」へ引き上げ
   【原因】v137/v138の2px→3pxは差が1pxだけで実機では視認困難だった。
   数字のfont-weight 800→900も小サイズでは肉眼で区別不能。
   【対策】外枠4px＋濃い枠色＋うっすら影で「基準ボタン」を一目瞭然にする。
   配色(ゴールド系)は維持し、種類=色・基準=枠の2層設計はそのまま。 */
.gl-cls-swipe-btn--par,
.gl-cls-swipe-btn--par-label {
  border-width: 4px !important;
  border-color: #a8842c !important;
  box-shadow: 0 0 0 1px rgba(168,132,44,0.35), 0 2px 6px rgba(122,101,32,0.25) !important;
}
.gl-cls-swipe-btn--par .gl-cls-swipe-btn__num,
.gl-cls-swipe-btn--par-label .gl-cls-swipe-btn__num {
  font-weight: 900 !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.gl-cls-swipe-btn--par .gl-cls-swipe-btn__lbl,
.gl-cls-swipe-btn--par-label .gl-cls-swipe-btn__lbl { font-weight: 900 !important; }
/* 選択時（緑反転）は下線・影を消してクリーンに。太枠だけ維持 */
.gl-cls-swipe-btn--par.gl-cls-swipe-btn--selected,
.gl-cls-swipe-btn--par-label.gl-cls-swipe-btn--selected {
  border-width: 4px !important;
  border-color: #1a5f3f !important;
  box-shadow: none !important;
}
.gl-cls-swipe-btn--par.gl-cls-swipe-btn--selected .gl-cls-swipe-btn__num,
.gl-cls-swipe-btn--par-label.gl-cls-swipe-btn--selected .gl-cls-swipe-btn__num { text-decoration: none !important; }

/* ★ v3.0.40.303: ヘッダー改修（G-ゴルフ化・本日の順位ボタン） */
.gl-home__avatar-btn { transform: scale(1.15); transform-origin: left center; }
.gl-home__rank-btn {
  margin-left: auto; flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%;
  border: 2px solid #1a5f3f; background: #fff; color: #1a5f3f; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.12); padding: 0;
}
.gl-home__rank-btn:active { background: #f0faf2; }
.gl-home__rank-btn-label { font-size: 11px; font-weight: 700; line-height: 1.15; }
.gl-home__rank-btn-value { font-size: 22px; font-weight: 800; line-height: 1.1; color: #06C755; }
.gl-home__header-row { display: flex; align-items: center; gap: 10px; }

/* ★ v3.0.40.304: ヘッダー左右同幅でロゴをセンターに（実機指摘のバランス崩れ修正） */
.gl-home__avatar-btn { width: 88px; height: 88px; flex: 0 0 88px; }
.gl-home__logo { flex: 1 1 auto; text-align: center; }

/* ★ v3.0.40.305: アバター・順位ボタンを大型化（CEO指示「倍の大きさでバランスよく」） */
.gl-home__avatar-btn .gl-home__avatar { width: 84px; height: 84px; font-size: 44px; }
.gl-home__avatar-btn .gl-home__avatar img,
.gl-home__avatar-btn img.gl-home__avatar { width: 84px; height: 84px; }
.gl-home__logo { font-size: 1.9em; }

/* ★ v3.0.40.645c: 📶 通信量チップ（入力パネル見出し行の HOLE と「○人目」の間。1行固定・狭ければ縮む） */
.gl-cls-panel-header .gl-cls-datameter {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0 6px 0 auto;     /* 右の「○人目」側に寄せる */
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.3;
  color: #6b7a70;
  background: #f5f8f5;
  border: 1px solid #e3e8e3;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gl-cls-panel-header .gl-cls-datameter b { color: #1a5f3f; font-weight: 700; }
.gl-cls-panel-header .gl-cls-datameter:active { background: rgba(0, 0, 0, 0.06); }

/* ★ v3.0.40.660【社長の実機指摘】Par3 の「3」も真ん中に来られるように、打数・パットの行の両端に空き（行の半分）を置く */
.gl-cls-swipe-spacer {
  flex: 0 0 calc(50% - 40px);
  pointer-events: none;
}

/* ★ v3.0.40.661【社長案】🏆順位・📮記録・💌返事を、ミニスコア表の深緑の見出し行の左に横一列で */
.gl-cls-mini-score__table th.gl-cls-mini-score__tools { text-align: left; padding: 5px 6px !important; }
.gl-cls-mini-tools { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.gl-cls-mini-tool {
  font-size: 12px; font-weight: 800; line-height: 1;
  color: #fff; background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 999px;
  padding: 6px 8px; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,255,255,.25);
}
.gl-cls-mini-tool:active { background: rgba(255,255,255,.28); }
.gl-cls-mini-tool--reply { background: #06C755; border-color: #06C755; }
/* ★ v3.0.40.791: 📣 実況（X・LINE に今の状況を送る） */
.gl-cls-mini-tool--share791 { background: #f2c94c; border-color: #f2c94c; color: #1a3a2a; }
/*   ボタンが4つになったので、ミニスコア表の見出しでは 2つずつ2段に（横にすべる表にしない）。修正パネルの帯は入らない時だけ2段 */
.gl-cls-mini-score .gl-cls-mini-tools { display: inline-grid; grid-template-columns: auto auto; gap: 4px; }
.gl-cls-mini-toolbar .gl-cls-mini-tools { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 370px) { .gl-cls-mini-tool { font-size: 11px; padding: 5px 6px; } }

/* ★ v3.0.40.666: 修正パネルの3ボタン帯（ミニスコア表の見出し行と同じ見た目） */
.gl-cls-mini-toolbar { background: #1a5f3f; border-radius: 8px; padding: 5px 6px; margin: 8px 0 2px; display: flex; align-items: center; }

/* ★ v3.0.40.684: 友だち登録している人の赤い「友」バッジ（スコアカード・入力パネルのミニスコア） */
.gl-friend-mark684 {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  min-width: 18px; height: 18px; padding: 0 4px; margin-left: 4px; border-radius: 9px;
  background: #d32f2f; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: middle;
}

/* ★ v3.0.40.777: まとめて返事（まだ返していない人数） */
.gl-cls-stampbar__reply--due { background: #06C755; color: #fff; border-color: #06C755; }
.gl-cls-stampbar__reply--due:active { background: #05a648; }
.gl-r777-n { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: #fff; color: #06C755; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; }


/* ★ v990: Clean Player Cell (No Role Badge, Original Large Avatar) */
#view-score .gl-cls-cell--player {
  overflow: hidden !important;
  justify-content: center !important;
}
#view-score .gl-cls-player-nameline {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
}
#view-score .gl-cls-player-nameline > span:not(.gl-cls-player-avatar):not(.gl-cls-team-dot):not(.gl-friend-mark684) {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}
#view-score .gl-cls-player-avatar,
#view-score .gl-friend-mark684,
#view-score .gl-cls-team-dot {
  flex-shrink: 0 !important;
}
/* ★ v1085: アイコン＋名前＋「友」バッジが並んでも「中谷 友」が1文字切れない左列最適化（縦画面のみ） */
@media (min-height: 501px), (orientation: portrait) {
  #view-score .gl-cls-table {
    grid-template-columns: 112px 1fr 82px;
  }
  #view-score .gl-cls-col-fixed-left {
    min-width: 112px;
  }
  #view-score .gl-cls-cell--player {
    padding: 4px 4px !important;
    font-size: 17px !important;
  }
  #view-score .gl-cls-player-nameline {
    gap: 3px !important;
    justify-content: flex-start !important;
    width: 100%;
  }
  #view-score .gl-cls-cell--player:not([data-player-type="self"]) .gl-cls-player-avatar {
    width: 27px;
    height: 27px;
  }
  #view-score .gl-friend-mark684 {
    margin-left: 1px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 3px !important;
    font-size: 10px !important;
  }
}


/* ★ v993: Hatchy Right-Top Header Slot Enlarged (80px) */
.gl-home__hatchy-slot {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible !important;
  z-index: 5;
}
.gl-hatchy {
  width: 80px !important;
  height: 80px !important;
  margin-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hatchy-float 3s ease-in-out infinite;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.gl-hatchy-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transform: scale(1.08);
  transform-origin: center;
}
/* クラシック時は1番（緑）、ガーリー時（html[data-theme="girly"]）は2番（ローズピンク）を表示 */
.gl-hatchy--classic { display: flex !important; }
.gl-hatchy--girly { display: none !important; }
html[data-theme="girly"] .gl-hatchy--classic { display: none !important; }
html[data-theme="girly"] .gl-hatchy--girly { display: flex !important; }

@keyframes hatchy-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(2.5deg); }
}
@keyframes wing-patapata {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.86) translateY(-1.5px); }
}
.gl-h-wings {
  animation: wing-patapata 0.22s ease-in-out infinite;
  transform-origin: 60px 56px;
}
.gl-hatchy:active {
  transform: scale(1.16) rotate(-5deg);
}


/* ★ v996: Hatchy AI Concierge Speech Bubble & Voice */
.gl-hatchy.is-speaking {
  animation: hatchy-speaking 0.45s ease-in-out infinite !important;
}
@keyframes hatchy-speaking {
  0%, 100% { transform: translateY(0) scale(1.06) rotate(-3deg); }
  50% { transform: translateY(-6px) scale(1.14) rotate(4deg); }
}

.gl-hatchy-bubble-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 25, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99990;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 78px 16px 20px;
  animation: gl-hb-fade 0.2s ease-out;
}
@keyframes gl-hb-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.gl-hatchy-bubble {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(145deg, #fffdf7 0%, #f7f1e1 100%);
  border: 2px solid #d4af37;
  border-left: 6px solid #1a5f3f;
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 36px rgba(15, 61, 38, 0.28);
  color: #162a20;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}
.gl-hatchy-bubble::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 28px;
  width: 18px;
  height: 18px;
  background: #fffdf7;
  border-top: 2px solid #d4af37;
  border-left: 2px solid #d4af37;
  transform: rotate(45deg);
}
html[data-theme="girly"] .gl-hatchy-bubble {
  background: linear-gradient(145deg, #fff8fa 0%, #ffe4ec 100%);
  border: 2px solid #f472b6;
  border-left: 6px solid #e11d48;
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.22);
  color: #4c0519;
}
html[data-theme="girly"] .gl-hatchy-bubble::before {
  background: #fff8fa;
  border-top-color: #f472b6;
  border-left-color: #f472b6;
}
.gl-hb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
}
html[data-theme="girly"] .gl-hb-head {
  border-bottom-color: rgba(244, 114, 182, 0.35);
}
.gl-hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 900;
  color: #1a5f3f;
}
html[data-theme="girly"] .gl-hb-badge {
  color: #be123c;
}
.gl-hb-body {
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.gl-hb-body strong {
  color: #1a5f3f;
  background: rgba(212, 175, 55, 0.22);
  padding: 1px 5px;
  border-radius: 6px;
}
html[data-theme="girly"] .gl-hb-body strong {
  color: #be123c;
  background: rgba(251, 113, 133, 0.2);
}
.gl-hb-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.gl-hb-btn-speak {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #d4af37;
  background: #ffffff;
  color: #1a5f3f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
html[data-theme="girly"] .gl-hb-btn-speak {
  border-color: #f472b6;
  color: #be123c;
}
.gl-hb-btn-close {
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #1a5f3f, #2d8a5c);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
html[data-theme="girly"] .gl-hb-btn-close {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}


/* === Unified Hero Mini Badges (Gカード / AI案内) === */
.gl-home__avatar-btn,
.gl-home__header-row > *:last-child {
  position: relative !important;
  overflow: visible !important;
}
.gl-hero-mini-badge {
  position: absolute;
  bottom: 1px;
  right: -2px;
  z-index: 8;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}
.gl-hero-mini-badge.is-gcard {
  background: #1A5F3F;
  color: #FFFFFF;
}
html[data-theme="girly"] .gl-hero-mini-badge.is-gcard {
  background: #BE185D;
  color: #FFFFFF;
}
.gl-hero-mini-badge.is-ai {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #FFFFFF;
}

/* v1140: スコアカードのPlayer列では名前表示を最優先し達成バッジを出さない */
#view-score .gl-honor-emblem103 { display: none !important; }
