.dm-mypage { --paper: #fff8ed; --ink: #18202c; --muted: #536276; --line: #ded8ca; --primary: #1677d2; color: var(--ink); width: min(1040px, calc(100% - 32px)); margin: auto; padding: 32px 0 64px; overflow-wrap: anywhere; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
body { margin: 0; background: #fff8ed; }
.dm-mypage *, .dm-mypage *::before, .dm-mypage *::after { box-sizing: border-box; }
.dm-mypage [hidden] { display: none !important; }
.dm-mypage h1 { font-size: clamp(25px, 5vw, 38px); line-height: 1.5; margin: 0 0 12px; }
.dm-mypage h2 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.6; }
.dm-mypage h3 { font-size: 1.05rem; line-height: 1.6; margin: 0 0 8px; }
.dm-mypage p { line-height: 1.8; }
.dm-mypage-welcome { padding: 8px 4px; }
.dm-mypage-welcome > p { margin: 0; }
.dm-mypage-panel { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-top: 24px; box-shadow: 0 8px 20px #33241108; }
.dm-mypage-note { color: var(--muted); font-size: .9rem; }
.dm-mypage-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid #adb8c6; border-radius: 999px; background: white; color: var(--ink); font: inherit; font-weight: 750; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.dm-mypage-button.primary { color: white; background: var(--primary); border-color: var(--primary); }
.dm-mypage-button:disabled { opacity: .6; cursor: wait; }
.dm-mypage :is(a, button, input, select, summary):focus-visible, .dm-mypage [tabindex="-1"]:focus-visible { outline: 3px solid #b66b00; outline-offset: 3px; }
.dm-mypage-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dm-mypage-status { padding: 12px 14px; border: 1px solid #ccd5dd; border-radius: 12px; background: #f5f8fc; line-height: 1.8; }
.dm-mypage-status:empty { display: none; }
.dm-mypage-status[data-kind="warning"] { border-color: #dab777; background: #fff7df; }
.dm-mypage-status[data-kind="error"] { border-color: #dcaaaa; background: #fff1ef; }
.dm-mypage-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dm-mypage-recent-card { border: 1px solid #d2dce6; border-radius: 14px; padding: 16px; }
.dm-mypage-recent-card .dm-mypage-button { width: 100%; padding-inline: 10px; }
.dm-mypage-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.dm-mypage-filters fieldset { margin: 0; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dm-mypage-filters legend { padding: 0 0 6px; font-weight: 700; }
.dm-mypage-filters fieldset label { display: inline-flex; align-items: center; min-height: 48px; gap: 8px; padding: 10px 14px; border: 1px solid #adb8c6; border-radius: 12px; }
.dm-mypage-filters input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #1677d2; }
.dm-mypage-game-filter { display: grid; gap: 6px; flex: 1; min-width: min(220px, 100%); font-weight: 700; }
.dm-mypage-game-filter select { width: 100%; min-width: 0; min-height: 48px; padding: 8px 10px; font: inherit; border: 1px solid #adb8c6; border-radius: 12px; background: white; color: inherit; }
.dm-mypage-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.dm-mypage-summary div { text-align: center; border: 1px solid #b6d8ec; border-radius: 14px; padding: 16px 8px; background: #eff8ff; }
.dm-mypage-summary dt { font-size: .9rem; line-height: 1.5; }
.dm-mypage-summary dd { margin: 8px 0 0; font-size: 1.75rem; font-weight: 800; }
.dm-mypage-charts { margin-top: 24px; display: grid; gap: 24px; }
.dm-mypage-charts figure { margin: 0; min-width: 0; }
.dm-mypage-chart-title { font-size: 1.05rem; font-weight: 750; line-height: 1.6; }
.dm-mypage-chart-value { margin: 8px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-mypage-chart-track { height: 16px; width: 100%; overflow: hidden; border-radius: 4px; background: #eaf0f5; }
.dm-mypage-chart-fill { display: block; height: 100%; background: var(--primary); }
.dm-mypage-days-meter { height: 20px; }
.dm-mypage-days-chart .dm-mypage-note { margin: 6px 0 0; }
.dm-mypage-chart-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.dm-mypage-chart-rows { display: grid; gap: 14px; list-style: none; padding: 0; margin: 10px 0 0; }
.dm-mypage-chart-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; line-height: 1.6; }
.dm-mypage-chart-label > :first-child { min-width: 0; }
.dm-mypage-chart-count { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-mypage-daily-bars { display: grid; gap: 6px; margin-top: 12px; }
.dm-mypage-daily-bar { display: grid; grid-template-rows: auto 140px auto; align-items: stretch; gap: 8px; min-width: 0; padding: 8px 3px; background: transparent; border: 0; border-radius: 6px; font: inherit; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.dm-mypage-daily-bar[aria-pressed="true"] .dm-mypage-daily-date { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.dm-mypage-daily-bar[aria-pressed="true"] .dm-mypage-daily-fill { background: #0f5697; }
.dm-mypage .dm-mypage-daily-bar:focus-visible { outline: 3px solid #b66b00; outline-offset: 2px; }
.dm-mypage-daily-count { font-weight: 750; font-variant-numeric: tabular-nums; align-self: end; }
.dm-mypage-daily-track { display: flex; flex-direction: column; justify-content: end; border-bottom: 1px solid #adb8c6; background: transparent; }
.dm-mypage-daily-fill { display: block; background: var(--primary); width: 100%; }
.dm-mypage-daily-date { font-size: .9rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dm-mypage-daily-bars[data-dense="true"] { gap: 1px; }
.dm-mypage-daily-bars[data-dense="true"] .dm-mypage-daily-bar { display: block; height: 180px; padding: 0; border-radius: 0; }
.dm-mypage-daily-bars[data-dense="true"] .dm-mypage-daily-track { height: 100%; }
.dm-mypage-daily-bars[data-dense="true"] :is(.dm-mypage-daily-count, .dm-mypage-daily-date) { display: none; }
.dm-mypage-daily-ticks { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.dm-mypage-daily-picker { display: grid; gap: 6px; margin-top: 16px; font-size: .95rem; }
.dm-mypage-daily-picker select { min-width: 0; width: 100%; max-width: 380px; min-height: 48px; padding: 8px 10px; border: 1px solid #adb8c6; border-radius: 10px; background: white; color: inherit; font: inherit; }
.dm-mypage-daily-axis { text-align: center; margin: 6px 0; }
.dm-mypage-daily-detail { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.dm-mypage-daily-detail p { margin: 0; }
.dm-mypage-daily-games { margin: 0; padding-left: 1.5em; line-height: 1.9; }
.dm-mypage-history summary { cursor: pointer; min-height: 48px; padding: 6px 0; }
.dm-mypage-history summary h2 { display: inline; margin: 0 12px 0 4px; }
.dm-mypage-history-open, .dm-mypage-history-close { color: var(--muted); font-size: .9rem; }
.dm-mypage-history-close, .dm-mypage-history[open] .dm-mypage-history-open { display: none; }
.dm-mypage-history[open] .dm-mypage-history-close { display: inline; }
.dm-mypage-day { margin-top: 24px; }
.dm-mypage-history-card { border-top: 1px solid #dce2e8; padding: 16px 0; }
.dm-mypage-history-card p { margin: 4px 0; }
.dm-mypage-history-tags { color: var(--muted); font-size: .9rem; }
.dm-mypage-account { margin-top: 32px; }
@media (max-width: 600px) {
  .dm-mypage { width: calc(100% - 20px); padding-top: 20px; }
  .dm-mypage-panel { padding: 18px 14px; }
  .dm-mypage-recent { grid-template-columns: 1fr; }
  .dm-mypage-summary { grid-template-columns: 1fr; }
  .dm-mypage-summary div { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
  .dm-mypage-summary dd { margin: 0; }
  .dm-mypage-actions > * { flex: 1 1 220px; }
  .dm-mypage-daily-bars { gap: 3px; }
  .dm-mypage-daily-bar { padding-inline: 2px; }
  .dm-mypage-daily-ticks > :is(:nth-child(2), :nth-child(3)) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dm-mypage *, .dm-mypage *::before, .dm-mypage *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
