
.k6-payout-section,.k6-flow-section{margin:36px 0}
.k6-payout-table{border:1px solid #e1e5ea;border-radius:10px;overflow:hidden}
.k6-payout-item{display:grid;grid-template-columns:minmax(180px,52%) 1fr;align-items:stretch;border-bottom:1px solid #e1e5ea}
.k6-payout-item:last-child{border-bottom:0}
.k6-payout-symbol,.k6-payout-detail{padding:14px;text-align:center}
.k6-payout-symbol{display:grid;align-content:center;justify-items:center;gap:10px;background:#f7f8fa;min-height:86px;min-width:0}
.k6-payout-detail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0}
.k6-role-meta{display:flex;flex-direction:column;align-items:center}
.k6-role-name{font-size:16px;font-weight:700;line-height:1.45;color:#303943}
.k6-payout-detail strong{display:block;font-size:17px;line-height:1.45;color:#9a3900}
.k6-payout-detail small{display:block;margin-top:2px;color:#5d6670}
.k6-payout-pattern{display:grid;justify-items:center;gap:6px;width:100%;min-width:0}
.k6-pattern-line{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding-inline:8px}
.k6-pattern-line--dense{gap:6px}
.k6-pattern-line--very-dense{gap:5px;padding-inline:10px}
.k6-front-symbol{display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;min-width:0}
.k6-front-symbol img{display:block;width:auto;height:auto;max-width:100%;object-fit:contain;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}
.k6-symbol-text{display:inline-block;padding:5px 10px;border-radius:8px;background:#111;color:#fff;font-weight:800;letter-spacing:.04em;white-space:nowrap;font-size:16px;line-height:1.2}
.k6-front-separator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:1;min-width:22px;padding-inline:4px;margin:0 4px;box-sizing:border-box;position:relative;z-index:1}
.k6-front-slash{font-size:26px;font-weight:700}
.k6-front-or{padding:4px 8px;border-radius:999px;background:#eef1f5;color:#4a5663;font-size:14px;font-weight:700;letter-spacing:.03em}
.k6-flow-list{display:grid;gap:12px}
.k6-flow-node{overflow:hidden;border:2px solid #d8dee6;border-radius:12px;background:#fff}
.k6-flow-image img{display:block;width:100%;max-height:280px;object-fit:cover}
.k6-flow-body{padding:14px}
.k6-flow-body h3{margin:0 0 6px}
.k6-flow-body p{margin:0}
.k6-flow-type-cz{border-color:#d7a900}
.k6-flow-type-at{border-color:#d54b4b}
.k6-flow-type-upper{border-color:#7552b8}
.k6-flow-connections{display:grid;gap:7px;padding:2px 10px 8px}
.k6-flow-edge{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;text-align:center}
.k6-arrow{font-size:24px}
.k6-edge-label{padding:3px 9px;border-radius:999px;background:#eef1f5;font-weight:700;font-size:.9em}
.k6-edge-direct .k6-edge-label{background:#fff1d8;border:1px solid #e0a100}
.k6-edge-return{opacity:.75}
.k6-edge-return .k6-edge-label{border:1px dashed #777}
.k6-edge-destination{font-size:.9em;color:#58616b}

/* Shrink only when a row is genuinely crowded. Never enlarge symbols. */
.k6-pattern-line--dense .k6-front-symbol{max-width:108px}
.k6-pattern-line--very-dense .k6-front-symbol{max-width:88px}
.k6-pattern-line.k6-symbol-count-5 .k6-front-symbol{max-width:calc((100% - 100px)/5)}
.k6-pattern-line.k6-symbol-count-5.k6-separator-count-2 .k6-front-symbol{max-width:calc((100% - 118px)/5)}

@media(max-width:600px){
  .k6-payout-item{grid-template-columns:1fr}
  .k6-payout-symbol,.k6-payout-detail{padding:11px 8px}
  .k6-payout-symbol{min-height:0}
  .k6-payout-detail{background:#fff;padding-top:6px;padding-bottom:11px}
  .k6-pattern-line{gap:5px;padding-inline:8px}
  .k6-pattern-line--dense{gap:4px;padding-inline:8px}
  .k6-pattern-line--very-dense{gap:3px;width:calc(100% - 16px);padding-inline:12px;margin-inline:auto}
  .k6-pattern-line--dense .k6-front-symbol{max-width:88px}
  .k6-pattern-line--very-dense .k6-front-symbol{max-width:72px}
  .k6-pattern-line.k6-symbol-count-5 .k6-front-symbol{max-width:calc((100% - 92px)/5)}
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2 .k6-front-symbol{max-width:calc((100% - 112px)/5)}
  .k6-symbol-text{font-size:14px;padding:4px 8px}
  .k6-front-slash{font-size:20px;margin:0 4px;min-width:22px;padding-inline:4px}
  .k6-front-or{font-size:12px;padding:3px 6px}
  .k6-role-name{font-size:15px}
  .k6-payout-detail strong{font-size:16px}
}

@media(max-width:380px){
  .k6-pattern-line{gap:4px;padding-inline:7px}
  .k6-pattern-line--dense{gap:3px;padding-inline:7px}
  .k6-pattern-line--very-dense{gap:2px;width:calc(100% - 14px);padding-inline:11px;margin-inline:auto}
  .k6-pattern-line--dense .k6-front-symbol{max-width:82px}
  .k6-pattern-line--very-dense .k6-front-symbol{max-width:66px}
  .k6-pattern-line.k6-symbol-count-5 .k6-front-symbol{max-width:calc((100% - 86px)/5)}
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2 .k6-front-symbol{max-width:calc((100% - 104px)/5)}
  .k6-front-slash{font-size:19px;margin:0 4px;min-width:20px;padding-inline:4px}
  .k6-front-or{font-size:11px;padding:2px 5px}
}

/* Special handling for 5 symbols + 2 separators lines (e.g. 勝舞揃い) */
@media(max-width:600px){
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) 22px minmax(0,1.15fr) 22px repeat(3,minmax(0,.86fr));
    align-items:center;
    justify-items:center;
    column-gap:4px;
    row-gap:0;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding-inline:12px;
  }
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2 .k6-front-symbol{
    width:100%;
    max-width:none;
    min-width:0;
  }
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2 .k6-front-symbol img{
    max-width:100%;
    width:auto;
    height:auto;
  }
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2 .k6-front-slash{
    min-width:22px;
    width:22px;
    margin:0;
    padding:0;
    font-size:19px;
  }
}
@media(max-width:380px){
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2{
    grid-template-columns:minmax(0,1.12fr) 20px minmax(0,1.08fr) 20px repeat(3,minmax(0,.82fr));
    column-gap:3px;
    padding-inline:10px;
  }
  .k6-pattern-line.k6-symbol-count-5.k6-separator-count-2 .k6-front-slash{
    min-width:20px;
    width:20px;
    font-size:18px;
  }
}

/* v0.5 enhanced game flow */
.k6-flow-list{gap:16px}
.k6-flow-node{border-width:1px;border-color:#d8dee6;border-radius:12px}
.k6-flow-node-head{padding:9px 14px;background:#40566f;color:#fff;text-align:center}
.k6-flow-node-head h3{margin:0;color:inherit;font-size:20px;line-height:1.4}
.k6-flow-type-normal .k6-flow-node-head{background:#164a91}
.k6-flow-type-prelude .k6-flow-node-head{background:#d98020}
.k6-flow-type-cz .k6-flow-node-head{background:#d21e78}
.k6-flow-type-bonus .k6-flow-node-head{background:#b95a16}
.k6-flow-type-at .k6-flow-node-head{background:#b42d22}
.k6-flow-type-upper .k6-flow-node-head{background:#692183}
.k6-flow-type-special .k6-flow-node-head{background:#a83c2f}
.k6-flow-node-main{display:grid;gap:12px;padding:14px}
.k6-flow-images{display:grid;grid-template-columns:1fr;gap:8px}
.k6-flow-images--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.k6-flow-images img{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;border-radius:5px}
.k6-flow-description,.k6-flow-subitem p{margin:0;text-align:center}
.k6-flow-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
.k6-flow-stats>div{display:grid;grid-template-columns:minmax(80px,.85fr) 1.15fr;border:1px solid #dfe3e8;border-radius:6px;overflow:hidden;background:#fff}
.k6-flow-stats dt,.k6-flow-stats dd{margin:0;padding:7px 8px}
.k6-flow-stats dt{background:#f1f3f5;font-weight:700}
.k6-flow-stats dd{font-weight:700;text-align:center}
.k6-flow-subitems{display:grid;gap:0;padding:0 12px 12px}
.k6-flow-subitem{display:grid;gap:10px;padding:12px;border:1px solid #e0e3e7;border-top:0;background:#fff}
.k6-flow-subitem:first-child{border-top:1px solid #e0e3e7;border-radius:8px 8px 0 0}
.k6-flow-subitem:last-child{border-radius:0 0 8px 8px}
.k6-flow-subitem:only-child{border-radius:8px}
.k6-flow-subitem h4{margin:-12px -12px 0;padding:7px 10px;background:#f3f4f6;text-align:center;font-size:17px}
.k6-flow-connections{padding:0 10px;gap:6px}
.k6-flow-edge{min-height:42px}
.k6-edge-direct .k6-arrow,.k6-edge-direct .k6-edge-label{color:#b46500}
.k6-edge-success .k6-arrow,.k6-edge-success .k6-edge-label{color:#b52323}
@media(max-width:600px){
  .k6-flow-node-head h3{font-size:18px}
  .k6-flow-node-main{padding:11px;gap:10px}
  .k6-flow-images--two{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .k6-flow-images img{max-height:210px}
  .k6-flow-stats{grid-template-columns:1fr;gap:5px}
  .k6-flow-stats>div{grid-template-columns:minmax(90px,.85fr) 1.15fr}
  .k6-flow-stats dt,.k6-flow-stats dd{padding:6px 7px;font-size:14px}
  .k6-flow-subitems{padding:0 8px 8px}
  .k6-flow-subitem{padding:10px;gap:8px}
  .k6-flow-subitem h4{margin:-10px -10px 0;font-size:16px}
  .k6-flow-edge{display:grid;grid-template-columns:auto 1fr;gap:4px 7px}
  .k6-edge-destination{grid-column:2;text-align:left}
}

/* v0.5.2 compact route overview and shorter detail layout */
.k6-flow-overview{margin:0 0 16px;border:1px solid #d8dee6;border-radius:12px;overflow:hidden;background:#fff}
.k6-flow-overview-title{padding:9px 12px;background:#263b52;color:#fff;text-align:center;font-size:17px;font-weight:700}
.k6-flow-route-group{display:grid;grid-template-columns:minmax(120px,28%) 1fr;border-top:1px solid #e1e5ea}
.k6-flow-route-group:first-of-type{border-top:0}
.k6-flow-route-source{display:flex;align-items:center;justify-content:center;padding:10px;background:#f2f5f8;font-weight:700;text-align:center}
.k6-flow-route-options{display:flex;align-items:stretch;gap:7px;flex-wrap:wrap;padding:8px}
.k6-flow-route{display:grid;grid-template-columns:auto auto;grid-template-areas:"arrow label" "arrow dest";align-items:center;column-gap:6px;min-width:155px;flex:1;padding:7px 9px;border:1px solid #dfe4e9;border-radius:8px;background:#fff}
.k6-flow-route-arrow{grid-area:arrow;font-size:20px;font-weight:700;color:#586778}
.k6-flow-route-label{grid-area:label;font-size:12px;color:#5f6873}
.k6-flow-route-destination{grid-area:dest;font-weight:700;line-height:1.35}
.k6-route-direct{border-color:#e2ad55;background:#fff9ee}
.k6-route-direct .k6-flow-route-arrow,.k6-route-direct .k6-flow-route-label{color:#a85f00}
.k6-route-success{border-color:#df8b8b;background:#fff5f5}
.k6-route-success .k6-flow-route-arrow,.k6-route-success .k6-flow-route-label{color:#a62323}
.k6-route-return{border-style:dashed;background:#fafafa;opacity:.82}
.k6-route-condition{border-color:#9d83bd;background:#fbf7ff}

.k6-flow-node--has-grid .k6-flow-subitems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 12px 12px}
.k6-flow-node--has-grid .k6-flow-subitem{border:1px solid #e0e3e7;border-radius:8px!important;padding:10px;align-content:start}
.k6-flow-node--has-grid .k6-flow-subitem h4{margin:-10px -10px 0}
.k6-flow-node--has-grid .k6-flow-images img{max-height:190px}
.k6-flow-node--has-grid .k6-flow-stats{grid-template-columns:1fr}
.k6-flow-node--has-grid .k6-flow-stats>div{grid-template-columns:minmax(78px,.8fr) 1.2fr}

@media(max-width:600px){
  .k6-flow-route-group{grid-template-columns:1fr}
  .k6-flow-route-source{justify-content:flex-start;padding:8px 10px;border-bottom:1px solid #e1e5ea}
  .k6-flow-route-options{display:grid;grid-template-columns:1fr;gap:6px;padding:7px}
  .k6-flow-route{min-width:0;width:100%}
  .k6-flow-node--has-grid .k6-flow-subitems{grid-template-columns:1fr;gap:8px;padding:0 8px 8px}
  .k6-flow-node--has-grid .k6-flow-images img{max-height:210px}
}

/* v0.6 visual flow graph */
.k6-flow-overview{display:none!important}
.k6-flow-graph{position:relative;padding:4px 34px 14px;overflow:visible}
.k6-flow-svg{position:absolute;inset:0;z-index:1;overflow:visible;pointer-events:none}
.k6-flow-levels{position:relative;z-index:2;display:grid;gap:94px}
.k6-flow-level{display:grid;grid-template-columns:repeat(var(--k6-level-count,1),minmax(0,1fr));gap:28px;align-items:start;justify-items:center}
.k6-flow-level--count-1{--k6-level-count:1}
.k6-flow-level--count-2{--k6-level-count:2}
.k6-flow-level--count-3{--k6-level-count:3}
.k6-flow-level--count-4{--k6-level-count:4}
.k6-flow-level--count-1>.k6-flow-node{width:min(100%,760px)}
.k6-flow-level--count-2>.k6-flow-node{width:100%}
.k6-flow-node{position:relative;z-index:3;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.k6-flow-svg-path{filter:drop-shadow(0 1px 0 rgba(255,255,255,.9))}
.k6-flow-svg-label rect{fill:#fff;stroke:#d6dce3;stroke-width:1}
.k6-flow-svg-label text{fill:#26313d;font-size:13px;font-weight:700}
.k6-flow-svg-label-direct rect{fill:#eef7ff;stroke:#6ba7dc}
.k6-flow-svg-label-success rect{fill:#fff2f2;stroke:#df8b8b}
.k6-flow-svg-label-condition rect{fill:#fff0f8;stroke:#df82b5}
.k6-flow-svg-label-return rect{fill:#f6f6f6;stroke:#a2a6ac;stroke-dasharray:3 2}
.k6-flow-level--count-2 .k6-flow-node-main{padding:11px}
.k6-flow-level--count-2 .k6-flow-node-head h3{font-size:18px}
.k6-flow-level--count-2 .k6-flow-stats{grid-template-columns:1fr}

@media(max-width:700px){
  .k6-flow-graph{padding-inline:12px}
  .k6-flow-levels{gap:82px}
  .k6-flow-level{gap:10px}
  .k6-flow-level--count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .k6-flow-level--count-3,.k6-flow-level--count-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .k6-flow-level--count-2 .k6-flow-node-head h3,.k6-flow-level--count-3 .k6-flow-node-head h3{font-size:15px}
  .k6-flow-level--count-2 .k6-flow-node-main,.k6-flow-level--count-3 .k6-flow-node-main{padding:7px;gap:7px}
  .k6-flow-level--count-2 .k6-flow-description,.k6-flow-level--count-3 .k6-flow-description{font-size:13px}
  .k6-flow-level--count-2 .k6-flow-stats dt,.k6-flow-level--count-2 .k6-flow-stats dd{font-size:12px;padding:5px}
  .k6-flow-level--count-2 .k6-flow-images img{max-height:145px}
  .k6-flow-svg-label text{font-size:11px}
}

@media(max-width:420px){
  .k6-flow-graph{padding-inline:8px}
  .k6-flow-levels{gap:76px}
  .k6-flow-level{gap:7px}
  .k6-flow-level--count-2 .k6-flow-node-head{padding:7px 5px}
  .k6-flow-level--count-2 .k6-flow-node-head h3{font-size:14px}
  .k6-flow-level--count-2 .k6-flow-images--two{grid-template-columns:1fr}
  .k6-flow-level--count-2 .k6-flow-stats>div{grid-template-columns:1fr}
  .k6-flow-level--count-2 .k6-flow-stats dt,.k6-flow-level--count-2 .k6-flow-stats dd{text-align:center}
}

/* v0.6.2 safer connector routing */
.k6-flow-graph{padding-inline:86px}
.k6-flow-levels{gap:124px}
.k6-flow-svg-path{filter:none}
.k6-flow-svg-label rect{fill:rgba(255,255,255,.97)}
.k6-flow-svg-label text{font-size:12px}
@media(max-width:700px){
  .k6-flow-graph{padding-inline:48px}
  .k6-flow-levels{gap:108px}
}
@media(max-width:420px){
  .k6-flow-graph{padding-inline:38px}
  .k6-flow-levels{gap:102px}
  .k6-flow-svg-label text{font-size:10px}
}

.k6-flow-svg-label text{paint-order:stroke;stroke:#fff;stroke-width:0.35px}
.k6-flow-svg-label rect{vector-effect:non-scaling-stroke}

/* =========================================================
   シンプルゲームフロー v0.7.0
========================================================= */
.k6-simple-flow-list{
  width:min(100%,620px);
  margin-inline:auto;
  display:grid;
  justify-items:center;
}
.k6-simple-flow-step{
  width:100%;
  overflow:hidden;
  border:2px solid #cfd6df;
  border-radius:10px;
  background:#fff;
}
.k6-simple-flow-title{
  margin:0;
  padding:10px 14px;
  background:#596878;
  color:#fff;
  text-align:center;
  font-size:20px;
  line-height:1.4;
}
.k6-simple-flow-step.k6-flow-type-normal{border-color:#1769c2}
.k6-simple-flow-step.k6-flow-type-normal .k6-simple-flow-title{background:#1769c2}
.k6-simple-flow-step.k6-flow-type-prelude{border-color:#df841f}
.k6-simple-flow-step.k6-flow-type-prelude .k6-simple-flow-title{background:#df841f}
.k6-simple-flow-step.k6-flow-type-cz{border-color:#be2b83}
.k6-simple-flow-step.k6-flow-type-cz .k6-simple-flow-title{background:#be2b83}
.k6-simple-flow-step.k6-flow-type-bonus{border-color:#bd651e}
.k6-simple-flow-step.k6-flow-type-bonus .k6-simple-flow-title{background:#bd651e}
.k6-simple-flow-step.k6-flow-type-at{border-color:#d14921}
.k6-simple-flow-step.k6-flow-type-at .k6-simple-flow-title{background:#d14921}
.k6-simple-flow-step.k6-flow-type-upper{border-color:#822a96}
.k6-simple-flow-step.k6-flow-type-upper .k6-simple-flow-title{background:#822a96}
.k6-simple-flow-step.k6-flow-type-special{border-color:#267d39}
.k6-simple-flow-step.k6-flow-type-special .k6-simple-flow-title{background:#267d39}
.k6-simple-flow-step.k6-flow-type-return{border-color:#52606d}
.k6-simple-flow-step.k6-flow-type-return .k6-simple-flow-title{background:#52606d}
.k6-simple-flow-image{padding:12px 12px 0;text-align:center}
.k6-simple-flow-image img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:260px;
  height:auto;
  margin-inline:auto;
  object-fit:contain;
  border-radius:6px;
}
.k6-simple-flow-description{
  margin:0;
  padding:11px 14px 13px;
  text-align:center;
  line-height:1.75;
}
.k6-simple-flow-arrow{
  position:relative;
  width:100%;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.k6-simple-flow-arrow-line{
  position:relative;
  display:block;
  width:8px;
  height:42px;
  border-radius:5px 5px 0 0;
  background:#245b9f;
}
.k6-simple-flow-arrow-line::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-14px;
  transform:translateX(-50%);
  border-left:18px solid transparent;
  border-right:18px solid transparent;
  border-top:20px solid #245b9f;
}
.k6-simple-flow-condition{
  position:absolute;
  left:calc(50% + 24px);
  top:50%;
  transform:translateY(-50%);
  max-width:calc(50% - 36px);
  padding:4px 9px;
  border:1px solid #cfd6df;
  border-radius:999px;
  background:#fff;
  color:#34404b;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  white-space:normal;
}
@media(max-width:600px){
  .k6-simple-flow-list{width:100%}
  .k6-simple-flow-title{padding:9px 10px;font-size:18px}
  .k6-simple-flow-image{padding:9px 9px 0}
  .k6-simple-flow-image img{max-height:210px}
  .k6-simple-flow-description{padding:9px 10px 11px;font-size:14px}
  .k6-simple-flow-arrow{height:68px}
  .k6-simple-flow-arrow-line{width:7px;height:38px}
  .k6-simple-flow-arrow-line::after{bottom:-13px;border-left-width:16px;border-right-width:16px;border-top-width:18px}
  .k6-simple-flow-condition{
    left:calc(50% + 20px);
    max-width:calc(50% - 28px);
    padding:3px 7px;
    font-size:12px;
  }
}

/* =========================================================
   コンパクト分岐ゲームフロー v0.8.1
========================================================= */
.k6-compact-flow-board{
  width:min(100%,620px);
  margin-inline:auto;
  padding:16px 18px;
  border:1px solid #d9dee5;
  border-radius:12px;
  background:#fff;
  box-sizing:border-box;
}
.k6-compact-flow-level{
  display:grid;
  grid-template-columns:repeat(var(--k6-flow-cols,1),minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.k6-compact-flow-level + .k6-compact-flow-routes,
.k6-compact-flow-side-routes{
  margin-top:8px;
}
.k6-compact-flow-level--1{--k6-flow-cols:1}
.k6-compact-flow-level--2{--k6-flow-cols:2}
.k6-compact-flow-level--3{--k6-flow-cols:3}
.k6-compact-flow-level--4{--k6-flow-cols:4}
.k6-compact-flow-level--5{--k6-flow-cols:5}
.k6-compact-flow-node{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 12px;
  border:2px solid #697786;
  border-radius:5px;
  background:#f3f5f7;
  color:#17202a;
  text-align:center;
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  box-sizing:border-box;
}
.k6-compact-flow-node.k6-flow-type-normal{border-color:#c3b72e;background:#fff98a}
.k6-compact-flow-node.k6-flow-type-prelude{border-color:#d28525;background:#f5c77e}
.k6-compact-flow-node.k6-flow-type-cz{border-color:#8b3b9e;background:#c995d2}
.k6-compact-flow-node.k6-flow-type-bonus{border-color:#bd651e;background:#efb16f}
.k6-compact-flow-node.k6-flow-type-at{border-color:#b76d22;background:#e6a05a}
.k6-compact-flow-node.k6-flow-type-upper{border-color:#a33372;background:#dc77a8}
.k6-compact-flow-node.k6-flow-type-special{border-color:#6a8668;background:#dce8d8}
.k6-compact-flow-node.k6-flow-type-return{border-color:#65717c;background:#dce1e6}
.k6-compact-flow-routes{
  display:grid;
  grid-template-columns:repeat(var(--k6-flow-cols,1),minmax(0,1fr));
  gap:18px;
  min-height:96px;
  padding-bottom:8px;
  align-items:start;
}

.k6-compact-flow-routes--1{--k6-flow-cols:1}
.k6-compact-flow-routes--2{--k6-flow-cols:2}
.k6-compact-flow-routes--3{--k6-flow-cols:3}
.k6-compact-flow-routes--4{--k6-flow-cols:4}
.k6-compact-flow-routes--5{--k6-flow-cols:5}
.k6-compact-flow-connector,
.k6-compact-flow-shortcut{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  padding-top:10px;
}

.k6-compact-flow-shortcut.is-unlabeled{
  padding-top:34px;
}

.k6-compact-flow-connector.is-empty{visibility:hidden}
.k6-compact-flow-label{
  display:block;
  max-width:100%;
  margin-bottom:8px;
  padding:2px 8px;
  border-radius:999px;
  background:#fff;
  color:#4c5966;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  text-align:center;
  white-space:normal;
}
.k6-compact-flow-arrow{
  display:block;
  color:#303842;
  font-family:Arial,sans-serif;
  font-size:40px;
  font-weight:900;
  line-height:.95;
  margin-top:4px;
}
.k6-compact-flow-arrow.k6-route-condition{color:#9f2d83}
.k6-compact-flow-arrow.k6-route-direct{color:#1562a8}
.k6-compact-flow-shortcut-label{
  display:block;
  margin-bottom:8px;
  color:#20486e;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}
.k6-compact-flow-shortcut-line{
  position:relative;
  display:block;
  width:4px;
  height:30px;
  border-radius:4px 4px 0 0;
  background:#1562a8;
}
.k6-compact-flow-shortcut-line::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-top:12px solid #1562a8;
}
.k6-compact-flow-shortcut-destination{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:22px;
  padding:4px 12px;
  border:2px solid #1562a8;
  border-radius:999px;
  background:#eef6ff;
  color:#164e82;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  margin-bottom:6px;
}

.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-label{color:#7d2567}
.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-line{background:#9f2d83}
.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-line::after{border-top-color:#9f2d83}
.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-destination{border-color:#9f2d83;background:#fff3fb;color:#7d2567}
.k6-compact-flow-side-routes{
  margin-top:8px;
}
.k6-compact-flow-level--1{--k6-flow-cols:1}
.k6-compact-flow-level--2{--k6-flow-cols:2}
.k6-compact-flow-level--3{--k6-flow-cols:3}
.k6-compact-flow-level--4{--k6-flow-cols:4}
.k6-compact-flow-level--5{--k6-flow-cols:5}
.k6-compact-flow-node{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 12px;
  border:2px solid #697786;
  border-radius:5px;
  background:#f3f5f7;
  color:#17202a;
  text-align:center;
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  box-sizing:border-box;
}
.k6-compact-flow-node.k6-flow-type-normal{border-color:#c3b72e;background:#fff98a}
.k6-compact-flow-node.k6-flow-type-prelude{border-color:#d28525;background:#f5c77e}
.k6-compact-flow-node.k6-flow-type-cz{border-color:#8b3b9e;background:#c995d2}
.k6-compact-flow-node.k6-flow-type-bonus{border-color:#bd651e;background:#efb16f}
.k6-compact-flow-node.k6-flow-type-at{border-color:#b76d22;background:#e6a05a}
.k6-compact-flow-node.k6-flow-type-upper{border-color:#a33372;background:#dc77a8}
.k6-compact-flow-node.k6-flow-type-special{border-color:#6a8668;background:#dce8d8}
.k6-compact-flow-node.k6-flow-type-return{border-color:#65717c;background:#dce1e6}
.k6-compact-flow-connectors{
  display:grid;
  grid-template-columns:repeat(var(--k6-flow-cols,1),minmax(0,1fr));
  gap:14px;
  min-height:72px;
  align-items:start;
}
.k6-compact-flow-connectors--1{--k6-flow-cols:1}
.k6-compact-flow-connectors--2{--k6-flow-cols:2}
.k6-compact-flow-connectors--3{--k6-flow-cols:3}
.k6-compact-flow-connectors--4{--k6-flow-cols:4}
.k6-compact-flow-connectors--5{--k6-flow-cols:5}
.k6-compact-flow-connector{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  padding-top:4px;
}
.k6-compact-flow-connector.is-empty{visibility:hidden}
.k6-compact-flow-label{
  display:block;
  max-width:100%;
  margin-bottom:4px;
  padding:2px 8px;
  border-radius:999px;
  background:#fff;
  color:#4c5966;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  text-align:center;
  white-space:normal;
}
.k6-compact-flow-arrow{
  display:block;
  color:#303842;
  font-family:Arial,sans-serif;
  font-size:42px;
  font-weight:900;
  line-height:.95;
}
.k6-compact-flow-arrow.k6-route-condition{color:#9f2d83}
.k6-compact-flow-arrow.k6-route-direct{color:#1562a8}
.k6-compact-flow-shortcuts{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.k6-compact-flow-shortcut{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:108px;
  text-align:center;
}
.k6-compact-flow-shortcut-label{
  display:block;
  margin-bottom:4px;
  color:#20486e;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}
.k6-compact-flow-shortcut-line{
  position:relative;
  display:block;
  width:4px;
  height:34px;
  border-radius:4px 4px 0 0;
  background:#1562a8;
}
.k6-compact-flow-shortcut-line::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-top:12px solid #1562a8;
}
.k6-compact-flow-shortcut-destination{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:20px;
  padding:4px 12px;
  border:2px solid #1562a8;
  border-radius:999px;
  background:#eef6ff;
  color:#164e82;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
}
.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-label{color:#7d2567}
.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-line{background:#9f2d83}
.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-line::after{border-top-color:#9f2d83}
.k6-compact-flow-shortcut.k6-route-condition .k6-compact-flow-shortcut-destination{border-color:#9f2d83;background:#fff3fb;color:#7d2567}
.k6-compact-flow-side-routes{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.k6-compact-flow-side-route{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:4px 8px;
  border:2px solid #1562a8;
  border-radius:999px;
  background:#eef6ff;
  color:#164e82;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
}
.k6-compact-flow-side-route.k6-route-return{
  border-style:dashed;
  border-color:#737b84;
  background:#f5f6f7;
  color:#4d555d;
}
.k6-compact-flow-side-route small{font-size:inherit;font-weight:600}

@media(max-width:600px){
  .k6-compact-flow-board{width:100%;padding:12px 10px}
  .k6-compact-flow-level,.k6-compact-flow-routes{gap:10px}
  .k6-compact-flow-node{min-height:42px;padding:8px 7px;font-size:14px}
  .k6-compact-flow-routes{min-height:74px;padding-bottom:6px}
  .k6-compact-flow-label{padding-inline:5px;font-size:10px}
  .k6-compact-flow-arrow{font-size:36px}
    .k6-compact-flow-shortcut-label{font-size:10px}
  .k6-compact-flow-shortcut.is-unlabeled{padding-top:24px}
  .k6-compact-flow-shortcut-line{height:24px;width:3px}
  .k6-compact-flow-shortcut-line::after{bottom:-9px;border-left-width:8px;border-right-width:8px;border-top-width:10px}
  .k6-compact-flow-shortcut-destination{margin-top:16px;margin-bottom:4px;padding:3px 8px;font-size:11px}
  .k6-compact-flow-side-route{font-size:11px}
}
@media(max-width:380px){
  .k6-compact-flow-level--4,.k6-compact-flow-level--5,
  .k6-compact-flow-routes--4,.k6-compact-flow-routes--5{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
.k6-play-guide-image{display:block;width:100%;max-width:600px;height:auto;margin-inline:auto;object-fit:contain}

/* Public play-guide shortcode: keep the established accordion card proportions. */
[data-k6-play-guide-item] .mm-ddt__img,
[data-k6-play-guide-item] .mm-stepcard__ph{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
  box-sizing:border-box;
  padding:8px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
}
[data-k6-play-guide-item] .mm-ddt__img{max-width:320px;height:190px;margin:0}
[data-k6-play-guide-item] .mm-stepcard__ph{max-width:100%;height:145px;margin:0 0 10px}
[data-k6-play-guide-item] .mm-ddt__img .k6-play-guide-image,
[data-k6-play-guide-item] .mm-stepcard__ph .k6-play-guide-image{
  width:auto;
  max-width:100%;
  height:auto;
  max-height:100%;
  margin:auto;
}
@media(max-width:767px){
  [data-k6-play-guide-item] .mm-ddt__img,
  [data-k6-play-guide-item] .mm-stepcard__ph{padding:7px}
  [data-k6-play-guide-item] .mm-ddt__img{max-width:100%;height:180px;margin-inline:auto}
  [data-k6-play-guide-item] .mm-stepcard__ph{max-width:300px;height:165px;margin:0 auto 10px}
}
@media(max-width:380px){
  [data-k6-play-guide-item] .mm-ddt__img{height:162px}
  [data-k6-play-guide-item] .mm-stepcard__ph{max-width:268px;height:150px}
}

/* v1.0.7: mobile-first compact stop-pattern comparison + detail dialog. */
.k6-teishikei.mm-card{
  padding:14px;
  overflow:visible;
}
.k6-teishikei-intro{
  margin:0 0 12px;
  color:#53606d;
  font-size:13px;
  line-height:1.55;
}
.k6-teishikei-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:100%;
  min-width:0;
}
.k6-teishikei-card{
  appearance:none;
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
  min-width:0;
  margin:0;
  padding:8px;
  border:1px solid #dce3ea;
  border-radius:9px;
  background:#fff;
  color:#182433;
  font:inherit;
  text-align:left;
  box-shadow:none;
  cursor:pointer;
}
.k6-teishikei-card:hover{border-color:#8fa7bd;background:#fbfdff}
.k6-teishikei-card:focus-visible{
  outline:3px solid rgba(0,149,149,.28);
  outline-offset:2px;
  border-color:#009595;
}
.k6-teishikei-card__title{
  display:block;
  overflow:hidden;
  color:#172334;
  font-size:15px;
  font-weight:800;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.k6-teishikei-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  aspect-ratio:5 / 3;
  overflow:hidden;
  box-sizing:border-box;
  padding:3px;
  border:1px solid #e5eaf0;
  border-radius:6px;
  background:#f8fafc;
}
.k6-teishikei-thumb .k6-play-guide-image{
  display:block;
  width:100%;
  max-width:none;
  height:100%;
  max-height:none;
  margin:0;
  object-fit:contain;
}
.k6-teishikei-card__meta{
  display:-webkit-box;
  min-height:1.45em;
  overflow:hidden;
  color:#586674;
  font-size:12px;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
}
.k6-teishikei>.mm-tip{margin-top:12px}

.k6-teishikei-modal[hidden]{display:none!important}
.k6-teishikei-modal{
  position:fixed;
  z-index:100000;
  inset:0;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  padding:16px;
  background:rgba(17,24,39,.76);
}
.k6-teishikei-modal__dialog{
  position:relative;
  width:min(100%,660px);
  min-width:0;
  max-width:100%;
  max-height:calc(100dvh - 32px);
  overflow:auto;
  box-sizing:border-box;
  padding:18px;
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 45px rgba(0,0,0,.22);
}
.k6-teishikei-modal__close{
  display:block;
  margin:0 0 8px auto;
  padding:7px 11px;
  border:1px solid #cbd5df;
  border-radius:999px;
  background:#fff;
  color:#263442;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.k6-teishikei-modal__close:focus-visible{outline:3px solid rgba(0,149,149,.28);outline-offset:2px}
.k6-teishikei-modal__title{margin:0 0 10px;color:#172334;font-size:21px;line-height:1.4}
.k6-teishikei-modal__image{
  display:block;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:6px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f8fafc;
}
.k6-teishikei-modal__image .k6-play-guide-image{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:calc(100dvh - 190px);
  margin:0 auto;
  object-fit:contain;
}
.k6-teishikei-modal__description{margin:12px 0 0;color:#344252;line-height:1.75}
.k6-teishikei-modal__payout{margin:10px 0 0;font-weight:800;color:#9b2c2c}
body.k6-teishikei-modal-open{overflow:hidden}

@media(max-width:700px){
  .k6-teishikei.mm-card{padding:8px}
  .k6-teishikei-intro{margin-bottom:9px;font-size:12px}
  .k6-teishikei-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .k6-teishikei-card{gap:5px;padding:4px;border-radius:8px}
  .k6-teishikei-card__title{font-size:14px}
  .k6-teishikei-thumb{padding:2px;border-radius:5px}
  .k6-teishikei-card__meta{font-size:11px}
  .k6-teishikei>.mm-tip{margin-top:10px}
  .k6-teishikei-modal{padding:8px}
  .k6-teishikei-modal__dialog{max-height:calc(100dvh - 16px);padding:12px;border-radius:10px}
  .k6-teishikei-modal__title{font-size:19px}
  .k6-teishikei-modal__image{padding:4px}
  .k6-teishikei-modal__description{font-size:14px;line-height:1.7}
}

/* 画像がまだ無い停止形。押しても何も出ないのでボタンにしない。 */
.k6-teishikei-card--text{
  cursor:default;
  border-style:dashed;
  background:#fbfcfd;
}
.k6-teishikei-card--text:hover{border-color:#dce3ea;background:#fbfcfd}
.k6-teishikei-card--text .k6-teishikei-card__meta{
  display:block;
  white-space:normal;
}
/* 画像が無いぶん場所があるので、題名を省略せず折り返す。 */
.k6-teishikei-card--text .k6-teishikei-card__title{
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}

/* 別の打ち分け。カードを増やさず、そのカードの中に並べる。 */
.k6-play-methods{margin:12px 0 0}
.k6-play-methods__head{
  margin:0 0 6px;
  color:#4a5b6d;
  font-size:13px;
  font-weight:800;
}
.k6-play-methods__list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.k6-play-methods__list li{
  padding:5px 10px;
  border:1px solid #dce3ea;
  border-radius:999px;
  background:#fff;
  font-size:13px;
  line-height:1.4;
}
.k6-play-methods__aim{
  margin-left:4px;
  color:#00706f;
  font-weight:800;
}

/* MASTER が使っていた停止形の言い方。役の名前の下へ小さく添える。 */
.k6-teishikei-card__stop {
  display: block;
  font-size: 0.78em;
  color: #6b7c8d;
  margin-top: 2px;
}

/* ------------------------------------------------------------------ *
 * 停止形カードの組み方
 *
 * 横に並べたとき、題・絵・説明・払い出しの位置がカードごとにずれていた。
 * 中身の量が違っても揃うように、入れ物を決めて場所を固定する。
 *
 *   題（__head）
 *   絵（k6-teishikei-thumb）… 縦横比は一定
 *   説明と札（__body）      … 余った高さはここが受ける
 *   払い出し（__foot）      … 下端へ寄せる
 *
 * 高さをそろえるために文章を足さない。出すものが無ければ入れ物を作らない。
 * ------------------------------------------------------------------ */
.k6-teishikei-grid{align-items:stretch}
.k6-teishikei-card{height:100%;justify-content:flex-start}
.k6-teishikei-card__head{display:block;width:100%;min-width:0}
/* 停止形の言い方の行（__stop）は出さない。役名の下に空行を予約しない（1.4.70）。 */
.k6-teishikei-card__body{
  display:flex;
  flex:1 1 auto;
  flex-wrap:wrap;
  gap:4px;
  align-content:flex-start;
  width:100%;
  min-width:0;
}
.k6-teishikei-card__body .k6-teishikei-card__meta{width:100%}
.k6-teishikei-card__foot{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  min-width:0;
  margin-top:auto;
  padding-top:4px;
  border-top:1px solid #eef2f6;
}
.k6-teishikei-card__payout{
  color:#405061;
  font-size:12px;
  font-weight:700;
}

/*
 * 絵が無い停止形（no_visual）。空の枠は作らない。
 * 絵のぶんの高さは詰めるが、払い出しは下端に揃えたままにする。
 */
.k6-teishikei-card--text .k6-teishikei-card__body{align-content:flex-start}

@media (max-width:600px){
  .k6-teishikei-card__payout{font-size:11px}
  .k6-teishikei-card__foot{padding-top:3px}
}

/* schema 2.9: the trigger stays attached to its action and image. */
.k6-procedure-condition{margin:0 0 10px;padding:8px 10px;border-left:4px solid #009595;background:#edfafa;border-radius:4px;color:#17454d;font-weight:700;line-height:1.5}
.k6-procedure-flow .k6-procedure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.k6-procedure-flow .mm-stepcard{min-width:0;width:auto;flex-basis:auto}
.k6-procedure-flow-note{margin-top:14px}
@media(max-width:767px){.k6-procedure-flow .k6-procedure-grid{grid-template-columns:minmax(0,1fr)}.k6-procedure-flow .mm-stepcard{width:100%;box-sizing:border-box}}

/* JSON renderer owns its layout; legacy square placeholders and accordion masks do not. */
.k6-procedure-flow .k6-procedure-body{display:block;max-height:none;overflow:visible;opacity:1;mask:none;-webkit-mask:none}
.k6-procedure-flow .k6-procedure-body[hidden]{display:none}
.k6-procedure-flow .k6-procedure-grid{align-items:start;gap:14px}
.k6-procedure-flow .mm-stepcard{height:auto;min-height:0;align-self:start}
.k6-procedure-flow [data-step-id] .mm-stepcard__ph,.k6-procedure-flow [data-step-id] .mm-ddt__img{display:block;aspect-ratio:5/3;width:100%;height:auto;min-height:0;max-width:600px;margin:0 auto 12px;padding:0;overflow:hidden;flex:0 0 auto;background:none;border:0}
.k6-procedure-flow [data-step-id] .k6-play-guide-image{display:block;width:100%;height:auto;max-height:none;aspect-ratio:5/3;object-fit:contain;margin:0}
.k6-procedure-flow .mm-stepcard__h,.k6-procedure-flow .mm-stepcard__p{margin-top:0}
.k6-procedure-flow .mm-stepcard .mm-chip{align-self:start;margin-top:8px}
[data-k6-procedure-toggle][aria-expanded=true] i{transform:rotate(180deg)}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card{display:flex;align-items:center;gap:10px;min-height:60px;height:auto;padding:12px;box-sizing:border-box;text-decoration:none}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__body{flex:1;min-width:0}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__title{display:block;word-break:normal;overflow-wrap:anywhere;line-height:1.5;font-size:14px}
.k6-situation-points{margin:18px 0}
.k6-situation-points h3.k6-situation-subhead{font-size:15px;font-weight:700;margin:0 0 10px;line-height:1.6}
.k6-situation-points .k6-key-points,.k6-situation-points .k6-game-flow{list-style:none;margin:0;padding:0;display:grid;gap:8px;counter-reset:k6flow}
.k6-situation-points li{margin:0;padding:12px 14px;border:1px solid #e3e9ed;border-radius:8px;background:#f8fafb;line-height:1.75;font-size:14px;color:#243746}
.k6-situation-points .k6-game-flow li{position:relative;padding-left:48px;counter-increment:k6flow}
.k6-game-flow>li::before{content:counter(k6flow);position:absolute;left:13px;top:13px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#147b7c;color:#fff;font-size:12px;font-weight:700}
.k6-play-media{display:grid;grid-template-columns:minmax(100px,1fr) minmax(180px,2fr);gap:14px;align-items:start;margin:0 0 20px}
.k6-play-media>.mm-card{margin:0;min-width:0}
.k6-play-media .k6-single-machine-image{display:block;text-align:center}
.k6-play-media img{max-width:100%;width:auto;height:auto;object-fit:contain}
.k6-play-media .k6-machine-card img{max-height:240px}.k6-play-media .mm-reel-card img{max-height:480px}
@media(max-width:767px){.k6-situation-guide.k6-situation-guide--compact .k6-situation-card{padding:10px;min-height:56px}.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__title{font-size:13px}.k6-play-media{grid-template-columns:minmax(80px,1fr) minmax(160px,2fr);gap:10px}.k6-play-media .k6-machine-card img{max-height:190px}}

.k6-procedure-flow .mm-ddt{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.k6-procedure-flow .mm-ddt__txt{min-width:0}@media(min-width:768px){.k6-procedure-flow .mm-ddt:has(.mm-ddt__img){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* Fleet presentation contract: preserve the full raster; never clip its corners. */
.k6-procedure-flow [data-step-id] .mm-stepcard__ph,
.k6-procedure-flow [data-step-id] .mm-ddt__img,
.k6-procedure-flow [data-step-id] .k6-play-guide-image,
.k6-teishikei-grid .k6-teishikei-thumb,
.k6-teishikei-grid .k6-teishikei-thumb img,
.k6-teishikei-modal .k6-teishikei-modal__image {border-radius:0;clip-path:none;mask:none;overflow:visible}
.k6-procedure-flow [data-step-id] .mm-stepcard__ph,
.k6-procedure-flow [data-step-id] .mm-ddt__img{min-height:0;line-height:0}
.k6-play-media{display:block}
.k6-play-media>.mm-reel-card{width:100%;max-width:600px;margin:0 auto 20px}
.k6-play-media .mm-reel-card img{max-height:none;max-width:100%;width:auto;height:auto}
.k6-situation-guide.k6-situation-guide--compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card{min-height:68px;padding:10px;gap:8px;border-radius:9px}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__icon{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;font-size:18px;color:#087e83;background:none}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__title{font-size:14px;line-height:1.4;letter-spacing:0}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__sub{display:block;font-size:11px;line-height:1.45;color:#546574;margin-top:3px}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__arrow{flex:0 0 8px;font-size:20px;line-height:1;color:#18888b}
.k6-situation-guide.k6-situation-guide--compact .k6-situation-card:focus-visible{outline:3px solid #158b90;outline-offset:2px}
.k6-editorial-points{margin:14px 0 20px}
.k6-editorial-list.k6-key-points,.k6-editorial-list.k6-game-flow{display:grid;gap:8px;list-style:none;margin:0;padding:0;counter-reset:k6flow}
.k6-editorial-list>.k6-editorial-point{margin:0;padding:12px 14px;border:1px solid #e1e8eb;border-left:3px solid #58a4a8;border-radius:6px;background:#f8fafb;line-height:1.75;min-width:0}
.k6-editorial-list.k6-game-flow>.k6-editorial-point{position:relative;counter-increment:k6flow;padding-left:48px}
.k6-editorial-list>.k6-editorial-point>ul,.k6-editorial-list>.k6-editorial-point>ol{margin-top:8px}
.k6-editorial-note,.k6-editorial-caution{padding:12px 14px;border-radius:7px;border-left:4px solid #72909e;background:#f0f5f7;line-height:1.7}
.k6-editorial-caution{border-left-color:#bd862d;background:#fff8e9}
@media(max-width:1023px){.k6-situation-guide.k6-situation-guide--compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.k6-situation-guide.k6-situation-guide--compact{gap:6px}.k6-situation-guide.k6-situation-guide--compact .k6-situation-card{padding:9px 7px;gap:5px;min-height:68px}.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__title{font-size:13px}.k6-situation-guide.k6-situation-guide--compact .k6-situation-card__icon{flex-basis:20px;width:20px;font-size:16px}}

.k6-teishikei-modal__image .k6-play-guide-image{border-radius:0;clip-path:none;mask:none}
.k6-procedure-parent{font-size:12px;line-height:1.6;color:#536872;margin:0 0 6px}

/* V51 6 situations. These overrides do not change the v1.4.60 procedure/stop UI. */
.k6-situation-guide.k6-situation-guide--six{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.k6-situation-guide.k6-situation-guide--six .k6-situation-card{min-height:56px;padding:8px;gap:6px;text-decoration:none}
.k6-situation-guide.k6-situation-guide--six .k6-situation-card__icon{width:20px;height:20px;flex-basis:20px;font-size:17px}
.k6-situation-guide.k6-situation-guide--six .k6-situation-card__sub{margin-top:2px;font-size:11px}
.k6-situation-guide.k6-situation-guide--six .k6-situation-card[aria-selected="true"]{border-color:#168b90;background:#f0fafa;box-shadow:inset 0 0 0 1px #168b90}
.k6-situation-panels--six[data-k6-six-enhanced="true"]>[data-k6-situation-panel][data-k6-situation-open="false"]{display:none!important}
.k6-situation-panels--six>.k6-situation-panel{min-width:0;margin:0;padding:0;border:0;background:transparent}
.k6-situation-panels--six>.k6-situation-panel:focus-visible{outline:2px solid #168b90;outline-offset:3px}
@media(max-width:767px){
 .k6-situation-guide.k6-situation-guide--six{grid-template-columns:repeat(2,minmax(0,1fr))}
 .k6-situation-guide.k6-situation-guide--six .k6-situation-card{min-height:54px;padding:8px 6px;gap:4px}
 .k6-situation-guide.k6-situation-guide--six .k6-situation-card__icon{width:16px;height:18px;flex-basis:16px;font-size:15px}
 .k6-situation-guide.k6-situation-guide--six .k6-situation-card__title{font-size:12px;line-height:1.4;white-space:nowrap}
 .k6-situation-guide.k6-situation-guide--six .k6-situation-card__sub{font-size:10px;line-height:1.45;white-space:nowrap}
 .k6-situation-guide.k6-situation-guide--six .k6-situation-card__arrow{font-size:16px;flex-basis:6px}
}

/* V51 semantic reading layout: role-based hierarchy, without per-bullet cards. */
.k6-analysis-content{--k6-ink:#17343c;--k6-muted:#596d73;--k6-line:#dfe7e8;color:var(--k6-ink)}
/* Card shells belong to their components; semantic text rules must not erase play/reel/stop cards. */
.k6-analysis-content [data-k6-content-role]{min-width:0;max-width:100%}
.k6-analysis-content .k6-reading-panel{padding:4px 0 16px!important;margin:0!important;line-height:1.85}
.k6-analysis-content .k6-reading-title{font-size:21px;line-height:1.5;border:0;padding:0;margin:20px 0 14px}
.k6-analysis-content .k6-answer{border-left:3px solid #128e91;background:#f3faf9;padding:12px 16px;margin:0 0 24px}
.k6-analysis-content .k6-answer p{font-size:14px;line-height:1.8;margin:0 0 8px;padding:0;border:0;background:none;box-shadow:none}
.k6-analysis-content .k6-answer p:first-child{font-weight:700}
.k6-analysis-content .k6-answer p:last-child{margin-bottom:0}
.k6-analysis-content .k6-information>h3{font-size:17px;line-height:1.6;margin:22px 0 10px;padding:0;border:0;background:none}
.k6-analysis-content .k6-information>h3>span:first-child{display:none}
.k6-analysis-content .k6-fact-list{display:block;margin:10px 0 18px;padding:0 0 0 1.2em;list-style:disc}
.k6-analysis-content .k6-fact-list>li{display:list-item;border:0;border-radius:0;background:none;box-shadow:none;padding:3px 0;margin:3px 0;min-height:0;height:auto;font-size:14px;line-height:1.85}
.k6-analysis-content ol.k6-fact-list{list-style:decimal}
.k6-analysis-content .k6-sequence{list-style:none;padding:0;counter-reset:stage;border-left:2px solid #cbe4e4;margin-left:13px}
.k6-analysis-content .k6-sequence>li{counter-increment:stage;position:relative;list-style:none;padding:0 0 18px 24px;margin:0}
.k6-analysis-content .k6-sequence>li:before{content:counter(stage);position:absolute;left:-14px;top:0;width:26px;height:26px;border-radius:50%;background:#177f83;color:white;text-align:center;font:700 13px/26px sans-serif}
.k6-analysis-content .k6-fact-measures{list-style:none;padding:0}
.k6-analysis-content .k6-fact-measures>li{list-style:none;padding:9px 0;border-bottom:1px solid var(--k6-line);font-variant-numeric:tabular-nums}
.k6-analysis-content .k6-condition-list{list-style:none;padding:0}
.k6-analysis-content .k6-condition-list>li{list-style:none;padding:8px 0 8px 14px;border-left:2px solid #78abaa;margin:8px 0}
.k6-analysis-content [data-k6-content-role="exception"]:not(section):not(li):not(ul){border-left:3px solid #d9a649;background:#fffaf0;padding:10px 14px;margin:18px 0;line-height:1.8}
.k6-analysis-content table{font-variant-numeric:tabular-nums}
.k6-analysis-content .k6-closing-check{border-top:2px solid #17343c;padding-top:10px;margin:8px 0 20px}
.k6-analysis-content .k6-next-links{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--k6-line);padding-top:16px;margin-top:24px}
.k6-analysis-content .k6-next-links>a{font-size:13px;color:#087b80;padding:8px 0;margin-right:12px;min-height:44px;display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.k6-analysis-content .k6-next-links>a:after{content:'→'}
.k6-analysis-content .k6-source-anchor{display:block;scroll-margin-top:80px}
.k6-analysis-content .k6-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:-1px!important;padding:0!important;border:0!important}
.k6-analysis-content .k6-situation-guide.k6-situation-guide--six{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:767px){
 .k6-analysis-content .k6-situation-section{padding:10px!important}
 .k6-analysis-content .k6-situation-guide.k6-situation-guide--six{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .k6-analysis-content .k6-situation-guide.k6-situation-guide--six .k6-situation-card{height:46px;min-height:46px;padding:6px 4px;gap:3px}
 .k6-analysis-content .k6-situation-guide.k6-situation-guide--six .k6-situation-card__title{font-size:12px;line-height:1.4;white-space:nowrap}
 .k6-analysis-content .k6-situation-guide.k6-situation-guide--six .k6-situation-card__sub{display:none}
 .k6-analysis-content .k6-situation-guide.k6-situation-guide--six .k6-situation-card__icon{width:12px;flex-basis:12px;height:15px;font-size:12px}
 .k6-analysis-content .k6-situation-guide.k6-situation-guide--six .k6-situation-card__arrow{font-size:12px;flex-basis:5px}
 .k6-analysis-content .k6-reading-title{font-size:19px}
 .k6-analysis-content .k6-information>h3{font-size:16px}
 .k6-analysis-content .k6-answer{padding:10px 12px}
}

.k6-analysis-content .k6-supplement{border-top:1px solid #dfe7e8;border-bottom:1px solid #dfe7e8;margin:20px 0;padding:10px 0}.k6-analysis-content .k6-supplement>summary{font-size:13px;font-weight:600;cursor:pointer;min-height:44px;display:flex;align-items:center}.k6-analysis-content .k6-supplement>summary:after{content:"+";margin-left:auto;padding-left:12px}.k6-analysis-content .k6-supplement[open]>summary:after{content:"-"}.k6-analysis-content .k6-sequence[data-k6-explicit-step-labels]>li:before{content:"";width:8px;height:8px;left:-5px;top:9px}.k6-analysis-content .k6-sequence[data-k6-explicit-step-labels]>li{padding-left:16px}

/* Visual completeness: natural card height; reference labels stay attached to their image. */
.k6-teishikei-grid{align-items:start}
.k6-teishikei-grid .k6-teishikei-card{height:auto;min-height:0;gap:6px;padding:8px;align-self:start;justify-content:flex-start}
.k6-teishikei-card .k6-teishikei-card__head,.k6-teishikei-card .k6-teishikei-card__body,.k6-teishikei-card .k6-teishikei-card__foot{flex:0 0 auto;margin:0;min-height:0}
.k6-teishikei-card .k6-teishikei-card__title{margin:0;line-height:1.45;font-size:14px;white-space:normal}
.k6-teishikei-card .k6-teishikei-thumb{margin:0;padding:0;min-height:0;line-height:0}
.k6-teishikei-card .k6-teishikei-card__meta{white-space:normal;overflow:visible;display:block;font-size:12px;line-height:1.6}
.k6-teishikei-card .k6-teishikei-card__foot{padding-top:5px}
.k6-visual-caption{display:block;margin:5px 0 0;color:#4b6471;font-size:12px;line-height:1.5}
.k6-procedure-flow [data-step-id] .mm-stepcard__ph,.k6-procedure-flow [data-step-id] .mm-ddt__img{aspect-ratio:auto;overflow:visible}
.k6-branch-reference{margin:8px 0 0;font-size:12px;line-height:1.6}
.k6-branch-reference summary{cursor:pointer;color:#306e7b;padding:5px 0}
.k6-branch-reference p{margin:6px 0}
.k6-branch-reference img{max-width:100%;height:auto}

.k6-teishikei-card .k6-teishikei-card__title{min-height:0;height:auto}
.k6-reference-label{display:block;font-size:11px;line-height:1.45;color:#346574;background:#f0f7f8;padding:3px 5px;border-radius:3px}
