
.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));
  }
}
